Wow Macro Call Another Macro From A Macro, Chaining Macros

General guides

Macros Beginners Guide Making a macro Macro conditionals Macro commands Category:Macros

Useful macros by class


A macro is a list of slash commands. Common slash commands include the following:

/say (/s)/whisper (/w, /talk, /t)/reply (/r)/emote (/e, /em, /me)/dance

With macros, these commands can be used from action buttons, and many of them can be used at once. Each unique command goes on its own line and is written exactly as it would be typed it in the chat box. For instance, a macro that makes the player yell “Everybody, dance now!” and burst into dance would be written thus.

Đang xem: Wow macro call another macro

/y Everybody, dance now!/danceA mostly complete list of slash commands is available at Macro API. wtbblue.compedia is a great source of additional information for macros, especially scripts using the /run command (which will be covered later).

Note: Macros run all the commands at once. This means that when you click the button, the macro runs each command from start to finish before returning control to the game. This has two important effects. 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.

Second, and arguably more important, there is no way to wait in a macro without freezing the game. This fact will become much more apparent when we start dealing with the /cast command and its ilk. 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).


2 Casting spells3 Using items and trinkets5 Targeting5.1 Other targeting commands6 Pet control7 Controlling button feedback and the question mark icon () with #show8 Other slash commands8.12 Simulating button clicks9 Advanced Scripting12 Syntax overview15 Macro option applications

Making a macro

First, open up the macro window. You can do this either by opening the main menu and selecting Macros, or by typing /macro (/m) in the chat box. At the top of the window, you”ll see two tabs: General Macros and Yourname Specific Macros. General macros are stored on an account-by-account basis and are shared by all your characters. Character specific macros are, well, I think you can figure this one out yourself. 😛 Immediately under the tabs is a grid of 18 boxes where the macros are displayed. Under those, there is a single box which displays your currently-selected macro with a Change Name/Icon button next to it. Below that is the edit box where you actually type the macro. Finally, at the bottom you have a number of self-explanatory buttons.

To create a macro, click the New button at the bottom of the window. This brings up another small window off to the side where you choose the icon and type a name for the macro. If you choose the question mark icon (


), will automatically pick an icon for your macro based on what spells or items are listed in the macro. Once you have chosen an icon and a name, click the Okay button.

A few notes: You can control what icon is shown in place of the question mark with the #show command. Although you can name two macros the same, it is better to avoid this since some functions of addons or even certain macro commands reference macros by name. You can also add custom icons to the list (see the Part III).

Now you will notice that the macro icon you chose has been added to the 18 boxes mentioned earlier (as much of the name as will fit is also displayed on the icon). The newly created macro will also be selected so now it”s time to start writing your macro. Click in the edit box of the macro window to start typing.

Note: Macros have a 255 character limit. Rumor has it that this is because they store macros on the servers (since patch 3.0.2).

Read more: Wow Legion Best Shoulder Enchant : Woweconomy, The Best Shoulder Enchant : Woweconomy

When you are done typing your macro, click the Save button, drag the macro”s icon from the grid and place it on an action button. The macro will also be automatically saved when you first try to use it or when you close the macros window. Click the button, and there you have it!

Casting spells

During the normal course of play, you aren”t likely to type many slash commands that are generally useful for macros. Sure, the occasional emote macro can make for some interesting role playing, but c”mon… There”s got to be more to it than that…

There is. Enter /cast, the most common command you will see in macros. The /cast command allows you to cast any spell from your (or your pet”s) spell book by name. The simplest case is a command like:

/cast Shadow Word: PainThis macro will cast Shadow Word: Pain on your target. It behaves exactly as if you had dragged SW:P onto that spot on your action bar. The action bar code recognizes the spell and will show cooldown and range feedback on the icon. In fact, if you choose the question mark icon I mentioned earlier, the action bar will even show the icon for SW:P.

“Ho, hum,” you might be thinking… Why not just put the spell on your bar? Well, that”s where combining multiple commands comes in handy, and this is exactly what makes macros so useful. What if you”re a mage and you want to let your party know that you”re about to sheep something? Well, simply put the cast and /p message in a macro:

/cast Polymorph/p Sheeping %t! You spank it, you tank it!Note: Since the macro is executed all at once, the /p command will be issued when you start the cast, and will not care either way whether you have a valid target or whether Polymorph is on cooldown. This also means you can put the two commands in either order and it will have the same effect.

There are also addons that handles this, such as Raeli”s Spell Announcer.

Notes about spell names

The /cast command is pretty picky when it comes to your spell name. In order for it to successfully cast a spell you must use correct spelling, punctuation, spacing, etc. The best way to guarantee you enter the right name is to open your spell book while writing the macro, place your cursor in the macro where the spell should be, and shift-click the spell in your spell book. This will enter the exact name of the spell, including any modifiers like Druid forms for the Mangle ability.

Using items and trinkets

Simple answer: the same way you cast a spell. The command for using an item is (you guessed it) /use. Like /cast, its simplest form takes the name of the item you want to use:

/use Green MechanostriderThere are also a couple other forms of the /use command:


This form of use allows you to use an item in the specified slot. See also InventorySlotId for lists of the slot numbers. Example:

/use 13Uses whatever is in your top trinket slot.


You can also use an item in a specific bag location. Lets say you always keep the food you want to feed your pet in the first slot of your backpack. You can easily write a macro to feed your pet as follows:

/cast Feed Pet/use 0 1Bags are numbered 0-4 from right to left (0 is always the backpack) and the slots are numbered starting at 1 going left to right, top to bottom (like reading):

1 2 3 45 6 7 8…or

1 23 4 5 67 8 9 10…Trading risk of confusion for completeness, I”ll let you know that /cast and /use function exactly the same way. /cast can use items and /use can cast spells. This isn”t very useful for simple macros like you”ve seen so far. However, when you start dealing with macro options and sequences you”ll be happy to know that you can intermingle items and spells in the same command.

Multiple actions with one click

In general, you cannot cast more than one spell with a single click of a macro. Most spells and some items trigger the global cooldown (GCD) which keeps you from taking too many actions at once. Even if a spell fails to cast, if it would trigger the GCD, it prevents subsequent /casts in the macro from running. This was not the case prior to patch 2.0 which is why you may still come across macros like the following:

/cast Overpower/cast Execute/cast Mortal Strike/cast Sunder ArmorMacros like this do not work anymore. As soon as Overpower fails to cast, the game will block all the other spells from casting as well, even though the GCD is not actually triggered.

Read more: Where To Get Coal? : Wow A Need For Coal A Need For Coal

There is a bit of good news, though. Certain spells can actually be cast at the same time in a single macro. Any spell that is instant and does not trigger the GCD can be followed by another cast. The spell”s tooltip will tell you if it”s instant, but you have to use the spell (or check a database site such as to know if it triggers the GCD.

Prior to patch 2.3 it was necessary to place a /stopcasting command after the instant, non-GCD spells (but not items). The game engine assumed that after the first /cast is attempted, a spell is now in progress. /stopcasting removes this assumption and prevents the “Another action is in progress” error. Since the spell is instant, /stopcasting does not actually cancel the cast. Example:

/cast Furious Howl/stopcasting/cast Blood Fury/stopcasting/cast Call of the WildNote that since patch 2.3, this is no longer necessary. The above macro can be shortened to:

/cast Furious Howl/cast Blood Fury/cast Call of the Wild


Targeting is another common task in macros. This is accomplished either by using dedicated targeting slash commands which actually change your target or by using the <

Leave a Comment