ID:262629
 
Code:
obj
genin_paper
icon = 'obj.dmi'
icon_state = "testpaper"
verb
Take_Test()
set category = "Commands"
set src in oview(1)
if(usr.teston==2)
usr << "You cannot write the test now"
if(usr.teston==1)
usr << "You cannot write the test now"
else
switch(input("What is the main use of Taijutsu?", "Genin Test") in list ("Fist to Fist Combat","Long Range Attacks","To confuse the opponent using illusion techniques"))
if("Fist to Fist Combat")
usr.genin_mark+=1
else


Problem description:For where theres the first 2 "if"'s after that there is an else. What i want it to be is if(usr.teston==0) you cant take test but i get some stupid error since i have the switch input thing after that would there be a way to make it the same as the if because now it will say you cant take the test right now then it will auto start the test =\ help?

       if(!usr.teston)
usr<<"You can't take the test now!"
return //Since there's a 'return', there's no need to use 'else'.
switch(...)
if("...")
//etc...
In response to Mega fart cannon
thx ^^