MV Prevent the player from continuing the dialogue

I have a menu created through general events. It allows you to save the game during dialogues and correctly returns to them when loading.
However, when activating the menu buttons, this also affects the dialog box - the dialog begins to scroll forward.

I would like it so that when the player goes to the menu during a dialogue, pressing buttons does not cause the dialogue to move forward. Is there a script that prohibits the possibility of activating the dialogue further?

And so that when you close the menu, you can continue the dialogue further, of course. 😢
Spoiler: example
изображение_2023-09-26_214734040.png
depending how you set it up, if you use a switch to toggle ON and OFF,
there might be a way to "pause" the dialogue (gameMessage) to hold
untill the switch is OFF, but it depends on your build.
depending how you set it up, if you use a switch to toggle ON and OFF,
there might be a way to "pause" the dialogue (gameMessage) to hold
untill the switch is OFF, but it depends on your build.
what would the full script command look like to turn off the dialog?
What does your menu event looks like? How is it being created and how does it listen to user input?
What does your menu event looks like? How is it being created and how does it listen to user input?
Ah thanks. I feel like I understand what the problem is... Your parallel common event is listening for user input, but so is your dialogue box. So when you hit Enter, your dialogue continues forward and your save screen or whatever menu option you chose open up as well.

I can't think of an easy way to "pause" the dialogue so the focus is fully on the menu options.

Do you need to have all the menu options? If your only goal is to have players be able to save, then maybe pressing Escape can just bring up the save screen instead of the menu options list?
Do you need to have all the menu options? If your only goal is to have players be able to save, then maybe pressing Escape can just bring up the save screen instead of the menu options list?
The fact of the matter is that it doesn’t. There are settings, an exit, and a separate window where you can view characters through events.
The simplest option is to add other buttons to interact with the menu, but this can be very unintuitive for the player. 😩
I would do something like this:

Whenever you have an event that spits out a bunch of dialogue, maybe turn a SWITCH DIALOGUE ON at the beginning of these events, and turn SWITCH DIALOGUE OFF at the end of these events.

Then in your parallel common event, you could do something like:

Code:
If Button Cancel is triggered
{
  if SWITCH DIALOGUE ON
  {
   SceneManager.push(Scene_Save)
   }
  else
  {
   DO YOUR FULL MENU
  }
}

That way you can still save by pressing [Escape] during the dialogue, and when you are out of dialogue, you get your full menu. Just remember to turn the switch dialogue off at the end of these dialogue events.
there is a easy fix for it though, require a small plugin probably to listen.

I made a simple plugin for you, just add it below any message as this overwrite
the function.

now you just need to change the Switch ID (which I set to 100).
whenever you open the menu, the message cannot continue with
OK, Z, X, ESC or whatever.

when you close the menu, make sure the switch is OFF to allow the message
to continue.

its basic, so it does what you want.
I made a simple plugin for you, just add it below any message as this overwrite
the function.
Exactly what is needed! The switch is perfectly integrated into the menu 😂

Original thread: https://forums.rpgmakerweb.com/threads/prevent-the-player-from-continuing-the-dialogue.161495/