Hello, I was wondering if anyone could help me with the visustella mz options core plugin? I’m trying to make an audio setting where the player can switch between a 16-bit soundtrack and CD-quality soundtrack, and if they select the CD soundtrack, a switch on every map will activate that changes the BGM of the map to the alternate song. is there a way to activate a switch when the right option (cd audio) is picked, and deactivate the switch when the left option (16-bit audio) is picked? Thank you so much!
Sorry if i posted this in the wrong area
This thread was moved from RPG Maker MZ Support to JavaScript/Plugin Support.
You can reference the option setting value with:
ConfigManager['symbol'] == X
Replace symbol (keep the '') with what reads in your VS Options Core settings and then X with the value. If you've copy pasted from the Options Core settings stuff with two choices, I think the values are just like 0 or 1. So you can put the musics under those conditionals, or just have the switch flipped depending on that.
If you want it to happen mid-map, you'll want a plugin that runs common event when you leave the menu or a parallel event that checks the value. If you want the music change to happen while inside the menu, I think you'll need a more advanced plugin.
You don't need a switch.
Where you normally would put your check for the switch, conditional branch -> switch 1 On, instead do a conditional branch -> script:
ConfigManager.yoursymbol
With the else branch enabled.
yoursymbol needs to be replaced by the unique symbol you used in the plugin parameters when setting up your custom option. If the player sets the option in the menu, this script call will return true, false if not and it'll run the else branch.
Edit:Ninja'd
Hi, I am so sorry for the late reply!
Thank you so much for your answers. However, I tried to do both of the things in these replies (the conditional branch and the ConfigManager) and the audio would not switch for me. I just copied a different setting from the options list to use as the option. If possible, are there any other ways to do this or am I doing something wrong? Sorry, I am not very technically experienced with rpg maker.
You should post screenshots of what you tried to do.
Hello, my apologies for the late reply!
I actually ended up figuring it out—after trying Slaughty’s conditional branch strategy again, I realized I never made the event parallel, that’s why it wasn’t working
Thank you so much for your patience and helpful replies!