Script Call: Checking JUST battle party for status effect

Discussion in 'RPG Maker VX Ace' started by lucofthewind, May 21, 2019.

  1. lucofthewind

    lucofthewind Suikoden FanBoy Veteran

    Messages:
    204
    Likes Received:
    17
    Location:
    Philly
    First Language:
    English
    Hey all,

    What I am trying to do is set up a conditional branch, in battle, that if the current battle party (game has 12 playable characters so far, and only a max party of 6) does not have a certain status effect, the a force action will happen with the enemy.

    I already tried setting up the conditional branch with $game_party.members.include(state[1064]) and $game_party.members(state[1064]) but that didn't seem to work. Any one out there that can help?
     
    #1
  2. KK20

    KK20 Just some XP Scripter Veteran

    Messages:
    87
    Likes Received:
    38
    Location:
    Orange County, California
    First Language:
    English
    Primarily Uses:
    RMXP
    Code:
    $game_party.members.all? { |a| !a.state?(1064) }
     
    #2
    Lonewulf123, lucofthewind and Ebanyle like this.
  3. lucofthewind

    lucofthewind Suikoden FanBoy Veteran

    Messages:
    204
    Likes Received:
    17
    Location:
    Philly
    First Language:
    English
    I've tested it a few times, and it seems to be working just fine now! Thank you again for responding!
     
    Last edited: May 21, 2019
    #3
    Lonewulf123 likes this.
  4. Engr. Adiktuzmiko

    Engr. Adiktuzmiko Chemical Engineer, Game Developer, Using BlinkBoy' Veteran

    Messages:
    14,476
    Likes Received:
    2,869
    Location:
    Philippines
    First Language:
    Tagalog
    if you want it only for battle members, it should be $game_party.battle_members

    Take note that battle members mean only the people involved in battle, not the whole party.
     
    #4
    Lonewulf123 likes this.

Share This Page