Topic A little help with macros (<if> conditional)
Zuji
Moonglade
Zuji
84 Troll Priest
1960
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.
Corse
Steamwheedle Cartel
Corse
85 Night Elf Druid
3610
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.
Jiposs
Sylvanas
Jiposs
85 Night Elf Rogue
7905
It might be a good idea to ask questions like that in the UI/macro forum.
Starbug
Scarshield Legion
Starbug
85 Gnome Mage
7435
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.
Hobbes
The Sha'tar
Hobbes
85 Human Priest
5945
#showtooltip
/castsequence !Inner Fire, !Inner Will


Should do the trick.
Moved to our dedicated Interface & Macro forum. Good luck!
Arkajin
Defias Brotherhood
Arkajin
90 Troll Warlock
4510
Edited by Arkajin on 14/01/11 14:14 (GMT)
#showtooltip
/castsequence reset=1800 !Inner Fire, !Inner Will


Should do the trick.


added a reset, just incase the buff expires.
Avalast
Dragonblight
Avalast
90 Human Mage
7670
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.
Dôrwido
Doomhammer
Dôrwido
85 Goblin Hunter
8425
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.

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Click here to view the Forums Code of Conduct.

Report Post # written by
Reason
Explain (256 characters max)

Reported!

[Close]