ID:149751
 
I have a condition code that tells you your condition depending on your health,

Stat()
statpanel("[src]")//This Names the statpanel Stats//
stat("Condintion" ,"[src.Condition]")
if(src.Condition)
S = Health/src.MaxHealth
if(S < 0.10) stat("Health","[src.MaxHealth] Danger!!")
else if(S < 0.25) stat("Health","[src.MaxHealth] very weak")
else if(S < 0.5) stat("Health","[src.MaxHealth] weak")
else if(S < 0.65) stat("Health","[src.MaxHealth] ok")
else if(S < 0.75) stat("Health","[src.MaxHealth] fine")
else stat("Health","[src.MaxHealth] Perfect")

that is my code but it doesn't work can anyone help?
I don't really see any problem in your code (except a misspelling of "Condition" as "Condintion" in one of the stat() calls). What's the problem you're having with it, exactly?

Lummox JR
In response to Lummox JR
I have it spelled like that but the problem is that it doesn't tell you your condintion
In response to LordG28
Hmmm...I don't see any real problems. Where do you have S defined? Is that a var that all mobs have?