Party leader check in conditional branch

● ARCHIVED · READ-ONLY
Started by Failivrin 4 posts View original ↗
  1. The default "Conditional Branch" can check different parameters for party members, but it does not check who the party leader is. I am looking for a plugin that would create different conditional branches depending on which actor is the party leader.

    Example of usage: Therese rescues an old man from a monster. Later, the old man appears in a tavern. He's near-sighted, so if Harold speaks to him, he won't say anything important. If the player swaps so that Therese is the party leader, and Therese speaks to the old man, he will recognize her and give her a rare item.

    Any help would be much appreciated!

    PS - I am using the PH Swap Party plugin that allows the player to change party leader with the touch of a button. http://mvplugins.com/plugin/PrimeHover/PH - Swap Party
  2. You can check party leader.

    Default Command:
    upload_2018-9-30_12-4-8.png
    Use Control Variable first then the condition.
    In this case it is saying, what is the actor ID of the 1st Position (Leader) and it checks if it's Actor ID #1 in my sample.

    Script Call Version:
    I can't remember a better version but this is what I use. It checks that if Actor 1 is in 0th position (aka leader of the party).
    Code:
    $gameParty.members().indexOf($gameActors.actor(1)) == 0

    How to use:
    upload_2018-9-30_12-2-59.png
  3. $gameParty.leader().actorId() == 2

    is another one you can use.
  4. Thanks. I'm not very good at formulas but I'll try that!