Good first attempt. Myself, I usually define my huds and such first. Then I define my timers, particularly if hud images are changing after so many seconds. Then I define the end of the script- either loop it back or make it end.
Off the top of my head, I would have started this like the following:
;Artificial Intelligence Script
;Header
desc=Hackbar using timer script
;Triggers
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar1.dds,hudname=hackbar,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar2.dds,hudname=hackbar2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar3.dds,hudname=hackbar3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar4.dds,hudname=hackbar4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar5.dds,hudname=hackbar5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar6.dds,hudname=hackbar6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar7.dds,hudname=hackbar7,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar8.dds,hudname=hackbar8,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar9.dds,hudname=hackbar9,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\bar10.dds,hudname=hackbar10,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=80,hudimagefine=gamecore\huds\hack\done.dds,hudname=done,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=34:activateifusednear=X,timerstart,state=2
:state=2,scancodekeypressed=0:state=3
;Timer States here
:state=3,timergreater=250:hudshow=hackbar1
:state=3,timergreater=1500:hudunshow=hackbar1
:state=3,timergreater=500:hudshow=hackbar2
:state=3,timergreater=1500:hudunshow=hackbar2
:state=3,timergreater=500:hudshow=hackbar3
:state=3,timergreater=2000:hudunshow=hackbar3
:state=3,timergreater=500:hudshow=hackbar4
:state=3,timergreater=2500:hudunshow=hackbar4
:state=3,timergreater=500:hudshow=hackbar5
:state=3,timergreater=3000:hudunshow=hackbar5
:state=3,timergreater=500:hudshow=hackbar6
:state=3,timergreater=3500:hudunshow=hackbar6
:state=3,timergreater=500:hudshow=hackbar7
:state=3,timergreater=4000:hudunshow=hackbar7
:state=3,timergreater=500:hudshow=hackbar8
:state=3,timergreater=4500:hudunshow=hackbar8
:state=3,timergreater=500:hudshow=hackbar9
:state=3,timergreater=5000:hudunshow=hackbar9
:state=3,timergreater=500:hudshow=hackbar10
:state=3,timergreater=5500:hudunshow=hackbar10
:state=3,timergreater=500:hudshow=done
:state=3,timergreater=7000:hudunshow=done,state=4
:state=4:none
Feel free to test, try out, modify the timer amounts, etc for your usage. My goal here was to help to give you a start into the scripting side. By looking at the layout, you should see how huds are defined, then the key to activate, then the timers.
Plystire mentioned using etimer, so if that is the preferred method, then you replace the "timergreater" with "etimergreater" and replace the "timerstart" with "etimerstart". Perhaps when Plystire drops in he could remind me why "etimer" was the better method to use.
- BlackFox
RPG Mod- Create a world full of adventure