[RMVX Ace] Hime Conditional State

Discussion in 'RGSSx Script Support' started by IneptAttoney_08, Nov 30, 2019.

  1. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    92
    Likes Received:
    12
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    I use the Himeworks script, Conditional Passive States. it is an addon from the Passive States Neonblack script.

    I want to make it where when the player uses the weapon type "Bow" then the player has a passive in state 13,
    if using the weapon type "Bowgun" then the player has a passive on state 14,
    and if the player does not use one of the two weapon types earlier (Bow and Bowgun) then the player doesn't have any passive.

    is it possible to create conditions like this?
    please help me in making conditions like this.
     
    #1
  2. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    524
    Likes Received:
    372
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    I haven't tested it, but I read Hime's Conditional States script and I imagine you could use something like this in the notetag:
    Code:
    <conditional state>
    return 0 if !a.weapons[0]
    if a.weapons[0].wtype_id == X
      13
    elsif a.weapons[0].wtype_id == Y
      14
    else
      0
    end
    </conditional state>
     
    #2
  3. IneptAttoney_08

    IneptAttoney_08 MMORPG! Veteran

    Messages:
    92
    Likes Received:
    12
    Location:
    Here!
    First Language:
    Indonesia
    Primarily Uses:
    RMVXA
    thanks for the response. i have already tried this in my project and this is not working.
    then I tried to change the note a bit like this,
    note.PNG
    but when I test, it only takes the upper passive (passive [13]).
     
    #3
  4. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    524
    Likes Received:
    372
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    The problem is that Neon Black's script is reading that notetag (passive[13]) and grabbing it, disregarding the condition. How do you have the states and notetags set up? I believe the way Hime's script works is that you need to have a placeholder state that then checks the conditions and applies the new state (e.g. state 13).
     
    #4

Share This Page