SCENE 999 podstart, cut
MUSIC podracer
IF T999,@continueon
@redoitall
SET races,0
SET won,0
SET podclasslev,0
SET ownedpod,13
SET truggets,5000
SET podtype,0
SET trnlights,0
SET trnparts,0
SET bstlights,0
SET bstparts,0
SET spdlights,0
SET spdparts,0
SET brklights,0
SET brkparts,0
SET collights,0
SET colparts,0
SET rprlights,0
SET rprparts,0

HOST_GIVE T999
@continueon

@begin
GOTO @statcheck
@gotstats

SET boost,0
SET yourrank,#<rankz>
SET podrate,#<podrating>
SET race,#<races>
SET wins,#<won>

ACTOR 1,,0to99,#<yourrank>,19,12
ACTOR 2,,0to99,#<podrate>,19,17
ACTOR 3,,podbuttons,4,24,52
ACTOR 4,,podlights,#<podtype>,48,12
ACTOR 5,,0to99,#<race>,44,17
ACTOR 6,,0to99,#<wins>,44,22
ACTOR 7,,podlights,#<trnlights>,77,12
ACTOR 8,,podlights,#<bstlights>,77,17
ACTOR 9,,podlights,#<spdlights>,77,22
ACTOR 10,,podlights,#<brklights>,95,12
ACTOR 11,,podlights,#<collights>,95,17
ACTOR 12,,podlights,#<rprlights>,95,22
ACTOR 13,Right,podbuttons,3,20,36
ACTOR 14,Click,podbuttons,1,50,36
ACTOR 15,These,podbuttons,2,80,36
ACTOR 17,"Owned Pod",pods,#<ownedpod>,25,90
WAIT 1.0
3: #<truggets>
IF -T66,@noshop
OFFER 716,717,718,719
@noshop
END

@statcheck
SET rankz,0
SET podrating,0
ADD podrating,#<podclasslev>
ADD podrating,#<trnparts>
ADD podrating,#<bstparts>
ADD podrating,#<spdparts>
ADD podrating,#<brkparts>
ADD podrating,#<colparts>
ADD podrating,#<rprparts>
GOTO @gotstats
END

;-----------------------------------------------------------------------

@eventActorClick13
MENU "Pod 1 1000 T=@pod1","Pod 2 1700 T=@pod2","Pod 3 2400 T=@pod3","Pod 4 3800 T=@pod4","Pod 5 6000 T=@pod5","Pod 6 8000 T=@pod6","More...=@morepod"
END

@pod1
ACTOR 16,"",pods,1,75,90
ACTOR 16,"",pods,1,75,90
ACTOR 16,"",pods,1,75,90
16: (name)
MENU "Click here to buy for 1000 Truggets.=@clicked1"
END
@clicked1
COMPARE #<truggets>,1000
IF=,@buypod1
IF>,@buypod1
N: You've got to earn more truggets racing to buy that!!!
END
@buypod1
SUB truggets,1000
SET ownedpod,1
SET podtype,0
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod2
ACTOR 16,"",pods,2,75,90
ACTOR 16,"",pods,2,75,90
ACTOR 16,"",pods,2,75,90
16: (name)
MENU "Click here to buy for 1700 Truggets.=@clicked2"
END
@clicked2
COMPARE #<truggets>,1700

IF=,@buypod2
IF>,@buypod2
N: You've got to earn more truggets racing to buy that!!!
END
@buypod2
SUB truggets,1700
SET ownedpod,2
SET podtype,0
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod3
ACTOR 16,"",pods,3,75,90
ACTOR 16,"",pods,3,75,90
ACTOR 16,"",pods,3,75,90
16: (name)
MENU "Click here to buy for 2400 Truggets.=@clicked3"
END
@clicked3
COMPARE #<truggets>,2400
IF=,@buypod3
IF>,@buypod3
N: You've got to earn more truggets racing to buy that!!!
END
@buypod3
SUB truggets,2400
SET ownedpod,3
SET podtype,1
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod4
ACTOR 16,"",pods,4,75,90
ACTOR 16,"",pods,4,75,90
ACTOR 16,"",pods,4,75,90
16: (name)
MENU "Click here to buy for 3800 Truggets.=@clicked4"
END
@clicked4
COMPARE #<truggets>,3800
IF=,@buypod4
IF>,@buypod4
N: You've got to earn more truggets racing to buy that!!!
END
@buypod4
SUB truggets,3800
SET ownedpod,4
SET podtype,1
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod5
ACTOR 16,"",pods,5,75,90
ACTOR 16,"",pods,5,75,90
ACTOR 16,"",pods,5,75,90
16: (name)
MENU "Click here to buy for 6000 Truggets.=@clicked5"
END
@clicked5
COMPARE #<truggets>,6000
IF=,@buypod5
IF>,@buypod5
N: You've got to earn more truggets racing to buy that!!!
END
@buypod5
SUB truggets,6000
SET ownedpod,5
SET podtype,2
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod6
ACTOR 16,"",pods,6,75,90
ACTOR 16,"",pods,6,75,90
ACTOR 16,"",pods,6,75,90
16: (name)
MENU "Click here to buy for 8000 Truggets.=@clicked6"
END
@clicked6

