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:
From here, I just have to set Swing motions to check for $Dousing and everything works as intended. Unfortunately, simply due to how the game works, there are multiple ways to break out of aiming mode which would bypass the toggle to reenable swing motions. It is impossible to account for all of these situations, but I would like to account for as many as possible and to this end, I require more than two variables. Which brings me to my question:
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:
In all my attempts, I could not get it to work such that while $Aiming is true, $Dousing cannot trigger, and vice versa.
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.