Hello and welcome to step by step macro writing
guide for World of warcraft. In this guide we will go over fundamentals
of writing a macro, starting from the simple commands and building it up to more complicated
ones. Timestamps for the video and the links to
all possible commands and modifiers can be found in the video description down below. First thing first, Macros menu can be found
when you click Escape button, or can be called up by typing /macro to chat and clicking enter. To write a macro, just click "new" choose
an icon and named it as you please. One thing that is extremely useful here, is
chosing the question mark icon from top left, and starting your first line of the macro
with #showtooltip. This way, your macro button will automaticly
show you the icon and current status of whatever it is about to cast. If you prefer that your macro icon doesnt
change and show always the same ability, just add the name of the ability after writing
#showtooltip. Now to our first commands; /cast or /use, You can simply write /cast or /use, leave
1 space , write any on-use abilitiy you have, in your spellbook, and clicking that macro
will cast that ability. You can also shift-click on the spell icon
from your spell book to write it in the macro. Just remember that If the ability have several
ranks, ability name without a rank will make macro cast the last rank of the spell. While /cast command works only for abilities
in your spellbook, /use command works both for your spells and items. Writing /use Heavy Runecloth Bandage will
make that macro use the bandage. Or writing /use Devilsaur Eye in this character's
case, will make the macro activate the trinket. Second level of commands, are the ones that
saves your from mouse clicking or makes it sure that you actually start or stop attacking
the target. These are commands like /cancelaura /startattack
/petattack, /stopattack or /stopcasting Writing /cancelaura and the name of the buff,
will make you cancel it from your character. For instance, my character now has the mount
Stormpike Battle Charger and the buff Aspect of the Hawk on him. If I write a cancelaura macro; such as /cancelaura Stormpike Battle Charger,
enter, /cancelaura Aspect of the Hawk, and click on it, it will remove both of them. /startattack /stopattack /petattack /petpassive
or similar commands will make sure that my character or pet start or stops attacking
the target, and also removing the need of clicking buttons manually. What makes these even more important however,
is using them with combination of /cast or /use commands. When I write a macro that goes /startattack
/cast Raptor Strike, clicking it will make sure I to start the attack, regardless if
I am able to use the Raptor Strike. This is extra important for classes like warrior,
who may not already have enough rage to use the ability, but starting attack will start
generating it. Next one on the list is the best friend of
mages everywhere, stopcasting command. Obvious by its name, Stopcasting command will
make sure your character stops whatever it is casting. The real benefit of it comes when it is used
before or after another ability. Lets say I start casting an Aimed shot but
change my mind and now I rather want to cast concussive shot. Without a macro, unless I cancel my aimed
shot cast by moving or hitting escape button, Concussive shot spell will be used after Aimed
shot cast is over. But if I use /stopcasting /cast Concussive
Shot macro like this one, it will interrupt the Aimed Shot cast, and use Concussive shot
immideatetly. a small tip for hunter's out there, /Stopcasting
can also be used by hunters, if they want to cast an offensive ability on target , but
dont want to start auto-shot. Just use it after the the ability you want
to cast, and spam it during the global cooldown. Now that we know how to cast or stop casting
an ability, here comes the conditionals. Conditionals are used to tell macros to complete
a certain action, only if the condition you want is met. There are many conditionals, such as [combat],
which will check if you are in combat, [help] which will check if you can cast helpful spells
on that target. Best way to understand how they work, is to
see the in action. So lets try the [combat] conditional, with
/startattack command. First , we try /startattack command without
any condition. We click on it, and the charater starts the
attack, verified by the animation. Now lets try the [combat] conditional, after
/startattack command. As you see, when i click to macro, nothing
happens. Because we told the macro to start the attack
only if he is in the combat. Now lets get close these wolves so we get
in combat. And click the macro again. As you see , as the condition of being in
combat is met, we indeed started the attack. Building up on this, we can tell macro to
take different actions , when different conditions are met. Lets say we want 1 button, that when we are
in combat, uses a bandage, but if we are not in combat, just eats a plaintain. So we can write something like #showtooltip /use [combat] Heavy Runecloth
Bandage; [nocombat] Deep Fried Plantains as you can see, when I am out of combat, it
will just eat a Plaintain, but as soon as I get in combat, it will change to use bandages. One more thing to note here, is actually we
dont really need to write second conditional, [nocombat] here. Because the way the macros work, a semicolon
without a conditional afterwards, means basicly "or else", as in "in any other condition,
do this". This comes much more meaningful when you use
it with conditionals that has many versions. A great example of this is the mod conditional,
which can be used as [mod:alt] [mod:shift] and [mod:ctrl]. What mod conditional by itself means is, "take
this action if I am holding down the following button on the keyboard". So when we write something like: #showtooltip
/cast [mod:shift] Aspect of the Hawk; [mod:alt] Aspect of the Cheetah; Aspect of the Monkey when I am holding down the shift button It
will cast Aspect of the Hawk, when I am holding down the alt button it will cast Aspect of
the Cheetah , in any other condition, such as holding down CTRL or not holding down any
button, it will cast Aspect of the monkey. Now lets see a macro, that combines some of
the things we learned until now: A Hunter's Freezing Trap macro. First line of the macro tells us that whatever
happens, the macro will show the tooltip of Freezing Trap. It wont change to show anything else. Second line tells us if we are in combat,
it will stop us from attacking the enemy. Third line says, again, if we are in combat,
pet will be set to follow. and the Forth line says, if we are in combat,
use Feing Death, or else use Freezing Trap. Now lets see the macro in action, if that
actually works. If I am not in combat, this macro should only
use the Freezing Trap ability, and do nothing else. So lets put the pet here and take few steps
away, and click the macro: As you see, it didnt call the pet, and it
just dropped the Freezing Trap. Lets try it again, but this time we will be
in combat, and attacking. And we click: As you see, it made pet to follow,
stopped attack, and Feigndeath. As I clicked it again, after leaving the combat,
it used the Freezing trap. Mission accomplished. Before going to last part which is castsequence
macros, just know that there are a lot of commands and conditionals, and all of them
have their uses. Some of them will make you equip an item,
other will check if you are outdoors or indoor before casting an ability. Lets take a complicated looking one, and see
what it actually says. Here is an example of a Flash heal macro for
priest class. First it says; check if my mouse is hovering
over a target, if I can cast helpful spells on that target, and that target is alive. if all are true, cast Flash Heal on that target. If that doesnt work, Check if I can cast helpful
spells on my current target, and if it is alive, then cast Flash Heal on it. And the last part, if that also doesnt work,
just cast Flash Heal on me. Last in our list, for this video, is the /castsequence
command. In its basic form, this command enables you
to cast several abilities in order, by pushing just 1 button. So if we are to create a macro that goes, /castsequence Aimed Shot, Multi-Shot , Serpent
Sting when i click the macro first time, It will try to cast an Aimed Shot, until it is
succesfully cast. Then the second click will cast the second
ability in line, Multi-Shot. It will go like this until the end of the
line, and then repeat from the start. One of the great things about castsequence
command is that it can be used with a reset modifier, meaning you dont have to wait till
every ability in the sequence is cast, to start over. . For instance, with this modifier, the macro
will reset to beginning, if you click it holding down the shift button. Several reset modifier can be used together
too. If we were to write something like /castsequence reset=9/shift/target Hunter's
Mark, Aimed Shot This will reset the macro after 9 seconds,
but also if you are holding down the shift button, or whenever you chance your target. And this concludes our step by step macro
guide. If you have any questions or comments, feel
free to write them down in the comment sections, and I will try to answer them best as I can. I am Viaroka, and have a nice one.