ID:1533008
 
(See the best response by JEY_SENSEY.)
Code:
obj/Exams
interactable
paper
icon='icons/scenic.dmi'
icon_state="paper"
Click()
if(usr in src)
switch(input(usr,"Would you like to take the Genin Exam?") in list("Yes","Cancel"))
if("Yes")
usr.Genintest=1
return
if("Cancel")
return


Problem description:
Trying to make it whereas you click the paper and it begins the test. But clicking on it isn't working.
(usr in src) checks if usr (the clicker) is in src (the paper). Maybe you want it the other way around?

Also, you can add a Cancel button to input() popups:
input("blah blah") as null|anything in list("A", "B", "C")


However, with only two options here, you might as well be using alert():
if("Yes" == alert("Would you like to take the poopy exam?", "Yes", "No"))
usr.poopytest = TRUE

// you don't even need to use switch().
Best response
Edit Nero lacked put a tab.
obj/Exams
interactable
paper
icon='icons/scenic.dmi'
icon_state="paper"
DblClick()
if(src in oview(1))
switch(input("¿Would you like to take the Genin Exam?")in list("Yes","Cancel"))
if("Yes")
usr.Genintest=1
return
if("Cancel")
return