MV What's the call for targeting specific party slots (not actors)...

I've been stumped trying to figure out how to basically, through Yanfly's Action Sequences, to tell the game that if party member 3 is being targeted, turn on/off a certain switch. $gameParty.members()[2] is basically the 3rd slot if I remember right, but how do I say something like this... target.actorId() === 1 but for the party member slots instead of actor ID. I feel I'm close to what I need, but I can't quite figure it out.

If anyone know's what I'm missing, I'm all ears and thanks... enjoy your day folks.
Couldn't you do

$gameParty.members()[2].actorId() === target.actorId()
awesome! yeah that works. basically I have a switch that turns on and off the priority for actors and enemies and I needed it off whenever whoever the 3rd party member is, was targeted... that way the enemy wouldn't be standing on the second party member's head or something weird. annnd now it works! thank you so much! this is good to know in general actually, so yeah thanks.

EDIT: Well there's a hitch, it throws an error if there isn't a 3rd party member in that position... BUT, I found out there's a ridiculously easy way to do this which is so easy I literally didn't think it'd work...

target === $gameParty.members()[2]

that seems to work and it doesn't seem to matter if that slot isn't being filled in any particular battle.

this also works with...

target === $gameTroop.members()[1] and whatnot just incase anyone seeing this was wondering.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/whats-the-call-for-targeting-specific-party-slots-not-actors.137330/