medical_kit
icon = 'obj.dmi'
icon_state = "medical"
verb/use()
if (usr.HP > 149)
usr.HP = 150
usr<<"You are fully healed."
else
usr.HP +=50
del src
verb/get()
set src in oview(1)
src.loc = usr
if (usr.weight == 8)
usr<<"Cant hold anymore items"
src.loc = usr.loc
usr.weight = 8
else
usr.weight += 1
verb/drop()
src.loc = usr.loc
usr.weight -= 1
Problem description:
Okay assuming I already set variables for all of these I just want to know if theres a easier way I can do this. for the ability to only be able to carry 8 items. the code works perfectly but I'm a little confused on if i should have done it a less harder way. Any thoughts ^^ I'm kind of a newbie so any helpful advice would help out a lot.