home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- set alist to [0, 3, 6, 1]
- set blist to [0, 4, 2, 7]
- set aalist to [0, 5, 2, 8]
- set bblist to [0, 2, 6, 0]
- set ralist to [1, 0, 0, 0]
- set rblist to [1, 0, 0, 0]
- repeat with c = 0 to 9
- repeat with r = 1 to 3
- repeat with n = 2 to 4
- set the castNum of sprite (9 + n) to ((getAt(alist, n) + c) mod 10) + 151 + (10 * r)
- set the castNum of sprite (12 + n) to ((getAt(blist, n) + c) mod 10) + 151 + (10 * r)
- end repeat
- waitupdateh(1)
- end repeat
- repeat with n = 2 to 4
- set the castNum of sprite (9 + n) to ((getAt(alist, n) + c + 1) mod 10) + 151
- set the castNum of sprite (12 + n) to ((getAt(blist, n) + c + 1) mod 10) + 151
- end repeat
- waitupdateh(1)
- end repeat
- repeat with c = 0 to 9
- repeat with r = 1 to 3
- repeat with n = 2 to 4
- if getAt(ralist, n) = 0 then
- set the castNum of sprite (9 + n) to ((getAt(alist, n) + c) mod 10) + 151 + (10 * r)
- end if
- if getAt(rblist, n) = 0 then
- set the castNum of sprite (12 + n) to ((getAt(blist, n) + c) mod 10) + 151 + (10 * r)
- end if
- end repeat
- waitupdateh(1)
- end repeat
- repeat with n = 2 to 4
- if getAt(ralist, n) = 0 then
- set the castNum of sprite (9 + n) to ((getAt(alist, n) + c + 1) mod 10) + 151
- end if
- if getAt(aalist, n) = ((getAt(alist, n) + c + 1) mod 10) then
- setAt(ralist, n, 1)
- end if
- if getAt(rblist, n) = 0 then
- set the castNum of sprite (12 + n) to ((getAt(blist, n) + c + 1) mod 10) + 151
- end if
- if getAt(bblist, n) = ((getAt(blist, n) + c + 1) mod 10) then
- setAt(rblist, n, 1)
- end if
- end repeat
- waitupdateh(1)
- end repeat
- unLoadCast(73, 74)
- repeat while soundBusy(2)
- nothing()
- end repeat
- unLoadCast(111, 120)
- unLoadCast(150, 190)
- end
-
- on waitupdateh num
- updateStage()
- startTimer()
- repeat while the timer < num
- nothing()
- end repeat
- end
-