Is there a simpler way to make multiple choices in a row?
Posted: Thu Aug 06, 2020 12:53 am
I'm currently making a mystery visual novel. At the end of each case the player will have to answer several questions in a row to come to a conclusion on what happened. Here's a simple example of how I'm doing these bits right now.
Is this a good way to do it? Is there a better/simpler way?
Code: Select all
$ correct_answer_points = 0
menu:
"What was the murder weapon?"
"Scissors":
$ correct_answer_points += 0
jump question2
"Gun":
$ correct_answer_points += 0
jump question2
"Knife":
$ correct_answer_points += 1
jump question2
label question2:
menu:
"Who was the Murderer?"
"Nozomi":
$ correct_answer_points += 0
jump final
"Maki":
$ correct_answer_points += 1
jump final
"Chika":
$ correct_answer_points += 0
jump final
label final:
if correct_answer_points == 2:
"That's right!"
else:
"That's wrong!"