Need help with YEP_MainMenuManager

Hey Everyone.

So I really wanted to use the YEP_MainMenuManager to create some custom Menu Options.
I used the preset Common Event pages to create them.

The problem is however, that some of these options are supposed to be enabled only at specific points.
And since I am not well versed with JavaScript aswell as the command line requiring True/False Code I don't even know
where to begin.

I am talking about the following lines within the plugin (The Show and Enabled lines):

Menu 81 Name "x"
Menu 81 Symbol common event
---> Menu 81 Show True
---> Menu 81 Enabled True
Menu 81 Ext 115
Menu 81 Main Bind this.callCommonEvent.bind(this)
Menu 81 Actor Bind

If possible, instead of being statically enabled by "True", I want it to be enabled whenever a certain Switch is turned on.
show will be true if you want it to show, false to hide it.
enable = true to let the player make use of it, false to disable it.

if false, they cant use it without a scriptcall turning it to true (ON)

you can also use eval by using a switich:
$gameSwitches.value(47) will the player be able to use it when switch 47 is ON,
otherwise, its disabled.

$gameVariable.value(4, 6) will gamevariable 4 ith value 6 or higher to be able touse it,
otherwise they cant use it.

same thing can be used for show if switch is ON, or combine them, switch 50 to show, 51 to enable.

that entirely up to you, there are other eval's you can use on them, but for always use,
put both on true to use., if enable is false, I think there is a scriptcall to make it true.
Excellent! This was exactly what I was looking for.
Thank you very much for your quick help!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-yep_mainmenumanager.121054/