ID:154669
 
Is there a way to have color in the text in statpanels?
Possibly even have it so that depending on the value of the variable displayed in the stat, the color changes?
If not, that's okay.
-JaiZo
AFAIK it's possible so long as you enable HTML on the Info skin element (this should be enabled by default).

In order to apply a color you'll have to insert a font tag, like so:

mob/player/var/maxhp = 200
mob/player/var/hp = 50 //25% of maximum

mob/player/Stat()
stat("HP:", "<font color=\"[src.hp / (src.maxhp / 100) <= 35 ? "#FF0000" : "#000000"]\">[src.hp]</font>")


The above would display the amount of HP left for mob. It would display the color in red if the amount of HP dips below 35% of the maximum.