COMPARE #<truggets>,8000
IF=,@buypod6
IF>,@buypod6
N: You've got to earn more truggets racing to buy that!!!
END
@buypod6
SUB truggets,8000
SET ownedpod,6
SET podtype,2
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@morepod
MENU "Pod 7 10000 T=@pod7","Pod 8 13000 T=@pod8","Pod 9 16000 T=@pod9","Pod 10 20000 T=@pod10","Pod 11 24000 T=@pod11","Pod 12 30000 T=@pod12","Total Restart=@pickredo"
END

@pod7
ACTOR 16,"",pods,7,75,90
ACTOR 16,"",pods,7,75,90
ACTOR 16,"",pods,7,75,90
16: (name)
MENU "Click here to buy for 10000 Truggets.=@clicked7"
END
@clicked7
COMPARE #<truggets>,10000
IF=,@buypod7
IF>,@buypod7
N: You've got to earn more truggets racing to buy that!!!
END
@buypod7
SUB truggets,10000
SET ownedpod,7
SET podtype,3
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod8
ACTOR 16,"",pods,8,75,90
ACTOR 16,"",pods,8,75,90
ACTOR 16,"",pods,8,75,90
16: (name)
MENU "Click here to buy for 13000 Truggets.=@clicked8"
END
@clicked8
COMPARE #<truggets>,13000
IF=,@buypod8
IF>,@buypod8
N: You've got to earn more truggets racing to buy that!!!
END
@buypod8
SUB truggets,13000
SET ownedpod,8
SET podtype,3
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod9
ACTOR 16,"",pods,9,75,90
ACTOR 16,"",pods,9,75,90
ACTOR 16,"",pods,9,75,90
16: (name)
MENU "Click here to buy for 16000 Truggets.=@clicked9"
END
@clicked9
COMPARE #<truggets>,16000
IF=,@buypod9
IF>,@buypod9
N: You've got to earn more truggets racing to buy that!!!
END
@buypod9
SUB truggets,16000
SET ownedpod,9
SET podtype,4
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod10
ACTOR 16,"",pods,10,75,90
ACTOR 16,"",pods,10,75,90
ACTOR 16,"",pods,10,75,90
16: (name)
MENU "Click here to buy for 20000 Truggets.=@clicked10"
END
@clicked10
COMPARE #<truggets>,20000
IF=,@buypod10
IF>,@buypod10
N: You've got to earn more truggets racing to buy that!!!
END
@buypod10
SUB truggets,20000
SET ownedpod,10
SET podtype,4
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod11
ACTOR 16,"",pods,11,75,90
ACTOR 16,"",pods,11,75,90
ACTOR 16,"",pods,11,75,90
16: (name)
MENU "Click here to buy for 24000 Truggets.=@clicked11"
END
@clicked11
COMPARE #<truggets>,24000
IF=,@buypod11
IF>,@buypod11
N: You've got to earn more truggets racing to buy that!!!
END
@buypod11
SUB truggets,24000
SET ownedpod,11
SET podtype,5
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END

@pod12
ACTOR 16,"",pods,12,75,90
ACTOR 16,"",pods,12,75,90
ACTOR 16,"",pods,12,75,90
16: (name)
MENU "Click here to buy for 30000 Truggets.=@clicked12"
END
@clicked12
COMPARE #<truggets>,30000
IF=,@buypod12
IF>,@buypod12
N: You've got to earn more truggets racing to buy that!!!
END
@buypod12
SUB truggets,30000
SET ownedpod,12
SET podtype,5
SET podclasslev,#<ownedpod>
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
GOTO @begin
END


