WoW:Macros: Difference between revisions
(→How to setup a macro: link Lua) |
|||
Line 17: | Line 17: | ||
---- | ---- | ||
'''Note on the /script command.''' You may include a /script [string] command in your macro, where [string] can be any valid chunk of [[Lua]] code. Multiple statements should be delimited with a semi-colon. The [[World of Warcraft API]] page lists global Lua functions that may be called. | |||
---- | |||
=== Target Variable === | |||
In a macro, the string %t will be automatically parsed into the name of your current target. | |||
== Also See == | == Also See == |
Revision as of 16:55, 8 September 2006
Macros are series of commands designed to be executed in series.
A macro can consist of any number of /<command>s or pure text to up 255 characters. Users wishing to use more advanced commands are recommended to see the Interface Customization and World of Warcraft API sections.
How to setup a macro
- Type /macro
- Press New
- Enter a Name
- Select an icon
- Make your macro (click link for details)
Once your macro is made, you can either drag the icon to a toolbar or access it by typing /macro <name> from the command line.
Note on the /script command. You may include a /script [string] command in your macro, where [string] can be any valid chunk of Lua code. Multiple statements should be delimited with a semi-colon. The World of Warcraft API page lists global Lua functions that may be called.
Target Variable
In a macro, the string %t will be automatically parsed into the name of your current target.