[macro] vanish/subterfuge stances

Hi all. Is there a way to have a macro that let me use one spell when subterfuge is active and another one when vanish is on?

I used [stance:2] but it is seems to be shared between all the stances that are not stealth (vanish, subterfuge, shadow dance)…

I’d say subterfuge and shadow dance share stealth because their form is like you are in stealth, while in combat. Vanish just gets you out of combat and to stealth. Macro will probably detect it still like stealth.

The only way to distinguish between different forms is to check your buff. I guess you should have different icons depending on which form you use. But to do so, you would need to run a lua script and check e.g. what “UnitBuff()” returns. Based on that, you would cast a spell. 255 chars may not be enough to build your macro.

EDIT.
Run this script in chat window when you in different forms:

/run for i=1,40 do local B=UnitBuff("player",i); if B then print(i.."="..B) end end

and check if you see distinct buffs in a list, e.g. you may see Vanish, Stealth, Subterfuge, Shadow Dance, etc. If you do, then you can think of building a short script macro using “if else if else end” etc. and cast a spell you are interested in. Hope it helps.

If I remember correctly:
[stance:0] is no stance
[stance:1] is stealth
[stance:2] is Vanish
[stance:3] is Shadow Dance

Nothing else can be tracked with the Stance conditional, and I’m highly dubious about being able to attach an ability cast to an if/then script that is executed from a button press. Blizzard REALLY tried to prevent this from happening a long time ago.

What exactly are you even trying to do that requires you to have such a specific macro?

1 Like

Thank you both for the replies.
I was just lazy and I didn’t want to change my keybinds to fit the use of subterfuge as a talent.
Btw I used two different keys for the two spells and now I’m fine. Just needed a couple of hours to get used to it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.