Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Executes Lua code.

/script code
/run code

Arguments[]

code
Lua code written on one line.

Notes[]

  • 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.

Patch changes[]

  • Shadowlands Patch 9.1.5 (2021-11-02): Several API are now protected from being called directly via the /script macro command.
Advertisement