WoW:MACRO script: Difference between revisions
Jump to navigation
Jump to search
(Creation) |
m (Move page script moved page MACRO script to MACRO script without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
:script | :script | ||
:run | :run | ||
== Arguments == | == Arguments == | ||
:;code : A block of LUA code to execute | :;code : A block of LUA code to execute. This must all be one line before the LF character. | ||
== Notes == | == Notes == | ||
:Use the semicolon (;) character in between LUA code lines instead of pressing | :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 | :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. | :This command will not let you bypass LUA scripting limitations or UI restrictions. | ||
:The LUA code is processed separately from macro text | :The LUA code is processed separately from macro text. You cannot use LUA code to do things like insert a condition into your macro. |
Latest revision as of 04:48, 15 August 2023
Runs a block of script text
/script code
Aliases[edit]
- script
- run
Arguments[edit]
- code
- A block of LUA code to execute. This must all be one line before the LF character.
Notes[edit]
- 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 condition into your macro.