|
|
|
|
 n our first section, we covered the basics of how to create a simple macro, but that was just the tip of the iceberg. In this section, we'll cover the most commonly used functions of macros: using and equipping items, casting spells and abilities, smart targeting, and improving communication. You'll have an array of shiny new macros lined up across your action bar in no time.
 tems are used in macros with the / use command. No more fumbling around in your bags to find that particular trinket you need to equip, or that consumable you don't have on your action bar, especially when the pressure of time is on. There are several methods and guidelines for the /use command:
- Using items by name with /use itemname, such as "/use Major Combat Healing Potion." This straightforward format is subject to the same restrictions as the /cast command above, such as letter-perfect reproduction of the item name. At least there aren't any ranks to worry about. Shift-click for a foolproof name transfer. If you attempt this macro with a trinket that has a "use" effect, such as the PvP trinket, the macro will first automatically equip the item if it isn't already equipped. After the trinket's initial equip cooldown expires, this macro will then use the trinket if pressed again. Note that if you're in combat or otherwise unable to switch items, this macro will be unable to function.
- Using items by what inventory slot you have them equipped to is possible with the /use inventory slot command. The slot is a number that corresponds with its identity in game. Trinkets are the most commonly useable equipped items, so this command is most applicable to the trinket slots: 13 and 14 (a full list of slots appears below). Thus, a macro to activate whatever trinket is in your top trinket slot would include the command /use 13. Bags have numerical values as well, as we will see in the next example.
- The /use bag slot command lets you use an item in a specific bag slot. Each bag in your bottom right "bag bar" has a numerical value from 0 to 4, starting with your backpack and proceeding to the left. When you type two numbers separated by spaces, the macro assumes that you are referencing a bag slot rather than an inventory slot. The second number corresponds to a particular bag slot, starting from 1 and continuing until the last slot in that bag. Slot 1 in a given bag is always the highest and leftmost slot of that bag, and the order continues to the right until the end of each row, at which point the pattern continues on the row underneath. In a 16-slot bag, the slots are assigned as follows:
| 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 |
For an example of a practical use for this command, let's say you always put your water or food in the top left slot in your leftmost bag. You could create a macro with "/use 4 1" to eat or drink whatever is in that slot. This particular macro illustrates how macros can conserve valuable real estate on your action bars. Instead of occupying multiple slots with different types and ranks of water and food, you could consolidate multiple types into one macro's icon.
- Finally, macros can equip particular items by name, and equip them to particular inventory slots when needed. The /equip command works akin to the /cast and /use commands. Affix an item's exact name, and the macro will grab it out of your bag and equip it to its default slot: "/equip Nightstaff of the Everliving." The related command /equipslot specifies a particular inventory slot to equip an item to: "/equipslot 12 Naaru Lightwarden's Band" will put that ring into your lower ring slot. The usefulness of this command becomes evident when you are equipping multiple items that would otherwise be placed into the same default slot, such as rings, trinkets, and one-handed weapons. For example, if you created two macros that read "/equip Garona's Signet Ring" and "/equip Ring of a Thousand Marks" respectively, and then pressed the two macros in sequence, the Ring of a Thousand Marks would simply replace Garona's Signet Ring instead of being placed in the second ring slot. The /equipslot command avoids this item "overwriting," which you may already have noticed in-game if you've ever tried to equip two rings by simply right-clicking them one after the other.
- The current list of inventory slots and their numerical values is as follows:
- 0 = ammo
- 1 = head
- 2 = neck
- 3 = shoulder
- 4 = shirt
- 5 = chest
- 6 = belt
- 7 = legs
- 8 = feet
- 9 = wrist
- 10 = gloves
- 11 = finger 1
- 12 = finger 2
- 13 = trinket 1
- 14 = trinket 2
- 15 = back
- 16 = main hand
- 17 = off hand
- 18 = ranged
- 19 = tabard
 s we saw in the previous introduction to macros, the command for using a spell or ability in a macro is / cast. Simply type "/cast" followed by the spell name in the text field, such as "/cast Entangling Roots(Rank 1)." However, the /cast command is subject to the following guidelines:
- The spell name must be entered exactly as it appears in-game – spelling, punctuation, and all – such as "Power Word: Shield"
- If you want to use a particular rank, you must include it in parentheses, such as "Shadow Bolt(Rank 3)"
- If no rank is specified, the macro will automatically cast the highest rank known to your character.
- You can Shift-click a spell in your spellbook while in the Create Macros window for a quick and guaranteed error-free shortcut.
The /cast command covers all player-usable abilities, including effects that are considered abilities instead of spells, such as Mortal Strike, Backstab, and Battle Shout. It also covers racial abilities, such as Shadowmeld, Will of the Forsaken, and Escape Artist. Furthermore, the /cast command can be used to control pets. Simply enter the name of the pet ability after "/cast," and the macro will recognize it as a pet ability. As with player abilities, any non-passive abilities in your pet's spellbook can be cast via a macro, including basic abilities like Attack.
The /cast command in macros can combine multiple ability and spell casts into a single macro, subject to a few restrictions. Because of the underlying game mechanics that govern the use of these spells and abilities, a straightforward listing of /cast commands will often not work. Spells with casting times can't simply be chained one after the other with /cast, and many instant-cast spells are affected by the global cooldown. The way these instant spells can be chained in macros will change in patch 2.3 (see example below), but this issue's importance warrants covering how consecutive spellcasts function before that change. The process involves the use of the / stopcasting command.
- The /stopcasting command only works in conjunction with instant spells and abilities that do not trigger the global cooldown. These include trinkets and other items that have an "on use" ability. Experiment with your own arsenal of instant spells and abilities to see which ones do not trigger the global cooldown.
- Using /stopcasting after a /cast command of an applicable instant ability acts as a buffer between multiple /casts, and allows a macro like the following example to function correctly:
- /use Abacus of Violent Odds
- /stopcasting
- /use Bloodlust Brooch
- /stopcasting
- /cast Bestial Wrath
- /stopcasting
- /cast Intimidation
- /petattack
This macro combines two trinket abilities, two instant Beast Mastery abilities, and the pet attack command into a potent "I win" combo. Note that as of patch 2.3, macros of this type no longer require the /stopcasting buffer between casts. The only remaining requirement is that the spells activated by the /cast commands do not trigger the global cooldown.
- Beginning a macro with the /stopcasting command acts as an "emergency stop" to allow you to use an ability or spell immediately. For example, this paladin macro will interrupt a spellcast, such as a Holy Light, and activate Divine Shield:
- /stopcasting
- /cast Divine Shield
Without the /stopcasting command, spamming the Divine Shield button during another spell's cast time would result in the error message "Another action is in progress."
 he / target command changes or assigns your target in a macro. You may have used the /target command on its own in the game world, to try to locate a nearby player or NPC by name – such as "/target Hogger." You can also use this command and variants of it in macros, particularly in conjunction with other macro commands such as "/cast." We'll go into more depth on targeting in macros in the next part of this guide, but for now here are some basic guidelines and examples:
