Checking to see if a party member is in the lead position [SOLVED]

Heyla!

So, I want to be able to make a conditional branch that checks if a certain actor is in position 1 (the lead position) of the party formation before doing something. Is there a way to do this?

Thanks for the help!
TheKeeper
if $gameParty.leader().actorId() == "insert actor id# here"

Find more script calls here.
Control Variables > Game Data > Party Member #1's Actor Id
Conditional Branch: Variable = 1 (to check for actor 1)
You can use the script field in a conditional branch and put that:

Code:
$gameParty.leader()._actorId === X

Replace X with the ID number of the actor you want to check.
Thanks all for the quick replies! Much appreciated!

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/checking-to-see-if-a-party-member-is-in-the-lead-position-solved.116546/