Asking for help with a bind: Spirnt & Ninja Run


Aggelakis

 

Posted

Not a bind expert, so hoping someone can help. I'm trying make a bind for Button 5 to activate and deactivate Sprint and Ninja Run with a single button. I made a few attempts, but hasn't worked.

Help?


 

Posted

There isn't a way to activate and deactivate BOTH with one button without using bind files.

Create a text file. Place the following contents in (replace KEYNAME with a key, like L or SHIFT+Z, whatever)

Code:
KEYNAME "+$$powexectoggleon Sprint$$powexectoggleon Ninja Run$$bindloadfilesilent C:\Path\To\File1.txt"
This will cause KEYNAME to toggle Sprint upon keypress and Ninja Run upon key release, then load the second file.

Create a second text file.
Code:
KEYNAME "powexectoggleoff Sprint$$powexectoggleoff Ninja Run$$bindloadfilesilent C:\Path\To\File2.txt"
This will cause KEYNAME to toggle Sprint and Ninja Run off, then load the first file.


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

Good enough.


 

Posted

Oh, and thank you.

^_^


 

Posted

Tried it just now. It's not working. It swaps between the two, not turning them both on and off at the same time.


 

Posted

This is how I have my binds set up. As you found out, you can't turn on 2 powers at once, but you can turn off as many as you want. So I use separate key presses.

This is what I use for a character with just Ninja Run for travel:

Quote:
F "powexecname Ninja Run"
SHIFT+F "powexecname Sprint"
lalt+F "powexectoggleoff Sprint$$powexectoggleoff Ninja Run"
This gives me finer control, and only takes a split second to do. I use the F key for travel powers on all of my characters, so it is easy to remember and use. And I don't even need to keep the powers in my trays, which is really nice as I get more and more powers.

There is one thing you can try to get both on at once, but I am not sure it will work.

<key> "powexecname Sprint$$powexectoggleon Ninja Run"

That may turn them both on, although I don't think so. And it can only turn off Sprint, since the Ninja Run command is only for turning on. And if Sprint is already on, it would turn it off as Ninja Run was turned on.


Justice Blues, Tech/Tank, Inv/SS
----------------------
Fighting The Future Trilogy
----------------------

 

Posted

Oh well then.

I have the two bound to separate buttons. I was hoping I could reduce it to just one, but I can live without.


 

Posted

This is what I do for my SR toggles:

Code:
/bind g "powexec_toggleon Evasion$$powexec_toggleon Focused Senses$$powexec_toggleon Focused Fighting"

/bind shift+c "powexec_toggleoff Evasion$$powexec_toggleoff Focused Senses$$powexec_toggleoff Focused Fighting
Then I just mash the G key three times and everything turns on. There is, unfortunately, no way to have one key press activate more than one power, though you can have one keypress DE-ACTIVATE as many toggles as you like.

I recommend you do the following:

/bind KEY "powexec_toggleon Ninja Run$$powexec_toggleon Sprint"
/bind shift+KEY "powexec_toggleoff Ninja Run$$powexec_toggleoff Sprint"

Press your chosen key twice to turn them both on, then hold shift and press it again to turn them both off.

((When using a chaining bind like this, remember that they activate from the right-most command and work their way left.))


Main Hero: Chad Gulzow-Man (Victory) 50, 1396 Badges
Main Villain: Evil Gulzow-Man (Victory) 50, 1193 Badges
Mission Architect arcs: Doctor Brainstorm's An Experiment Gone Awry, Arc ID 2093

-----
Quote:
Originally Posted by Nethergoat View Post
it's NEVER too late to pad your /ignore list!

 

Posted

You *CAN* execute two powers with one push, by utilizing keypress/key release just like I said. I just had the grouping wrong (the toggles need to be separated to function properly). Four files, one press to turn on, one press to turn off. I tried to make it so that toggleoff was one file but it kept hiccuping if I held the button too long - separating those out made the cycle much smoother.

Quote:
Originally Posted by sprint-on.txt
P "+$$powexectoggleon Sprint$$bindloadfilesilent G:\City\ninjarun-on.txt"
Quote:
Originally Posted by ninjarun-on.txt
P "+$$powexectoggleon Ninja Run$$bindloadfilesilent G:\City\sprint-off.txt"
Quote:
Originally Posted by sprint-off.txt
P "+$$powexectoggleoff Sprint$$bindloadfilesilent G:\City\ninjarun-off.txt"
Quote:
Originally Posted by ninjarun-off.txt
P "+$$powexectoggleoff Ninja Run$$bindloadfilesilent G:\City\sprint-on.txt"
Tested in-game. Make sure to push and release the key somewhat slowly, so that the bind doesn't hiccup. The powexecs and bindload happen at the same time so if you press it too fast, it might skip one or the other, which screws up the order. A good idea to create a reset key to start it all over again - something to either turn everything off and load up sprint-on, the beginning of the loop:
Quote:
Originally Posted by reset.txt
SHIFT+P "powexectoggleoff Ninja Run$$powexectoggleoff Sprint$$bindloadfile G:\City\sprint-on.txt"


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

Quote:
Originally Posted by Aggelakis View Post
Make sure to push and release the key somewhat slowly, so that the bind doesn't hiccup. The powexecs and bindload happen at the same time so if you press it too fast, it might skip one or the other, which screws up the order. A good idea to create a reset key to start it all over again - something to either turn everything off and load up sprint-on, the beginning of the loop:
That section right there is why I don't use /bindloadfile for things like that. Way too easy for the files to get out of sync, and the only way to try and avoid it is pressing the button slowly, which negates the speed of only one key press. Hitting F, the hitting shift+F takes a split second, and I don't need to think about it.


Justice Blues, Tech/Tank, Inv/SS
----------------------
Fighting The Future Trilogy
----------------------