MZ Cutscene/Choice Menu Pause - Allow for pausing during dialogue and choice scenes?

Hey there, I'd like to ask for an MZ plugin that would allow for the player to pause the game during "Show Text..." and "Show Choices..." events when they press ESC.

A lot of my project includes branching dialog and cutscenes, and the game can't really pause the game during them. By default, ESC just moves the dialogue along and the choice screen it defaults to the cancel choice (or does nothing if cancel is disallowed).

Basically, I wish the Scene_Menu pause menu to be accessible at any time the player presses ESC.

EDIT 05/01/2024: SOLVED
CallMenu.js by Krimer is exactly what I was looking for, it's compatible with MZ out of the box.
The function spanning from lines 114 to 119 can be deleted as that function's not needed for MZ and may cause compatibility issues with other choice plugins.
Code:
(function() {
    var _Scene_Message_updateInput = Scene_Message.prototype.updateInput;
    Scene_Message.prototype.updateInput = function() {
        if (Input.isTriggered('cancel')) {
            SceneManager.push(Scene_Menu);
        } else {
            _Scene_Message_updateInput.call(this);
        }
    };
})();

Maybe works (Untested)
Code:
(function() {
    var _Scene_Message_updateInput = Scene_Message.prototype.updateInput;
    Scene_Message.prototype.updateInput = function() {
        if (Input.isTriggered('cancel')) {
            SceneManager.push(Scene_Menu);
        } else {
            _Scene_Message_updateInput.call(this);
        }
    };
})();

Maybe works (Untested)
Appreciate you giving this a shot! Unfortunately it only works momentarily.
I tried swapping "Input.isTriggered" with "Input.isPressed" but the result was still the same: there's a small pocket of time where the game gets paused in dialogue, but then if it's pressed too late or in too quick succession it skips the text, it's also doesn't do anything with Show Choice screens.
Try this if dont work maybe some user can try to modify to help you

Code:
(function() {
    var _Scene_Message_updateInput = Scene_Message.prototype.updateInput;
    Scene_Message.prototype.updateInput = function() {
        if (this.isBusy()) {
            _Scene_Message_updateInput.call(this);
        } else if (Input.isTriggered('cancel')) {
            SceneManager.push(Scene_Menu);
        } else {
            _Scene_Message_updateInput.call(this);
        }
    };
})();
Try this if dont work maybe some user can try to modify to help you

Code:
(function() {
    var _Scene_Message_updateInput = Scene_Message.prototype.updateInput;
    Scene_Message.prototype.updateInput = function() {
        if (this.isBusy()) {
            _Scene_Message_updateInput.call(this);
        } else if (Input.isTriggered('cancel')) {
            SceneManager.push(Scene_Menu);
        } else {
            _Scene_Message_updateInput.call(this);
        }
    };
})();
Unfortunately I tried both this and the previous code on a clean project, neither one of them do anything. The previous results I was getting where from an eventing workaround I tried (parallel process that checks for a switch once dialog is initated, and if the ESC key is pressed then it brings up Scene_Menu).

I'm really stumped with this
try this plugin made for MV but seems to work in MZ.
as it require much more coding to pause the menu.

here is the thread link to it.

so it should work just fine the way you want it too.

I also made a tiny condition to make this work from someone else to
pause the game, but forgot where it is, you might be able to find it,
but its bound to a switch when you press the button ^^

but I think this is more useful for you.
try this plugin made for MV but seems to work in MZ.
as it require much more coding to pause the menu.

here is the thread link to it.

so it should work just fine the way you want it too.

I also made a tiny condition to make this work from someone else to
pause the game, but forgot where it is, you might be able to find it,
but its bound to a switch when you press the button ^^

but I think this is more useful for you.
Thank you so much for bringing this to my attention! There's a few incompabilities with some of the existing choice plugins I was using but all things considered this is a damn near perfect fit.
I couldn't be happier, thanks again for pointing me in the direction of this 🙂
if there is a compabitlity issue, there are 2-3 examples for it, so you
could try to alter this with your choice menu to see if it works.
as I don't have MZ or choice you refering too, it can be altered if the
code is open, or ask for request to add it for you.

but it's the cleanest way you can get.
hope you get it to work, else see who can help.

good luck with your project.
if there is a compabitlity issue, there are 2-3 examples for it, so you
could try to alter this with your choice menu to see if it works.
as I don't have MZ or choice you refering too, it can be altered if the
code is open, or ask for request to add it for you.

but it's the cleanest way you can get.
hope you get it to work, else see who can help.

good luck with your project.
Thank you so much! The plugin author was kind enough to check the code and point out which lines needed changing to make it all compatible. I'll edit my original post to mention the solution.

Original thread: https://forums.rpgmakerweb.com/threads/cutscene-choice-menu-pause-allow-for-pausing-during-dialogue-and-choice-scenes.164454/