Macro help


Decorum

 

Posted

I'd like to make a travel macro that does one of two things, I'd like to be able to switch between ninja run and combat jumping, when I press w i'd like to switch to nr but as soon as i release w it toggles cj. Is that possible?


Virtue: @Santorican

Dark/Shield Build Thread

 

Posted

Quote:
Originally Posted by Santorican View Post
I'd like to make a travel macro that does one of two things, I'd like to be able to switch between ninja run and combat jumping, when I press w i'd like to switch to nr but as soon as i release w it toggles cj. Is that possible?
That'd be a Bind, not a Macro.

Something along the lines of this should work:
/bind w "+powexecname Combat Jumping$$powexecname Ninja Run"

Edit: If you also want 'w' to continue to make you run forward, you'll need to use this bind instead:
/bind w "+forward$$powexecname Combat Jumping$$powexecname Ninja Run"

Also, if you turn on Combat Jumping outside of these binds, it'll result in the order getting mixed up, causing CJ to turn on when you press W, and NR to turn on when you release it (you can fix this by turning off NR, or turning on CJ).

Edit: Or just read MB's corrections below


Quote:
Originally Posted by ShadowNate
;_; ?!?! What the heck is wrong with you, my god, I have never been so confused in my life!

 

Posted

Quote:
Originally Posted by Decorum View Post
We need Master-Blade, the Man With Binds For All Seasons!
Hi!

Quote:
Originally Posted by Kitsune Knight View Post
That'd be a Bind, not a Macro.

Something along the lines of this should work:
/bind w "+powexecname Combat Jumping$$powexecname Ninja Run"
Simply putting a + in front of a command can have undesired results. It should only be used on functions that use the +, or alone as it's own instruction, "+$$". This bind will not move your character at all though because there is no forward command. See below.

Quote:
Originally Posted by Kitsune Knight View Post
Edit: If you also want 'w' to continue to make you run forward, you'll need to use this bind instead:
/bind w "+forward$$powexecname Combat Jumping$$powexecname Ninja Run"
Yes. This is the one he needs.

Quote:
Originally Posted by Kitsune Knight View Post
Also, if you turn on Combat Jumping outside of these binds, it'll result in the order getting mixed up, causing CJ to turn on when you press W, and NR to turn on when you release it (you can fix this by turning off NR, or turning on CJ).
You have that first part backward. If you turn on Ninja Run before using the bind, it'll enable CJ while pressing the Key. It's only when NR is already active that it'll reverse the effects. You can turn on CJ outside of the bind any time you want without any side-effects.

Additionally, people with flying characters would use the following:
/bind w "+forward$$powexecname Hover$$powexecname Fly"


Furthermore, if you don't want to ALWAYS have "SpeedOnDemand" enabled, you can set up bind files to toggle it:

C:\cohBinds\SpeedOn.txt
W "+forward$$powexecname Combat Jumping$$powexecname Ninja Run"
Shift+W "bindloadfile C:\cohBinds\SpeedOff.txt"

C:\cohBinds\SpeedOff.txt
W "+forward"
Shift+W "bindloadfile C:\cohBinds\SpeedOn.txt"

I used Shift+W in this example, but you could use any key as your quick toggle switch if you wanted. Having it in bind files also lets you easily put them on more than one character.
Just make sure you run: "/bindloadfile C:\cohBinds\SpeedOn.txt" to install the whole thing on a toon.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
Hi!

Simply putting a + in front of a command can have undesired results. It should only be used on functions that use the +, or alone as it's own instruction, "+$$". This bind will not move your character at all though because there is no forward command. See below.

Yes. This is the one he needs.


You have that first part backward. If you turn on Ninja Run before using the bind, it'll enable CJ while pressing the Key. It's only when NR is already active that it'll reverse the effects. You can turn on CJ outside of the bind any time you want without any side-effects.

Additionally, people with flying characters would use the following:
/bind w "+forward$$powexecname Hover$$powexecname Fly"


Furthermore, if you don't want to ALWAYS have "SpeedOnDemand" enabled, you can set up bind files to toggle it:

C:\cohBinds\SpeedOn.txt
W "+forward$$powexecname Combat Jumping$$powexecname Ninja Run"
Shift+W "bindloadfile C:\cohBinds\SpeedOff.txt"

C:\cohBinds\SpeedOff.txt
W "+forward"
Shift+W "bindloadfile C:\cohBinds\SpeedOn.txt"

I used Shift+W in this example, but you could use any key as your quick toggle switch if you wanted. Having it in bind files also lets you easily put them on more than one character.
Just make sure you run: "/bindloadfile C:\cohBinds\SpeedOn.txt" to install the whole thing on a toon.
W "+forward$$powexecname Combat Jumping$$powexecname Ninja Run"

This one currently has it the other way I want it, when I press W it toggles CJ when I need it to toggle NR. How would I change that? Just switch Combat Jumping and Ninja Run in the bind command?


Virtue: @Santorican

Dark/Shield Build Thread

 

Posted

Quote:
Originally Posted by Decorum View Post
You're like Cthulhu!
Cthulhu fhtagn


 

Posted

Yes - switching Combat Jumping and Ninja Run should do the trick. Be warned, however: if you're ever in a situation where you find you need to press the W key repeatedly (like in a battle, or when you're stuck on something, or when you're adjusting position or whatever) it gets a little quirky, sometimes leaving Ninja Run Activated when you let up on the key instead of CJ. Should be easy to spot when Ninja Run is activated, so just remember to manually toggle it off when that happens.


The Scrappers' Guide to Dark Melee | Kheldian Binds and Strategies

 

Posted

Quote:
Originally Posted by Santorican View Post
Bump for help again
Like we said, If you already have Ninja Run turned on when you press W, it'll be reversed. Make sure you don't have it on before you start pressing W.

Reversing the commands wont work correctly unless you have CJ toggled already while standing still.