home *** CD-ROM | disk | FTP | other *** search
- on selectedjunluh
- global gnum1, gtime1, gwlist1
- puppetSound(3, 51)
- set sp to gnum1 + 21
- set the castNum of sprite sp to getAt(gwlist1, gnum1) + 210
- repeat while soundBusy(3)
- set the castNum of sprite (sp - 20) to 166
- updateStage()
- waith(2)
- set the castNum of sprite (sp - 20) to 121
- updateStage()
- waith(2)
- end repeat
- if the frame < 5 then
- goquiz()
- go("q")
- end if
- end
-
- on goquiz
- global gpersonlist
- repeat with n = 2 to 7
- puppetSprite(n, 0)
- end repeat
- puppetSprite(12, 0)
- puppetSprite(41, 0)
- puppetSprite(48, 0)
- repeat with n = 1 to 4
- set the locH of sprite (n + 7) to 641 - (n * 156)
- set the locV of sprite (n + 7) to 304
- set the castNum of sprite (n + 7) to getAt(gpersonlist, n) + 380
- end repeat
- repeat with n = 1 to 4
- set the castNum of sprite (n + 12) to 166
- set the castNum of sprite (n + 16) to 166
- end repeat
- repeat with n = 21 to 40
- set the castNum of sprite n to 166
- end repeat
- end
-
- on cursormoveh1
- global gnum1
- waitsnd()
- startTimer()
- repeat with n = 1 to 20
- set the locH of sprite 48 to 641 - (16 * n)
- set the locV of sprite 48 to 440 - (11 * n)
- updateStage()
- if (n mod 3) = 0 then
- repeat while the timer < 2
- nothing()
- end repeat
- startTimer()
- end if
- end repeat
- set sp to gnum1 + 21
- set h to the locH of sprite sp
- set v to the locV of sprite sp
- set mh to abs(321 - h) / 20
- set mv to abs(220 - v) / 20
- if 321 > h then
- set mh to -1 * mh
- end if
- if 220 > v then
- set mv to -1 * mv
- end if
- waith(30)
- startTimer()
- repeat with n = 1 to 20
- set the locH of sprite 48 to 321 + (mh * n)
- set the locV of sprite 48 to 220 + (mv * n)
- updateStage()
- if (n mod 3) = 0 then
- repeat while the timer < 2
- nothing()
- end repeat
- startTimer()
- end if
- end repeat
- set the locH of sprite 48 to h
- set the locV of sprite 48 to v
- updateStage()
- end
-
- on waitsnd
- repeat while soundBusy(3)
- nothing()
- end repeat
- end
-
- on waith n
- startTimer()
- repeat while the timer < n
- nothing()
- end repeat
- end
-