Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

MACRO script

Last wiki revision 2021-12-20

Executes Lua code. /script code /run code

  • code : Lua code written on one line.
  • The code may not contain any line breaks (i.e. you should not press Enter while writing the code). In some cases, it may be necessary to insert semicolons between Lua statements.
  • Any local variables defined in the code block will be destroyed after the code is processed. It is recommended you use local variables unless you need to pass the information elsewhere or just flat run out of room. You may still access variables in the global environment.
  • This command will not let you bypass Lua scripting limitations or UI restrictions.
  • The Lua code is processed separately from macro text. You cannot use Lua code to do things like insert a condition into your macro.

Source

https://warcraft.wiki.gg/wiki/MACRO_script · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.