@pickredo
ACTOR 16,"",pods,13,75,90
ACTOR 16,"",pods,13,75,90
MENU "Click to start over.=@clickedredo"
END
@clickedredo
HOST_TAKE T999
GOTO @redoitall
END

;-------------------------------------------------------------

@eventActorClick14
MENU "Turning=@turning","Boost=@boost","Speed=@speed","Brakes=@brakes","Cooling=@cooling","Repair=@repair"

;-------------------------------------------------------------

@turning
MENU "R-20 Repulsorgrip 250 T=@r20","R-60 Repulsorgrip 400 T=@r60","R-80 Repulsorgrip 600 T=@r80","R-100 Repulsorgrip 1200 T=@r100","R-300 Repulsorgrip 2600 T=@r300","R-600 Repulsorgrip 6000 T=@r600"
END

@r20
COMPARE #<truggets>,250
IF<,@needtrugs
SUB truggets,250
SET trnlights,0
SET trnparts,1
SOUND impact.wav
GOTO @begin
END

@r60
COMPARE #<truggets>,400
IF<,@needtrugs
SUB truggets,400
SET trnlights,1
SET trnparts,2
SOUND impact.wav
GOTO @begin
END

@r80
COMPARE #<truggets>,600
IF<,@needtrugs
SUB truggets,600
SET trnlights,2
SET trnparts,3
SOUND impact.wav
GOTO @begin
END

@r100
COMPARE #<truggets>,1200
IF<,@needtrugs
SUB truggets,1200
SET trnlights,3
SET trnparts,4
SOUND impact.wav
GOTO @begin
END

@r300
COMPARE #<truggets>,2600
IF<,@needtrugs
SUB truggets,2600
SET trnlights,4
SET trnparts,5
SOUND impact.wav
GOTO @begin
END

@r600
COMPARE #<truggets>,6000
IF<,@needtrugs
SUB truggets,6000
SET trnlights,5
SET trnparts,6
SOUND impact.wav
GOTO @begin
END

@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END
;----------------------------

@boost
MENU "Dual 20 PCX injector 800 T=@boost1","44 PCX injector 2200 T=@boost2","Dual 32 PCX injector 5600 T=@boost3","Quad 32 PCX injector 7000 T=@boost4","Quad 44 injector 10400 T=@boost5","Mag 6 injector 14000 T=@boost6"
END

@boost1
COMPARE #<truggets>,800
IF<,@needtrugs
SUB truggets,800
SET bstlights,0
SET bstparts,1
SOUND impact.wav
GOTO @begin
END

@boost2
COMPARE #<truggets>,2200
IF<,@needtrugs
SUB truggets,2200
SET bstlights,1
SET bstparts,2
SOUND impact.wav
GOTO @begin
END

@boost3
COMPARE #<truggets>,5600
IF<,@needtrugs
SUB truggets,5600
SET bstlights,2
SET bstparts,3
SOUND impact.wav
GOTO @begin
END

@boost4
COMPARE #<truggets>,7000
IF<,@needtrugs
SUB truggets,7000
SET bstlights,3
SET bstparts,4
SOUND impact.wav
GOTO @begin
END

@boost5
COMPARE #<truggets>,10400
IF<,@needtrugs
SUB truggets,10400
SET bstlights,4
SET bstparts,5
SOUND impact.wav
GOTO @begin
END

@boost6
COMPARE #<truggets>,14000
IF<,@needtrugs
SUB truggets,14000
SET bstlights,5
SET bstparts,6
SOUND impact.wav
GOTO @begin
END

@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END

;----------------------------

@speed
MENU "Plug2 thrust coil 1000 T=@speed1","Plug3 thrust coil 2400 T=@speed2","Plug5 thrust coil 6000 T=@speed3","Plug8 thrust coil 14000 T=@speed4","Block5 thrust coil 17500 T=@speed5","Block6 thrust coil 20000 T=@speed6"
END

