Making Reputation Locked Equipment

Discussion in 'RPG Maker MV' started by JoelMarler, May 18, 2019.

  1. JoelMarler

    JoelMarler Veteran Veteran

    Messages:
    61
    Likes Received:
    11
    Location:
    Auckland, New Zealand
    First Language:
    English
    Primarily Uses:
    RMMV
    I want to make some equipment in my game useable only if you have a positive or negative reputation, which is tracked with a variable. Does anyone know how to do this? Preferably any equipped equipment would unequip itself as well if your party's reputation suddenly switched from being positive to negative and vice-versa too.
     
    #1
  2. Animebryan

    Animebryan Feels like I'm slowly dying! Veteran

    Messages:
    328
    Likes Received:
    149
    Location:
    Marysville, CA
    First Language:
    English
    Primarily Uses:
    RMMV
    Yanfly's Equip Requirements http://yanfly.moe/2016/02/27/yep-75-equip-requirements/ can make that possible. It requires his Equip Core http://yanfly.moe/2015/10/15/yep-10-equip-core/.

    Assuming that your 'Party's Reputation' is set to a single variable (rather than variables for each member), then you simply need to add a custom condition notetag to the piece of equipment like so:

    Code:
    <Custom Equip Requirement Condition>
     *    if ($gameVariables.value(x) >= n) {
     *      condition = true;
     *    } else {
     *      condition = false;
     *    }
     *   </Custom Equip Requirement Condition>
    
    Replace x with the variable number for your party's rep & replace n with the value required (it checks if the variable is equal or greater than n).
     
    #2
    Darkanine and Wavelength like this.
  3. JoelMarler

    JoelMarler Veteran Veteran

    Messages:
    61
    Likes Received:
    11
    Location:
    Auckland, New Zealand
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you very much, that should work perfectly!
     
    #3
    Animebryan likes this.

Share This Page