mob
var/recov=200
New()
..()
spawn(healtime) HealLoop()
proc/HealLoop()
vitality=min(vitality+1,max_vitality)
spawn(healtime-recovery) HealLoop()
This works, now, what I want it to do, is that when you die, you go to the hospital (/turf/medic/blah blah) according to your insurance plan. I've tried a few different ways, but they ended up messing up big time.
Basically, the more insured you are, the more treatment (and faster treatments) you get, so you can be on your way out.
Thanks.
-ST
Honeslty, right now all i can think of is make a var. For instance: insurnaceplan, as your var. When they have better insurance have the var risen up 1, Then, when they die, have it check there var. Upon doing that have it setup whatever way you want. So -
if(usr.insurranceplan==1)
usr << "Hey, Patient, You got no insurance. HAHAHAHA!"
sleep(100000)
usr << "Finnaly done")
else if(usr.insurranceplan==2)
usr << "Hey, You got 'Okay' insurance HAHAHAH"
sleep(10000)
usr << "Finnaly done"
I don't know what i just typed, it's not tabbed right. But im sure youll get it ;)
RaeKwon