UniqueName

Veteran
Veteran
Joined
Nov 12, 2018
Messages
83
Reaction score
13
First Language
Russian
Primarily Uses
Other
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?
 

Hyouryuu-Na

Very very lazy
Veteran
Joined
Jun 15, 2017
Messages
1,093
Reaction score
2,753
First Language
Not English
Primarily Uses
RMMV
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:
 
Last edited:

UniqueName

Veteran
Veteran
Joined
Nov 12, 2018
Messages
83
Reaction score
13
First Language
Russian
Primarily Uses
Other
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 =(
 

Hyouryuu-Na

Very very lazy
Veteran
Joined
Jun 15, 2017
Messages
1,093
Reaction score
2,753
First Language
Not English
Primarily Uses
RMMV
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!");
 

UniqueName

Veteran
Veteran
Joined
Nov 12, 2018
Messages
83
Reaction score
13
First Language
Russian
Primarily Uses
Other
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!
 

Latest Threads

Latest Posts

Latest Profile Posts

I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.
how it looks from the top
Hike was successful guys! I made it to the top!
Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

brain broken as soon as i figure out whats wrong with my game im taking a long nap

Forum statistics

Threads
112,187
Messages
1,066,450
Members
145,786
Latest member
pswpsw
Top