How to disable speeding up dialogues?

Hi guys!
Is it possible to disable the ability to speed up dialogues?
There are some moments in my game where the main character moves by himself and talks. It's synchronised with the background music so it's very important to me that the player won't press "Z"/space/enter to speed up the movement and dialogues.

What's the best way to do it? (hopefully without plugins)
Is there any line responsible for this ability?
Or is it better to disable the keyboard for a moment?
you can use text code to add waits into the show text command, as well as force close it and a few more things.
you can find the complete list of text codes in the help files and in the tooltip that appears if you hover the mouse over the text input window.
only scroll texts have the option to disable fast forward, but it's all handled by the same manager.
you could write a plugin that channels that variable into the show text command, if it's just for a very particular use.... shouldn't be hard, and it probably doesn't merit adding a whole dialogue plugin.

edit: I just checked, and there's a way in through the message window's own wait command.
it usually waits after every character, and the button press skips that.
you just have to redirect that to ignore the button based on your call, which can be sent to the scrolling flag, which already exists there.
basically, override the wait method, and make it look at the variable.
I wouldn't know how to write it because I only have Ace, but the structure should be the same.... I'm sure a coder of JS will understand what I mean
But still, controlling text speed is not enough, because there's a scene where the character talks while moving, so no matter what text codes I use, player still can speed up the movement which destroys the synchro with music and dialogues.
I think I need to temporary disable all possible button inputs (keyboard, mouse and controller).
i need either to disable those button inputs or just this specific game behaviour.
But still, controlling text speed is not enough, because there's a scene where the character talks while moving, so no matter what text codes I use, player still can speed up the movement which destroys the synchro with music and dialogues.
I think I need to temporary disable all possible button inputs (keyboard, mouse and controller).
i need either to disable those button inputs or just this specific game behaviour.
Disabling all buton inputs seems overkill to me. A plugin to disable fast walking and text could be easy to implement. If I have time, I may even try to do that. It could have a turn on/off command, which means not all cutscenes would have to adhere to these rules if the developer does not want that.
Is there a reason Yanfly's Message Core wouldn't work? It has Enable/DisableFastForward plugin commands to use on either side of cutscenes.
Is there a reason Yanfly's Message Core wouldn't work? It has Enable/DisableFastForward plugin commands to use on either side of cutscenes.
Didn't know that, it may be worth a try
Okay guys, I've solved the problem.

I was looking for "fastforward" in the .js files and I've found this in rpg_scenes:

JavaScript:
    Scene_Map.prototype.updateMainMultiply = function() {
        this.updateMain();
        if (this.isFastForward()) {
            this.updateMain();
        }
    };

After commenting out the middle lines, fast forward ability is gone 😉
Okay guys, I've solved the problem.

I was looking for "fastforward" in the .js files and I've found this in rpg_scenes:

JavaScript:
    Scene_Map.prototype.updateMainMultiply = function() {
        this.updateMain();
        if (this.isFastForward()) {
            this.updateMain();
        }
    };

After commenting out the middle lines, fast forward ability is gone 😉

I made a small plugin based on your solution that lets the developer enable/disable fast forwarding at any time during the game using a switch 🙂. I credited you, hope you don't mind!

you can download it here: https://opheliaenigma.itch.io/disable-fastforward-during-cutscenes-plugin-for-rpg-maker-mv
I made a small plugin based on your solution that lets the developer enable/disable fast forwarding at any time during the game using a switch 🙂. I credited you, hope you don't mind!

you can download it here: https://opheliaenigma.itch.io/disable-fastforward-during-cutscenes-plugin-for-rpg-maker-mv


Whoa, that's very nice of you.
Although you don't have to credit me. All I need is your presence when I'm gonna finally post a thread about my game 😉

Anyway, problem solved, case closed. Have a nice day everybody.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-disable-speeding-up-dialogues.140066/