I'm primarily a paladin healer, which usually means I concern myself with four spells for healing; Flash of Light, Holy Light, Holy Shock and Cleanse. Although I toss out the occasional Blessing of Protection, this is the bulk of my healing, so I thought I'd work on making two mouse-over macros for my Karazhan run tonight.
The basic use for a mouse-over spell is this command:
Welcome back, let's get down to business with mouse-over spells. Now, I'm specifically looking for a solution to my healing needs. However, rather than jump in with both feet, I thought I'd try this out on my low level priest. I figured this would allow me a bit more leeway to make mistakes without wiping my raid group, I'll let the beer take care of that for me.
For a mouse-over Renew, I went with this simple macro:
- /cast [target=mouseover,exists] Renew
- /cast [target=mouseover,exists,help,nodead] Renew; [target=mouseover,exists,harm,nodead] Shadow Word: Pain; [help,nodead] Renew; [harm,nodead] Shadow Word: Pain; [target=player] Renew
"This macro casts either Renew (friendly) or Shadow Word: Pain (hostile) on whoever is hovering under your mouse that exists and is not dead. If you're not hovering, it does either Renew (friendly) or Shadow Word: Pain (hostile) on your selected target that is not dead. If all of the above are false, you will Renew yourself."
I've only briefly touched on modifiers and conditionals here at Macro Anatomy, and until finals release me from their horrible embrace, I'll just have to provide fertile examples like this one. However, take a look at what this macro does and its syntax. The scripting language used to write macros is pretty intuitive and hopefully you can see how this macro comes together.