Pain suppression macro and targeting help?

I’m having trouble figuring out how to do what I want or if it’s possible. I would like a pain suppression macro that:

  1. if the target is good cast on the target, or
  2. if the target is harmful cast on the target’s target, or
  3. cast on me

By target it could just be where my mouse is pointing, or an actual target. I don’t use any healing or ui addons.

Does this seem like a useful thing or am i over-thinking it?

Yeah, that should be ok.
If you have no add-on, mouseover on the party freaked should help.

I’m not near the computer, so might have this wrong:

/cast [@mouseover,help] pain suppression; [@targetoftarget, harm] pain suppression; pain suppression

Give that a shot. Again, I’m not near the computer, so others can/will correct me, or refine the macro further :+1::+1:

1 Like

Thank you very much! I will try it out tomorrow.

1 Like

I use macro’s extensively. As far as I know, just by using the in-built macro system, you are not able to achieve an if-then sequence like this.

In certain cases such as the type of target chosen (as the OP had asked for), this can be done using the help/harm modifiers.

In this case, unless I’ve stuffed the macro from typing out from mobile (still away from computer), this should work as I do use these exact functions for heals that aren’t bound for regular Vuhdo without any issue.

Home now, and double checked what was asked:

#showtooltip
/cast [mod:alt,@player] [@mouseover,help,nodead] [help] [@targettarget,help] [] Pain Suppression

Source:

1 Like

This seems to work great! I don’t understand the syntax of it at all, but really appreciate your taking the time to work it out.

1 Like

All good mate :hugs: happy to help.
Starting from left to right in the macro priority, if the player is holding alt, then it casts on themselves. If you’re mouseover a player that is alive, will cast on them. If you’re simply targetting a player, it then prioritises to them. Targetting an enemy, allows it to be cast towards that enemy’s target.

Enjoy :+1:

1 Like