obj
verb
Equip()
if(!usr.InHand)
usr.InHand = src
usr.client.screen += src
else
usr.skalert("You have something equipped already.")
var/A = obj/Tools/Pickaxe
Click()
if(usr.InHand != A)
usr<<"No pickaxe"
return
if(usr.InHand == A)
usr<<"Pickaxe!"
Problem description:
Just wondering if I set lets say when Equip is called I set usr.InHand = src what is InHand actually being set to? I know it is not a path because when I debug everything and equip Pickaxe usr.InHand says it's set to Pickaxe. How can I do like in the Click(), if(usr.InHand == A) to see if what is stored in the InHand var is a Pickaxe?