Show/Hide menu options with Yanflys Main Menu Manager

I've looked all around and can't seem to find the right information I'm looking for. Basically, I created a custom "Exit" command using Yanfly's Main Menu Manager. However I only want this option to appear on certain maps. The issue I'm running into, is I have no idea how to hide/show it, using events or script calls.

I've seen a few posts saying you can use Yanflys plugin and attach custom menu commands to switches, but no actually explanation on how to do that! Any help would be great, thanks!


Yanflys Main Menu Manager plugin: http://yanfly.moe/2015/10/17/yep-14-main-menu-manager/
Wow that has a lot of parameters! I would rather write a whole script than delve one-line-at-a-time inputs in the crappy plugin parameters UI.

It looks like it takes an eval condition; I guess you just well be using script anyway. I suppose you can make like (for one of the conditions because it's an eval)
PHP:
$gameSwitches.value(69)
or
PHP:
[1,2,3,4,5,25,69].indexOf($gameMap._mapId) !== -1
This one ^ is only on those gameMap numbers.
That did the trick! Thanks so much!
I want to exactly this, but i do not know how to "did the trick". help please
Necro-post notice: JuanArturo

I suggest you start a new thread stating exactly what your problem is, and what you have done to try and resolve it. Your query may well not be identical to this one.

Moderator note: Closing[mod][/mod]

Original thread: https://forums.rpgmakerweb.com/threads/show-hide-menu-options-with-yanflys-main-menu-manager.76620/