ID:158191
 
I dont want a rest system or anything like that, I would like my character to regenerate health as time goes by so i can get some good combat in
mob/proc/regenerate_health_as_time_goes_by()
while(1)
sleep(1)
hp += 1

What exactly are you asking? Are you asking how to make a function that makes an object's health stat increase by x every y seconds? Are you asking how to initiate such a function for all player characters (or all creatures/objects/whatever)?

You make it sound almost as if you know how to make a "rest system" but do not know how to make what you're looking for. On the surface, what it sounds like you're asking for and a "rest system" are exactly the same, except for the fact that it is always in effect instead of just while in a restful state, which actually makes it simpler to implement, as it actually IS a rest system for which you are always resting.