ID:139382
 
Code:
obj
questbutton
icon='QuestItems.dmi'
icon_state="QuestButton"
name="Quest Book"
MouseEntered()
src.icon_state="QuestButtonSelect"
MouseExited()
src.icon_state="QuestButton"
Click()
var/obj/Z=input("What option would you like to do with your quests?")in list("View Quests","Cancel Quests","Back")
if(Z=="View Quests")
var/obj/X=input("What quest info do you want to view?")in usr.quests
if(X=="Talk to Borris")
alert("You woke up in a dark crypt and have no idea where you are. You should talk to the Undead across the room, and perhaps inquire about your missing leg.","Quest Info","Okay")
if(X=="Check the Crypt")
alert("Borris says he thinks he left your missing right leg in the coffin in the south eastern part of the tomb you're in. Check there.","Quest Info","Okay")
if(X=="Return to Borris")
alert("You found your right leg in the coffin Borris mentioned. Return to him, and he may fill you in on where you are and how you got there.","Quest Info","Okay")


Problem description: This button appears on the user's screen. However, when the user clicks it, nothing happens. I pasted this code into a different enviroment, and it worked fine. Is my Enviroment bugged?

You may have forgotten to put ..() at the end of
-Click() somewhere else for /obj/questbutton
-Click() somewhere under(a child type of) /obj/questbutton, like /obj/questbutton/blah.
-client/Click() anywhere.
In response to Kaiochao
Yep, probably. Thanks =D