ID:179696
 
i want to make items that heal mp and hp and i want to make a verb the use the item

Kas wrote:
i want to make items that heal mp and hp and i want to make a verb the use the item


Well you would have to attach the verb to the item it self and cause it todo something example:

obj/Health
icon='health.dmi'
verb
Use()
set src in usr//Checks if it's in the usrs
posession
usr.Hp+=10
del(src)
Drop()
set src in usr
src.loc=usr.loc
Get()
set src in oview(1)//checks if it's within one tile of the usr
src.Move(usr)


That was a basic example.