I wanted to make a very simple script (im learning javascript, i already know java and c but im having a hard time with this)
I made a simple plugin that only has this function:
the text is printed fine, and the options too, but the problem is that after choosing an option the window closes. What should i do?
I made a simple plugin that only has this function:
Code:
function showTexts(){
$gameMessage.add("choose");
$gameMessage.setChoices(['Yes', 'No'],0,-1); //setchoices(choices array, default, cancel button)
$gameMessage.setChoiceCallback(function(n) {
if (n===0){
$gameMessage.add("yes");
}
else{
$gameMessage.add("no :(");
}
});
}