Hi all,
I'm new to using RPG maker mv and am trying to send multiple messages with a dialog choice one after the other, however it currently doesn't display any of the choices it just displays each of the text boxes. It is only after all three have been clicked on that it will display the choices.
this is my current code
if anyone could point me in the right direction that would be great thanks! and if there is any more information needed please let me know.
I'm new to using RPG maker mv and am trying to send multiple messages with a dialog choice one after the other, however it currently doesn't display any of the choices it just displays each of the text boxes. It is only after all three have been clicked on that it will display the choices.
this is my current code
this.setWaitMode('message');
for (let i = 0; i < 3; i++) {
let PlayerRolls = $gameVariables.value(7)
console.log("in loop")
$gameMessage.newPage();
$gameMessage.add("Pick your roll \!");
$gameMessage.setChoices(PlayerRolls, 0, -1);
$gameMessage.setChoiceCallback(function(n) {
const index = PlayerRolls.indexOf(PlayerRolls[n]);
PlayerRolls.splice(index,1);
$gameVariables.setValue(7, PlayerRolls)
console.log(PlayerRolls) })};
if anyone could point me in the right direction that would be great thanks! and if there is any more information needed please let me know.