Dolphin, the GameCube and Wii emulator - Forums
Help setting button to remain pressed with value of 1 - Printable Version

+- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org)
+-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support)
+--- Forum: Controllers (https://forums.dolphin-emu.org/Forum-controllers)
+--- Thread: Help setting button to remain pressed with value of 1 (/Thread-help-setting-button-to-remain-pressed-with-value-of-1)



Help setting button to remain pressed with value of 1 - tvc_lifer - 04-07-2022

I have a fighting game that makes an attack combo by pressing button a, then b, then c.

I have automated this in advanced controls by telling button a "trigger immediately after pressing button Z"
Then telling button b "trigger .3 seconds after pressing button Z"
Then telling button c "trigger 1.2 seconds after pressing button Z"


That all works fine and dandy. If I hold button Z I get the combo.
I want to press button Z once, and have it trigger the combo without having to hold the button.

I tried Toggle Pulse, and the Smooth function with 5 seconds. Both show button Z turning bold print in button setup, indicating the button is "held" for 5 seconds.

Unfortunately this does not trigger the combo. In the advanced control setup the value 1 slowly counts down or goes back to 0. I feel if I could keep the value of button z at 1, it would work. Perhaps an "if" function would work, but I need help with syntax. Thanks in advance!


RE: Help setting button to remain pressed with value of 1 - tvc_lifer - 04-08-2022

I tried
Code:
!`Trigger button`

Which on first test seemed to work with a few inputs. On a longer extended combo, I found that I had to hold the trigger button for the amount of time the combo lasts. Then when I let go of the trigger button it runs all the inputs. That's not what im looking for either, so Im still basically looking to imitate a true button press or some other work around.


RE: Help setting button to remain pressed with value of 1 - tvc_lifer - 04-15-2022

(04-08-2022, 12:29 PM)tvc_lifer Wrote: I  tried

Code:
!`Trigger button`

Which on first test seemed to work with a few inputs. On a longer extended combo, I found that I had to hold the trigger button for the amount of time the combo lasts. Then when I let go of the trigger button it runs all the inputs. That's not what im looking for either, so Im still basically looking to imitate a true button press or some other work around.

Final post on this for me, the "!" operator was the solution. I set the buttons to trigger on the necessary delays with "!", so they trigger when a button is not pressed. It runs through the combo one time. If I save the profile, then whenever I reload it, the combo runs again. So rather than triggering the combo with a button press, its a mouse click. Its good enough to call home and now I can defense train against attacks without requiring a human partner. YAY automation!