@speed1
COMPARE #<truggets>,1000
IF<,@needtrugs
SUB truggets,1000
SET spdlights,0
SET spdparts,1
SOUND impact.wav
GOTO @begin
END

@speed2
COMPARE #<truggets>,2400
IF<,@needtrugs
SUB truggets,2400
SET spdlights,1
SET spdparts,2
SOUND impact.wav
GOTO @begin
END

@speed3
COMPARE #<truggets>,6000
IF<,@needtrugs
SUB truggets,6000
SET spdlights,2
SET spdparts,3
SOUND impact.wav
GOTO @begin
END

@speed4
COMPARE #<truggets>,14000
IF<,@needtrugs
SUB truggets,14000
SET spdlights,3
SET spdparts,4
SOUND impact.wav
GOTO @begin
END

@speed5
COMPARE #<truggets>,17500
IF<,@needtrugs
SUB truggets,17500
SET spdlights,4
SET spdparts,5
SOUND impact.wav
GOTO @begin
END

@speed6
COMPARE #<truggets>,20000
IF<,@needtrugs
SUB truggets,20000
SET spdlights,5
SET spdparts,6
SOUND impact.wav
GOTO @begin
END

@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END

;----------------------------

@brakes
MENU "Mark II air brake 700 T=@brake1","Mark III air brake 1400 T=@brake2","Mark IV air brake 3600 T=@brake3","Mark V air brake 7000 T=@brake4","Tri-Jet air brake 10400 T=@brake5","Quadrajet air brake 14000 T=@brake6"
END

@brake1
COMPARE #<truggets>,700
IF<,@needtrugs
SUB truggets,700
SET brklights,0
SET brkparts,1
SOUND impact.wav
GOTO @begin
END

@brake2
COMPARE #<truggets>,1400
IF<,@needtrugs
SUB truggets,1400
SET brklights,1
SET brkparts,2
SOUND impact.wav
GOTO @begin
END

@brake3
COMPARE #<truggets>,3600
IF<,@needtrugs
SUB truggets,3600
SET brklights,2
SET brkparts,3
SOUND impact.wav
GOTO @begin
END

@brake4
COMPARE #<truggets>,7000
IF<,@needtrugs
SUB truggets,7000
SET brklights,3
SET brkparts,4
SOUND impact.wav
GOTO @begin
END

@brake5
COMPARE #<truggets>,10400
IF<,@needtrugs
SUB truggets,10400
SET brklights,4
SET brkparts,5
SOUND impact.wav
GOTO @begin
END

@brake6
COMPARE #<truggets>,14000
IF<,@needtrugs
SUB truggets,14000
SET brklights,5
SET brkparts,6
SOUND impact.wav
GOTO @begin
END

@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END

;-----------------------------------------------

@cooling
MENU "Coolant radiator 50 T=@cooling1","Stack-3 radiator 100 T=@cooling2","Stack-6 radiator 300 T=@cooling3","Rod coolant pump 900 T=@cooling4","Dual coolant pump 2700 T=@cooling5","Turbo coolant pump 5400 T=@cooling6"
END

@cooling1
COMPARE #<truggets>,50
IF<,@needtrugs
SUB truggets,50
SET collights,0
SET colparts,1
SOUND impact.wav
GOTO @begin
END

@cooling2
COMPARE #<truggets>,100
IF<,@needtrugs
SUB truggets,100
SET collights,1
SET colparts,2

SOUND impact.wav

GOTO @begin
END

@cooling3
COMPARE #<truggets>,300
IF<,@needtrugs
SUB truggets,300
SET collights,2
SET colparts,3
SOUND impact.wav
GOTO @begin
END

@cooling4
COMPARE #<truggets>,900
IF<,@needtrugs
SUB truggets,900
SET collights,3
SET colparts,4
SOUND impact.wav
GOTO @begin
END

@cooling5
COMPARE #<truggets>,2700
IF<,@needtrugs
SUB truggets,2700
SET collights,4
SET colparts,5
SOUND impact.wav
GOTO @begin
END

@cooling6
COMPARE #<truggets>,5400
IF<,@needtrugs
SUB truggets,5400
SET collights,5
SET colparts,6
SOUND impact.wav
GOTO @begin
END

@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END

;-----------------------------------------------

