MZ Prevent player induced speed up?

While trying to make a cutscene for my game, I have run into a rather annoying issue.

The cutscene in question takes place during a car drive, in which the actor is replaced by a car. The car is driving in one direction the entire cutscene, down a straight road. The drive is intended to be interrupted midway through via car crash at a specific point in the road.

The issue here is that player input is a possibility. I have set all dialogue to automatically advance via \| and \^ commands in the dialogue boxes. However, while playtesting, I have run into an issue. If I hold down "Enter" during a cutscene, the characters will move faster, but the dialogue boxes will still take the same amount of time to finish. The issue here is that, if the player holds down Enter, the player character will move much farther than I want them to move. I have attached an image to demonstrate this issue.

1682982447048.png


How do I prevent the player from messing up the cutscene? Is there a native feature to disable the ability to speed up cutscenes?

I appreciate any possible help. I apologie if this was placed in the wrong forum area.
I believe you'd need a plugin for this, albeit a simple one, so I've moved the thread. No worries!

I've moved this thread to JS Plugin Requests (from MZ Support). Thank you.

I think this should disable the map's fast-forward behaviour (i.e. double-speed updates while "ok" is held during a non-Parallel event):
JavaScript:
/*:
 * @target MZ
 * @plugindesc Disable fast-forward behaviours.
 * @help Terms of use: free to use and/or modify for any project, no credit required.
 */

// Override! Disable map fast-forward (2x scene updates per frame).
Scene_Map.prototype.isFastForward = function() { return false; };

// Override! Disable message skipping.
Window_Message.prototype.updateShowFast = function() {};
Copy+paste into a text editor (e.g. Notepad), Save As -> File Type: All Files, Filename: whateverYouLike.js. Then import as a plugin~
Gonna toss out a small edit of caethyril's plugin, in case you only want to disable the fast-forward behavior in specific instances, rather than all the time.

This will make it so that if a specified switch is ON, then fastforward will be disabled. When the switch is OFF, fast-forward will behave as it normally does:
JavaScript:
/*:
 * @target MZ
 * @plugindesc Disable fast-forward behaviours.
 * @help Terms of use: free to use and/or modify for any project, no credit required.
 */

(() => {
    // Edit this line to reflect ID of the switch you want to use to disable fast-forward.
    const switchId = 1;

    const _Scene_Map_isFastForward = Scene_Map.prototype.isFastForward;
    Scene_Map.prototype.isFastForward = function() {
        return !$gameSwitches.value(switchId) && _Scene_Map_isFastForward.call(this);
    };

    const _Window_Message_updateShowFast = Window_Message.prototype.updateShowFast;
    Window_Message.prototype.updateShowFast = function() {
        if ($gameSwitches.value(switchId)) {
            return;
        }
        _Window_Message_updateShowFast.call(this);
    };
})();

That way, you could flip on the switch at the beginning of your cutscene, and turn it off again afterward. You'll want to edit the number 1 in this line, to reflect the actual ID of the switch that you want to use (without any leading zeroes):
JavaScript:
const switchId = 1;
Thank you, this did in fact solve my issue! Much appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/prevent-player-induced-speed-up.157134/