home *** CD-ROM | disk | FTP | other *** search
- on ADDPlaceAd
- global addlist, addPallist, ADDMouse, ADDThisNum, ADDKindList, REFAddWatch, REFaddPallist, REFaddlist, REFADDKindList
- go(the frame)
- if REFAddWatch = 0 then
- set thisPall to getAt(getAt(addPallist, ADDThisNum), 2)
- else
- set thisPall to getAt(getAt(REFaddPallist, ADDThisNum), 2)
- end if
- puppetPalette(thisPall)
- if REFAddWatch = 0 then
- set AddTVNum to getAt(getAt(addPallist, ADDThisNum), 1)
- else
- set AddTVNum to getAt(getAt(REFaddPallist, ADDThisNum), 1)
- end if
- set the castNum of sprite 2 to AddTVNum
- set the ink of sprite 2 to 0
- set the locH of sprite 2 to 0
- set the locV of sprite 2 to 0
- set the castNum of sprite 3 to AddTVNum + 1
- set the ink of sprite 3 to 0
- set the locH of sprite 3 to 0
- set the locV of sprite 3 to 0
- puppetSound("NOISE.AIF")
- updateStage()
- if REFAddWatch = 0 then
- repeat while 1
- if the castNum of sprite 3 = (AddTVNum + 5) then
- set the castNum of sprite 3 to AddTVNum - 4
- else
- set the castNum of sprite 3 to the castNum of sprite 3 + 1
- end if
- if the mouseUp then
- set ADDMouse to 1
- end if
- if the mouseDown and (ADDMouse = 1) then
- exit repeat
- end if
- updateStage()
- end repeat
- deleteAt(ADDKindList, ADDThisNum)
- deleteAt(addlist, ADDThisNum)
- deleteAt(addPallist, ADDThisNum)
- else
- repeat while 1
- if the castNum of sprite 3 = (AddTVNum + 5) then
- set the castNum of sprite 3 to AddTVNum - 4
- else
- set the castNum of sprite 3 to the castNum of sprite 3 + 1
- end if
- if the mouseUp then
- set ADDMouse to 1
- end if
- if the mouseDown and (ADDMouse = 1) then
- exit repeat
- end if
- updateStage()
- end repeat
- end if
- set ADDMouse to 0
- set the locH of sprite 2 to 2000
- set the locH of sprite 3 to 2000
- puppetPalette(0)
- puppetSound(0)
- updateStage()
- go("ADDBLACK")
- updateStage()
- end
-