MZ [SOLVED] VisuStella Options Core - Checking the state of an option

Hi folks,

I am using VisuStella Options Core to handle my game's settings. I would like some processes in my game to run only if a certain option is enabled in the Options Core menu. The main issue I am running into is that I want players to be able to change these settings from the main title menu, but have only managed to get this working by toggling switches, which can only be changed in-game.

I checked to see if there was some script call or plugin command to check the argument[0] value of a specific option, but there doesn't seem to be. I need a way to check the status of the option without needing a save to be loaded.

To give a specific example: my game has footstep sounds that are run via common events. I want to add an option to the options menu that adds a toggle, and when that toggle is "OFF", the process that runs the sounds can check that, and only run if it's "ON".

Is there any way to do this? The closest I could think of is maybe adding some global cross-save variable plugin, but then I have the same issue of not being able to change that outside of a loaded save with switches I can influence.

I guess my worst-case scenario is just disabling the option if no map is loaded, and then using a global switches plugin so it will carry over to other saves once set, but that seems a bit annoying.

Thanks!
I actually solved this: it turns out that the CGMZ Global Data plugin can change the global data for switches etc. without requiring an actual switch to be changed in-game, and will sync the set value on load, so I can designate a global switch in its settings, toggle that switch from the main menu as if I were in game, and the setting will carry over into any save file I load.

This thread can be closed.
Hello there, i know that the thread is closed but i am trying to fix the bug but i don't understand how did you solve it exactly....
Can i have detailed settings, edits, screenshots etc?
I would be very pleased if you help me out! It's a important project i am working on...!

Original thread: https://forums.rpgmakerweb.com/threads/solved-visustella-options-core-checking-the-state-of-an-option.171165/