@repair
MENU "Single power cell 150 T=@repair1","Dual power cell 300 T=@repair2","Quad power cell 800 T=@repair3","Cluster power plug 1400 T=@repair4","Rotary power plug 4000 T=@repair5","Cluster2 power plug 7000 T=@repair6"
END

@repair1
COMPARE #<truggets>,150
IF<,@needtrugs
SUB truggets,150
SET rprlights,0
SET rprparts,1
SOUND impact.wav
GOTO @begin
END

@repair2
COMPARE #<truggets>,300
IF<,@needtrugs
SUB truggets,300
SET rprlights,1
SET rprparts,2
SOUND impact.wav
GOTO @begin
END

@repair3
COMPARE #<truggets>,800
IF<,@needtrugs
SUB truggets,800
SET rprlights,2
SET rprparts,3
SOUND impact.wav
GOTO @begin
END

@repair4
COMPARE #<truggets>,1400
IF<,@needtrugs
SUB truggets,1400
SET rprlights,3
SET rprparts,4
SOUND impact.wav
GOTO @begin
END

@repair5
COMPARE #<truggets>,4000
IF<,@needtrugs
SUB truggets,4000
SET rprlights,4
SET rprparts,5
SOUND impact.wav
GOTO @begin
END

@repair6
COMPARE #<truggets>,7000
IF<,@needtrugs
SUB truggets,7000
SET rprlights,5
SET rprparts,6
SOUND impact.wav
GOTO @begin
END



@needtrugs
N: You've got to earn more truggets racing to buy that!!!
END

;-----------------------------------------------

@eventActorClick15
SET boost,0
SET racepoints,0
COMPARE #<ownedpod>,13
IF=,@buypod
MENU "Tatooine=@level1","Mon Gazza=@level2","Ando Prime=@level3","Aquilaris=@level4","Oovo IV=@level5","Baroonda=@level6"
END
@buypod
N: You must buy a pod to race!
GOTO @begin
END

;-----------------------------------------------

@level1
GOTO SCENE 998 
END

@level2
GOTO SCENE 994
END

@level3
GOTO SCENE 990
END

@level4
GOTO SCENE 986
END

@level5
GOTO SCENE 982
END

@level6
GOTO SCENE 978
END

;----------------------------------------------

;Tatooine race track
SCENE 998 level1start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: Welcome all to the Boonta Eve Classic!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level1pt1
END
@level1pt1
GOTO SCENE 997
END

SCENE 997 level1mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level1pt2
END
@level1pt2
GOTO SCENE 996
END

SCENE 996 level1end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level1pt3
END
@level1pt3
GOTO SCENE 995
END

SCENE 995 level1finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,18
IF>,@firstplacelevel1
COMPARE #<podrate>,16
IF>,@secondplacelevel1
COMPARE #<podrate>,14
IF>,@thirdplacelevel1
COMPARE #<podrate>,12
IF>,@fourthplacelevel1
COMPARE #<podrate>,10
IF>,@fifthplacelevel1
GOTO @sixthplacelevel1
WAIT 3.0
END
@firstplacelevel1
ADD truggets,500
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 500 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points. 
WAIT 3.0
GOTO @1done
END
@secondplacelevel1
ADD truggets,300
N: You've finished second.
N: Your prize money is 300 T.
N: You scored #<racepoints> total performance points.

WAIT 2.0
GOTO @1done



END
@thirdplacelevel1
ADD truggets,200
N: You've finished third.
N: Your prize money is 200 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0

GOTO @1done
END
@fourthplacelevel1
ADD truggets,100
N: You've finished fourth.
N: Your prize money is 100 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @1done
END
@fifthplacelevel1
ADD truggets,50
N: You've finished fifth.
N: Your prize money is 50 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @1done
END
@sixthplacelevel1
ADD truggets,10
N: You've finished last...
N: Your prize money is 10 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @1done
END
@1done
GOTO SCENE 999
END

;---------------------------------------------
;----------------------------------------------

;Mon Gazza race track
SCENE 994 level2start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,3,15,95
ACTOR 3,"",pods2,4,15,90
ACTOR 4,"",pods2,5,15,85
ACTOR 5,"",pods2,6,15,80
ACTOR 6,"",pods2,7,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: Ladies and Gentlemen, we give you the Mon Gazza Sprint!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level2pt1
END
@level2pt1
GOTO SCENE 993
END

