I have created my own plugin script call, I want simply want to Show Choice and when the player picks one to do a Show Text but when I run this I get "this.setWaitMode is not a function"
I've looked at forums and I have no idea how to tackle this problem.
Any help to solve it would be much appreciated.
this is my code:
Code:
// Set choices to A, B, C; default C, no cancel
$gameMessage.setChoices(['A', 'B', 'C'], 2, -1);
$gameMessage.setChoiceBackground(0);
$gameMessage.setChoicePositionType(2);
$gameMessage.setChoiceCallback(function (responseIndex) {
if (responseIndex === 0) {
$gameMessage.add("1");
this.setWaitMode('message');
}
else if (responseIndex === 1) {
$gameMessage.add("2");
this.setWaitMode('message');
}
else if (responseIndex === 2) {
$gameMessage.add("3");
this.setWaitMode('message');
}
});
this.setWaitMode("message");