obj
Health_Bar
icon = 'Health_Bar.dmi'
icon_state = "4"
screen_loc = "2,1"
The code works wonderfully, and does exactly what it's designed to do. My question is, how would I make the icon_state of the Health_Bar change in fourth increments depending on your health?
Update it like so after every time you change the health. Basically, this means writing a proc to change the health if you don't already one, and in that proc do the above after setting the health and whatnot.