I am looking to economize on my macros by having certain bits trigger only when I am on certain characters.
E.g. On my hunter I like to use [Hunter’s Call] when I summon a random companion pet, so my macro looks like:
/use Hunter’s Call
/randompet
On my other characters, I would prefer that just summon the companion pet – no Hunter’s Call.
As far as I know neither [class: hunter] or [player: character_name] are valid conditionals for macros.
Is there a work around that lets macros act depending on which character is the current player?
I do not think [spec: ____] works, because that just returns a number for what spec I am in, rather than the actual spec name, yes?
Yes, [spec:1/2/3] would work for any class/character.
Sadly, no such class-specific or character-specific macro options exists in the default game. Wow does provide 18 (not sure exact # but it sure ain’t enough for me) character-specific macro slots. Character A could have a macro called “MyMacro” that does 1 thing and Character B could also have a macro called “MyMacro” that’s completely different, if those Macro’s are stored in the character-specific slots.
You shouldn’t need any conditions, you’ll just get an error that a non-hunter doesn’t know the spell and the macro should proceed to the next line.
Just try it, see what happens. If it doesn’t work as intended you can review other options.
@Elvenbane The problem is that Hunter’s Call functions for any class
If it threw an error for non-hunters, then your solution would be spot-on though.
@Tinkerrific Aye. I was trying to save myself some per-character macro slots (plus, having essentially duplicate macros is an annoyingly inelegant solution), but it appears that is the way to go… I will just have to free up a macro slot on my hunter ;D
Could just stick a modifier on the hunter’s call cast then.
#showtooltip
/use [mod] Hunter’s Call
/randompet
If you always run with a pet (Hunter pet, not vanity pet) you could use the [pet] conditional on the Hunter’s Call:
#showtooltip
/Use [pet,help]Hunter's Call
/randompet
1 Like
Sorry for necro, found this while looking for something else, but…
Or if you aren’t SV, [equipped:bow][equipped:gun][equipped:crossbow] would work, too. Better, since some other classes do have pets.