Altering the Click() proc in Developer Help
obj/Button Click() var/obj/card/O.Click()
obj/card/proc/effect(mob/M) if(M) M << "Card goes BOOM!" del srcHUD/button/Destroy_cards() for(var/obj/card/O in usr) // One safe procedure to use usr in is proc. O.effect(usr)
obj/Button var/enabled=1 Click(location, control, params) //these arguments are explained in the reference //do stuff related to the button and only the button here if(enabled) Button.enabled=0
client Click(object, location, control, params) //these arguments are explained in the reference //do stuff related to the user who clicked as well as the object that was clicked ..() if(istype(object,/obj/Button)) usr<<"You clicked a button!" object<<"You were clicked, congrats!"
obj card Click() ..() //here is were the cards click procedure should be button var obj/card New //this is for the sake of making sure the object isn't null ..() card=new/obj/card Click() ..() card.Click()