Creating dialogue script-wise

Dreamsavior

Villager
Member
Joined
Mar 31, 2016
Messages
12
Reaction score
62
First Language
Not English
Primarily Uses
RMMV
Hello,


I tried to create a dialogue using script instead of using "Show Text" feature in GUI. This is needed in my project to create random dialogue that depend on certain stats and variable.


So I tried to use series of scripts call method ... but i the results is nothing like in my mind.


This is expected result:

c1.png


and then ...


c2.png



This is the script that I use in hope to achieve that :


c5.png


$gameMessage.setFaceImage("Actor1", 0);
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.add("Text at bottom");
$gameMessage.newPage();
$gameMessage.setFaceImage("Actor1", 1);
$gameMessage.setBackground(0);
$gameMessage.setPositionType(0);
$gameMessage.add("Text at top");








... but ...unexpectedly ... this is the actual result of that script call :

c3.png


.. and then


c4.png



Please help, Where did i do wrong?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Don't use new page.  You would do that with two event commands, so add ALL the script commands for the first one, and then all the script commands for the second one.  Hint - I think you need a wait_for_message in there somewhere.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top