An if/else statement for equipment requirements

Discussion in 'Javascript/Plugin Support' started by Knightmare, Feb 7, 2017.

  1. Knightmare

    Knightmare Knight of the Night Veteran

    Likes Received:
    Central USA
    First Language:
    Primarily Uses:
    Hey all. What I am trying to do is put an if/else statement in a piece of equipment that will check the following.

    Basically I am using Alistair Attribute Distribution and I know how to write what I need but I don't know how to check it. I need an ability to have a certain amount of points before the item can be equipped so in the equipment notebox I want to put an if/else that checks for those points before the item can be equipped. So something like this...

    if value = actor.abilityLevel("Heavy Armor") > 0 This part is correct
    allow to equip
    not allow to equip

    The parts in bold is what I need to learn how to write properly. I tried using Yanfly Equip Requirements and it DOES work mechanically but it's kind of buggy visually when in shops and it doesn't reflect who can use it properly in the side menu (shop status?) Basically I want to try the above method to see if it works that way instead. Thanks for any help, it's much appreciated.

Share This Page