Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Making a macro
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Sequencing spells and items=== Many times you will find yourself casting a series of spells or use certain items in the same order on pretty much any mob you fight. To make this job a bit easier, we have the /castsequence command. /castsequence takes a list of spells and/or items separated by commas. These follow the same rules as /cast and /use. This means you can interchange spell names, item names, item IDs, inventory slots, and bag slot combinations. Each time you run the macro, it activates the current spell/item. If the spell or item is used successfully, the sequence will move to the next entry. '''You must repeatedly activate the macro to use all the spells in the sequence'''. Once you use the last entry in the list, it will reset to the beginning. Example: /castsequence Immolate, Corruption, Curse of Agony, Siphon Life This might be something you would use for a Warlock's opening attack. Note, however, that if Immolate fails to cast for some reason (out of mana, not in range, silenced, etc.), the sequence will remain at that point. Because of this, you cannot use a /castsequence to make a spammable macro like: /castsequence Overpower, Execute, Mortal Strike Before the spell list ('''but always ''after'' the conditionals'''), you can also specify reset conditions to start the sequence over before it reaches the end. The basic syntax for reset conditions is: reset=''n''/target/combat/shift/alt/ctrl Where ''n'' is the number of seconds of inactivity after which the macro should be reset. In other words, if more than ''n'' seconds pass without the macro being called, then the next time you call it the sequence will start from the first spell. Note that this is not the time since the ''first'' spell in the sequence was cast, but rather the time since the macro was last called (to cast ''any'' of the spells in the sequence). This is a very important distinction because it means '''you cannot use a reset timer to account for [[cooldown]]'''. As to the other conditions, "target" resets the sequence when you change targets; "combat" when you leave combat; "shift", "alt", and "ctrl" when you activate the macro with one of those keys depressed. You can specify any number of these conditions separated by slashes as shown. Example: /castsequence reset=10/shift Spell 1, Other Spell, Some Item To make a macro cycle through two different 'sets' of spells that should be used together, where each set can not be used at the same time (i.e trinkets with shared [[cooldown]]s) it is possible to use multiple instances of /castsequence to achieve this effect. Example: /castsequence Beserking, Icy Veins /castsequence Trinket 1, Trinket 2 On the first button push this macro will cast Beserking and Trinket 1, on the second it will cast Icy Veins and Trinket 2. If you used the question mark icon, WoW will automatically update the icon to the current element of the sequence. If you have other /casts or /uses (or complex conditionals) before the /castsequence, though, WoW will sometimes not be able to figure out which icon to use. In this case, you can specify the icon using #showtooltip as described above
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)