Bind (Slash Command): Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
mNo edit summary
Tag: Manual revert
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{SlashCommandArticle
{{SlashCommandArticle
|command=bind
|command=bind
|options=trigger "command"
|options=trigger command
|note=''trigger'' is a key or key combination, such as 'H' and 'LSHIFT+H'. For more information on key names, see [[List of Key Names]].
|note= Manually assigns one ore more slash commands to a keyboard key.
:NOTE: Chord keys (ALT, SHIFT, CTRL) are the only keys that can be added to create key combinations. Chord keys must be specified before the desired trigger key ('ALT+H', not 'H+ALT'). You cannot create a key combo of 'NUMPAD1+RBUTTON'.


''command'' can be one command or multiple commands strung together, separated by $$ (two dollar signs).}}
* '''''Trigger''''' is a key or key combination, such as 'H' and 'LSHIFT+H'. For more information on key names, see [[List of Key Names]].
 
:: NOTE: Chord keys (ALT, SHIFT, CTRL) are the only keys that can be added to create key combinations. Chord keys must be specified before the desired trigger key ('ALT+H', not 'H+ALT'). You cannot create a key combo of 'NUMPAD1+RBUTTON'.
To clear a bind so that the specified key does not perform any command, use "nop" (no operation) as the command.
* '''''Command''''' can be one slash command or multiple commands strung together, separated by $$ (two dollar signs).}}
* To reset a key to its default binding use {{slashcommand|unbind}}
* To clear a bind so that the specified key does not perform any command, bind the {{slashcommand|nop}} (no operation)  command to the key. For example, <code>/bind N "nop"</code>
* There are 2 kinds of keybinds:
** '''Custom Keybinds''' - These are binds that a player manually assigns to a key (or keys) that are different than the default keybindings for that key.
** '''Default Keybinds''' - The default keybindings for the selected [[Keybind Profiles|Keybind Profile]].




Line 15: Line 19:


:'''/bind T "powexec_name Power Blast$$powexec_name Energy Torrent"'''
:'''/bind T "powexec_name Power Blast$$powexec_name Energy Torrent"'''
'''T''' is now a trigger that will attempt to activate Power Blast, only to immediately be told to attempt to activate Energy Torrent. In this case, ''only'' Energy Torrent will activate. Binds containing more than one of the same command will be read from right to left. With [[Click Power]]s, this means only the last click power will activate. With [[Toggle]]s, it will activate the last toggle on the first key press, and will continue activating toggles each time the key is pressed, until there are no toggles left.
'''T''' is now a trigger that will attempt to activate Power Blast, only to immediately be told to attempt to activate Energy Torrent. In this case, ''only'' Energy Torrent will activate. Multiple [[Click Power]]s in a single bind string will interrupt each other until there is nothing left to interrupt the activation. This means only the last click power will activate.  




Line 22: Line 26:




