Let's say I'm examining a statue, depending on the person that's leading the party, the dialog could be different.
What script would I use in a conditional branch for the game to check the actor in the lead?
Lead Actor Conditional Branch
● ARCHIVED · READ-ONLY
-
-
$game_party.members[0] would give you the party leader actor object
-
I tried using some conditional branches but they don't seem to work. Since the party has multiple character, I'm looking for the script to check the party's leader. Or did I do something wrong?$game_party.members[0] would give you the party leader actor object
EDIT:
It was my fault, It works perfectly fine, thank you. :)
EDIT 2:
Actually, after trying it out with a different actor as the leader of the party. It still showed the first actor's dialog instead of the second's. -
How are you checking it? Please post a screenshot of the event.
-
-
Change the script in your conditional branch to
"$game_party.members[0] == $game_actors[x]"
where x = the actor's location in your actor database, eg "1" for Eric, "2" for Natalie. etc. -
That works perfectly, thank you. :)Change the script in your conditional branch to
"$game_party.members[0] == $game_actors[x]"
where x = the actor's location in your actor database, eg "1" for Eric, "2" for Natalie. etc.
