Conditional branch for main actors help?

Is there a way to create a conditional branch event for a specific actor? Like, if the player is [MainActorA], then this should happen, or he should say this. And if the player is [MainActorB], then the other event should happen.
All I see in Conditional Branch is if an actor is in the party. I assumed that there should have been a script for such conditional command(?).
What do you mean "if the player IS someone"? Are you setting up multiple actors and letting your player choose between them? Or are you talking about who they've got as the party leader?

If you want to base it on who is the party leader, you can use Control Variables > Game Data > Party Member 1's Actor ID. Then you can do a series of conditional branches to see if it's 1 (actor 1 is the leader), 2 (actor 2 is the leader), etc. You have do to the Control Variables immediately before you do the conditional branch.
Or are you talking about who they've got as the party leader?
That.

Oh, that's all?
Um, sorry for bothering, but I can't figure out the conditional branch command for the variables. . :LZSlol:
You could use script call method in a conditional branch.
Conditional Branch > 4th page > Script
Code:
$gameParty.leader().actorId() === 1
Number is used to check for leading Actor ID.
Oh. I see.

Thank you both!

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/conditional-branch-for-main-actors-help.109267/