Hi,
Attach this script in the main script to a entity set to always active. I'd suggest a crate or something that fits well in your level.
;Artificial Intelligence Script
;Header
desc = Armour regen - The Scene Commander
;Triggers
:state=0:setarmx=46.5,setarmy=7
:state=0:hudreset,hudx=48.5,hudy=4,hudimagefine=databank/armour.png,hudname=arm1,hudhide=1,hudmake=display
:state=0:dimvar=armourvalue
:state=0:hudreset,hudx=200,hudy=200,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.dds,hudname=armour,huduservar=armourvalue,hudtype=6,hudmake=numeric
:state=0:hudshow=arm1
:state=0:armon=1,setarm=100,state=10
:state=10:etimerstart,state=11
:state=11,etimergreater=3000:arminc=5,etimerstart
:state=11:setvar=armourvalue $ARM
:state=11,vargreater=armourvalue 100:setarm=100,setvar=armourvalue 100
;End of Script
This took a little playing around with due to some issues in the official with loading numeric huds, if either myself or S4 get a chance we may look at it, but as there's a workaround, it's not 100% urgent, and I'm afraid my time is rather full at the moment.
There are several issues with your code, which I'm afraid I don't have time to go into. If I do later, I'll try and explain.
I hope this helps and works for you.
SC
Bringing you games since 1981!