ID:145242
 
Code:
obj/quiz_book
verb
Take()
usr << "Are you ready?"
var/question = input("Pick")in list("Yes","No")
if ("Yes")
test = 1
if ("No")
return ..()
if test = 1
var/test = input("Question 1")in list("A","B")
switch(test)
if("A")
usr << "You are correct."
points += 1
if("B")
usr << "You are incorrect."
points -= 1
if points = 10
usr << "You passed the test!"
else
usr << "Sorry."
return ..()


Problem description: Yeah, I just put in thing's that I thought were right and it came out to this. I want it so when you pick Take, you get a pop-up sayinf pikc and asking you are you ready? and you pick yes or no. If yes you take the test and if no, you go back to playing the game. And if you get a correct answer you gain 1 pont and if you get 10 points you clear the test, and if you get wrong answers, you lose 1 point every time. What am i doing wrong

~Bamrulez

What am i doing wrong

A lot of things.

First of all, Your if() statements are not doing anything. In other words, Their not checking if the var 'question' is Yes or No.

Second, 'if test = 1' is completly wrong. should be 'if(test == 1)'

Also, a lot of your indentation is off.

You should (in my opinion) should go and read the DM Guide if you haven't already.