obj
Herb
icon = 'Healing items.dmi'
icon_state = "herb"
verb
Eat()
if (src.loc == usr)
if(usr.hp>=usr.maxhp)
usr << "You don't need this!"
return
else
usr.hp += 50
usr << "You have gained 50 HP."
if(usr.hp>usr.maxhp)
usr.hp = usr.maxhp
del(src)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
Get()
set src in oview(1)
src.loc = usr
Nut
icon = 'Healing items.dmi'
icon_state = "nut"
verb
Eat()
if (src.loc == usr)
if(usr.hp>=usr.maxhp)
usr << "You don't need this!"
return
else
usr.hp += 200
usr << "You have gained 200 HP."
if(usr.hp>usr.maxhp)
usr.hp = usr.maxhp
del(src)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
Get()
set src in oview(1)
src.loc = usr
Corn
icon = 'Healing items.dmi'
icon_state = "corn"
verb
Eat()
if (src.loc == usr)
if(usr.hp>=usr.maxhp)
usr << "You don't need this!"
return
else
usr.hp += 100
usr << "You have gained 100 HP."
if(usr.hp>usr.maxhp)
usr.hp = usr.maxhp
del(src)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
Get()
set src in oview(1)
src.loc = usr
Vial
icon = 'Healing items.dmi'
icon_state = "vial"
verb
Eat()
if (src.loc == usr)
if(usr.hp>=usr.maxhp)
usr << "You don't need this!"
return
else
usr.hp += 500
usr << "You have gained 500 HP."
if(usr.hp>usr.maxhp)
usr.hp = usr.maxhp
del(src)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
Get()
set src in oview(1)
src.loc = usr
Potion
icon = 'Healing items.dmi'
icon_state = "potion"
verb
Drink()
if (src.loc == usr)
if(usr.hp>=usr.maxhp)
usr << "You don't need this!"
return
else
usr.hp = usr.maxhp
usr << "You're fully recovered."
if(usr.hp>usr.maxhp)
usr.hp = usr.maxhp
del(src)
Drop()
src.loc=locate(usr.x,usr.y,usr.z)
Get()
set src in oview(1)
src.loc = usr
Problem description: Well, can you tell me what there's wrong? I tried editing the verbs and making the procs but it didn't work, I thought I would ask you?
Also, copy/paste = bad. Predefs = good.