![]() |
|
Multiple Input Variables - 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: Multiple Input Variables (/Thread-multiple-input-variables) |
Multiple Input Variables - Vai - 03-15-2022 The game Zelda: Skyward Sword requires Swing Motions enabled to perform sword strikes and this will be the bulk of the game. However, when performing specific tasks such as using look around mode, dousing, or aiming with a weapon, you need swing motions disabled to lower your cursor sensitivity and to prevent sword strikes from breaking you out of that mode. The issue of swing motions can easily be solved by assigning a key on your controller you can hold to disable them as you need and this is what every Skyward Sword config I've come across does. But this is tedious and I want to automate things so that swing motions will automatically be disabled/enabled depending on specific button presses and sequences. I want to be able to seamlessly switch between striking with my sword, using a slingshot, striking with my sword again, access look-around mode, etc all without having to press/hold anything to enable/disable swing motions. I have actually managed to achieve this to a certain extent using D-Pad Left, D-Pad Right and 1 as storage areas for variables: Code: ($Dousing = toggle(`Pad N`,`Button A`|`Shoulder R`) & !$map) | (`Pad W` & $map)How do I assign two or more variables to a single button such that only one of them is ever true at a single time? For example, in my above code, I'd like to add: Code: $Aiming = toggle(`Button A`|`Shoulder R`,`Pad W`)In all my attempts, I could not get it to work such that while $Aiming is true, $Dousing cannot trigger, and vice versa. RE: Multiple Input Variables - AdmiralCurtiss - 03-23-2022 I haven't actually tried this, but we do have an if(condition, on-success, on-failure) function that might help you here. Something like: Code: $Aiming = if ($Dousing, 0, toggle(`Button A`|`Shoulder R`,`Pad W`)) |