MZ Help in VisuStella Message Core

I can't figure out how the text code <Position: x, y, width, height> of Message Core works inside battle.

Here is my code:
JavaScript:
$gameMessage.add('<Position: 0, 50, 200, 200>  <center> <b> First Sentence </b>  </center> \\^ \\|');

$gameMessage.newPage();
    
$gameMessage.add('<Position: 0, 50, 300, 200> <center> <b> Second Sentence </b>  </center> \\^ \\|');
    
$gameMessage.newPage();
    
$gameMessage.add('<Position: 0, 50, 400, 200> <center> <b> Third Sentence </b>  </center> \\^ \\|');

What I'm trying to do is to have each sentence a different size and coordinates. But for some reason, only the first sentence is being modified. The last two have the same coordinates and size.

I tried closing the position tag with </Position> but it didn't work.

How should I do this in JavaScript?
You're not actually using Visustella message core.
Perhaps try this?
1659161743775.png

In the event editor, show text.
1659162005471.png

Code:
<Position: 0, 50, 200, 200><center><b>First Sentence</b></center>\|\^

You will need a new Show Text for each new position following.
You're not actually using Visustella message core.
Perhaps try this?
View attachment 236125
In the event editor, show text.
View attachment 236126
Code:
<Position: 0, 50, 200, 200><center><b>First Sentence</b></center>\|\^
Yup. This works in the event editor. But how will I replicate this in Javascript?
Have you tried a new call, instead of newpage?
Have you tried a new call, instead of newpage?
Sorry I'm a noob. What do you mean by 'a new call'?
Sorry for the long wait...
I'm not that code-savy, either. So, I tried to put together something you may be able to follow/understand.
Is there any reason you need to use Script calls to show messages?
Running a script vs editor commands in this case needs a little more information.
Anyways, a call is when you are referencing some method-- in this case gameMessage
which will process the function '()'
You can usually follow the path to figure out how things work and how to use/modify them.
1659164593894.png

1659164777810.png

1659164824678.png

1659164857132.png


running newPage doesnt actually go through the process of setting up the show text window, but the text itself.
1659175770104.png

1659175820799.png

1659175918283.png




so, if you look for show text command
1659174559866.png

The show text will check for
Code:
 $gameMessage.isBusy();
1659174774533.png

Looks like line 650
1659174809471.png

While in a show text event, isBusy returns true.
1659174868658.png

1659175314732.png


until finally it sets waitmode to message.

replace
Code:
$gameMessage.newPage();
with
Code:
this.setWaitMode("message");
And use a new script call for each of the messages

If Anyone else can explain it better or more accurately, please do.
NaosoX I know understand that newpage() just adds \f at the end of the string. However, replacing $gameMessage.newPage(); with this.setWaitMode("message"); didn't work for me.

I used $gameTroop._interpreter.setWaitMode("message"); during a battle and the three messages appeared on the same message box as newPage() is removed.

Adding a \f to the messages with $gameTroop._interpreter.setWaitMode("message"); showed same results as with newPage().

I'm not sure how to do the 'use a new script call for each of the messages'?

Thanks for helping me though. If I can't make the text box appear right, I'll probably just go to the common event route where I'll just use gameVariables to display javascript values inside Show Text. Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/help-in-visustella-message-core.149936/