So it seems like a lot of people have either had trouble with GS, don’t understand it, or are afraid to use it because code is super scary. I’m writing the guide to fix that. It is very easy to use, and the “code” is as close to writing instructions in english as you can get.
What this guide is.
-
Simple explination and useage of GS, things to know, and a everything you need to make a working macro
What this guide is not.
-
An advanced programming course, you won't learn LUA, and you won't be writing functions, just simple WoW macros.
Things you need to know, rules if you will.
-
If it has a special character, something that isn't a letter, it needs to be "escaped." This simply means that rather than keeping the line in single quotes, ', it needs to be in double quotes, ".
Example.
/cast Tiger’s Fury’,
is wrong, because the apostrophe in Tiger’s will break stuff. Very Simple Fix.
“/cast Tiger’s Fury”,
This is correct and will work just fine. If you are not sure, everything can be in double quotes, it will not break anything.
-
The top of your sequences file
local _, Sequences = … — Don’t touch this
- It will always look like this. Don't touch the first line. You're good.
Starting a Macro
Name it.
Sequences['ProtST'] = {
Replace ProtST with whatever you want to name your macro, leave the rest of the line alone.
The pre-macro
PreMacro = [[
THING TO DO
]],
This is the premacro, and will be used everytime you press the button, before anything else in the macro happens. It is good to targeting stuff, is can also be used to always keep a non-GCD cooldown up (though I prefer to put those in the post macro, they will work here) is can be used to /say haha I did something. It doesn’t matter, as long as it does not need the global cooldown timer.
As long as the first and last line look like the above, your premacro is done.
The macro, this is where your actions go
'/cast spell',
'/train',
'/use bubble wand',
You can put your entire GCD rotation here. Put it in the order you want to cast it. The only hard and fast rule here is the line starts with either a ’ or a " and ends with the same symbol, followed by a comma, just like in the example. You can always use a " and never have to think about what you are casting, but it is only required in place of the ’ when there is a special character in the line.
The post macro
The post macro is executed AFTER every GCD action you put in the macro above. This is an excellent place to put CDs that are off the GCD like bubbles and large damage CDs that you want to use anytime they are available.
PostMacro = [[
It will always start with this line, don’t mess with it.
/cast Shield of the Righteous
/startattack
/script UIErrorsFrame:Hide();
/console Sound_EnableSFX 1
These are the things you change to anything you want it to do. It can be anything you want, or nothing at all, it is a completely option section.
]],
This is the last line of the post macro, make sure it is there, leave it alone.
}
This is the end of the macro as a whole, there is one at the beginning where you named it, the left version of course, which start the macro. Make sure it is there, leave it alone.
A Complete, simple, example.
Sequences['MyMacro'] = {
PreMacro = [[
/say I'm going to use a macro.
]],
'/use bubble wand',
PostMacro = [[
/say I used a macro!
]],
}
Now, everytime you press the ingame macro named ‘MyMacro’ you will do the following three things.
/say I'm going to use a macro.
/use bubble wand
/say I used a macro!
With the information in this post you should be able to look at any GS macro (outside of advanced functions) and be able to tell how it works, what it is doing, and when it is doing it.