Single Keybind to switch 2 toggle powers


DragonAlpha

 

Posted

Is it possible?

I have used
/bind f "powexec_name Fly $$ powexec_name Hover"
to switch between Fly and Hover.

One press activates Hover, the next activates Fly.

i cant get this to work with Super Speed and Sprint.

This i think is beacus you cant have both fly and hover active at once but you can sprint and super speed.

any ideas or suggestions are welcome.


 

Posted

yes that bind only works becuase those powers are mutually exclusive. It will not work for sprint and superspeed. Altho i cannot see why you would want to alternate between em. Please tell me you're not fighting with sprint on, it's an end hog!

One option would be to do two binds.
Bind 1 "powexec_toggleon Super Speed$$powexec_toggleoff Sprint"
Bind 2 "powexec_toggleoff Super Speed$$powexec_toggleon Sprint"
It'll require you to push 1 twice to turn super speed on and sprint off, then push 2 twice to turn super speed off and sprint on. Prob a smoother way to do it with bind files, but i'm not so good on how those work.


 

Posted

You can't use a bind to switch on two toggle powers.

Your fly/hover one's OK, because as you say the two are exclusive to each other. If hover's already active when you press the key it turns hover off, then fly on as part of the same press. If fly's already active it turns hover on, which automatically turns fly off, then ignores the command to turn fly on as it's already hit the "one power on" limit with hover.

If you do something along the lines of:

/bind z "powexec_toggleon Super Speed$$ powexec_toggleon Sprint"

you'll get as close as possible to what you want, although you may need to press the key twice to finish the job.


 

Posted

Thank you all for the information.

ill have a look into your suggestions, however if Sapphic Neko is right about the drain i may scrap the idea for now.

Energy Devil


 

Posted

As Neko says the surefire way of doing this is with two different bindfiles.

You need to create two separate identical files of your keybinds. Let's say one is called "Sprint.txt" and the other is called "Superspeed.txt" and they're both located in C:\Keybinds.

If you want to use the "z" key to switch between Superspeed and Sprint then you edit the two files as follows:

In the "Sprint" file you edit the "z" line to say:
z "powexec_toggle_off superspeed$$powexec_toggle_on sprint$$bindloadfile c:\keybinds\Superspeed.txt"

In the "Superspeed" file you edit the "z" line to say:
z "powexec_toggle_off sprint$$powexec_toggle_on superspeed$$bindloadfile c:\keybinds\Sprint.txt"

So each time you hit the "z" key it changes what it will do the next time you hit it.

But, again, as Neko says. Do you really want to be fighting with sprint on all the time?


Ever wondered how our costumes stay so clean and shiny given everything we put them through?

Then you need to try out Spandex Crisis (Arc ID 32943)

 

Posted

Probably not.

What i could do is add a 3rd walk text file that disables both and cycle all three
Walk >> Sprint >> Superspeed >> Walk

what can i say my navigation skill with SS on are non-existent in enclosed spaces and stairways.


 

Posted

If you have a mouse with side-buttons on it (something like this: clicky ) then one thing that works for me is to use the front one to turn sprint on and the back one to turn it off. I'm *always* forgetting to turn sprint off at low levels and it suits my playstyle to just be able to click a button on the mouse rather then going for a key on the keyboard.

If this works for you then you could go one step further and have one button cycle between sprint and superspeed (as above) and the other button turn sprint and superspeed off.

But, as I say, it's a highly personal thing.


Ever wondered how our costumes stay so clean and shiny given everything we put them through?

Then you need to try out Spandex Crisis (Arc ID 32943)

 

Posted

[ QUOTE ]
You can't use a bind to switch on two toggle powers.


[/ QUOTE ]

Slightly untrue. You can use one bind to switch on as many toggles as you like. Just gotta keep pushing the button for each toggle.

I have one bind to turn on all my toggles on my chars, usually bind it to mouse button5. So i just keep pushing button5 to toggle up


 

Posted

[ QUOTE ]
[ QUOTE ]
You can't use a bind to switch on two toggle powers.


[/ QUOTE ]

Slightly untrue. You can use one bind to switch on as many toggles as you like. Just gotta keep pushing the button for each toggle.

I have one bind to turn on all my toggles on my chars, usually bind it to mouse button5. So i just keep pushing button5 to toggle up

[/ QUOTE ]
My bad - you've correctly pointed out what I meant, which was sadly different from what I actually said.