So im trying to to use show choices inside a Loop, but it isnt quite working
For example i want these 3 Choices (Attack, Use item, Flee) and i want the player to click them again and again until the fight is over or he uses Flee to escape.
My code looks like this
While (true) {
$gameMessage.setChoices(
[
"Attack",
"Use Item",
"Flee"
],
0,
-1
);
// etc...
If Attack then code
If Use Item then code
If Flee then exit function
}
This document is telling me that i should use
Game_Interpreter.setWaitMode("message");
interpreter.setWaitMode("message");
but its not working.
Does anybody know what i need to do?
Edit: Also tried recursion, by calling the main function inside the if statements, but it seems it gets ignored.
For example i want these 3 Choices (Attack, Use item, Flee) and i want the player to click them again and again until the fight is over or he uses Flee to escape.
My code looks like this
While (true) {
$gameMessage.setChoices(
[
"Attack",
"Use Item",
"Flee"
],
0,
-1
);
// etc...
If Attack then code
If Use Item then code
If Flee then exit function
}
This document is telling me that i should use
Game_Interpreter.setWaitMode("message");
interpreter.setWaitMode("message");
but its not working.
Does anybody know what i need to do?
Edit: Also tried recursion, by calling the main function inside the if statements, but it seems it gets ignored.