home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gstg, ghislist
- if gstg > 5 then
- slideh()
- end if
- set c to count(ghislist) + 1
- repeat with s = 39 to 42
- puppetSprite(n, 1)
- set the locV of sprite s to 163 + (20 * c)
- end repeat
- updateStage()
- end
-
- on slideh
- global ghislist
- deleteAt(ghislist, 1)
- repeat with n = 1 to 4
- repeat with s = 39 to 42
- set the locV of sprite s to 163 + (20 * n)
- end repeat
- set num to getAt(ghislist, n)
- if num < -999 then
- set num to -999
- else
- if num > 9999 then
- set num to 9999
- end if
- end if
- counth(abs(num))
- if num < 0 then
- set the castNum of sprite 39 to 291
- end if
- updateStage()
- end repeat
- end
-
- on counth num
- set b1 to num / 1000
- set num to num - (b1 * 1000)
- set b2 to num / 100
- set num to num - (b2 * 100)
- set b3 to num / 10
- set b4 to num - (b3 * 10)
- repeat with n = 1 to 4
- do("put b" & string(n) & " into num")
- if num <> 0 then
- exit repeat
- next repeat
- end if
- set the castNum of sprite (n + 38) to 292
- end repeat
- if n = 5 then
- set n to 4
- end if
- repeat with m = n to 4
- do("set the castNum of sprite (m+38) to (281 + b" & string(m) & ")")
- end repeat
- end
-