Okay, basically I just need help setting up a simple script to make one hotkey alternate buttons.
For example, when I press the a button, the first time it'd fire A, and then if I press again, it'd fire B, so on, so forth.
I want this so I can make spell or skill sets to one key, so I don't have to keep searching for my buttons.
After a bit of toying around, I managed to make a script that worked in notepad or explorer, But it won't work in game.
var = 1 ; setting the variable in advance z:: ; using the "Z" hotkey If(var = 1) ; I know I just made it 1, but only way I could alternate the output { ; BRACKET SendInput a ; It is firing the A button in anything BUT the game I want var = 2 ; Changing the variable to 2 to change output in else } ; CLOSE THE BRACKET BRUH else { ; OR ELSE I JUST WONT WORK ;) SendInput b ; The output is changing now var = 1 ; Changing the variable back, so it'll start back at A } return ; Return of the JEDI
This is the code I got to work outside of the game, I tested just using remapped keys ingame (A::C) and it worked fine, but when I reloaded this script it wouldn't.
Please and thank you in advance to anyone who can help me out here, I know there has got to be something I'm doing wrong, please just point it out for me or if you have better ideas in script, do tell, ty much