ID:145020
 
Code:
mob
var
hurt="You feel unhurt"
mob
proc
Health()
if(src.Health/10)
src.hurt="You feel like your about to die."
if(src.Health/30)
src.hurt="You feel very hurt"
if(src.Health/50)
src.hurt="You feel hurt"
if(src.Health/70)
src.hurt="You feel slightly hurt"
if(src.Health/90)
src.hurt="You feel unhurt"


Problem description: Well, it doesn't work. I don't know the problame.

I guess this is what you want.

mob
var
hurt="You feel unhurt"
mob
proc
Health()
if(src.Health<10&&src.Health>=0)
src.hurt="You feel like your about to die."
if(src.Health<30&&src.Health>=10)
src.hurt="You feel very hurt"
if(src.Health<50&&src.Health>=30)
src.hurt="You feel hurt"
if(src.Health<70&&src.Health>=50)
src.hurt="You feel slightly hurt"
if(src.Health<90&&src.Health>=70)
src.hurt="You feel unhurt"
if(src.Health<100&&src.Health>=90)
src.hurt="You feel alright"
if(src.Health>=100)
src.hurt="You feel completely ok!"


ADT_CLONE
In response to ADT_CLONE
My health system automaticly becomes stronger when you train. So i want it to be like, if you have 90% Health left it says "You feel slightly hurt." ect.
In response to Strong123488
What you want to check is the value of (health/maxhealth). If that's 0.9, you have 90% health left. If it's 0.1, you have 10% health left. If it's 0.314159, you have 31.4159% health left.

You'll also want to look up the > (greater-then) and < (less-then) operators in the reference - hit F1 in Dreammaker.