:'''/bind T "powexec_name Combat Jumping$$powexec_name Super Jump"'''
:'''/bind T "powexec_name Combat Jumping$$powexec_name Super Jump"  
'''T''' is now a trigger which will activate [[Leaping#Super Jump|Super Jump]]. If '''T''' is pressed again, [[Leaping#Combat Jumping|Combat Jumping]] will be activated. The cycle repeats itself. This bind only works with powers that are mutually exclusive, like Super Jump and Combat Jumping.
'''T''' is now a trigger which will activate [[Leaping#Super Jump|Super Jump]] and turn off Combat Jumping if active. If '''T''' is pressed again, [[Leaping#Combat Jumping|Combat Jumping]] will be activated and Super Jump will be turned off. The cycle repeats itself as long as one power or the other is turned on. Basically, the bind first attempts to turn on Super Jump. If Super Jump is already on, it turns it off and activates Combat Jumping. If Combat Jumping is already turned on, it will turn it off and activate Super Jump. If both powers are turned on, it will turn both powers off. If no powers are on, it will turn on Super Jump.




:'''/bind T "powexec_toggleon Focused Fighting$$powexec_toggleon Focused Senses$$powexec_toggleon Evasion$$powexec_name Practiced Brawler"
:'''/bind T "powexec_name Practiced Brawler$$powexec_toggleon Focused Fighting$$powexec_toggleon Focused Senses$$powexec_toggleon Evasion"
'''T''' is now a trigger that will toggle on each of the [[Super Reflexes]] armors, Evasion then Focused Senses then Focused Fighting, followed by activating the Practiced Brawler click power. This bind can then be used every time Practiced Brawler recharges to fire it; it will attempt to toggle on again, but the armors are running, so it skips those commands and activates Practiced Brawler. Note that this bind cannot be used to toggle ''off'' the armors.
'''T''' is now a trigger that will toggle on each of the [[Super Reflexes]] armors, Evasion then Focused Senses then Focused Fighting, followed by activating the Practiced Brawler click power. This bind can then be used every time Practiced Brawler recharges to fire it; it will attempt to toggle on again, but the armors are running, so it skips those commands and activates Practiced Brawler. Note that this bind cannot be used to toggle ''off'' the armors. Also the click power must be placed first in the bind string (far left).




:'''/bind LSHIFT+LBUTTON powexec_name Teleport'''
:'''/bind LSHIFT+LBUTTON powexec_name Teleport'''
Holding on the '''left shift key''' and clicking a location with the '''left mouse button''' will [[Travel Powers#Teleport|Teleport]] the character to that location or as close to it as possible.
Holding on the '''left shift key''' and clicking a location with the '''left mouse button''' will [[Travel Powers#Teleport|Teleport]] the character to that location or as close to it as the power's range permits.
 
 


{{Navbox Binds}}
{{Navbox Binds}}
[[Category:Bind Commands]]
[[Category:Bind Commands]]
[[Category:Slash Commands]]
[[Category:Slash Commands]]

Latest revision as of 18:12, 3 November 2024

Slash Command

/bind trigger command

Manually assigns one ore more slash commands to a keyboard key.

  • Trigger is a key or key combination, such as 'H' and 'LSHIFT+H'. For more information on key names, see List of Key Names.
NOTE: Chord keys (ALT, SHIFT, CTRL) are the only keys that can be added to create key combinations. Chord keys must be specified before the desired trigger key ('ALT+H', not 'H+ALT'). You cannot create a key combo of 'NUMPAD1+RBUTTON'.
  • Command can be one slash command or multiple commands strung together, separated by $$ (two dollar signs).
  • To reset a key to its default binding use /unbind
  • To clear a bind so that the specified key does not perform any command, bind the /nop (no operation) command to the key. For example, /bind N "nop"
  • There are 2 kinds of keybinds:
    • Custom Keybinds - These are binds that a player manually assigns to a key (or keys) that are different than the default keybindings for that key.
    • Default Keybinds - The default keybindings for the selected Keybind Profile.


Example Binds

/bind T "powexec_name Power Blast$$powexec_name Energy Torrent"

T is now a trigger that will attempt to activate Power Blast, only to immediately be told to attempt to activate Energy Torrent. In this case, only Energy Torrent will activate. Multiple Click Powers in a single bind string will interrupt each other until there is nothing left to interrupt the activation. This means only the last click power will activate.


/bind T powexec_name Fly

T is now a trigger which will toggle Fly on or off.


/bind T "powexec_name Combat Jumping$$powexec_name Super Jump"

T is now a trigger which will activate Super Jump and turn off Combat Jumping if active. If T is pressed again, Combat Jumping will be activated and Super Jump will be turned off. The cycle repeats itself as long as one power or the other is turned on. Basically, the bind first attempts to turn on Super Jump. If Super Jump is already on, it turns it off and activates Combat Jumping. If Combat Jumping is already turned on, it will turn it off and activate Super Jump. If both powers are turned on, it will turn both powers off. If no powers are on, it will turn on Super Jump.


/bind T "powexec_name Practiced Brawler$$powexec_toggleon Focused Fighting$$powexec_toggleon Focused Senses$$powexec_toggleon Evasion"

T is now a trigger that will toggle on each of the Super Reflexes armors, Evasion then Focused Senses then Focused Fighting, followed by activating the Practiced Brawler click power. This bind can then be used every time Practiced Brawler recharges to fire it; it will attempt to toggle on again, but the armors are running, so it skips those commands and activates Practiced Brawler. Note that this bind cannot be used to toggle off the armors. Also the click power must be placed first in the bind string (far left).


/bind LSHIFT+LBUTTON powexec_name Teleport

Holding on the left shift key and clicking a location with the left mouse button will Teleport the character to that location or as close to it as the power's range permits.