Temporarily Disabling The Menu

There's a part in my game that is basically a scripted sequence, but while this sequence is happening, I don't want the player to be able to access the menu. Instead, when the player clicks X I want a text box to appear. And of course when the sequence is over, to have X=Open Menu return.

Is there any way to do this?
Make a new event. Have a switch turn off and on this event. Have it be a Parallel process. Create a new event command. Go to the 3 page under System Settings and click Change Menu Access, Disable.

Then right below the event command create another.

A Conditional branch. Tell this Conditional Branch that when you are pressing X.

Then right below it put the text box you want to appear or whatever you desire.

Leave below else empty!
Make a new event. Have a switch turn off and on this event. Have it be a Parallel process. Create a new event command. Go to the 3 page under System Settings and click Change Menu Access, Disable.

Then right below the event command create another.

A Conditional branch. Tell this Conditional Branch that when you are pressing X.

Then right below it put the text box you want to appear or whatever you desire.

Leave below else empty!
Well, it certainly makes it so that I can't access the menu, so the first part works. But the conditional branch doesn't make the text show up. Or do anything I tell it to, in fact. One way I test these things is to add in an SE so I know for sure if it works or not.
It will work. You have your buttons configured wrong I believe and you may be setting up and pressing the wrong one.

Try it using a button you know like Q and W. Or B that should be the menu button and will activate on you physically pressing X or Numpad0.
It will work. You have your buttons configured wrong I believe and you may be setting up and pressing the wrong one.

Try it using a button you know like Q and W. Or B that should be the menu button and will activate on you physically pressing X or Numpad0.
It worked!

...But now there's the problem of turning the menu back on. I created another event to test this out, a below characters action button event, that turns off the switch I used (which I called "CUTSCENE" since it's a switch I can recycle throughout the game), as well as enables the menu. When I clicked that, it stopped the text box from appearing when I click X, but the menu doesn't appear either.
Because you need to make the other event page turn back on Menu Access.

It will remain disabled until you manually turn it back on.

(edit)

Make sure that event that you made that enables the menu is being activated.

It is best to use it as a parallel process to or action button if you make sure to press the action button.

But I would typically just make 1 event, two pages.

Page 1 to have switch off that says to enable.

Page 2 has my switch on that tells it to disable.

and contain your text box and what not.

The one with the switch on has to be on the furthest right of pages in your event.
Because you need to make the other event page turn back on Menu Access.

It will remain disabled until you manually turn it back on.
I did have it turned on with the event that turned off the switch, but yeah putting that into the other event definitely worked. Thank you so much! One of the most difficult parts of my game to develop thus far is so close to being done ^ ^ And this was definitely a huge part of it!
your welcome  🙂

Original thread: https://forums.rpgmakerweb.com/threads/temporarily-disabling-the-menu.35866/