Is it possible to define a "not me" in a macro?

Howdy.

I want to basically set a macro targeting the party member 1, or 2, but sometimes I end up being that same party member, and the macro is ruined.

Is it possible to define something like “isnotplayer”? or something like that?

I’m not even sure if that’s the problem tbh.

My macro should be working fine imo. It should target 1st member, cast, if I’m the first member, try to cast anyways and go back to enemy target, then if i’m not in a party (or not), target me and cast, and go back to enemy target.

The problem is: sometimes it goes back to the previous target (which is not my first enemy target).

My macro:
#showtooltip Void Eruption
/target Party1
/cast Power Infusion
/cast Vampiric Embrace
/targetlasttarget
/target Player
/cast Power Infusion
/cast Vampiric Embrace
/targetlasttarget
/cast Void Eruption

Like this, it simply goes on the previous target, and not the target I had before I clicked the macro.

If I remove this part:

/target Player
/cast Power Infusion
/cast Vampiric Embrace
/targetlasttarget

When I’m not it party, it doesn’t work, simply targets last target.
Otherwise works fine

If I remove the first /targetlasttarget

When I’m the player 1, it also goes back to the previous target.
Otherwise works fine

Thanks!

EDIT: I have now found the exists and party raid macros, which is probably exactly what I want:

Though, can any kind soul explain to me how can I use the “exists” and/or the “party raid” macro conditionals? I’ve never seen them being used, so I’m not sure how to insert them.

Thank you very much!

Nope.

That said, there’s no reason to do any target switching with this macro.

#showtooltip Void Eruption
/cast [@party1,help,nodead] [@party2,help,nodead] Power Infusion
/cast [@player] Power Infusion
/cast Vampiric Embrace
/cast Void Eruption

Will attempt to cast PI on party1 if they’re in range, not mc’d, and not dead. If any of those fails it’ll try the same on party2. If that fails or the party member it tries to cast on is LOS it’ll just cast PI on you.
Then it’ll cast VE and VoiEr

You could also do the same thing as an @focus macro rather than @partyN so you can set the person you want to PI in advance.

#showtooltip Void Eruption
/cast [@focus,help,nodead] Power Infusion
/cast [@player] Power Infusion
/cast Vampiric Embrace
/cast Void Eruption

You the man! <3

Although, could I put?