I cant seem to call a common Event inside the choices and i dont know why. I tested it with Command117 and with reserve common Event and neither did work. Im sure its something stupid that i overlook.
And this is the Event
For now the Common Event only runs the "Choices" Code, but i want to loop over it multiple times in the future
Code:
const PictureTestPluginName = "PictureTest";
PluginManager.registerCommand(PictureTestPluginName, "Choices", function () {
let choices = ["Do1", "Do2", "Do3"];
$gameMessage.setChoices(choices, 0, -1);
$gameMessage.setChoiceBackground(2);
$gameMessage.setChoicePositionType(2);
$gameMessage.setChoiceCallback(function (responseIndex) {
switch (responseIndex) {
case 0:
$gameMap._interpreter.command117(1998);
break;
case 1:
$gameMap._interpreter.command117(1999);
break;
case 2:
$gameMap._interpreter.command117(2000);
break;
default:
break;
}
});
});
And this is the Event
For now the Common Event only runs the "Choices" Code, but i want to loop over it multiple times in the future