home *** CD-ROM | disk | FTP | other *** search
- on ARTLeaveArts y
- global IFLButtonList, IFLArtsNameSprite, ADDADCOntTwo, ADDAdCount, ARTMasterList, ADDADvertSprite, IFLHeadInkList
- if y = 3 then
- nothing()
- else
- puppetSound(0)
- updateStage()
- end if
- repeat with f = 1 to count(ARTMasterList)
- set TwochangeSprite to getAt(ARTMasterList, f)
- if count(TwochangeSprite) > 2 then
- setAt(TwochangeSprite, 2, the castNum of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 5, the ink of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 3, the locH of sprite getAt(TwochangeSprite, 1))
- setAt(TwochangeSprite, 4, the locV of sprite getAt(TwochangeSprite, 1))
- else
- setAt(TwochangeSprite, 2, 0)
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- set the locV of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- set the locH of sprite ADDADvertSprite to 2000
- if y = 1 then
- set the castNum of sprite IFLArtsNameSprite to 54
- end if
- if (y = 2) or (y = 4) or (y = 5) then
- repeat with f = 1 to count(IFLButtonList)
- set ThisTempList to getAt(IFLButtonList, f)
- setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
- end repeat
- repeat with f = 1 to count(IFLHeadInkList)
- set InkTempList to getAt(IFLHeadInkList, f)
- setAt(InkTempList, 2, the ink of sprite getAt(ThisTempList, 1))
- end repeat
- repeat with t = 39 to 47
- set the locH of sprite t to 2000
- end repeat
- set the castNum of sprite IFLArtsNameSprite to getAt(getAt(IFLButtonList, 8), 5)
- set ADDADCOntTwo to 0
- set ADDAdCount to 0
- set the locH of sprite ADDADvertSprite to 2000
- set the locH of sprite 1 to 1500
- if y = 2 then
- ADDLOADAdd()
- else
- if y = 4 then
- ARTPlayDukeBox()
- else
- if y = 5 then
- ARTPlayZARNAK()
- end if
- end if
- end if
- end if
- if y = 3 then
- repeat with f = 1 to count(IFLButtonList)
- set ThisTempList to getAt(IFLButtonList, f)
- setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
- end repeat
- repeat with t = 39 to 47
- set the locH of sprite t to 2000
- end repeat
- set the locH of sprite ADDADvertSprite to 2000
- set the locH of sprite 1 to 1500
- ARTViewArt()
- end if
- updateStage()
- end
-
- on ARTReturnArts y
- global ARTMasterList, IFLButtonList, ARTWhichPartList, IFLArtsNameSprite, IFLHeadInkList
- if y = 1 then
- repeat with g = 1 to 9
- set the castNum of sprite IFLArtsNameSprite to the castNum of sprite IFLArtsNameSprite - 1
- updateStage()
- end repeat
- end if
- repeat with f = 1 to count(ARTMasterList)
- set TwochangeSprite to getAt(ARTMasterList, f)
- if count(TwochangeSprite) > 2 then
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
- set the visible of sprite getAt(TwochangeSprite, 1) to 1
- next repeat
- end if
- set the locH of sprite getAt(TwochangeSprite, 1) to 2000
- end repeat
- if y = 1 then
- if getAt(ARTWhichPartList, 1) = 1 then
- set the castNum of sprite IFLArtsNameSprite to 71
- end if
- if getAt(ARTWhichPartList, 3) = 1 then
- set the castNum of sprite IFLArtsNameSprite to 58
- end if
- end if
- set the locH of sprite 1 to 325
- set the locV of sprite 1 to 271
- if y = 2 then
- set the castNum of sprite 1 to the number of member "IFLStaticBackground"
- set the ink of sprite 1 to 36
- repeat with f = 39 to 47
- set the ink of sprite f to 36
- end repeat
- end if
- if y = 2 then
- repeat with f = 1 to count(IFLButtonList)
- set TwochangeSprite to getAt(IFLButtonList, f)
- set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
- set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
- end repeat
- repeat with f = 1 to count(IFLHeadInkList)
- set TwochangeSprite to getAt(IFLHeadInkList, f)
- set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
- end repeat
- end if
- ADDAdvertBreak(8)
- updateStage()
- go("ARTSection")
- end
-