- Using "/target" followed by a name will find the nearest player, monster, or NPC that has a name matching the one you entered as long as that entity is within a certain proximity to you. However, searching by name doesn't distinguish between players or computer-controlled entities, nor does it distinguish between the living and the dead. In addition, if there isn't an exact match for the name nearby, you may end up targeting an entity with a similar name instead.
- Instead of targeting an entity by name, you can target your target's unit ID. Here is a current partial list of unit IDs:
- player = the current player
- pet = the current player's pet
- party# = the party member with the value's position in the group configuration (excluding the player himself), where # is 1, 2, 3 or 4
- partypet# = the pet of the party member with the value's position in the group configuration, where # is 1, 2, 3 or 4
- raid# = the raid member with the value's position in the raid, where # is a value from 1 through 40. The # has no relation to which group a given member is in. In addition, raid1 is always the raid leader, and the last number in a raid is always the player himself. Thus, in a 25-person raid, raid25 would be the player's ID.
- raidpet# = the pet of the raid member with the value's position in the raid, where # is a value from 1 through 40
- mouseover = the unit over which the mouse is currently hovering. This unit ID is of particular use in healing macros, so that you can quickly heal someone with a mouseover without deselecting your current target (usually the main tank).
- If you add "target" at the end of any of these unit IDs, you will reference that entity's target: for instance, "playertarget."
- The commonly used /assist macro may be among the first you ever make, usually on request from another player in a group situation. The simplest form is "/assist player name," although you can use any of the unit IDs seen above. This macro is often used to coordinate focus fire attacks and is extremely useful in both PvP and PvE.
- The variable %t can be used in macros to indicate your current target. This variable is useful for social macros: it plugs your current target's name into whatever you're saying. You'll find an example of this in the next section.
- The /targetlasttarget command switches your target to the player or monster you had targeted last. This can be quite useful in situations where you're quickly switching between two targets that are far apart, such as when healing another player before switching back to the main tank.
- Some additional targeting commands duplicate default key bindings but can be useful in macros. These include /targetenemy, /targetfriend, /targetparty, and /targetraid. Similar to the default Tab and Ctrl-Tab key functions, these commands will cycle through the field of players or monsters encompassed by the command. To cycle in reverse (akin to Shift-Tab), just add a 1 after the command. The /targetparty command can be useful for casting buffs: for example, spamming the macro "/targetparty /cast Power Word: Fortitude" will cycle through a priest's party and cast that buff on each party member.
 ood communication is extremely important in World of Warcraft, particularly in the high-pressure context of raids, PvP, and other situations where teamwork is crucial to success. Macros can make your life easier in this regard.
Our introductory example macro was an example of using two social commands in the same macro. You may have noticed that the commands in the macro executed simultaneously. However, as we've seen, many macro commands are subject to restrictions like the global cooldown on spells and abilities; thus, multiple commands cannot be executed simultaneously. Social commands aren't subject to such restrictions, and so you can chain them into any macro to give your group a heads-up on what you're doing. In addition, standalone communication macros can give your raid or group crucial feedback and direction in combat. Here are some examples:
- A raid leader can make an endless variety of announcement macros using "/rw" followed by the desired message. General raid instructions such as "/rw Attack now!!" or "/rw Hold DPS" are very commonly used, as are boss-specific macros notifying the entire raid of incoming attacks and coordinating movement. Here's an example of a boss-specific macro for the Shade of Aran's infamous Flame Wreath spell: "/rw Flame Wreath casting, DO NOT MOVE!!"
- In PvP, particularly in the fast-paced battles of the arena, having good communication can contribute significantly to victory or defeat. With the /p command in a macro, you can keep your comrades appraised of important situations. You might use this command to warn others when you're crowd controlled or using an important cooldown, or to make sure your team is attacking the same target. For example, a paladin doing arenas may wish to make a macro along the lines of "/p Curse of Tongues – decurse please!"
- In general group play, macros help general teamwork and save you time. For example, if you're a mage, you may benefit from macros informing your group when you're sheeping a target, when you're casting a portal to a city, and when you're open for business in the water-dispensing department. Here's an example of a macro that a warlock could use to let his group know which party member he's summoning and that other group members can help:
- /cast Ritual of Summoning
- /p Summoning %t, please assist.
That's all for part one of our Macro Guide. In our next update, we'll go into more details on some higher-level macro functions, including macro options, conditionals, and focus.
[Return to Basics]
|
|
|
|
|
|
|