home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gstg, gbor, gmode
- if gmode <> 20 then
- exit
- end if
- puppetSound(3, 78)
- repeat with n = 22 to 25
- set the locV of sprite n to 130
- end repeat
- set c to gstg mod 10
- if c = 0 then
- set c to 10
- end if
- set bor2 to getAt([20, 30, 40, 50, 40, 50, 60, 70, 50, 60], c) + gbor
- if bor2 > 9999 then
- set bor2 to 9999
- end if
- repeat with c = gbor to bor2
- set b4 to c / 1000
- set num to c - (b4 * 1000)
- set b3 to num / 100
- set num to num - (b3 * 100)
- set b2 to num / 10
- set b1 to num - (b2 * 10)
- repeat with n = 4 down to 1
- do("put b" & string(n) & " into num")
- if num <> 0 then
- exit repeat
- end if
- end repeat
- repeat with m = 1 to n
- do("set the castNum of sprite (m+21) to (261 + b" & string(m) & ")")
- end repeat
- startTimer()
- repeat while the timer < 2
- nothing()
- end repeat
- updateStage()
- end repeat
- sound stop 3
- set gbor to bor2
- startTimer()
- repeat while the timer < 30
- nothing()
- end repeat
- end
-