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!"
Copyright © 2024 BYOND Software.
All rights reserved.
ID:176842
Dec 3 2002, 5:20 pm
|
|
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!" |
In response to Mrhat99au
|
|
thanks
|
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)