ID:178730
 
Hi.

I was just toying around with some game on the HUB, and this guy had programmed it so that his stat panel displayed HP in the form of:

HP: 30 / 30

Does anybody know how he did that? Is there an easy way to do this?
Simple, just make a text string with variables for each stat.

statpanel("Status")
stat("Health:","[health] / [max_health]")<dm>
In response to Foomer
what exactly does
 do?
Easy.
mob/Stat()
statpanel("Status")
stat("HP:","[src.HP]/[src.MaxHP]")


-Kappa the Imp
In response to Disturbed Park4
It avoids formatting your code so that it aligns properly, and so HTML doesn't get rendered.
Cool! Thanks folks. And here I was thinking that was going to be impossible. This program rocks! ;)
In response to Foomer
ahhh