home *** CD-ROM | disk | FTP | other *** search
- global gBtns1, gCasts1, gBtns2, gCasts2, gBtns3, gCasts3, gHilite, gCopierPics, gCopySpr, gCopierMsgs, gMsgSpr, gBtns4, gCasts4, gMode, gDelay, gTrigger, gHiliteDelay
-
- on btnJob1
- setHilite1(gBtns1, gCasts1)
- end
-
- on btnJob2
- setHilite1(gBtns2, gCasts2)
- end
-
- on btnJob4
- setHilite1(gBtns4, gCasts4)
- if not gTrigger or rollOver(46) then
- exit
- end if
- swapCast(46, 281)
- updateStage()
- wait(10)
- swapCast(46, 282)
- updateStage()
- end
-
- on setHilite1 n1, n2
- repeat with i = 1 to count(n1)
- set s to getAt(n1, i)
- set c1 to getAt(n2, i)
- set c2 to c1 + 1
- set c3 to c1 + 2
- if rollOver(s) then
- if the mouseDown then
- swapCast(s, c3)
- else
- swapCast(s, c2)
- end if
- next repeat
- end if
- swapCast(s, c1)
- end repeat
- end
-
- on swapCast n1, n2
- puppetSprite(n1, 1)
- set the castNum of sprite n1 to n2
- end
-
- on btnJob3
- set n to count(gBtns3)
- repeat with i = 1 to n
- set s to getAt(gBtns3, i)
- set c1 to getAt(gCasts3, i)
- set c2 to c1 + 1
- set c3 to c1 + 2
- set p to getAt(gCopierPics, i)
- set m to getAt(gCopierMsgs, i)
- if rollOver(s) then
- if i < 10 then
- swapCast(gMsgSpr, m)
- swapCast(gCopySpr, p)
- set gHiliteDelay to the timer
- set gHilite to 1
- end if
- if the mouseDown then
- swapCast(s, c3)
- else
- swapCast(s, c2)
- end if
- next repeat
- end if
- if ((the timer - gHiliteDelay) < 60) or not (i = gHilite) then
- swapCast(s, c1)
- next repeat
- end if
- swapCast(s, c2)
- swapCast(gMsgSpr, m)
- swapCast(gCopySpr, p)
- updateStage()
- wait(180)
- end repeat
- set gHilite to gHilite + 1
- if gHilite > 9 then
- set gHilite to 1
- end if
- end
-
- on wait n1
- set t to the timer
- repeat while (the timer - t) < n1
- end repeat
- end
-
- on delayJob n1
- if not gDelay then
- set gDelay to the timer
- else
- if (the timer - gDelay) > n1 then
- set gDelay to 0
- exit
- end if
- end if
- go(the frame)
- end
-