WoW:MACRO script

From AddOn Studio
Revision as of 23:56, 1 January 2009 by WoWWiki>DrDoom (Creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Slash commands


Runs a block of script text

/script code

Aliases

script
run


Arguments

code
A block of LUA code to execute, this must all be one line before the LF character.


Notes

Use the semicolon (;) character in between LUA code lines instead of pressing enter, pressing enter will start a new line of macro text to process.
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 conditional into your macro.