Is actor x the leader?

I need a conditional which asks:
Is actor 3 the leader of the party?

Every script call I come up with is met with utter disdain by the engine.
Can anyone help me?

Thanks.
does it have to be a script call?
The simplest way would be to use control variable to read the ID of member#1 (the leader) and then check if that number is 3

Anyway, even with a script call you need to approach it from the other side, checking who is the leader instead of checking the position of actor with ID 3
$gameParty.leader() === $gameActors.actor(3) would be your conditional for this.
@Andar thanks.
@Trihan I could be wrong, but I think that's JavaScript and this is an Ace thread.
That'll teach me to check which forum I'm posting in!

$game_party.leader == $game_actors[3]
Now that I have both methods in my storeroom, and with such speed!...

Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/is-actor-x-the-leader.75340/