How To Enable/Disable An Option In Yanfly's Option Core Plugin For MV

Discussion in 'Javascript/Plugin Support' started by Uzuki, May 31, 2018.

  1. Uzuki

    Uzuki Kawaii on the streets, Senpai in the sheets Veteran

    Messages:
    1,758
    Likes Received:
    1,214
    Location:
    Georgia
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey everyone, I'm having an issue with blocking out an option in Yanfly's Option Core plugin. In my game I Have an Prepper mode and a Survivor mode. Survivor mode is the "normal" difficulty and is designed to be played as the way that I intended to, while Prepper mode can be classified as an "easy mode" that gives the players various buffs, easier access to certain things and events, and allows them to tweak gameplay options to their liking so they can focus on the story and play at their own pace. The issue I'm having is blocking the Prepper mode options off from Survivor Mode, but I can't seem to get it to work properly. I tried using "show = $gameSwitches.value[38];" instead of the default "show = true;" for the Show/Hide part of the plugin, but even when I'm turning that particular switch on and off nothing changes in the menu. Am I doing something wrong?
     
    #1
  2. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,245
    Likes Received:
    794
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Try:
    Code:
     
    show = $gameSwitches.value(38);
    
    With parenthesis instead of square brackets
     
    #2
    Uzuki likes this.
  3. Uzuki

    Uzuki Kawaii on the streets, Senpai in the sheets Veteran

    Messages:
    1,758
    Likes Received:
    1,214
    Location:
    Georgia
    First Language:
    English
    Primarily Uses:
    RMMV
    @Aloe Guvner It worked like a charmed! Thanks for the help!
     
    #3
    Aloe Guvner likes this.

Share This Page