I don't know the forumla to exactly get the Meter to get an icon_State depedning on the players Stamina.
BTW the icon as 10 icon states.
Code:
mob
Player
var
MaxStamina = 5
Stamina = 5
obj
Meters
layer = MOB_LAYER + 16
Stamina
icon = 'Meter 1.dmi'
icon_state = "0"
screen_loc = "1,1"
New()
..()
spawn(5) src.Update()
proc
Update()
while(src)
sleep(10)
src.icon_state = round(usr.Stamina/usr.MaxStamina*10)
--Vito