Help with [known] macro and modifiers!

Hello everyone,

Kinda new to macros but too long have I been playing without modifiers on my keybinds, and I’m trying to make things simpler instead of having a different keystroke for every ability. What I have been doing mostly is a macro that always casts spell A, unless I press it with shift, then it casts spell B. So far, so good. The reason I add all modifiers is because otherwise I don’t see the tooltip, not sure if that’s normal?

Some of the characters I play use different specs and hero talents depending on content (PvE/PvP) and some of the spell I’ve bound this way dissapear. I can’t be bothered dragging the correct spell in and out over and over again so I was thinking about adjusting my macro. I want it to do the same, but change spell A (or B in some cases) depending on if I know a certain spell.

This is the best example I could find:
Playing Shaman I often swap between Farseer and Totemic Hero Talents.
While playing Totemic I want nomod, ctrl and alt to cast Surging Totem, and shift to cast Healing Stream Totem. While specced into Farseer I want to swap Surging Totem with Healing Rain.

#showtooltip
/cast [nomod, known: Surging Totem] Surging Totem; Healing Rain
/cast [mod:alt, known: Surging Totem] Surging Totem; Healing Rain
/cast [mod:ctrl, known: Surging Totem] Surging Totem; Healing Rain
/cast [mod:shift] Healing Stream Totem;

The only thing I see at this point is the tooltip changing but it doesn’t work 100%. Any suggestions on what I did wrong or how I can improve this macro?

Thanks!

**EDIT: I did some testing, and the macro ‘kinda’ works. I don’t understand how it functions the way it does but it does the following. **
The tooltip is always the tooltip from the nomod, ctrl or alt variant. When I press the shift mod it DOES cast the correct spell (so in this case Healing Stream Totem). However, when Surging Totem is on cooldown, it DOES NOT function anymore. The shift modifier just does nothing. Really strange, anyone has advice please?

1 Like

Surging Totem automatically replaces Healing Rain, you don’t need to code it separately.

#showtooltip
/cast [mod:shift] Healing Stream Totem; Healing Rain

If you want it to automatically cast Healing Rain/Surging Totem at your cursor

#showtooltip
/cast [mod:shift] Healing Stream Totem; [@cursor] Healing Rain

If you want it to cast at cursor while in combat and show the reticle outside of combat

#showtooltip
/cast [mod:shift] Healing Stream Totem; [combat,@cursor] [] Healing Rain

Also, be aware that keybinds take priority over macro modifiers. So if you want to use shift 1-6 for macros you’ll need to unbind the default shift 1-6 keybinds (Action Page 1-6).

More templates:

Hello Elvenbane,

Thank you for the very helpful reply! In retrospect, perhaps the Healing Rain/Surging Totem wasn’t the best example after all. What you mentioned does indeed work for this case though. However, I do have other characters that completely replace certain spells.

Is it possible to make a macro that does the following:

#showtooltip
/cast [nomod, known: A] A; B
/cast [mod:alt, known: A] A; B
/cast [mod:ctrl, known: A] A; B
/cast [mod:shift] C;

where A, B and C are three completely different spells? Perhaps even from different Hero or spec trees?

Thank you once again!

Ya. So the basic macro options format is this:

[this, and this]
[this] [or this]
; else this

So, to use the example where Healing Rain didn’t automatically become Surging Totem, you’d do the following:

#showtooltip
/cast [mod:shift] Healing Stream Totem; [known:Surging Totem] Surging Totem; Healing Rain

But you can also more complex stuff if you want.
These are some macros I use on my Priest

#showtooltip
/cast [mod:shiftalt,@mouseover,help] [mod:shiftalt] Leap of Faith; [mod:shift,known:120644] Halo; [mod:shift] Divine Star; [mod:alt,@mouseover,harm,nodead] [mod:alt] Vampiric Touch; [@mouseover,harm,nodead] [] Shadow Word: Pain
#showtooltip
/stopmacro [channeling:Mind Flay: Insanity/Void Torrent]
/cast [mod:shiftalt,known:15286] Vampiric Embrace;[mod:shift,known:263165] Void Torrent;[mod:alt,known:205385/457042,@cursor,combat][mod:alt,known:205385/457042] Shadow Crash; Mind Flay

Hi Elvenbane,

Thanks again for the clear answer.
The examples you’ve sent work like a charm.

I have a follow-up question though.
I have a macro that casts a totem without mod, and a damaging spell with any other mod. It looks like this:

#showtooltip
/cast [nomod] Earthen Wall Totem;
/cast [mod:shift] Earthen Wall Totem;
/cast [mod:ctrl] Earthen Wall Totem;
/cast [mod:shift] Chain Lightning;

I see you use [mod:shiftalt], but that doesn’t seem to work for me unless I put them in seperate lines.

And also, is it possible to add a /ping to the Earthen Wall Totem on the location where I place it? I know how to do it without the modifiers, but not how to with modifiers.

Ideally it would start to look something like this (though it doesn’t work with my syntax)

#showtooltip
/cast [nomod, @cursor] Earthen Wall Totem, /ping Assist;
/cast [mod:ctrlalt, @cursor] Earthen Wall Totem, /ping Assist;
/cast [mod:shift] Chain Lightning;

Oh by the way, the reason I use nomod, ctrl and alt, all for the same spell is I can’t stand the red question mark when I press a modifier that isn’t bound to anything. Is there a fix for that or is it just basically bind it to all mods like I do?

Thanks once again!

Earthen Wall Totem isn’t off the GCD so you can’t have both it and Chain Lightning on shift (first macro)

Optimizing the 2nd macro you end up with this:

#showtooltip
/cast [mod:shift] Chain Lightning; [@cursor] Earthen Wall Totem
/ping [nomod:shift] Assist

Macros are executed top down, left to right and run the first command condition set that returns true. So in the above if you’re holding shift it casts CL, otherwise it casts EWT; you don’t need to manually specify all the other cases.

shiftalt is when you’re holding down both shift and alt at the same time.

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