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
ID:261314
Dec 13 2001, 7:04 pm
|
|
In response to Tom
|
|
Thanks for that Tom. Its strange how after the problem is solved the answer always seems obvious.
-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)