Hi there, just wondering how one would go about programming a simple quiz. My game starts with a personality assessment but since variables won’t save from page to page the end result is that only the final question of the test is counting. I have some programming experience and tried messing around with sending users to a page that would then set the previous choice, but quickly realized that that would never work out since how would you account for someone choosing only 3 of one characters corresponding answer instead of 2 etc etc, I hope that makes sense. For context the personality assessment is 10 questions and depending on your answers you will get a starting character suggested for you. There’s 6 starting characters. Each question has 6 answers and each answer corresponds to a character. The basic logic was to be if characterAPoints > characterB through FPoints then the game would suggest character A for you. Just can’t get this to work though without CS saving the values of the choices, which it isnt for some reason. I did create the variables in start_up and try to use +1 per answer but yeah it just isn’t working, it’s only counting the last answer and picking the character based on that. Any help would be appreciated or an explanation as to how it works on the backend that I could work with. Thanks in advance. I also did try searching for this for on the forum and through google but couldn’t find any answers so if there’s other threads that already tackle this kindly point me in that direction. Thanks again.
1 Like
I’m doing this on my phone.
*temp AP 0
*temp BP 0
*temp CP 0
*temp DP 0
*temp EP 0
*temp FP 0
Who do you like?
*fake_choice
#Char A
*set AP +1
#Char B
*set AP +1
#Char C
*set CP +1
#Char D
*set DP +1
#Char E
*set EP +1
#Char F
*set FP +1
Who do you like again?
*fake_choice
#Char A.
*set AP +1
#Char B.
*set BP +1
#Char C.
*set CP +1
#Char D.
*set DP +1
#Char E
*set EP +1
#Char F
*set FP +1
Ask your questions using the logic above
*if AP >= BP
*if AP >= CP
*if AP >= DP
*if AP >= EP
*if AP >= FP
You should pick character A.
*goto pickchar
*if BP >= CP
*if BP >= DP
*if BP >= EP
*if BP >= FP
You should pick character B.
*goto pickchar
*if CP >= DP
*if CP >= EP
*if CP >= FP
You should pick character C.
*goto pickchar
*if DP >= EP
*if DP >= FP
You should pick character D.
*goto pickchar
*if EP >= FP
You should pick character E.
*goto pickchar
You should pick character F.
*goto pickchar
If I understood you correctly…
2 Likes
thank you so much! I’ll give this a try. Appreciate you taking the time. Been working on this for 8 hours now lol will update afterward and thanks again
1 Like
All set! thanks a bunch!
2 Likes
