MZ [JSP] No User Input for $gameMessage

Hi all,
after searching for a long time I couldn't find a solution.
I don't want a user input, the text has to be disappeared after 1 second.

I tried:
JavaScript:
$gameMessage.add("Some Text To Show...  \\| \\^");
But after a second you have to click to continue.

Can someone help me, please ?
There are plugins that let you use Gab windows which don't freeze or respond to player input.

Alternately, you could take a screenshot of the text box and use a Show Image event command instead of an actual text window.
I'm afraid I can't, as I don't currently have MZ, and I also don't know much about programming language in Java Script in RPG Maker. But I'm sure someone will be here to help you soon. 🙂

Oh-LOL-someone arrived just as I typed this message. Never mind.
There are plugins that let you use Gab windows which don't freeze or respond to player input.

Alternately, you could take a screenshot of the text box and use a Show Image event command instead of an actual text window.
It's not a solution for what I need.
It's not a solution for what I need.
It would be more helpful if you described how it isn't.

As far as I can tell from your original post, Gab windows would do exactly what you're asking for, so I don't understand what else to suggest.
It would be more helpful if you described how it isn't.

As far as I can tell from your original post, Gab windows would do exactly what you're asking for, so I don't understand what else to suggest.
Just a helpful suggestion-you primarily use MV, so maybe gab windows work slightly different in MZ than they do in MV, given that HE is using MZ. Unless you also have it.
1. I'm sorry, I read "Grab Window" (a screenshot for what I want) and than show it as a picture. My mistake.
2. I'm writing my own plugin and don't wanna depend on someone else's plugin(s).
It's an interacting between a NPC and the player, but without pressing a player input. Texts has to be shown one after another with x second(s) showing.
Just a helpful suggestion-you primarily use MV, so maybe gab windows work slightly different in MZ than they do in MV, given that HE is using MZ. Unless you also have it.
No, I know which RPG Maker the post is tagged for, and which RPG Maker the OP has on his profile. VisuStella has a Gab Windows plugin for MZ.

It's an interacting between a NPC and the player, but without pressing a player input. Texts has to be shown one after another with x second(s) showing.
Why can't you just use the included escape codes, that you see when you hover your mouse over the Show Text window?
\| to wait, then \^ to continue without player input.
What are the code lines before and after your message add?

It has been years since I checked the script equivalents of the event commands, but if I remember correctly you'll need a bit more for the show text when using strings...
Hi all,
after searching for a long time I couldn't find a solution.
I don't want a user input, the text has to be disappeared after 1 second.

I tried:
JavaScript:
$gameMessage.add("Some Text To Show...  \\| \\^");
But after a second you have to click to continue.

Can someone help me, please ?
Hi!

I believe if you are writing the text inside a code, you should use the text codes like that:

\x1byourcode
So:
JavaScript:
$gameMessage.add("Some Text To Show...  \x1b| \x1b^");
I tried:
JavaScript:
$gameMessage.add("Some Text To Show...  \\| \\^");
To make sure, I copied this into the console (F8 during playtest -> Console tab), and it is correct. The game shows the message "Some Text To Show", waits 1 more second, then closes the message window.

If that is what you want but it is not what you're seeing, then consider providing context: when/where are you using this line in your plugin? How/when is it called in-game? Are you using any other plugins? Do you see any errors (red text) in the console?

If you want the message to show without affecting player controls, I'd suggest implementing your own, separate window with its own message queue...or, as others have mentioned, use an existing plugin for that.

JavaScript:
$gameMessage.add("Some Text To Show...  \x1b| \x1b^");
This is unnecessary here: the message substitutes backslashes when the message starts, not when the message is added to the queue.

It is necessary when storing a text-code string in a variable, e.g. \x1bN[1]. That is because backslashes are substituted before text codes like \V[x], so the variable's string has to have its backslashes pre-substituted in order to be parsed correctly.
To make sure, I copied this into the console (F8 during playtest -> Console tab), and it is correct. The game shows the message "Some Text To Show", waits 1 more second, then closes the message window.

If that is what you want but it is not what you're seeing, then consider providing context: when/where are you using this line in your plugin? How/when is it called in-game? Are you using any other plugins? Do you see any errors (red text) in the console?

If you want the message to show without affecting player controls, I'd suggest implementing your own, separate window with its own message queue...or, as others have mentioned, use an existing plugin for that.


This is unnecessary here: the message substitutes backslashes when the message starts, not when the message is added to the queue.

It is necessary when storing a text-code string in a variable, e.g. \x1bN[1]. That is because backslashes are substituted before text codes like \V[x], so the variable's string has to have its backslashes pre-substituted in order to be parsed correctly.
Oh, yeah. That is indeed true!
Is there another solution to show text in a plugin without using
JavaScript:
$gameMessage.newPage();
$gameMessage.add("Some Text...  \x1b| \x1b^");
in a plugin ofcourse.
as att_turan wrote above, that code should work.
if it doesn't then you're doing something wrong in your plugin.

which means the rest of your plugin code needs to be checked to find out why it doesn't work for your plugin.
Oké, how much wrong can it be ?
JavaScript:
    $gameMessage.setFaceImage('Actor1', 0);
    $gameMessage.setBackground(0);
    $gameMessage.setPositionType(2);
    $gameMessage.setSpeakerName('Simon');

    $gameMessage.newPage();
    $gameMessage.add("I say press...  \\| \\^");

    $gameMessage.newPage();
    $gameMessage.add("\\C[18]Red...\\C[0]  \\| \\^");
    this.setWaitMode('message');
    this.wait(120);
    $gameMessage.newPage();
    $gameMessage.add("\\C[17]Blue...\\C[0]  \\| \\^");
It's hard to give you suggestions without some of the information that caethyril asked for in post 11 about where/when/how you're calling this code.

And the presence of any other plugins would be important.

For example, you're doing this.setWaitMode() and this.wait() - are you aliasing a Game_Interpreter method, or making a new one?

Just from looking at what you've posted, it's really hard to understand why you're doing all of this via code instead of regular event commands. That's the default method for working in RPG Maker which should be used when possible.

Edit: @Garpie sent me some of the code to look at.

It's waiting because that's what newPage() does. As caethyril said above, if you just paste your actual game message code into the console, it correctly displays, waits, then disappears on its own. But having the newPage() call is creating the prompt for player input.

Personally, I would still event this system. I won't go into too much because you felt some need to take it to private messages instead of discuss it here in your thread, but...I appreciate you're making this system that is flexible by taking arguments in a plugin command, but it takes just as little time for the user to define variables to hold those arguments and then call a common event.

And then all of the window stuff will just work.
Thank you for the information. I will see what I can do with 🙂

Original thread: https://forums.rpgmakerweb.com/threads/jsp-no-user-input-for-gamemessage.157785/