Hi
I'm writing this code in a plugin.
I want to display another text message window using the $gameMessage object. The first message "Do you want to have dinner?" will show correctly including the choices of "Yes" and "No" but after I chose "Yes" or "No" the next
$gameMessage.add("This doesn't show up") just doesn't show up but the console log does display "Yes!" or "No!" indicating the other code is correct.
How do I get the message window to show up after the player makes the choice.
$gameMessage.add("Do you want to have dinner?");
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoices(["Yes", "No"], 0, -1);
$gameMessage.setChoiceCallback(function(responseIndex) {
if (responseIndex == 0) {
$gameMessage.add("This doesn't show up");
console.log("Yes!");
}
if (responseIndex == 1) {
$gameMessage.add("This doesn't show up too");
console.log("x =" + x);
console.log("No!");
}
} );
I'm writing this code in a plugin.
I want to display another text message window using the $gameMessage object. The first message "Do you want to have dinner?" will show correctly including the choices of "Yes" and "No" but after I chose "Yes" or "No" the next
$gameMessage.add("This doesn't show up") just doesn't show up but the console log does display "Yes!" or "No!" indicating the other code is correct.
How do I get the message window to show up after the player makes the choice.
$gameMessage.add("Do you want to have dinner?");
$gameMessage.setChoicePositionType(1);
$gameMessage.setChoices(["Yes", "No"], 0, -1);
$gameMessage.setChoiceCallback(function(responseIndex) {
if (responseIndex == 0) {
$gameMessage.add("This doesn't show up");
console.log("Yes!");
}
if (responseIndex == 1) {
$gameMessage.add("This doesn't show up too");
console.log("x =" + x);
console.log("No!");
}
} );