Macro Help Please!

Hey all, i’m bad with macros and I need some help.

Here’s my macro.

#showtooltip Thundercharge
/cast [nomod, harm] Purge; [nomod, help] ; Cleanse Spirit [mod:shift, @Player] Cleanse Spirit; [mod:ctrl, @focus] Cleanse Spirit; Purge

So what I want it to do is just clean up my bar space and put all of my dispelling needs on the one button with modifiers.

If i target friendly, it cleanses, if i target hostile, it purges.

With Modifier to Cleanse myself with shift, and then ideally purge/cleanse focus when modifying with ctrl. I don’t know if the last bit is possible. If not just purge focus.

Everything works right now except for the [help] cleanse. It’s not cleansing people I target.

correction: the purge harm is working. and self cleanse modifer. That’s about it. nothing else is working lol.

rewriting the macro entirely is fine by me. I’m not good at this stuff and frankly i’m just cutting bits and pieces out of other macros without an understanding what 'm doing.

I can help.

I think I know what’s going on but I want to test it to make sure I’m right before telling you what to do. I’m at work right now so if you could give me a few hours I’ll get you on the right path.

1 Like

Thanks, you’re much appreciated.

1 Like

Ok I’ve got it working. This is how it should be written. I don’t use ctrl as a modifier so replace my modifiers with your own.

/cast [nomod, noharm] cleanse spirit; [nomod, harm] purge
/cast [mod:shift, target=focus, noharm] cleanse spirit; [mod:shift, target=focus, harm] purge
/cast [mod:alt, target=player] cleanse spirit

I just tested. It does the following

On normal press:

  • Will cleanse yourself if you have no target
  • Will cleanse a friendly if you’re targeting a friendly
  • Will purge an enemy if you’re targeting an enemy

On ‘Shift’ modifier:

  • Will cleanse if you have a friendly set to your focus
  • Will purge if you have an enemy set to your focus

On ‘Alt’ modifier
-Will cleanse self regardless of target

3 Likes

Amazing. Thank you so much. I had no idea you could put multiple of the same modifier in the same line like that.

You’re the best!

1 Like

I didn’t know I needed this until now. Thank you!

1 Like