ID:176842
 
How do you make it so when you use a verb the item disapears after?
This is the code im using

Eat()
src.hp+=20
usr <<"You eat your herb and gain 20 HP!"
Eat()
set src = usr.contents
if(usr.hp+20>usr.maxhp)//if usr.hp goes over, just set it to maxhp!
usr.hp = usr.maxhp
else
usr.hp+=20
usr <<"You eat your herb and gain 20 HP!"
del(src)
In response to Mrhat99au
thanks