obj
icon='Items.dmi'
Health
icon_state="1"
mouse_opacity=2
Entered()
world<<"1"
if(usr.Hp>=usr.MaxHp)
del src
else
if(usr.Hp<=usr.MaxHp)
usr.Hp+=20
world<<"2"
if(usr.Hp>=usr.MaxHp)
usr.Hp=usr.MaxHp
world<<"3"
usr.HP()
del src
Problem description: I cant seem to get it to call Entered() when I enter the object. You can see I have tried debugging the code, but i still get nothing.
Thanks
1) usr doesn't belong here. Entered() takes two arguments, the first of which is the atom entering. You need to use that argument, not usr.
2) The mob isn't actually entering the obj; it's entering the turf that the obj happens to be sitting on. You need to be overriding turf/Entered() and have it look for items that can be picked up.
Lummox JR