SOLVED : Conditional Passive State Help (Yanfly)

● ARCHIVED · READ-ONLY
Started by Blue001 4 posts View original ↗
  1. Hello all.

    I am using Yanfly's Auto Passive States and I am trying to set up a passive state for each formation slot.
    Basically, I am attempting to recreate FF1's formation system.
    The actor in formation slot 1, should always be targeted more than those in slots 2, 3 or 4. and so forth.

    So I made 4 states, one for each slot and made them into passive states that all characters have.
    using the conditional script in a notetag on the states themselves I am attempting to make each state only affect the correct formation member.
    I tried the notetag...

    <Custom Passive Condition>
    if (user.$gameParty.members() == 0) {
    condition = true;
    } else {
    condition = false;
    }
    </Custom Passive Condition>

    but no avail. I know the "if (user.$gameParty.members() == 0) {" part is wrong. But I am terrible at script calls, so i am not sure of the correct function to check a user's member slot.

    Any one know what it is?
  2. if (user === $gameParty.members()[0]) is correct.
  3. Poryg said:
    if (user === $gameParty.members()[0]) is correct.

    It appears that is indeed correct. Thank you kindly.

    Well that solves my first issue... now to find a way to make these states invisible. I'll try a few things.
  4. Yanfly should have a built-in functionality for invisuble states. In my beginnings I played with them and created a couple of them.