A little help with macros (<if> conditional)

Interface and Macros
I've read through a few sits and still couldn't find an answer. Is there a way to create a macro that would so something like:
if Inner Fire is active cast Inner Will
else cast Inner Fire

Would really help alot.
No, you can't do that. There are only a few conditions that can be tested (e.g. stance/form, target hostile/friendly, in/out of combat). You can't check for general (de)buffs, combo points, health status etc in macros.
It might be a good idea to ask questions like that in the UI/macro forum.
You can't check conditions like that. That said you could obtain the result you're after in this specific case with a simple:

/castsequence Inner Fire, Inner Will

Which would cast Inner Fire on the first press, and Inner Will on the second, then reset. So you'd get a toggle.
/castsequence !Inner Fire, !Inner Will

Should do the trick.
Moved to our dedicated Interface & Macro forum. Good luck!
/castsequence reset=1800 !Inner Fire, !Inner Will

Should do the trick.

added a reset, just incase the buff expires.
Well out of combat a script can be used, but addons and macros that make "pseudo"-intelligent choices aren't permitted in combat.

That said - Yeah the casting sequence can do the trick.
The "!" in that macro does nothing and isnt needed, inner fire and will is just a buff and not a aura or something like that.

Join the Conversation

Return to Forum