Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Slash Commands"

From Paragon Wiki Archive
Jump to: navigation, search
 
(Concatenating Commands)
 
(85 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{wip}}
+
{{TOCright}}
 
== Overview ==
 
== Overview ==
  
In City of Heroes and City of Villains, there are a number of commands that can be typed on the chat command line to execute various functions.  These are known as '''slash commands''', because they begin with a slash (/).  The following list is a list of known slash commands, along with their command line format.
+
In City of Heroes and City of Villains, there are a number of commands that can be typed on the chat command line to execute various functions.  These are known as '''slash commands''', because they begin with a slash (/).  Slash commands often have underscores within the name to improve legibility, but they are not needed to actually take effect, i.e. /PowExec_Name, /Pow_Exec_Name, /P_o_w_E_x_e_c_n_a_m_e all perform the same way. Almost every action taken in the game is a slash command bound to a key. The number 1 is "pow_exec_slot 1", which executes the power in slot 1 of your power tray. Some slash commands, such as the movement commands, should not be called from the chatbox without taking care and knowing what will occur. See [[List of Slash Commands]] for a list of known slash commands; see also [[:Category:Slash Commands]].
__TOC__
+
== Supergroup Commands ==
+
  
'''chan_invite_sg''' ''<channel name>'' ''<rank>'': Invite your entire supergroup to a global chat channelOnly leaders may use this command.  You must specify the minimum rank to invite:<br>
+
== Concatenating Commands ==
:'''0''': Invite the entire supergroup (members, captains, and leaders).
+
Multiple commands may be strung together for simultaneous execution using the '$$' operatorFor example, the following command will cause a character to say "Ready!" and perform the "thumbsup" emote at the same time.
:'''1''': Invite captains and leaders only.
+
:'''2''': Invite leaders only.
+
  
:''Example'': chan_invite_sg Justice
+
:{{slashcommand|say|Ready!}}$${{bindcommand|emote|thumbsup}}
'''sg''' ''<message>'': Send ''message'' to the supergroup channel.  (Also: ''supergroup'')<br>
+
'''sgi''' ''<character>'': Invite ''character'' to join supergroup.  (Also: ''sginvite'')<br>
+
'''sginvite''' ''<character>'': Invite ''character'' to join supergroup.  (Also: ''sgi'')<br>
+
'''sgk''' ''<character>'': Kick ''character'' from supergroup.<br>
+
'''sgkick''' ''<character>'': Kick ''character'' from supergroup.<br>
+
'''sgraid_window''' ''<daybits>'' ''<hour>'': Sets your supergroup raid window.<br>
+
'''supergroup''' ''<message>'': Send ''message'' to the supergroup channel.  (Also: ''sg'')<br>
+
'''ginvite_sg''' ''<channel name>'' ''<rank>'': See ''chan_invite_sg''.<br>
+
  
[[Category:Gameplay]]
+
Note that when concatenating two or more commands, the slash is used on only the first command.
 +
 
 +
== Substitution Strings ==
 +
Substitution strings allow you to create commands that will display the same basic behavior each time they are used, but will vary slightly depending on certain variable conditions such as your current character or your currently selected target.  Several pre-defined substitution strings exist and are denoted by a single '$' prefix:
 +
* $archetype - the [[archetype]] of your character
 +
* $battlecry - your character's battlecry, as entered on your character ID screen
 +
* $level - your character's current [[level]]
 +
* $name - your character's name
 +
* $origin - your character's origin
 +
* $target - your currently selected target's name
 +
 
 +
For example, if a level 12 natural-origin scrapper named Captain Obvious were to target a Behemoth Overlord, the following command would cause him to say "I, Captain Obvious, a level 12 natural scrapper, challenge you, Behemoth Overlord, to a battle to the death!" in his currently selected chat channel.
 +
 
 +
:{{slashcommand|say|"I, $name, a level $level $origin $archetype, challenge you, $target, to a battle to the death!"}}
 +
 
 +
The same command, executed by a level 42 magic-origin brute named Mauler who is targeting Arbiter Howe would cause the character to say, "I, Mauler, a level 42 magic brute, challenge you, Arbiter Howe, to a battle to the death!"
 +
 
 +
== See Also ==
 +
 
 +
* [[List of Slash Commands]]
 +
* [[List of Key Names]]
 +
* [[Binds]]
 +
* [[Communication Commands]]
 +
* [[Pet Commands]]
 +
* [[Supergroup Commands]]
 +
 
 +
[[Category:Slash Commands| ]]

Latest revision as of 03:39, 25 June 2010

Overview

In City of Heroes and City of Villains, there are a number of commands that can be typed on the chat command line to execute various functions. These are known as slash commands, because they begin with a slash (/). Slash commands often have underscores within the name to improve legibility, but they are not needed to actually take effect, i.e. /PowExec_Name, /Pow_Exec_Name, /P_o_w_E_x_e_c_n_a_m_e all perform the same way. Almost every action taken in the game is a slash command bound to a key. The number 1 is "pow_exec_slot 1", which executes the power in slot 1 of your power tray. Some slash commands, such as the movement commands, should not be called from the chatbox without taking care and knowing what will occur. See List of Slash Commands for a list of known slash commands; see also Category:Slash Commands.

Concatenating Commands

Multiple commands may be strung together for simultaneous execution using the '$$' operator. For example, the following command will cause a character to say "Ready!" and perform the "thumbsup" emote at the same time.

/say Ready!$$emote thumbsup

Note that when concatenating two or more commands, the slash is used on only the first command.

Substitution Strings

Substitution strings allow you to create commands that will display the same basic behavior each time they are used, but will vary slightly depending on certain variable conditions such as your current character or your currently selected target. Several pre-defined substitution strings exist and are denoted by a single '$' prefix:

  • $archetype - the archetype of your character
  • $battlecry - your character's battlecry, as entered on your character ID screen
  • $level - your character's current level
  • $name - your character's name
  • $origin - your character's origin
  • $target - your currently selected target's name

For example, if a level 12 natural-origin scrapper named Captain Obvious were to target a Behemoth Overlord, the following command would cause him to say "I, Captain Obvious, a level 12 natural scrapper, challenge you, Behemoth Overlord, to a battle to the death!" in his currently selected chat channel.

/say "I, $name, a level $level $origin $archetype, challenge you, $target, to a battle to the death!"

The same command, executed by a level 42 magic-origin brute named Mauler who is targeting Arbiter Howe would cause the character to say, "I, Mauler, a level 42 magic brute, challenge you, Arbiter Howe, to a battle to the death!"

See Also