Check which actor is leading?

I am trying to set up an event, that when you talk to it will react differently depending on which actor is in the "main" actor slot.
I am using a total of 4 party members.
At first I thought to use a conditional branch, but there only seems to be a way to check if the actor is in the party.
Can anyone offer any work around or solution to this?
Much Obliged!!
Use this in a conditional: script
Code:
$gameParty.leader() === $gameActors.actor(your_actor_id)

There might be an evented workaround, but it's the first thing that came to my mind.
or use control variable : game data to get the ID of the party member #1 into a variable and then check that variable in a conditional branch.
So @Andar when I'm not sure I understand how to do this...

Basically, I want something different said to each actor based on who is in slot number 1..
But I cannot for the life of me figure out what process to use to check for that.

Im quite literally lost.
also
PHP:
$gameParty.allMembers()[0]; // actor 0

$gameParty.allMembers().lenght; // number of actor

$gameParty.allMembers(); //return actor liste objet
You need check if it is in order, i didn't try yet
This is what it looks like.

help_skunk.png
So in my case I would replace the 8,9 and 10 with the id of my actors?
That is correct. 🙂
ah frig sakes, you guys rock. thanks!!

Original thread: https://forums.rpgmakerweb.com/threads/check-which-actor-is-leading.82045/