ID:165293
 
Hey everyone. So far this is all of the code I've got for Health.

Mob
var
Health = 100
statpanel = Health, 'Health'..... (This may not be the exact coding but it's similar.


turf
Cercofigis
icon = 'cercofigis.dmi'
turf/cercofigis
verb
open()
...... (all of the coding it takes to open and close the cercofigis.....(this part is okay.)

It's everything from here on that is wrong, I was guessing with a lot of it. Anyways, what I'm trying to do here is create a code that will alow the mob to Rest in the Cercofigis and heal to full health.
also, I would like to point out, I don't have proper coding to make a limit for health.
even if you can only help me with half of this, I'd be happy with an answer.
Rest()
set src in view (1)
icon = 'Human.dmi'
icon_state = Resting
mob = Health

mob/var/MaxHealth = 100


turf/Cercofigis/verb
Rest()
set src in view (1)
icon = 'Human.dmi'
icon_state = "Resting"
sleep(10)
usr.Health = usr.MaxHealth


This may work.

- Miran94