How can I make a quiz?
Posted: Mon Dec 22, 2014 8:08 pm
Hello everyone. I've just signed up to the website to finally ask a question.
I'm thinking of making a video game character quiz where you get to choose from a number of questions and the game comes up with a result for you based on your decisions. I wonder if people do this with Ren'py?
https://www.playbuzz.com/jonb10/which-norse-god-are-you
I need three things: the characters, the questions and a results table.
I have the characters.
I have the questions.
What I can't seem to figure out is how to create a results table where the character with the highest number gets chosen. If I set lots of them at a time, it only selects the one closest to the top and disregards the rest of the characters. For example, if I had the most points in hunter but my mage has more points than guardians, it will jump to mage. How do I counter this?
My coding experience is extremely insufficient. If I had to try to write it without knowing what code it needed, it would probably look something like this:
This doesn't seem to work though. I thank you in advance.
I'm thinking of making a video game character quiz where you get to choose from a number of questions and the game comes up with a result for you based on your decisions. I wonder if people do this with Ren'py?
https://www.playbuzz.com/jonb10/which-norse-god-are-you
I need three things: the characters, the questions and a results table.
I have the characters.
Code: Select all
init:
$ mage = 0
$ hunter = 0
$ guardian = 0
$ assassin = 0
$ warrior = 0
Code: Select all
menu:
"Mage":
$ mage += 1
"Hunter":
$ hunter += 1
"Guardian":
$ guardian += 1
"Assassin":
$ assassin += 1
"Warrior":
$ warrior += 1
Code: Select all
if mage > hunter:
jump mage
if mage > guardian:
jump mage
if mage > assassin:
jump mage
if mage > warrior:
jump mage
if hunter > mage:
jump hunter
Code: Select all
if mage > hunter,guardian,assassin,warrior:
jump mage