I have made a script that uses GUI-9 to make an armor representation HUD. Here it is:
;Representation-
;Misc
:state=0:usegui=1
;Ammo
:state=0:hudreset,hudx=88,hudy=3,hudsizex=16,hudsizey=16,hudimage=languagebank\english\gamecore\huds\numeric3.png,hudtype=3,hudmake=numeric
;Vars for Armor Calculations
:state=0:dimvar=PlrArmor,dimvar=PlrHealth,dimvar=Temp
:state=0:setvar=PlrArmor 100
;Move On (DON'T SET HUDs AGAIN)
:state=0:loadimage=armor languagebank\english\gamecore\huds\armor\a100.dds,makehud=armor armor 50 50 1024 768,sethudx=50,sethudy=50
:state=0:state=1
;Variables
:vargreater=PlrHealth $PH,vargreater=PlrArmor 1:setvar=Temp %PlrHealth,subvar=Temp $PH,plraddhealth=%Temp
:vargreater=Temp 1:subvar=PlrArmor %Temp,setvar=Temp 0,etimerstart
:varless=PlrArmor -1:setvar=PlrArmor 0
:etimergreater=1000,varless=PlrArmor 100:addvar=PlrArmor 1
:ALWAYS:setvar=PlrHealth $PH
:varequal=PlrArmor 0:loopsound=audiobank\music\Rafleo\Heartbeat.ogg
:varequal=PlrArmor 1:stopsound=audiobank\music\Rafleo\Heartbeat.ogg,plrsethealth=10
;Armor Representation
:state=1,varequal=PlrArmor 100:replaceimage=armor languagebank\english\gamecore\huds\armor\a100.dds
:state=1,varequal=PlrArmor 99:replaceimage=armor languagebank\english\gamecore\huds\armor\a99.dds
:state=1,varequal=PlrArmor 98:replaceimage=armor languagebank\english\gamecore\huds\armor\a98.dds
:state=1,varequal=PlrArmor 97:replaceimage=armor languagebank\english\gamecore\huds\armor\a97.dds
:state=1,varequal=PlrArmor 96:replaceimage=armor languagebank\english\gamecore\huds\armor\a96.dds
:state=1,varequal=PlrArmor 95:replaceimage=armor languagebank\english\gamecore\huds\armor\a95.dds
;And so on...
It just stays on the a100.dds and doesn't change when I step into a hurt zone. Why?
I believe I should put a smart comment here, but I wouldn't have time to think about it.