Some addons can provide a way to issue a command at a later time, but they can only be used for "benign" functions like chatting, emotes, and issuing commands to other addons (though equipping weapons in combat is allowed). This fact will become much more apparent when we start dealing with the /cast command and its ilk. Second, and arguably more important, there is no way to wait in a macro without freezing the game. First, if you write a macro that takes a long time to execute (like /run for i=1, 100000000 do end), the game will freeze for as long as it takes to run the macro. This means that when you click the button, the macro runs each command from start to finish before returning control to the game. Note: Macros run all the commands at once. Wowpedia is a great source of additional information for macros, especially scripts using the /run command (which will be covered later). For instance, a macro that makes the player yell "Everybody, dance now!" and burst into dance would be written thus.Ī mostly complete list of slash commands is available at Macro API. Each unique command goes on its own line and is written exactly as it would be typed it in the chat box. With macros, these commands can be used from action buttons, and many of them can be used at once. Common slash commands include the following:
0 Comments
Leave a Reply. |