ID:178203
 
Okay, I was wondering, in battle, if you health went below 0, you would go to a hospital and heal thier, you would heal faster if you could afford better treatments (but it would prompt the usr for confirmation. Everybody gets the general treatmeant.

Here is the healing code:

proc/Heal()
vitality=min(vitality+1,max_vitality)
spawn(healing-recovery) Heal()

And I call that on mob/New(), so its always running.

Well, I think I should have said this instead, since its all I would like to know how to do....

How would I check if a bed/healing tub/Energy Room/Regen Machine was empty?

Sorry for the misunderstanding
In response to Sariat
Sariat wrote:
Well, I think I should have said this instead, since its all I would like to know how to do....

How would I check if a bed/healing tub/Energy Room/Regen Machine was empty?

Sorry for the misunderstanding

Assuming they are turfs, perform a loop that checks the contents of the healing thing. If they are objects, then adding a simple variable to the object that is equal to a certain value when someone is in it.

If my description is vague or non-understandable, then tell me, and I will throw in some code. >:)