Bindloadfiles


Fireheart

 

Posted

A while ago, I was talking to DK about building a MFing warshade and asking if it was possible to bind Q to toggle the power on and off, instead of alt q, while keeping the tray swapping and teleport rebinding ability and he suggested using a bindloadfiles.

Can anyone help me with these? I'm wanting to bind a tray change, power use on the first click, then on the second click have q rebind my teleport, swap power trays and be ready for the next time I want to transform. And for E, I want to try and get it to change form and trays, rebind my teleport to the dwarf one and change be back on the next E.

Is this possible and can I get some help?


 

Posted

http://paragonwiki.com/wiki/Bind

That's the wiki's front page for binds. Note at the bottom it links to several pages about binds, including "The Incomplete and Unofficial Guide to /bind"

What Dechs was suggesting was setting up a rotating bind - it uses the bindloadfile command to read a text file and load a new set of binds - the new binds include the command to read a different text file, etc, creating a loop.

Note there are both bindloadfile and bindloadfilesilent commands - silent prevents it from spamming your system channel.


Orc&Pie No.53230 There is an orc, and somehow, he got a pie. And you are hungry.
www.repeat-offenders.net

Negaduck: I see you found the crumb. I knew you'd never notice the huge flag.

 

Posted

Sounds like he should have said "rotating keybinds" rather than "bindloadfiles". Rotating keybinds will use the bindloadfile command but the part that makes them special is that they load a new bindfile when you trigger them. And then the second bindfile points back to the first one, thus the 'rotating' name.

I have quite an array of keybinds, including ones that load dozens of binds of explanatory text for trials and raids, plus keybinds to remove all those binds when done. However, I have never actually used rotating keybinds. While I grasp them in theory, I'll wait for someone to come along who has actually used them.

Worth noting, though, why do you need to rebind teleport? There is a simple method around this that I use on my warshade. You have a keybind something like the following (I may have the power names wrong):
/bind T powexecname starless step$$powexecname dwarf step
(Note: This line probably won't work. I'm not looking at my actual bind and you'd need some quotation marks in there.)

You set one bind to trigger BOTH teleports. Whichever one you actually have will trigger. The other command does nothing. It doesn't even generate an error message. I have a keybind on every character that tries to trigger both the Nemesis Staff and Blackwand. It fires whichever the character has. I have one keybind on every character that tries to summon every single buff pet. If they have chosen a pet, it summons it. If they have not chosen a pet, nothing happens.


Paragon City Search And Rescue
The Mentor Project

 

Posted

OK, I'm looking at these and I'm getting confused. Thanks for the links, I'm gonna have to sit down and do some coding, me thinks.

Looks like I'm going to need 1 bind to drop into nova form, and one bind to drop out, one for dwarf form and one to drop it. Then I'm going to need 3 more that drop me out of dwarf/nova form and hit off a power.

Do you think I am better to use normal bind for the 3 untoggles/power uses and then 4 bind files for nova/dwarf forms?


 

Posted

Binds can be compounded or concatenated.

I have 3 bindfiles for my WS'
ws-human.txt:

Code:
SHIFT+LBUTTON "powexec_name Shadow Step"
SHIFT+NUMPAD1 "nop"
SHIFT+NUMPAD2 "powexec_toggleon Dark Nova$$goto_tray 8$$bindloadfilesilent c:\binds\ws-nova.txt"
SHIFT+NUMPAD3 "powexec_toggleon Black Dwarf$$goto_tray 9$$bindloadfilesilent c:\binds\ws-dwarf.txt"
ws-nova.txt:
Code:
SHIFT+NUMPAD1 "powexec_toggleoff Dark Nova$$goto_tray 1$$bindloadfilesilent c:\binds\ws-human.txt"
SHIFT+NUMPAD2 "nop"
SHIFT+NUMPAD3 "powexec_toggleoff Dark Nova$$goto_tray 9$$powexec_toggleon Black Dwarf$$bindloadfilesilent c:\binds\ws-dwarf.txt"
and ws-dwarf.txt:
Code:
SHIFT+LBUTTON "powexec_name Black Dwarf Step"
SHIFT+NUMPAD1 "powexec_toggleoff Black Dwarf$$goto_tray 1$$bindloadfilesilent c:\binds\ws-human.txt"
SHIFT+NUMPAD2 "powexec_toggleoff Black Dwarf$$powexec_toggleon Dark Nova$$goto_tray 8$$bindloadfilesilent c:\binds\ws-nova.txt"
SHIFT+NUMPAD3 "nop"
That's 3 buttons, each corresponding to a specific form. Each one dynamically reprograms the relevant buttons to suit the form that you've shifted into.

And, I'm not certain that my coding is exactly right, since I've had problems with it, recently. There is a thread on the Kheldian Forum that discusses Binds and other tricks - you might want to check it out, if you can. http://boards.cityofheroes.com//showthread.php?t=190418

Be Well!
Fireheart