Posted: 15th Jan 2010 17:59
Hey I spent some time playing around with the scripts and attempting to get this working. I've got half of it working now. When I pick up a medical kit, it increases the variable by 1. the max med kits is 9, so when i try pick up a 10th nothing happens, which is great. BUT I can;t get the variable to display on the screen, no matter what I do. So I must be missing something. I attempted to use Conjured's cash scripts to help me and came up with this.... Andy ideas why I can't get it to work?
;Display Global Variable for Health Pickups (Variable number8)
;create huds
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\0.dds,hudhide=1,hudname=medpack0,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\1.dds,hudhide=1,hudname=medpack1,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\2.dds,hudhide=1,hudname=medpack2,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\3.dds,hudhide=1,hudname=medpack3,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\4.dds,hudhide=1,hudname=medpack4,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\5.dds,hudhide=1,hudname=medpack5,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\6.dds,hudhide=1,hudname=medpack6,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\7.dds,hudhide=1,hudname=medpack7,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\8.dds,hudhide=1,hudname=medpack8,hudmake=display
:state=0:hudreset,hudx=19,hudy=40,hudimagefine=gamecore\huds\user\9.dds,hudhide=1,hudname=medpack9,hudmake=display
;initialization
:state=0:localvar=8,setvar=0,state=5
:state=5:globalvar=8,state=6
;remove any existing huds before we display new ones
:state=6:hudunshow=medpack0,hudunshow=medpack1,hudunshow=medpack2,hudunshow=medpack3,hudunshow=medpack4,hudunshow=medpack5,hudunshow=medpack6,hudunshow=medpack7,hudunshow=medpack8,hudunshow=medpack9,state=26
;test ones
:state=26,varequal=9:hudshow=medpack9,state=36
:state=26,varequal=8:hudshow=medpack8,state=36
:state=26,varequal=7:hudshow=medpack7,state=36
:state=26,varequal=6:hudshow=medpack6,state=36
:state=26,varequal=5:hudshow=medpack5,state=36
:state=26,varequal=4:hudshow=medpack4,state=36
:state=26,varequal=3:hudshow=medpack3,state=36
:state=26,varequal=2:hudshow=medpack2,state=36
:state=26,varequal=1:hudshow=medpack1,state=36
:state=26,varless=1:hudshow=medpack0,state=36
;End of Script