Delay for NPC Dialogues and Choices

I wanted to know if there is a Plugin for MZ that would allow me to add a slight delay to the player's interactions after he has finished talking to an NPC, I need to avoid that in the rush to skip a dialogue, by mistake he interacts with the NPC again by repeating the interaction.

Same for Choices, I would like a little delay before a choice to avoid that always by mistakes a choice is selected.

I've already created a little code using a switch for interactions with NPCs, but it messes everything up a bit, so I wanted something to simplify it.
that is not as easy as it sounds, because the computer can't read your mind to know which commands are skippable and which ones should stop the player.
and that means that a plugin cannot fully automate it, it will need a mark or command on the events for this.

The idea to use a switch instead is actually a good one, so perhaps we can help you fixing what "messes up"?
In that case we need screenshots of the code and the events.
that is not as easy as it sounds, because the computer can't read your mind to know which commands are skippable and which ones should stop the player.
and that means that a plugin cannot fully automate it, it will need a mark or command on the events for this.

The idea to use a switch instead is actually a good one, so perhaps we can help you fixing what "messes up"?
In that case we need screenshots of the code and the events.
okay but first I guess I need to explain what I'm doing

The game I am creating has visual novel elements, a time system (morning, noon, afternoon, etc.), and an energy system. When the energy reaches zero, time advances, and to hide the changes I added a fade in and a fade out. During the fade-in, if you spam the key to interact, it will interact before the fade-out, and I don't want that to happen. I have done several tests and the best place to turn the switch on and off is right in the NPCs.

This is the part where I insert the switch, but considering I have to do it for every interaction it gets a little messy.

Screenshot 2025-03-24 133755.png
Hakuen Studio Message Actions lets you put javascript in text boxes so you could put a wait script in there.
Greetings,

I use Galv's Choice Pause to accomplish what you want for choice windows. Very simple plugin, you just set the amount of frames you want the pause to last and the plugin takes care of the rest.

Don't have a suggestion for you for message windows, but this should accomplish what you need for choice windows:


Happy game making,
Niniann
I was going to suggest Galv's Choice Pause plugin as well, though IIRC it works only for keyboard keys, it doesn't take into account clicking on choices with a mouse.

How are you doing the fade in and fade out - sounds like they're in a parallel event? If you don't want the player to move either or if movement isn't an issue, you can use an autorun event. That way, the player won't be to do anything during the fade in and out - interacting, moving, opening the menu, etc.
Thanks for the answers. unfortunately, I would like the game mainly played with the mouse, so Galv's plugin is not good. for the autorun event, I had thought about it, but I want the player to be able to move

Original thread: https://forums.rpgmakerweb.com/threads/delay-for-npc-dialogues-and-choices.176516/