RPG Maker Forums

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:

@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

 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 :)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,539
Members
137,834
Latest member
EverNoir
Top