home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gflag1, gnum1, gvar1
- puppetSound(3, gnum1 + 500)
- puppetSprite(6, 1)
- if gflag1 > 30 then
- coverdis(30)
- else
- coverdis(gflag1)
- end if
- if gflag1 > 30 then
- set the locV of sprite 6 to 78
- coverdis(gflag1 - 30)
- end if
- if gvar1 = 1 then
- compansh()
- end if
- repeat while soundBusy(3)
- nothing()
- end repeat
- puppetSound(3, 55)
- repeat while soundBusy(3)
- if random(500) = 500 then
- compansh()
- exit repeat
- end if
- end repeat
- compansh()
- end
-
- on coverdis num
- set num to num * 3
- repeat with c = 1 to num
- startTimer()
- set bh to 45 + (6 * c)
- repeat with n = 1 to 3
- set the locH of sprite 6 to bh + (n * 2)
- updateStage()
- end repeat
- repeat while the timer < 3
- nothing()
- end repeat
- end repeat
- end
-
- on compansh
- global gvar1
- set gvar1 to random(4) - 1
- ansh(gvar1)
- abort()
- end
-
- on ansh num
- cursor(200)
- set uc to the castNum of sprite (num + 8)
- set the castNum of sprite (num + 8) to uc + 10
- updateStage()
- waith(15)
- puppetSound(3, 54)
- set the castNum of sprite (num + 8) to uc + 20
- puppetSprite(7, 1)
- puppetSprite(12, 1)
- set the locH of sprite 7 to 556 - (num * 156)
- set the locH of sprite 12 to 505 - (num * 156)
- updateStage()
- waith(15)
- set the castNum of sprite 12 to 165
- updateStage()
- sameend()
- waitsnd()
- puppetSound(3, num + 69)
- end
-
- on sameend
- global gnum1, gflag1
- puppetSprite(4, 0)
- puppetSprite(6, 0)
- set alist to [random(3)]
- repeat with n = 1 to 2
- set num to random(3)
- if getOne(alist, num) = 0 then
- append(alist, num)
- next repeat
- end if
- set n to n - 1
- end repeat
- set gflag1 to getOne(alist, 1)
- repeat with n = 1 to 3
- puppetSprite(n + 40, 1)
- set the castNum of sprite (n + 40) to (gnum1 * 4) + 517 + getAt(alist, n)
- end repeat
- end
-