ID:158703
Jul 13 2009, 11:39 am
|
|
How can i make a food that you eat and then gets removed form your inventory?
|
In response to Dan0971
|
|
Except isn't src the atom using the verb?
|
In response to Neos300
|
|
in this case it will be the food, you didn't use set src in world set src in oview(0) or anything like that, or i didn't at least...so it should be the item...
|
In response to Neos300
|
|
actually it should always be the item, not the person using it.
unless your putting it under mob/verb, and we defined it under the object instead. |
In response to Neos300
|
|
usr is the mob using the verb. src is the atom containing it.
Verbs are pretty much the only thing you can use usr in. There are some exceptions, like the mouse procs and a couple others. |
Food
verb
Eat()
world<<"<b><font color=red>THE FOOD HAS BEEN EATEN AND DESTROYED, HE ATE HIS VEGGGIES AND NOW HAS SUPERPOWERS-BEWARE."
del(src)