Hello,
I'm working on an educational mini-game that requires, as part of th game play, a very long sequence of timed events.
Everything's been going swimmingly until I get to state=76 in my script below at which point timerstart seems to stop functioning.
Has anyone encountered this before? And does anyone know a work around?
I realize this is a lot of script and I know I have redundancies in my code but my main concern right now is fixing this immediate issue (the gameplay does not progress past state=76). Perhaps I am missing something obvious and just need another set of eyes.
Thank you thank you for any and all help...
;Artificial Intelligence Script
;Header
desc = Main Gameplay Script (Greek Pavilion Music and Math Game)
;Triggers
:state=0:state=1
;Preload all HUD Images
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\1.dds,hudname=one,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\2.dds,hudname=two,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\3.dds,hudname=three,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\4.dds,hudname=four,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\5.dds,hudname=five,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\6.dds,hudname=six,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\7.dds,hudname=seven,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\8.dds,hudname=eight,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\greece\howto.dds,hudname=howto,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\greece\training.dds,hudname=training,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\greece\start.dds,hudname=start,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\greece\scales.dds,hudname=scales,hudhide=1,hudmake=display
:state=1:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\greece\seconds.dds,hudname=seconds,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\thirds.dds,hudname=eight,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\fourths.dds,hudname=eight,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\fifths.dds,hudname=eight,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\sixths.dds,hudname=eight,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\sevenths.dds,hudname=eight,hudhide=1,hudmake=display
;:state=1:hudreset,hudx=50,hudy=85,hudimagefine=gamecore\huds\greece\freeplay.dds,hudname=eight,hudhide=1,hudmake=display,state=2
:state=1:state=2
;Intro slides and Training
:state=2:hudreset,timerstart,hudshow=howto,state=3
:state=3,timergreater=2000,scancodekeypressed=28:hudunshow=howto,state=4
:state=4:hudreset,timerstart,hudshow=training,state=5
:state=5,timergreater=2000,scancodekeypressed=28:hudunshow=training,state=6
:state=6:hudreset,timerstart,hudshow=start,state=7
:state=7,timergreater=2000,scancodekeypressed=28:hudunshow=start,state=8
:state=8:hudreset,timerstart,hudshow=scales,state=9
:state=9,timergreater=2000,scancodekeypressed=28:hudunshow=scales,state=10
;CMajor scale runs - ascending and descending
:state=10:hudreset,timerstart,hudshow=one,state=11
:state=11,scancodekeypressed=2:hudunshow=one,state=13
:state=11,timergreater=5000:hudunshow=one,state=12
:state=12,timergreater=6000:plraddhealth=-50,state=14
:state=13:state=14
:state=14:hudreset,timerstart,hudshow=two,state=15
:state=15,scancodekeypressed=3:hudunshow=two,state=17
:state=15,timergreater=5000:hudunshow=two,state=16
:state=16,timergreater=6000:plraddhealth=-50,state=18
:state=17:state=18
:state=18:hudreset,timerstart,hudshow=three,state=19
:state=19,scancodekeypressed=4:hudunshow=three,state=21
:state=19,timergreater=5000:hudunshow=three,state=20
:state=20,timergreater=6000:plraddhealth=-50,state=22
:state=21:state=22
:state=22:hudreset,timerstart,hudshow=four,state=23
:state=23,scancodekeypressed=5:hudunshow=four,state=25
:state=23,timergreater=5000:hudunshow=four,state=24
:state=24,timergreater=6000:plraddhealth=-50,state=26
:state=25:state=26
:state=26:hudreset,timerstart,hudshow=five,state=27
:state=27,scancodekeypressed=6:hudunshow=five,state=29
:state=27,timergreater=5000:hudunshow=five,state=28
:state=28,timergreater=6000:plraddhealth=-50,state=30
:state=29:state=30
:state=30:hudreset,timerstart,hudshow=six,state=31
:state=31,scancodekeypressed=7:hudunshow=six,state=33
:state=31,timergreater=5000:hudunshow=six,state=32
:state=32,timergreater=6000:plraddhealth=-50,state=34
:state=33:state=34
:state=34:hudreset,timerstart,hudshow=seven,state=35
:state=35,scancodekeypressed=8:hudunshow=seven,state=37
:state=35,timergreater=5000:hudunshow=seven,state=36
:state=36,timergreater=6000:plraddhealth=-50,state=38
:state=37:state=38
:state=38:hudreset,timerstart,hudshow=eight,state=39
:state=39,scancodekeypressed=9:hudunshow=eight,state=41
:state=39,timergreater=5000:hudunshow=eight,state=40
:state=40,timergreater=6000:plraddhealth=-50,state=42
:state=41:state=42
:state=42:hudreset,timerstart,hudshow=eight,state=43
:state=43,timergreater=500,scancodekeypressed=9:hudunshow=eight,state=45
:state=43,timergreater=5000:hudunshow=eight,state=44
:state=44,timergreater=6000:plraddhealth=-50,state=46
:state=45:state=46
:state=46:hudreset,timerstart,hudshow=seven,state=47
:state=47,scancodekeypressed=8:hudunshow=seven,state=49
:state=47,timergreater=5000:hudunshow=seven,state=48
:state=48,timergreater=6000:plraddhealth=-50,state=50
:state=49:state=50
:state=50:hudreset,timerstart,hudshow=six,state=51
:state=51,scancodekeypressed=7:hudunshow=six,state=53
:state=51,timergreater=5000:hudunshow=six,state=52
:state=52,timergreater=6000:plraddhealth=-50,state=54
:state=53:state=54
:state=54:hudreset,timerstart,hudshow=five,state=55
:state=55,scancodekeypressed=6:hudunshow=five,state=57
:state=55,timergreater=5000:hudunshow=five,state=56
:state=56,timergreater=6000:plraddhealth=-50,state=58
:state=57:state=58
:state=58:hudreset,timerstart,hudshow=four,state=59
:state=59,scancodekeypressed=5:hudunshow=four,state=61
:state=59,timergreater=5000:hudunshow=four,state=60
:state=60,timergreater=6000:plraddhealth=-50,state=62
:state=61:state=62
:state=62:hudreset,timerstart,hudshow=three,state=63
:state=63,scancodekeypressed=4:hudunshow=three,state=65
:state=63,timergreater=5000:hudunshow=three,state=64
:state=64,timergreater=6000:plraddhealth=-50,state=66
:state=65:state=66
:state=66:hudreset,timerstart,hudshow=two,state=67
:state=67,scancodekeypressed=3:hudunshow=two,state=69
:state=67,timergreater=5000:hudunshow=two,state=68
:state=68,timergreater=6000:plraddhealth=-50,state=70
:state=69:state=70
:state=70:hudreset,timerstart,hudshow=one,state=71
:state=71,scancodekeypressed=2:hudunshow=one,state=73
:state=71,timergreater=5000:hudunshow=one,state=72
:state=72,timergreater=6000:plraddhealth=-50,state=74
:state=73:state=74
;Intervals Seconds
:state=74:hudreset,timerstart,hudshow=seconds,state=75
:state=75,timergreater=2000,scancodekeypressed=28:hudunshow=seconds,state=76
:state=76:hudreset,timerstart,hudshow=four,state=77
:state=77,scancodekeypressed=5:hudunshow=four,state=79
:state=77,timergreater=5000:hudunshow=four,state=78
:state=78,timergreater=6000:plraddhealth=-50,state=80
:state=79:state=80
:state=80:hudreset,timerstart,hudshow=five,state=81
:state=81,scancodekeypressed=6:hudunshow=five,state=83
:state=81,timergreater=5000:hudunshow=five,state=82
:state=82,timergreater=6000:plraddhealth=-50,state=84
:state=83:state=84
:state=84:hudreset,timerstart,hudshow=seven,state=85
:state=85,scancodekeypressed=8:hudunshow=seven,state=87
:state=85,timergreater=5000:hudunshow=seven,state=86
:state=86,timergreater=6000:plraddhealth=-50,state=88
:state=87:state=88
:state=88:hudreset,timerstart,hudshow=eight,state=89
:state=89,scancodekeypressed=9:hudunshow=eight,state=91
:state=89,timergreater=5000:hudunshow=eight,state=90
:state=90,timergreater=6000:plraddhealth=-50,state=92
:state=91:state=92
:state=92:hudreset,timerstart,hudshow=three,state=93
:state=93,scancodekeypressed=4:hudunshow=three,state=95
:state=93,timergreater=5000:hudunshow=three,state=94
:state=94,timergreater=6000:plraddhealth=-50,state=96
:state=95:state=96
:state=97:hudreset,timerstart,hudshow=four,state=98
:state=98,scancodekeypressed=5:hudunshow=four,state=100
:state=98,timergreater=5000:hudunshow=four,state=99
:state=99,timergreater=6000:plraddhealth=-50,state=101
:state=100:state=101
:state=101:hudreset,timerstart,hudshow=one,state=102
:state=102,scancodekeypressed=2:hudunshow=one,state=104
:state=102,timergreater=5000:hudunshow=one,state=103
:state=103,timergreater=6000:plraddhealth=-50,state=105
:state=104:state=105
:state=105:hudreset,timerstart,hudshow=two,state=106
:state=106,scancodekeypressed=3:hudunshow=two,state=108
:state=106,timergreater=5000:hudunshow=two,state=107
:state=107,timergreater=6000:plraddhealth=-50,state=109
:state=108:state=109