SCENE 993 level2mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,3,15,95
ACTOR 3,"",pods2,4,15,90
ACTOR 4,"",pods2,5,15,85
ACTOR 5,"",pods2,6,15,80
ACTOR 6,"",pods2,7,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7

ADD boost,1
N: Total Boost #<boost>
IF XP,@level2pt2
END
@level2pt2
GOTO SCENE 992
END

SCENE 992 level2end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,3,15,95
ACTOR 3,"",pods2,4,15,90
ACTOR 4,"",pods2,5,15,85
ACTOR 5,"",pods2,6,15,80
ACTOR 6,"",pods2,7,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level2pt3
END
@level2pt3
GOTO SCENE 991
END

SCENE 991 level2finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,3,15,95
ACTOR 3,"",pods2,4,15,90
ACTOR 4,"",pods2,5,15,85
ACTOR 5,"",pods2,6,15,80
ACTOR 6,"",pods2,7,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,25
IF>,@firstplacelevel2
COMPARE #<podrate>,23
IF>,@secondplacelevel2
COMPARE #<podrate>,22
IF>,@thirdplacelevel2
COMPARE #<podrate>,20
IF>,@fourthplacelevel2
COMPARE #<podrate>,18
IF>,@fifthplacelevel2
GOTO @sixthplacelevel2
WAIT 3.0
END
@firstplacelevel2
ADD truggets,1150
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 1150 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points. 
WAIT 3.0
GOTO @2done
END
@secondplacelevel2
ADD truggets,675
N: You've finished second.
N: Your prize money is 675 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @2done
END
@thirdplacelevel2
ADD truggets,450
N: You've finished third.
N: Your prize money is 450 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @2done
END
@fourthplacelevel2
ADD truggets,225
N: You've finished fourth.
N: Your prize money is 225 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @2done
END
@fifthplacelevel2
ADD truggets,110
N: You've finished fifth.
N: Your prize money is 110 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @2done
END
@sixthplacelevel2
ADD truggets,25
N: You've finished last...
N: Your prize money is 25 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @2done
END
@2done
GOTO SCENE 999
END

;----------------------------------------------

;Ando Prime race track
SCENE 990 level3start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,5,15,95
ACTOR 3,"",pods2,6,15,90
ACTOR 4,"",pods2,7,15,85
ACTOR 5,"",pods2,8,15,80
ACTOR 6,"",pods2,9,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: Welcome to the Ando Prime Eliminations!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level3pt1
END
@level3pt1
GOTO SCENE 989
END

SCENE 989 level3mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,5,15,95
ACTOR 3,"",pods2,6,15,90
ACTOR 4,"",pods2,7,15,85
ACTOR 5,"",pods2,8,15,80
ACTOR 6,"",pods2,9,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level3pt2
END
@level3pt2
GOTO SCENE 988
END

SCENE 988 level3end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,5,15,95
ACTOR 3,"",pods2,6,15,90
ACTOR 4,"",pods2,7,15,85
ACTOR 5,"",pods2,8,15,80
ACTOR 6,"",pods2,9,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5

MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level3pt3
END
@level3pt3
GOTO SCENE 987
END

SCENE 987 level3finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,5,15,95
ACTOR 3,"",pods2,6,15,90
ACTOR 4,"",pods2,7,15,85
ACTOR 5,"",pods2,8,15,80
ACTOR 6,"",pods2,9,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,32
IF>,@firstplacelevel3
COMPARE #<podrate>,30
IF>,@secondplacelevel3
COMPARE #<podrate>,28
IF>,@thirdplacelevel3
COMPARE #<podrate>,26
IF>,@fourthplacelevel3
COMPARE #<podrate>,24
IF>,@fifthplacelevel3
GOTO @sixthplacelevel3
WAIT 3.0
END
@firstplacelevel3
ADD truggets,1800
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 1800 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points. 
WAIT 3.0
GOTO @3done
END
@secondplacelevel3
ADD truggets,1080
N: You've finished second.
N: Your prize money is 1080 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @3done
END
@thirdplacelevel3
ADD truggets,720
N: You've finished third.
N: Your prize money is 720 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @3done
END
@fourthplacelevel3
ADD truggets,360
N: You've finished fourth.
N: Your prize money is 360 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @3done
END
@fifthplacelevel3
ADD truggets,180
N: You've finished fifth.
N: Your prize money is 180 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @3done
END
@sixthplacelevel3
ADD truggets,40
N: You've finished last...
N: Your prize money is 40 T.
N: You scored #<racepoints> total performance points.

