Show choice

jackken123

Veteran
Veteran
Joined
Aug 24, 2017
Messages
81
Reaction score
8
First Language
Chinese
Primarily Uses
RMMV
Hi,
I got question about "show choice"

Code:
$gameMessage.add('Which');
$gameMessage.setChoices(['One', 'Two'], 0, -1);
$gameMessage.setChoiceCallback(function (choice) {
if(choice === 0){
  $gameMessage.add('This is 1.');
};
if(choice === 1){
  $gameMessage.add('This is 2.');
};
})
$gameMessage.add('Text');
won't show text.

Now I use common event to show text, and it truly did.
But how can I just show text inside if(){}

Any solution?
 

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,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top