Customization of Yanflys Option Core Plugin

Hi there,

I have no experience with JS, so I'm hoping some kind coder can help me 🙂

I use Yanfly's option core plugin and I'd like to make some custom options in there. How do I use this plugin, what are the commands I need?

I created a new option to show where the player can change the map and named it "changemap". (this is just an example, call it a test - I want to add more options later as soon as I know how to do it)

Unbenannt.png


How do I call this ingame in an event?
I need something like this:
If "changemap" is ON: do XY
If "changemap" is OFF: do YZ.

But as "changemap" is no variable and no switch (of course it isn't), I don't know how to call it in an event.

What commands do I need?

Really appreciate any help 🙂
You get the option using the ConfigManager. So to get the option value with the symbol "changemap" you simply make the script call
Code:
ConfigManager.changemap
So for a Conditional Branch you should use Script from page 4 to call ConfigManager.changemap

I hope this helps 🙂
Awesome! Thank you! 🙂
I even don't know what ConfigManager is so it would have never come to my mind to try this.
It works perfectly!

So, if I create another custom symbol in this options plugin, I always call it with ConfigManager?
Yes exactly. The ConfigManager is the Manager of the Configuration/Options after all 🙏
Ok thank you very much 🙂

Original thread: https://forums.rpgmakerweb.com/threads/customization-of-yanflys-option-core-plugin.109910/