Hey guys. I'm just gonna comment here rather than making another post and cluttering eveything up. I'm still working on the above script and I still can't get it to work for some reason. But I'm having really bad troubles with this new script I'm devising. It's running me ragged.
Okay, this may be a reeeeaaaally long script, but I promise, if we can get through it, free quick time events for all!
The scene goes as this:
The player enters a dark, musty area where a furnace burns brightly in the corner. After taking out the nearby thugs, the player states to himself: "This guy dropped the key in the furnace. Okay, let's get this over with." Then a small mini game comes up that shows you a meter of the furnace's varying heat levels, with the middle portion indicating the correct time to hit enter, in which the player will receive a key. If the player hits the action button at the wrong time, he is hurt.
Below, I have made a script which I've picked up from another starting point, and chopped and bobbed away. With the current script that I've provided, the final hud animation is stuck on screen, and whenever I hit enter, the player is hurt regardless, the audio does not play and for some reason, my segments seem to get misplaced.
;Artificial Intelligence Script
;Header
desc = Furnace Puzzle
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\text\pressentertouse.tga,hudname=enter,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace01.png,hudname=furnace01,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace02.png,hudname=furnace02,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace03.png,hudname=furnace03,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace04.png,hudname=furnace04,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace05.png,hudname=furnace05,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace06.png,hudname=furnace06,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace07.png,hudname=furnace07,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace08.png,hudname=furnace08,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace09.png,hudname=furnace09,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace10.png,hudname=furnace10,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace11.png,hudname=furnace11,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace12.png,hudname=furnace12,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace13.png,hudname=furnace13,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace14.png,hudname=furnace14,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace15.png,hudname=furnace15,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace16.png,hudname=furnace16,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace17.png,hudname=furnace17,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace18.png,hudname=furnace18,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace19.png,hudname=furnace19,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace20.png,hudname=furnace20,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace21.png,hudname=furnace21,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace22.png,hudname=furnace22,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace23.png,hudname=furnace23,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace24.png,hudname=furnace24,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace25.png,hudname=furnace25,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace26.png,hudname=furnace26,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace27.png,hudname=furnace27,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace28.png,hudname=furnace28,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace29.png,hudname=furnace29,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace30.png,hudname=furnace30,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace31.png,hudname=furnace31,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace32.png,hudname=furnace32,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace33.png,hudname=furnace33,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\gamecore\huds\stronghold\furnace34.png,hudname=furnace34,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=enter,hudfadeout=enter
:state=10,plrdistwithin=60,plrusingaction=1:activate=2,
:state=10,activated=2:sound=audiobank\stronghold\stuff\furnacestart.wav,etimerstart,
:state=10,etimergreater=10000:state=11
:state=11,plrdistwithin=60:etimerstart,hudshow=furnace01
:state=11,plrdistwithin=60,etimergreater=300:hudhide=furnace01
:state=11,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=11,plrdistwithin=60,plrusingaction=0:state=13
:state=13,plrdistwithin=60:etimerstart,hudshow=furnace02
:state=13,plrdistwithin=60,etimergreater=300:hudhide=furnace02
:state=13,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=13,plrdistwithin=60,plrusingaction=0:state=14
:state=14,plrdistwithin=60:etimerstart,hudshow=furnace03
:state=14,plrdistwithin=60,etimergreater=300:hudhide=furnace3
:state=14,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=14,plrdistwithin=60,plrusingaction=0:state=15
:state=15,plrdistwithin=60:etimerstart,hudshow=furnace04
:state=15,plrdistwithin=60,etimergreater=300:hudhide=furnace04
:state=15,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=15,plrdistwithin=60,plrusingaction=0:state=16
:state=16,plrdistwithin=60:etimerstart,hudshow=furnace05
:state=16,plrdistwithin=60,etimergreater=300:hudhide=furnace05
:state=16,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=16,plrdistwithin=60,plrusingaction=0:state=17
:state=17,plrdistwithin=60:etimerstart,hudshow=furnace06
:state=17,plrdistwithin=60,etimergreater=300:hudhide=furnace06
:state=17,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=17,plrdistwithin=60,plrusingaction=0:state=18
:state=18,plrdistwithin=60:etimerstart,hudshow=furnace07
:state=18,plrdistwithin=60,etimergreater=300:hudhide=furnace07
:state=18,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=18,plrdistwithin=60,plrusingaction=0:state=19
:state=19,plrdistwithin=60:etimerstart,hudshow=furnace08
:state=19,plrdistwithin=60,etimergreater=300:hudhide=furnace08
:state=19,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=19,plrdistwithin=60,plrusingaction=0:state=20
:state=20,plrdistwithin=60:etimerstart,hudshow=furnace09
:state=20,plrdistwithin=60,etimergreater=300:hudhide=furnace09
:state=20,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=20,plrdistwithin=60,plrusingaction=0:state=21
:state=21,plrdistwithin=60:etimerstart,hudshow=furnace10
:state=21,plrdistwithin=60,etimergreater=300:hudhide=furnace10
:state=21,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=21,plrdistwithin=60,plrusingaction=0:state=22
:state=22,plrdistwithin=60:etimerstart,hudshow=furnace11
:state=22,plrdistwithin=60,etimergreater=300:hudhide=furnace11
:state=22,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=22,plrdistwithin=60,plrusingaction=0:state=23
:state=23,plrdistwithin=60:etimerstart,hudshow=furnace12
:state=23,plrdistwithin=60,etimergreater=300:hudhide=furnace12
:state=23,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=23,plrdistwithin=60,plrusingaction=0:state=24
:state=24,plrdistwithin=60:etimerstart,hudshow=furnace13
:state=24,plrdistwithin=60,etimergreater=300:hudhide=furnace13
:state=24,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=24,plrdistwithin=60,plrusingaction=0:state=25
:state=25,plrdistwithin=60:etimerstart,hudshow=furnace14
:state=25,plrdistwithin=60,etimergreater=300:hudhide=furnace14
:state=25,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=25,plrdistwithin=60,plrusingaction=0:state=26
:state=26,plrdistwithin=60:etimerstart,hudshow=furnace15
:state=26,plrdistwithin=60,etimergreater=300:hudhide=furnace15
:state=26,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=26,plrdistwithin=60,plrusingaction=0:state=27
:state=27,plrdistwithin=60:etimerstart,hudshow=furnace16
:state=27,plrdistwithin=60,etimergreater=300:hudhide=furnace16
:state=27,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=27,plrdistwithin=60,plrusingaction=0:state=28
:state=28,plrdistwithin=60:etimerstart,hudshow=furnace17
:state=28,plrdistwithin=60,etimergreater=300:hudhide=furnace17
:state=28,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=28,plrdistwithin=60,plrusingaction=0:state=29
:state=29,plrdistwithin=60:etimerstart,hudshow=furnace18
:state=29,plrdistwithin=60,etimergreater=300:hudhide=furnace18
:state=29,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=29,plrdistwithin=60,plrusingaction=0:state=30
:state=30,plrdistwithin=60:etimerstart,hudshow=furnace19
:state=30,plrdistwithin=60,etimergreater=300:hudhide=furnace19
:state=30,plrdistwithin=60,plrusingaction=1:plrsubhealth=1,state=11
:state=30,plrdistwithin=60,plrusingaction=0:state=11
;End of Script
Now, if you took the time to basically read that whole monster, than thank you, veeeery much. Any help would be highly appreciated. I'm pulling my own hairs out trying to figure out where the errors are starting. It's definitely not finished writing the "skeleton" of the script, but what I have so far should show a sample of the hud animation and it's purpose. But thanks guys ahead of time for any help!
BedsideReaper
"I think I'm getting the 'Black Lung,' pop."
"Derrick, you've been down there for one day."