MV How to prevent $gameMessage.add() texts from stacking?

Let's say I need to make two characters talk via plugin function (not via script call).
for example, the code is this:

JavaScript:
$gameMessage.setFaceImage('Actor1', 1);
$gameMessage.add("I love pudding!");
$gameMessage.setFaceImage('Actor1', 2);
$gameMessage.add("I hate pudding!");
I need both of them to say their lines but instead, 2 lines stack up and go to the second character resulting in him saying that he loves and hates pudding at the same time.
I tried using clear() function
JavaScript:
$gameMessage.setFaceImage('Actor1', 1);
$gameMessage.add("I love pudding!");
$gameMessage.clear();
$gameMessage.setFaceImage('Actor1', 2);
$gameMessage.add("I hate pudding!");
But it just deletes the first message. Is there a way to make 2 separate messages?
Are you trying to make 2 separate messages appear together?
Edit: Oh, I get what your issue is now ^^;
Take a look at this thread:
Are you trying to make 2 separate messages appear together?
Edit: Oh, I get what your issue is now ^^;
Take a look at this thread:
Oh tnx that newPage() command actually separates them. Tho it doesn't do anything for the face image or actor's name =(
Okay, I think I found a solution for you.
First you have to download Shaz's More Escape codes plugin from here: https://forums.rpgmakerweb.com/index.php?threads/more-escape-codes.46760/
Rename it to MoreEscapeCodes .js if it's not named so.
This plugin changes face graphics based on a new escape code which is \f[actorId, index] here actor Id determines the face graphic of the actor. So if your actor 1 is Harold, then your code will be:
Code:
$gameMessage.add("\\f[1,1]I love pudding!");
$gameMessage.newPage()
$gameMessage.add("\\f[1,2]I hate pudding!");
Okay, I think I found a solution for you.
First you have to download Shaz's More Escape codes plugin from here: https://forums.rpgmakerweb.com/index.php?threads/more-escape-codes.46760/
Rename it to MoreEscapeCodes .js if it's not named so.
This plugin changes face graphics based on a new escape code which is \f[actorId, index] here actor Id determines the face graphic of the actor. So if your actor 1 is Harold, then your code will be:
Code:
$gameMessage.add("\\f[1,1]I love pudding!");
$gameMessage.newPage()
$gameMessage.add("\\f[1,2]I hate pudding!");
Hey this actually works! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-prevent-gamemessage-add-texts-from-stacking.132142/