OK. Im trying to get it to work so that if a bomb is in the persons inventory it will tell them when they run bomb check. Heres what I have.
mob
verb
bombcheck()
set category = "Commands"
if(/obj/bomb in usr.items)
usr << "There is a bomb in there?!"
return
else
usr << "Good, theres no bomb."
Its got something to do with /obj/bomb. It cant find it in the usr.items even though there is one in there.
Note: The bomb was picked up off the map using a differnt verb.
-DogMan
/obj/bomb is a prototype, but you want to check for an instance of that type. Try:
if(locate(/obj/bomb) in usr.items)