Hi all im a proper noob when it comes to scripting im currently trying to get a hub with number 1 to 9 and 0 and f highlight when you press them on the keyboard, ive tested the script out it does highlight them but if i try pressing a number twice it doesnt highlight it again can you tell me whats going wrong heres the script
;Artificial Intelligence Script
;Header
desc = An Inventory.
;Triggers
:state=0,always:state=2,hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\normal.dds,hudname=inventory,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=2:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\1.dds,hudname=1,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=3:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\2.dds,hudname=2,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=4:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\3.dds,hudname=3,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=5:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\4.dds,hudname=4,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=6:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\5.dds,hudname=5,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=7:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\6.dds,hudname=6,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=8:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\7.dds,hudname=7,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=9:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\8.dds,hudname=8,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=10:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\9.dds,hudname=9,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=11:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\0.dds,hudname=0,hudhide=1,hudmake=display,state=2
:state=2,scancodekeypressed=33:hudreset,hudx=50,hudy=70,hudimagefine=gamecore\flashlightm\F.dds,hudname=F,hudhide=1,hudmake=display,state=2
;End of Script
Ill apologise now as I know my scripting will be terrible but we all godda learn some how lol thanks in advance for the help.