WAIT 2.0
GOTO @3done
END
@3done
GOTO SCENE 999
END

;----------------------------------------------

;Aquilaris race track
SCENE 986 level4start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,7,15,95
ACTOR 3,"",pods2,8,15,90
ACTOR 4,"",pods2,9,15,85
ACTOR 5,"",pods2,10,15,80
ACTOR 6,"",pods2,11,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: It's time again for the Aquilaris Annual!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level4pt1
END
@level4pt1
GOTO SCENE 985
END

SCENE 985 level4mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,7,15,95
ACTOR 3,"",pods2,8,15,90
ACTOR 4,"",pods2,9,15,85
ACTOR 5,"",pods2,10,15,80
ACTOR 6,"",pods2,11,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level1pt2
END
@level1pt2
GOTO SCENE 984
END

SCENE 984 level4end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,7,15,95
ACTOR 3,"",pods2,8,15,90
ACTOR 4,"",pods2,9,15,85
ACTOR 5,"",pods2,10,15,80
ACTOR 6,"",pods2,11,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level4pt3


END
@level4pt3
GOTO SCENE 983
END

SCENE 983 level4finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,7,15,95
ACTOR 3,"",pods2,8,15,90
ACTOR 4,"",pods2,9,15,85
ACTOR 5,"",pods2,10,15,80
ACTOR 6,"",pods2,11,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,39
IF>,@firstplacelevel4
COMPARE #<podrate>,37
IF>,@secondplacelevel4
COMPARE #<podrate>,35
IF>,@thirdplacelevel4
COMPARE #<podrate>,33
IF>,@fourthplacelevel4
COMPARE #<podrate>,31
IF>,@fifthplacelevel4
GOTO @sixthplacelevel4
WAIT 3.0
END
@firstplacelevel4
ADD truggets,2700
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 2700 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points. 
WAIT 3.0
GOTO @4done
END
@secondplacelevel4
ADD truggets,1620
N: You've finished second.
N: Your prize money is 1620 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @4done
END
@thirdplacelevel4
ADD truggets,1080
N: You've finished third.
N: Your prize money is 1080 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0 
GOTO @4done
END
@fourthplacelevel4
ADD truggets,540
N: You've finished fourth.
N: Your prize money is 540 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @4done
END
@fifthplacelevel4
ADD truggets,270
N: You've finished fifth.
N: Your prize money is 270 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @4done
END
@sixthplacelevel4
ADD truggets,60
N: You've finished last...
N: Your prize money is 60 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @4done
END
@4done
GOTO SCENE 999
END

;----------------------------------------------

;Oovo IV race track
SCENE 982 level5start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,8,15,95

ACTOR 3,"",pods2,9,15,90
ACTOR 4,"",pods2,10,15,85
ACTOR 5,"",pods2,11,15,80
ACTOR 6,"",pods2,12,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: Welcome to the Oovo IV Open!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level5pt1
END
@level5pt1
GOTO SCENE 981
END

SCENE 981 level5mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,8,15,95
ACTOR 3,"",pods2,9,15,90
ACTOR 4,"",pods2,10,15,85
ACTOR 5,"",pods2,11,15,80
ACTOR 6,"",pods2,12,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level5pt2
END
@level5pt2
GOTO SCENE 980
END

SCENE 980 level5end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,8,15,95
ACTOR 3,"",pods2,9,15,90
ACTOR 4,"",pods2,10,15,85
ACTOR 5,"",pods2,11,15,80
ACTOR 6,"",pods2,12,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level5pt3
END
@level5pt3
GOTO SCENE 979
END

SCENE 979 level5finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,8,15,95
ACTOR 3,"",pods2,9,15,90
ACTOR 4,"",pods2,10,15,85
ACTOR 5,"",pods2,11,15,80
ACTOR 6,"",pods2,12,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5

MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,46
IF>,@firstplacelevel5
COMPARE #<podrate>,44
IF>,@secondplacelevel5
COMPARE #<podrate>,42
IF>,@thirdplacelevel5
COMPARE #<podrate>,40
IF>,@fourthplacelevel5
COMPARE #<podrate>,38
IF>,@fifthplacelevel5
GOTO @sixthplacelevel5
WAIT 3.0
END
@firstplacelevel5
ADD truggets,3350
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 3350 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points. 
WAIT 3.0
GOTO @5done
END
@secondplacelevel5
ADD truggets,2020
N: You've finished second.
N: Your prize money is 2020 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @5done
END
@thirdplacelevel5
ADD truggets,1350
N: You've finished third.
N: Your prize money is 1350 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0 
GOTO @5done
END
@fourthplacelevel5
ADD truggets,670
N: You've finished fourth.
N: Your prize money is 670 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @5done
END
@fifthplacelevel5
ADD truggets,330
N: You've finished fifth.
N: Your prize money is 330 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @5done
END
@sixthplacelevel5
ADD truggets,75
N: You've finished last...
N: Your prize money is 75 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @5done
END
@5done
GOTO SCENE 999
END

;----------------------------------------------

;Baroonda race track
SCENE 978 level6start, cut
MUSIC #silence
ADD races,1
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND podintro.wav
N: Welcome to the Baroonda Invitational!
SOUND cheering.wav
N: Racers get ready!
WAIT 3.0
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav

WAIT 2.0
N: GO!!!
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level6pt1
END
@level6pt1
GOTO SCENE 977
END

SCENE 977 level6mid, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level6pt2
END
@level6pt2
GOTO SCENE 976
END

SCENE 976 level6end, cut
ACTOR 1,"",pods,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
ACTOR 7,"",podbuttons,5,80,30
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,4
MOVE 4,150,100,4
MOVE 5,150,100,3
MOVE 6,150,100,3
COUNTDOWN 6
END
@eventActorClick7
ADD boost,1
N: Total Boost #<boost>
IF XP,@level6pt3
END
@level6pt3
GOTO SCENE 975
END

SCENE 975 level6finish, cut
ACTOR 1,"",pods2,#<ownedpod>,15,100
ACTOR 2,"",pods2,1,15,95
ACTOR 3,"",pods2,2,15,90
ACTOR 4,"",pods2,3,15,85
ACTOR 5,"",pods2,4,15,80
ACTOR 6,"",pods2,5,15,75
SOUND pod1.wav
SOUND pod2.wav
SOUND pod3.wav
SOUND pod4.wav
SOUND pod5.wav
MOVE 1,150,100,5
MOVE 2,150,100,5
MOVE 3,150,100,5
MOVE 4,150,100,5
MOVE 5,150,100,5
MOVE 6,150,100,5
DIV boost,10
ADD podrate,#<boost>
SET racepoints,#<podrate>
COMPARE #<podrate>,50
IF>,@firstplacelevel6
COMPARE #<podrate>,49
IF>,@secondplacelevel6
COMPARE #<podrate>,48
IF>,@thirdplacelevel6
COMPARE #<podrate>,47
IF>,@fourthplacelevel6
COMPARE #<podrate>,46
IF>,@fifthplacelevel6
GOTO @sixthplacelevel6
WAIT 3.0
END
@firstplacelevel6
ADD truggets,5000
ADD won,1
N: You've finished first!
N: Congratulations!
N: Your prize money is 5000 T.
N: Your boost bonus is #<boost>
N: You scored #<racepoints> total performance points.
HOST_GIVE T66
N: You may now shop at Galactic Boots. 
WAIT 3.0
GOTO @6done
END
@secondplacelevel6
ADD truggets,3000
N: You've finished second.
N: Your prize money is 3000 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @6done
END
@thirdplacelevel6
ADD truggets,2000
N: You've finished third.
N: Your prize money is 2000 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0 
GOTO @6done
END
@fourthplacelevel6
ADD truggets,1000
N: You've finished fourth.
N: Your prize money is 1000 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @6done
END
@fifthplacelevel6
ADD truggets,500
N: You've finished fifth.
N: Your prize money is 500 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @6done
END
@sixthplacelevel6
ADD truggets,100
N: You've finished last...
N: Your prize money is 100 T.
N: You scored #<racepoints> total performance points.
WAIT 2.0
GOTO @6done
END
@6done
GOTO SCENE 999
END

