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 "Macro (Slash Command)"

From Paragon Wiki Archive
Jump to: navigation, search
m (+cat)
(Expanded the article some)
Line 5: Line 5:
 
== Macro Basics ==
 
== Macro Basics ==
  
The basic macro command is as follows:
+
A basic description of the macro command is as follows:
  
'''/Macro "<Macro Name>" "<Command>"'''
+
:'''/Macro "<Macro Name>" "<Command>"'''
 +
 
 +
'''<Macro Name>''' should be replaced with a a character string to describe the macro, such as ''GO'' or ''Cheer''.  '''<Command>''' should be one or more [[slash commands]].  The "" (quotation) marks are not required, except around the '''<Command>''' parameter when using more than one command.
  
 
==== Names and Icons ====
 
==== Names and Icons ====
Line 17: Line 19:
 
==== Commands ====
 
==== Commands ====
  
Anything that can be used as a [[slash_commands|slash command]] can be bound as a macro. To look in game, almost every command is listed when using the ''/cmdlist'' command. Remember that when binding or macroing commands, the slash is assumed, and not used. Also, to separate multiple commands, use two dollar signs <'''$$'''>.
+
Anything that can be used as a slash command can be bound as a macro. To look in game, almost every command is listed when using the ''/cmdlist'' command. Remember that when binding or macroing commands, the slash is assumed, and not used. Also, to separate multiple commands, use two dollar signs <'''$$'''>.
 +
 
 +
For a more detailed explanation, please read [[The Incomplete and Unofficial Guide to /bind]].  Everything in that article concerning slash commands applies to macros as well.
  
 
== Creating a Macro ==
 
== Creating a Macro ==
Line 27: Line 31:
 
* Use a power
 
* Use a power
  
/macro "SGI" "sgi $target$$yell Congratulations to $target on joining the Noob Squad!!$$sg Everyone please welcome $target to the group!$$powexec_name inferno"
+
:'''/macro "SGI" "sgi $target$$yell Congratulations to $target on joining the Noob Squad!!$$sg Everyone please welcome $target to the group!$$powexec_name inferno"'''
 +
 
 +
Using simple commands, you can create a long sting of actions.  However, take care creating these, as editing complexe macros can be difficult.
 +
 
 +
== Additional Examples ==
 +
 
 +
All of the following are valid uses of the /macro.
 +
 
 +
:'''/macro "GO" "local Let's go, team!"'''
 +
Creates a macro labelled ''GO'' that causes the character to say "Let's go team!" on the local channel.
 +
 
 +
:'''/macro SG "sgmode"'''
 +
Creates a button for your power tray that toggles [[SG mode]] on and off.
 +
 
 +
:'''/macro getfunky [[Petsay all (Slash Command)|petsay_all]] <nowiki><em dance></nowiki>'''
 +
This macro will cause all of a [[Mastermind]]'s pets to perform the dance emote.  The full name will not display on the icon, but the tooltip will show the complete label.
  
Using simple commands, you can create a long sting of actions.
+
:'''/macro "TP" "team Bringing $target close to me!$$pow_exec_name recall friend"'''
 +
Creates a macro called ''TP''.  It will cause your character to name their current target on the team channel and use the recall friend power aimed at this target.
  
 
== Other Recourses ==
 
== Other Recourses ==
  
 
* [[Slash_Commands|Command List]]
 
* [[Slash_Commands|Command List]]
* [[The_Incomplete_and_Unofficial_Guide_to_/bind|Guide to /Bind]]
+
* [[Bind (Slash Command)|/bind]]
 +
* [[The Incomplete and Unofficial Guide to /bind]]
  
 
[[Category:Slash Commands]]
 
[[Category:Slash Commands]]

Revision as of 06:22, 6 September 2007

Introduction to Macro Commands

Macros in City of Heroes/Villains are an excellent way to bind frequently used powers, actions, or text in a simple button, just like any power button. Macros are very flexible, making for a near endless variety of options. But, macros are not a way to set up complex attack chains. Checking this guide, as well as some helpful links, hopefully you, too, can master this medium of control.

Macro Basics

A basic description of the macro command is as follows:

/Macro "<Macro Name>" "<Command>"

<Macro Name> should be replaced with a a character string to describe the macro, such as GO or Cheer. <Command> should be one or more slash commands. The "" (quotation) marks are not required, except around the <Command> parameter when using more than one command.

Names and Icons

Names can be anything you wish, although only a limited amount of text can be shown in the macro icon. However, the full text always appears in tooltips. The icon appears as a generic grey button with your text overlaid. After creating a macro, the name cannot be changed, although the command string may be edited.

Alternatively, pet command icons can be used. In this case, the name of the original pet command will show up in tooltips. To use this trick as a character without pets, begin in a gladiator match. When using the pet command window, you can drag the icons to your power tray, which can then be edited as macros.

Commands

Anything that can be used as a slash command can be bound as a macro. To look in game, almost every command is listed when using the /cmdlist command. Remember that when binding or macroing commands, the slash is assumed, and not used. Also, to separate multiple commands, use two dollar signs <$$>.

For a more detailed explanation, please read The Incomplete and Unofficial Guide to /bind. Everything in that article concerning slash commands applies to macros as well.

Creating a Macro

For this example, we will create an elaborate macro that will

  • Invite a targeted player to your supergroup
  • Congratulate your new member
  • Announce to your supergroup that someone has joined
  • Use a power
/macro "SGI" "sgi $target$$yell Congratulations to $target on joining the Noob Squad!!$$sg Everyone please welcome $target to the group!$$powexec_name inferno"

Using simple commands, you can create a long sting of actions. However, take care creating these, as editing complexe macros can be difficult.

Additional Examples

All of the following are valid uses of the /macro.

/macro "GO" "local Let's go, team!"

Creates a macro labelled GO that causes the character to say "Let's go team!" on the local channel.

/macro SG "sgmode"

Creates a button for your power tray that toggles SG mode on and off.

/macro getfunky petsay_all <em dance>

This macro will cause all of a Mastermind's pets to perform the dance emote. The full name will not display on the icon, but the tooltip will show the complete label.

/macro "TP" "team Bringing $target close to me!$$pow_exec_name recall friend"

Creates a macro called TP. It will cause your character to name their current target on the team channel and use the recall friend power aimed at this target.

Other Recourses