[MZ] Stop Textbox from holding the game

Hi all,

is there any way to tell a specific textbox message, not to hold the game in MZ?

What I mean is:
* you can't move with a textbox open
* you can't open a menu
* you can't trigger "On Hero Touch" events
* etc.

I have some passive textboxes that appear above the heads of your party members. Your party members chitchat randomly from time to time.
But the player shouldn't be affected by that.

I made a plugin working that allows you to continue walking while the textbox is open. But I can't figure out everything else (HeroTouch, Menu, etc).

So ... Is there a way to tell a textbox, not to pause everything?

Thank you!
Thank you!

I would prefer a solution to temper with the actual textbox, instead of adding a new system.
The suggestion seems to be similar to the SideChatter, bringing in messages at the side of the screen. That wouldn't be matching the style of my other message boxes (textboxes that appear above the heads / Galv Message Styles).
There is a Caethyril script that makes the textbox a parallel event. It's M33 or Q33 or something.

Thank you! If I got it right, it changes the behaviour for all text messages that are handled in a Parallel Process, which would be a little too much. I didn't see any way to turn it on and off on the fly, maybe I missed something.

For now I found Galvs MV Timed Message Popups and use it with FOSSIL.

It shows the message immediately, instead of appearing letter by letter, which is a little drawback. Also an MZ solution without FOSSIL would be great.

So, if someone has an idea, I would be happy to hear it!
Thank you! If I got it right, it changes the behaviour for all text messages that are handled in a Parallel Process, which would be a little too much. I didn't see any way to turn it on and off on the fly, maybe I missed something.
You could probably just wrap the function in a conditional statement if($gameSwitches.value(x)){

Code

}

Where x is the switch that needs to be on, but you can ask in caethyril's thread to make sure.
@Zia_ - I found this small plugin by triacontane:
Basically, try using \UL in relevant Show Text commands? Looks like it just changes the interpreter wait mode, so I think Show Text commands will still have to wait for the message to be free. That's one reason many plugins for non-interrupting-messages (a.k.a. "gabs") define their own window for it.

@AquaEcho - for something like that I'd instead suggest editing the isParallel function in my plugin code, to add a check for the chosen switch, e.g.
JavaScript:
    const isParallel = function(interpreter) {
        return SceneManager._scene instanceof Scene_Map
            && interpreter !== $gameMap._interpreter
            && $gameSwitches.value(123);    // added
    };
That's the function my plugin uses to decide how to handle each Show Text command.
@Zia_ - I found this small plugin by triacontane:
Basically, try using \UL in relevant Show Text commands? Looks like it just changes the interpreter wait mode, so I think Show Text commands will still have to wait for the message to be free. That's one reason many plugins for non-interrupting-messages (a.k.a. "gabs") define their own window for it.
Gave it a try. It does in fact proceed futher parts of the event without waiting for the textbox to close.

But it doesn't affect the player movement. You can't move until the textbox is gone.
This might be worth looking at:
Try this out @Zia_

Try the plugin I just made, and put \MOV ahead of a Show text. For example: \MOVNow we walk and talk!

Pairs nicely with galv's Messages Styles MZ plugin


Of course, you can then add this at the end and your message will even go away on its own \|\|\^

Code:
//-----------------------------------------------------------------------------
//  MessagesWithoutWaitingMZ for RPG Maker MZ by hatesec
//-----------------------------------------------------------------------------
//  For: RPGMAKER MZ
//  MessagesWithoutWaitingMZ.js
//-----------------------------------------------------------------------------
// Credit Hatesec, Lebal Drocer, Inc.
// https://lebal-drocer.com
//-----------------------------------------------------------------------------

/*:
 * @plugindesc (v.1.0) Allows the player to walk around during any show text event by typing \MOV in the show text message window.
 * @help Use the escape code \MOV in the message window to allow player movement during the display of that message.
 */

(function() {

    const _Window_Message_startMessage = Window_Message.prototype.startMessage;
    Window_Message.prototype.startMessage = function() {
        this._allowPlayerMovement = false;
        const texts = $gameMessage._texts.map(text => {
            if (text.includes("\\MOV")) {
                this._allowPlayerMovement = true;
                return text.replace("\\MOV", "");
            }
            return text;
        });
        $gameMessage._texts = texts;
        _Window_Message_startMessage.call(this);
    };

    const _Window_Message_updateMessage = Window_Message.prototype.updateMessage;
    Window_Message.prototype.updateMessage = function() {
        if (this._allowPlayerMovement) {
            this._showFast = true;
            this._lineShowFast = true;
        }
        return _Window_Message_updateMessage.call(this);
    };

    const _Game_Player_canMove = Game_Player.prototype.canMove;
    Game_Player.prototype.canMove = function() {
        if ($gameMessage.isBusy() && SceneManager._scene._messageWindow._allowPlayerMovement) {
            return true;
        }
        return _Game_Player_canMove.call(this);
    };

})();
@hatesec
THIS PLUGIN IS SCRUMPTIOUS OML
Do you need credit if I were to use it in my game? :3
Glad you like it!

I don't need credit, but it would be nice :>
Glad you like it!

I don't need credit, but it would be nice :>
Alrighty! I'll add it in, tysm :3
@hatesec
What a great plugin! Create a topic just for it, my friend.

It can replace Galv's thread just fine!

The only problem you might have is that when the message is still open, others won't start.
Try this out @Zia_

Try the plugin I just made, and put \MOV ahead of a Show text. For example: \MOVNow we walk and talk!

Pairs nicely with galv's Messages Styles MZ plugin


Of course, you can then add this at the end and your message will even go away on its own \|\|\^

Code:
//-----------------------------------------------------------------------------
//  MessagesWithoutWaitingMZ for RPG Maker MZ by hatesec
//-----------------------------------------------------------------------------
//  For: RPGMAKER MZ
//  MessagesWithoutWaitingMZ.js
//-----------------------------------------------------------------------------
// Credit Hatesec, Lebal Drocer, Inc.
// https://lebal-drocer.com
//-----------------------------------------------------------------------------

/*:
 * @plugindesc (v.1.0) Allows the player to walk around during any show text event by typing \MOV in the show text message window.
 * @help Use the escape code \MOV in the message window to allow player movement during the display of that message.
 */

(function() {

    const _Window_Message_startMessage = Window_Message.prototype.startMessage;
    Window_Message.prototype.startMessage = function() {
        this._allowPlayerMovement = false;
        const texts = $gameMessage._texts.map(text => {
            if (text.includes("\\MOV")) {
                this._allowPlayerMovement = true;
                return text.replace("\\MOV", "");
            }
            return text;
        });
        $gameMessage._texts = texts;
        _Window_Message_startMessage.call(this);
    };

    const _Window_Message_updateMessage = Window_Message.prototype.updateMessage;
    Window_Message.prototype.updateMessage = function() {
        if (this._allowPlayerMovement) {
            this._showFast = true;
            this._lineShowFast = true;
        }
        return _Window_Message_updateMessage.call(this);
    };

    const _Game_Player_canMove = Game_Player.prototype.canMove;
    Game_Player.prototype.canMove = function() {
        if ($gameMessage.isBusy() && SceneManager._scene._messageWindow._allowPlayerMovement) {
            return true;
        }
        return _Game_Player_canMove.call(this);
    };

})();

Original thread: https://forums.rpgmakerweb.com/threads/mz-stop-textbox-from-holding-the-game.169089/