Hello everybody.
I am trying to show more than four choices without implementing a built in script. In order to do this, i followed the precious instructions provided in this topic.
So, I put this script in an event:
I suppose I totally misunderstood the instructions @Tsukihime provided here, and on YouTube, forums et cetera this particulare script call is not better explained.
So, what I am asking, for myself and for all the other developers who do not pleasantly fit in the four default choices, is: can anyone explain how to correctly call instructions for every single choice from a script-called choice list?
Thank you in advance 🙂
I am trying to show more than four choices without implementing a built in script. In order to do this, i followed the precious instructions provided in this topic.
So, I put this script in an event:
@params = []
@choices = []
@choices.push("~ Back to Main Menu ~") # Fixed text.
counting = 6
for i in 1..$nameRegister.size - 6
@choices.push($nameRegister[counting]) # I pus in the choices array the strings from my array from position 6 to the last one.
counting += 1
end
@params.push(@choices)
@params.push(1)
setup_choices(@params)
# Here is the problem. When I launch the game, all the code above works and the choices are correctly displayed, but, for every choice I select, the
# following code is not read and the choices window is closed like if, for every option there was nothing to do.
if @branch[@indent] == 0
# Do nothing.
elseif @branch[@indent] > 0
# Do something.
end
@choices = []
@choices.push("~ Back to Main Menu ~") # Fixed text.
counting = 6
for i in 1..$nameRegister.size - 6
@choices.push($nameRegister[counting]) # I pus in the choices array the strings from my array from position 6 to the last one.
counting += 1
end
@params.push(@choices)
@params.push(1)
setup_choices(@params)
# Here is the problem. When I launch the game, all the code above works and the choices are correctly displayed, but, for every choice I select, the
# following code is not read and the choices window is closed like if, for every option there was nothing to do.
if @branch[@indent] == 0
# Do nothing.
elseif @branch[@indent] > 0
# Do something.
end
I suppose I totally misunderstood the instructions @Tsukihime provided here, and on YouTube, forums et cetera this particulare script call is not better explained.
So, what I am asking, for myself and for all the other developers who do not pleasantly fit in the four default choices, is: can anyone explain how to correctly call instructions for every single choice from a script-called choice list?
Thank you in advance 🙂




