Lead Actor Conditional Branch

● ARCHIVED · READ-ONLY
Started by Tatsude K. Hitori 7 posts View original ↗
  1. 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?
  2. $game_party.members[0] would give you the party leader actor object
  3. Engr. Adiktuzmiko said:
    $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?

    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.
  4. How are you checking it? Please post a screenshot of the event.
  5. Here's what I tried to do.

    actorleadexample.PNG
  6. 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.
  7. Susan said:
    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. :)