|
Login | ||||||
![]() |
|
|
Thread Tools | Display Modes |
The purpose of this thread is to try to consolidate general asked questions, references and information in
this thread related to creating bindings and using slash commands. Please post anything you'd like to see
added and I'll try to edit it in.
References
http://www.champions-online-wiki.com...e_Command_List - List of commands in the game
http://forums.champions-online.com/s...ad.php?t=35361 - Basic information from Beta
http://forums.champions-online.com/s...ad.php?t=70492 - Chat Macros (thanks to BrEggo)
The Basics of Binding
To create a bind in the game, the syntax is:
/bind <input> <command> [<commandParam1><commandParam2>...]
Input: This is the key or button you wish to be pushed to execute the provided command.
Command: This is the game command or alias you wish to run when the given input is pressed.
Command Paramaters: Any parameters the command you're using may require.
Example
/bind N local Hello World!
Result: After this is run, whenever you press the N key on your keyboard, your character will say
Hello World!
Editing Binds
There a few ways you can edit your binds:
Bind .txt Files
Inside your Champions Online installation folder should be a folder named Live. You can edit .txt files
with binds there, or create a new .txt files and place binds inside. These are also a useful way to
transfer binds between characters as you can save your custom binds to a .txt file from the game interface, or load binds from a .txt file.
Formatting in a .txt file for binds is the same as running the /bind command, only it's everything
after the actual "/bind" text. Also, there is one bind per line.
Example .txt file:
Button4 "+PowerTrayExec 6"
Button5 "PowerTrayExec 1 14"
N "playersay Hello World!$$em wave"
Loading/Saving Binds
To save your binds on a character to a .txt file:
/bind_save_file <name of file>
If the file name provided exists, it will be overwritten, otherwise the file will be created.
Example
/bind_save_file test.txt
Result: After this is run, all custom binds on the active character will be saved to test.txt inside
of your Champions Online\Live folder.
To load binds to a character from a .txt file:
/bind_load_file <name of file>
If the file name provided exists, the binds it contains will override the current binds on your active
character.
Important Note: ONLY the binds the loaded file contains will be applied, it will unbind other custom
binds you may have.
Example
Let's say we have 2 .txt files, test1.txt and test2.txt.
test1.txt contains:
N "local Hello World!"
H "local Hi!"
test2.txt contains:
N "local Nice to meet you!"
If test1.txt is our current binds that we've already loaded, and then we run:
/bind_load_file test2.txt
Result:
When you press N, your character will say "Nice to meet you!"
When you press H, your character will say "Hi!"
Notice, your character will not say "Hello World!" when N is pressed since only that bind was overriden
when test2.txt was loaded.
Binary/Toggle Commands
There are several commands that accept a binary operator. (+ or -)
When you have + in front of a command, the command is ON while your input is pressed, and off on release.
Example
/bind N "+up"
Result: If you are flying, you will fly up while N is pressed, and stop when N is released.
When you have a - in front of a command, it tells that command to stop.
Example
/bind N "-PowerTrayExec 16"
/PowerTrayExec 1 16 (this will turn on your shield)
Result: When you press N, your shield will be turned off if it is on.
Toggle commands can accept a ++ operator in front of them. ++ tells the bind to switch the command between ON and OFF.
Example
/bind N "++autoForward"
Result: When you press N, you will turn on auto run. If you are already auto running, pressing N will turn auto run off.
Running Multiple Commands w/ One Bind
$$ is used to separate commands when binding. So our command from above looks like:
/bind <input> "<command> [<param1><param2>...][$$<command2>[<param1><param2>]...]"
Example
/bind N "local Hello World! $$ em wave"
Important Note: While each command is separated by $$, you must also surround everything
after your input in quotes as well, as shown in the example.
Result: After this is run, whenever you press the N key on your keyboard, your character will say
Hello World! and wave.
IMPORT NOTE: When you have a bind with multiple commands, the FIRST command will determine the binary state of your ENTIRE bind. I will explain this more later in the power usage section.
The Alias Command
The alias command is for creating your own commands/functions. The command to create one is:
/alias <command name> "<command1>[<param1><param2>...][$$<command2>[<param1><param2>]...]"
Example
/alias helloWorld "yell Hello World!"
Then, type /helloWorld
Result: Your character will yell to the zone, "Hello World!"
Using {}
(Thanks to: Amasilver for helping with this section.)
When creating an alias, you may use {} which has a special function. This is treated as a marker of where to insert a string that will be passed to your alias.
Example
/alias helloWorld "yell {}"
(Now our alias helloWorld takes 1 string argument.)
Then, type /helloWorld Hello Everybody!
Result: Your character will yell to the zone, "Hello Everybody!"
Now, if you include multiple {} in your alias, EACH one will be replaced by the string you pass to your alias. Also, the string replacement gets interpretted BEFORE your alias is run, which opens up possibilities for more complex usage. Now for a slightly more complex example.
Example
/alias move "+{} $$ playersay Going {}!"
/bind N move left
Result: When you press N, your character will move to the left and say "Going left!"
this thread related to creating bindings and using slash commands. Please post anything you'd like to see
added and I'll try to edit it in.
References
http://www.champions-online-wiki.com...e_Command_List - List of commands in the game
http://forums.champions-online.com/s...ad.php?t=35361 - Basic information from Beta
http://forums.champions-online.com/s...ad.php?t=70492 - Chat Macros (thanks to BrEggo)
The Basics of Binding
To create a bind in the game, the syntax is:
/bind <input> <command> [<commandParam1><commandParam2>...]
Input: This is the key or button you wish to be pushed to execute the provided command.
Command: This is the game command or alias you wish to run when the given input is pressed.
Command Paramaters: Any parameters the command you're using may require.
Example
/bind N local Hello World!
Result: After this is run, whenever you press the N key on your keyboard, your character will say
Hello World!
Editing Binds
There a few ways you can edit your binds:
- Simple binds may be modified under Options -> Key Binds
- To edit a bind in game you may always do the /bind command using the same input to override a previous
bind. - You can remove a bind from an input by using /unbind <input>
- Edit binds in .txt files in your Champions Online\Live folder, more on this below.
Bind .txt Files
Inside your Champions Online installation folder should be a folder named Live. You can edit .txt files
with binds there, or create a new .txt files and place binds inside. These are also a useful way to
transfer binds between characters as you can save your custom binds to a .txt file from the game interface, or load binds from a .txt file.
Formatting in a .txt file for binds is the same as running the /bind command, only it's everything
after the actual "/bind" text. Also, there is one bind per line.
Example .txt file:
Button4 "+PowerTrayExec 6"
Button5 "PowerTrayExec 1 14"
N "playersay Hello World!$$em wave"
Loading/Saving Binds
To save your binds on a character to a .txt file:
/bind_save_file <name of file>
If the file name provided exists, it will be overwritten, otherwise the file will be created.
Example
/bind_save_file test.txt
Result: After this is run, all custom binds on the active character will be saved to test.txt inside
of your Champions Online\Live folder.
To load binds to a character from a .txt file:
/bind_load_file <name of file>
If the file name provided exists, the binds it contains will override the current binds on your active
character.
Important Note: ONLY the binds the loaded file contains will be applied, it will unbind other custom
binds you may have.
Example
Let's say we have 2 .txt files, test1.txt and test2.txt.
test1.txt contains:
N "local Hello World!"
H "local Hi!"
test2.txt contains:
N "local Nice to meet you!"
If test1.txt is our current binds that we've already loaded, and then we run:
/bind_load_file test2.txt
Result:
When you press N, your character will say "Nice to meet you!"
When you press H, your character will say "Hi!"
Notice, your character will not say "Hello World!" when N is pressed since only that bind was overriden
when test2.txt was loaded.
Binary/Toggle Commands
There are several commands that accept a binary operator. (+ or -)
When you have + in front of a command, the command is ON while your input is pressed, and off on release.
Example
/bind N "+up"
Result: If you are flying, you will fly up while N is pressed, and stop when N is released.
When you have a - in front of a command, it tells that command to stop.
Example
/bind N "-PowerTrayExec 16"
/PowerTrayExec 1 16 (this will turn on your shield)
Result: When you press N, your shield will be turned off if it is on.
Toggle commands can accept a ++ operator in front of them. ++ tells the bind to switch the command between ON and OFF.
Example
/bind N "++autoForward"
Result: When you press N, you will turn on auto run. If you are already auto running, pressing N will turn auto run off.
Running Multiple Commands w/ One Bind
$$ is used to separate commands when binding. So our command from above looks like:
/bind <input> "<command> [<param1><param2>...][$$<command2>[<param1><param2>]...]"
Example
/bind N "local Hello World! $$ em wave"
Important Note: While each command is separated by $$, you must also surround everything
after your input in quotes as well, as shown in the example.
Result: After this is run, whenever you press the N key on your keyboard, your character will say
Hello World! and wave.
IMPORT NOTE: When you have a bind with multiple commands, the FIRST command will determine the binary state of your ENTIRE bind. I will explain this more later in the power usage section.
The Alias Command
The alias command is for creating your own commands/functions. The command to create one is:
/alias <command name> "<command1>[<param1><param2>...][$$<command2>[<param1><param2>]...]"
Example
/alias helloWorld "yell Hello World!"
Then, type /helloWorld
Result: Your character will yell to the zone, "Hello World!"
Using {}
(Thanks to: Amasilver for helping with this section.)
When creating an alias, you may use {} which has a special function. This is treated as a marker of where to insert a string that will be passed to your alias.
Example
/alias helloWorld "yell {}"
(Now our alias helloWorld takes 1 string argument.)
Then, type /helloWorld Hello Everybody!
Result: Your character will yell to the zone, "Hello Everybody!"
Now, if you include multiple {} in your alias, EACH one will be replaced by the string you pass to your alias. Also, the string replacement gets interpretted BEFORE your alias is run, which opens up possibilities for more complex usage. Now for a slightly more complex example.
Example
/alias move "+{} $$ playersay Going {}!"
/bind N move left
Result: When you press N, your character will move to the left and say "Going left!"
Using Powers
Currently, you will need to map binds to a power tray slot. You will do this using the PowerTrayExec command:
PowerTrayExec <Bin> <Slot #>
Bin: Binary state of the power, whether it's ON or OFF. (1 or 0)
Slot #: The slot on your power tray to be executed. Slot #'s listed below.
Since the first argument is a binary, we can use the + and - operators with this command.
Example
+PowerTrayExec 16
Result: This will execute slot #16 so long as the assigned input is held down.
Power Tray
This shows what slot is which #:
| 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 |
| 16 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 14 |
So the bind command used to bind a single power like normal:
/bind <input> +PowerTrayExec <slot #>
This will bind a power to the input provided to function exactly like they do on your bar.
To bind a power so it stays on until something else cancels it:
/bind <input> PowerTrayExec 1 <slot #>
Because we didn't use the operator, and instead passed 1 for the binary argument, the power will stay on. This means: A charge power will attempt to fully charge, a maintain will attempt to fully maintain and so forth.
Ways to turn a power off:
/bind <input> -PowerTrayExec <slot #>
/bind <input> PowerTrayExec 0 <slot #>
These 2 commands will perform the exact same action, which is stopping a power if it's currently charging/running.
This command will stop ALL power activations:
/bind <input> "-PowerTrayExec 16 $$ PowersCancelAllActivations"
Multiple Powers
Multiple powers can be in one bind, however, there are some tricks to this.
/bind <input> "+PowerTrayExec <slot #> $$ +PowerTrayExec <slot #>"
Example
/bind N "+PowerTrayExec 2 $$ +PowerTrayExec 3"
If the first power (Slot #2) is instant: Power Slot #2 will activate and then Power Slot #3 will activate in one key press.
If both powers are charges: Power Slot #2 will be fired off as a TAP ability, if possible then Power Slot #3 will activate.
IMPORTANT: The exception to these rules is the Shield power (Slot #16), it seems to interrupt any powers in the same key press as it, even if they are instant.
Currently, you will need to map binds to a power tray slot. You will do this using the PowerTrayExec command:
PowerTrayExec <Bin> <Slot #>
Bin: Binary state of the power, whether it's ON or OFF. (1 or 0)
Slot #: The slot on your power tray to be executed. Slot #'s listed below.
Since the first argument is a binary, we can use the + and - operators with this command.
Example
+PowerTrayExec 16
Result: This will execute slot #16 so long as the assigned input is held down.
Power Tray
This shows what slot is which #:
| 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 |
| 16 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 14 |
So the bind command used to bind a single power like normal:
/bind <input> +PowerTrayExec <slot #>
This will bind a power to the input provided to function exactly like they do on your bar.
To bind a power so it stays on until something else cancels it:
/bind <input> PowerTrayExec 1 <slot #>
Because we didn't use the operator, and instead passed 1 for the binary argument, the power will stay on. This means: A charge power will attempt to fully charge, a maintain will attempt to fully maintain and so forth.
Ways to turn a power off:
/bind <input> -PowerTrayExec <slot #>
/bind <input> PowerTrayExec 0 <slot #>
These 2 commands will perform the exact same action, which is stopping a power if it's currently charging/running.
This command will stop ALL power activations:
/bind <input> "-PowerTrayExec 16 $$ PowersCancelAllActivations"
Multiple Powers
Multiple powers can be in one bind, however, there are some tricks to this.
/bind <input> "+PowerTrayExec <slot #> $$ +PowerTrayExec <slot #>"
Example
/bind N "+PowerTrayExec 2 $$ +PowerTrayExec 3"
If the first power (Slot #2) is instant: Power Slot #2 will activate and then Power Slot #3 will activate in one key press.
If both powers are charges: Power Slot #2 will be fired off as a TAP ability, if possible then Power Slot #3 will activate.
IMPORTANT: The exception to these rules is the Shield power (Slot #16), it seems to interrupt any powers in the same key press as it, even if they are instant.
# 3
10-08-2009, 07:14 PM
Commonly Wanted Binds
In this section, I'll list answers to the most commonly requested binds.
How do I make my shield toggle on, so I don't need to hold the key?
/bind SHIFT PowerTrayExec 1 16
How do I say something as I use a power?
/bind <key> "local Hi! $$ +PowerTrayExec <slot #>"
How can I change costumes/builds when I activate my travel power?
Create the following 2 txt files, with the listed contents in your Champions Online\Live Folder.
fly.txt:
t "+PowerTrayExec 14 $$ buildset 1 $$ bind_load_file land.txt"
land.txt:
t "+PowerTrayExec 14 $$ buildset 0 $$ bind_load_file fly.txt"
Then run:
/bind t "+PowerTrayExec 14 $$ buildset 1 $$ bind_load_file land.txt"
To change costumes, instead of builds:
Change "buildset <#>" to "setactivecostume 0 <#>"
How do I target myself before doing a heal?
/bind N "+down1 $$ target_self $$ +PowerTrayExec <slot #>"
Chat Related Commands/Binds
From BrEggo's thread:
You can switch the channel you're actively in also by using:
channel_setcurrent "<channel name>"
Example
/bind N channel_setcurrent "TeamID_Live"
Result: Puts your chat to Team.
In this section, I'll list answers to the most commonly requested binds.
How do I make my shield toggle on, so I don't need to hold the key?
/bind SHIFT PowerTrayExec 1 16
How do I say something as I use a power?
/bind <key> "local Hi! $$ +PowerTrayExec <slot #>"
How can I change costumes/builds when I activate my travel power?
Create the following 2 txt files, with the listed contents in your Champions Online\Live Folder.
fly.txt:
t "+PowerTrayExec 14 $$ buildset 1 $$ bind_load_file land.txt"
land.txt:
t "+PowerTrayExec 14 $$ buildset 0 $$ bind_load_file fly.txt"
Then run:
/bind t "+PowerTrayExec 14 $$ buildset 1 $$ bind_load_file land.txt"
To change costumes, instead of builds:
Change "buildset <#>" to "setactivecostume 0 <#>"
How do I target myself before doing a heal?
/bind N "+down1 $$ target_self $$ +PowerTrayExec <slot #>"
Chat Related Commands/Binds
From BrEggo's thread:
Quote:
|
In order to execute these binds in game one would do: /bind F9 "startchatwith /channelsend "Zone" " /bind F10 "startchatwith /channelsend "TeamID_LIVE" " /bind F11 "startchatwith /channelsend "Local" " /bind F12 "startchatwith /channelsend "GuildID_LIVE" " |
channel_setcurrent "<channel name>"
Example
/bind N channel_setcurrent "TeamID_Live"
Result: Puts your chat to Team.
# 4
10-08-2009, 08:12 PM
Sorry if this was already answered, I only had a quick glance. Is it possible to chain several moves together?
# 5
10-09-2009, 05:49 AM
Quote:
|
Originally Posted by SaboSmith
Sorry if this was already answered, I only had a quick glance. Is it possible to chain several moves together?
|
# 6
10-09-2009, 06:02 AM
Can you bind a key to cycle through your active chat channel? and if so, what is the command?
# 7
10-09-2009, 06:05 AM
This is a fantastic post Zvardin! Kudos!
I'm still struggling with some of it though. I'm not very savvy with coding at all!
I'd like to be able to hold down F5 and have it turn off my End builder, select team member 1, then begin a maintain of my heal power (slot 13). Then on releasing F5 have it re-activate my End builder.
So essentially holding F5 heals Team member 1, but I can keep my End builder set to 'Toggle, Never cancels'.
Seems quite complicated. Is it even possible?
Many thanks :D
I'm still struggling with some of it though. I'm not very savvy with coding at all!
I'd like to be able to hold down F5 and have it turn off my End builder, select team member 1, then begin a maintain of my heal power (slot 13). Then on releasing F5 have it re-activate my End builder.
So essentially holding F5 heals Team member 1, but I can keep my End builder set to 'Toggle, Never cancels'.
Seems quite complicated. Is it even possible?
Many thanks :D
# 8
10-09-2009, 06:23 AM
Quote:
|
Originally Posted by Ellri
This is a fantastic post Zvardin! Kudos!
I'm still struggling with some of it though. I'm not very savvy with coding at all! I'd like to be able to hold down F5 and have it turn off my End builder, select team member 1, then begin a maintain of my heal power (slot 13). Then on releasing F5 have it re-activate my End builder. So essentially holding F5 heals Team member 1, but I can keep my End builder set to 'Toggle, Never cancels'. Seems quite complicated. Is it even possible? Many thanks :D |
Well, if your endurance builder is set to "Toggle, Never Cancels" already, we don't need to mess with that at all actually. This should do the tricK:
/bind F5 "+down1 $$ TargetTeammate 1 $$ +PowerTrayExec 13"
The down1 is a dummy command...I put that first so that way your maintain will work as expected with your keypress. Then it targets your teammate #1, and fires off the power slot you mentioned.
# 9
10-09-2009, 06:37 AM
Quote:
|
Originally Posted by Galeforce
Can you bind a key to cycle through your active chat channel? and if so, what is the command?
|
If you create zone.txt (In your Champions Online\Live folder):
N "channel_setcurrent Zone $$ bind_load_file local.txt"
And create local.txt:
N "channel_setcurrent Local $$ bind_load_file zone.txt"
Then in game run:
/bind N "channel_setcurrent Local $$ bind_load_file zone.txt"
Not ideal, I know, but I'm not seeing something cleaner. However, once they open up the ability to do mods, something like this should be very easy to do, since there is a command to list what channels you're in, it would be easy to parse and do something like this. (That's probably how their chat drop down menu works)
# 10
10-09-2009, 06:44 AM
Quote:
|
Originally Posted by Zvardin
Well, if your endurance builder is set to "Toggle, Never Cancels" already, we don't need to mess with that at all actually. This should do the tricK:
/bind F5 "+down1 $$ TargetTeammate 1 $$ +PowerTrayExec 13" The down1 is a dummy command...I put that first so that way your maintain will work as expected with your keypress. Then it targets your teammate #1, and fires off the power slot you mentioned. |
VERY much appreciated! :D:D:D:D
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -8. The time now is 11:43 AM.




Linear Mode
