home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / artwaug.dxr / 00016_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1996-06-17  |  13.5 KB  |  267 lines

  1. on ARTWhichSection
  2.   global ARTChooseSectionList, ARTVerticalTrailSprite, ARTMusOneMusicSprite, ARTMusOneUnderLineSprite, ARTWhichPartList, ARTLitSpriteList, ARTMusicOneBeenHere, ARTMusicOneMasterList, ARTLiteratureSprite, ARTLiteratureTrailSprite, ARTLiteratureBeenHere, ARTLiteratureMasterList, ArtImageSmallSprite, ARTGraphicsSpriteList, IFLArtsNameSprite, ARTGraphicsMasterList, ARTGraphicsBeenHere, ARTLitNet, ARTMusicOnePlayCount, ARTMusOneBackgroudSprite, ARTMusicOneList, ARTComp, ARTVidSpriteList, IFLButtonList, ARTVidPalList
  3.   repeat with t = 1 to count(ARTChooseSectionList)
  4.     set whichSection to getAt(ARTChooseSectionList, t)
  5.     set thisSprite to getAt(whichSection, 1)
  6.     if rollOver(getAt(whichSection, 1)) then
  7.       if getAt(whichSection, 2) = 0 then
  8.         set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) + 1
  9.         if t = 1 then
  10.           set the ink of sprite getAt(whichSection, 3) to 33
  11.         end if
  12.         if t = 2 then
  13.           set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite + 1
  14.         end if
  15.         if t = 3 then
  16.           set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite + 1
  17.         end if
  18.         updateStage()
  19.         setAt(whichSection, 2, 1)
  20.       end if
  21.       if the mouseDown then
  22.         if getAt(ARTWhichPartList, t) <> 1 then
  23.           repeat with f = 1 to count(ARTWhichPartList)
  24.             if getAt(ARTWhichPartList, f) = 1 then
  25.               if f = 1 then
  26.                 ARTMusicOneGo(f)
  27.                 setAt(ARTWhichPartList, f, 0)
  28.               end if
  29.               if f = 2 then
  30.                 ARTLiteratureGo(f)
  31.                 setAt(ARTWhichPartList, f, 0)
  32.               end if
  33.               if f = 3 then
  34.                 ARTGraphicsGo(f)
  35.                 setAt(ARTWhichPartList, f, 0)
  36.               end if
  37.               if f = 4 then
  38.                 ARTVideoGo(f)
  39.                 setAt(ARTWhichPartList, f, 0)
  40.               end if
  41.             end if
  42.           end repeat
  43.           setAt(ARTWhichPartList, t, 1)
  44.           if t = 4 then
  45.             set ARTComp to 1
  46.             repeat with z = 1 to count(ARTVidPalList)
  47.               setAt(getAt(ARTVidPalList, z), 2, the locH of sprite getAt(getAt(ARTVidPalList, z), 1))
  48.               set the locH of sprite getAt(getAt(ARTVidPalList, z), 1) to 2000
  49.             end repeat
  50.             set the castNum of sprite 26 to 261
  51.             set the castNum of sprite IFLArtsNameSprite to 262
  52.             set the locH of sprite 38 to 2000
  53.             repeat with s = 1 to count(IFLButtonList)
  54.               set ThisTempList to getAt(IFLButtonList, s)
  55.               if getAt(ThisTempList, 1) <> IFLArtsNameSprite then
  56.                 setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
  57.               end if
  58.             end repeat
  59.             repeat with b = 39 to 47
  60.               if b <> IFLArtsNameSprite then
  61.                 set the locH of sprite b to 2000
  62.               end if
  63.             end repeat
  64.             updateStage()
  65.             puppetPalette("classPal")
  66.             updateStage()
  67.             repeat with z = 1 to count(ARTVidPalList)
  68.               set the castNum of sprite getAt(getAt(ARTVidPalList, z), 1) to getAt(getAt(ARTVidPalList, z), 4)
  69.               set the locH of sprite getAt(getAt(ARTVidPalList, z), 1) to getAt(getAt(ARTVidPalList, z), 2)
  70.             end repeat
  71.             updateStage()
  72.             set the castNum of sprite IFLArtsNameSprite to 250
  73.             repeat with g = 1 to count(ARTVidSpriteList)
  74.               set the castNum of sprite getAt(getAt(ARTVidSpriteList, g), 1) to getAt(getAt(ARTVidSpriteList, g), 2)
  75.               set the locH of sprite getAt(getAt(ARTVidSpriteList, g), 1) to getAt(getAt(ARTVidSpriteList, g), 3)
  76.               set the locV of sprite getAt(getAt(ARTVidSpriteList, g), 1) to getAt(getAt(ARTVidSpriteList, g), 4)
  77.               set the ink of sprite getAt(getAt(ARTVidSpriteList, g), 1) to getAt(getAt(ARTVidSpriteList, g), 5)
  78.             end repeat
  79.             updateStage()
  80.           end if
  81.           if t = 3 then
  82.             set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  83.             set the castNum of sprite IFLArtsNameSprite to 58
  84.             repeat with c = 1 to 3
  85.               set the locV of sprite getAt(whichSection, 3) to the locV of sprite getAt(whichSection, 3) - 18
  86.               updateStage()
  87.             end repeat
  88.             if ARTGraphicsBeenHere = 1 then
  89.               repeat with a = 1 to count(ARTGraphicsMasterList)
  90.                 set ChangeSprite to getAt(ARTGraphicsMasterList, a)
  91.                 set the locH of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 3)
  92.                 set the locV of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 4)
  93.                 set the ink of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 5)
  94.                 set the castNum of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 2)
  95.               end repeat
  96.               updateStage()
  97.             else
  98.               repeat with g = 1 to count(ARTGraphicsSpriteList)
  99.                 set the castNum of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 2)
  100.                 set the locH of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 3)
  101.                 set the locV of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 4)
  102.                 set the ink of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 5)
  103.               end repeat
  104.             end if
  105.           end if
  106.           if t = 2 then
  107.             set whichSection to getAt(ARTChooseSectionList, t)
  108.             set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  109.             set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  110.             set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  111.             set the castNum of sprite 24 to 166
  112.             set the locH of sprite ARTLiteratureTrailSprite to the locH of sprite ARTLiteratureSprite
  113.             set the locV of sprite ARTLiteratureTrailSprite to the locV of sprite ARTLiteratureSprite
  114.             updateStage()
  115.             repeat while the locV of sprite ARTLiteratureSprite > (185 + 20)
  116.               set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  117.               set the locV of sprite ARTLiteratureTrailSprite to the locV of sprite ARTLiteratureTrailSprite - 20
  118.               updateStage()
  119.             end repeat
  120.             set the locV of sprite ARTLiteratureSprite to 185
  121.             set the locV of sprite ARTLiteratureTrailSprite to 185
  122.             updateStage()
  123.             wait(0.29999999999999999)
  124.             repeat with g = 1 to count(ARTLitSpriteList)
  125.               set the castNum of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 2)
  126.               set the locH of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 3)
  127.               set the locV of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 4)
  128.               set the ink of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 5)
  129.             end repeat
  130.             if ARTLiteratureBeenHere = 1 then
  131.               repeat with a = 1 to count(ARTLiteratureMasterList)
  132.                 set ChangeSprite to getAt(ARTLiteratureMasterList, a)
  133.                 set the locH of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 3)
  134.                 set the locV of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 4)
  135.                 set the ink of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 5)
  136.                 set the castNum of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 2)
  137.               end repeat
  138.             else
  139.               set SetUp to getAt(getAt(ARTLiteratureList, 1), 4)
  140.               set the castNum of sprite getAt(SetUp, 1) to getAt(SetUp, 2)
  141.               set the locH of sprite getAt(SetUp, 1) to getAt(SetUp, 3)
  142.               set the locV of sprite getAt(SetUp, 1) to getAt(SetUp, 4)
  143.               set the ink of sprite getAt(SetUp, 1) to getAt(SetUp, 5)
  144.               set ARTLitNet to 1
  145.             end if
  146.             updateStage()
  147.           end if
  148.           if t = 1 then
  149.             repeat with c = 1 to 2
  150.               set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  151.               set the locV of sprite ARTMusOneUnderLineSprite to the locV of sprite ARTMusOneUnderLineSprite - 20
  152.               updateStage()
  153.             end repeat
  154.             repeat with c = 1 to 8
  155.               set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  156.               set the locV of sprite ARTMusOneUnderLineSprite to the locV of sprite ARTMusOneUnderLineSprite - 20
  157.               updateStage()
  158.               set the locV of sprite ARTVerticalTrailSprite to the locV of sprite ARTVerticalTrailSprite - 20
  159.               updateStage()
  160.             end repeat
  161.             set the castNum of sprite IFLArtsNameSprite to 71
  162.             set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  163.             set the castNum of sprite ARTMusOneMusicSprite to the castNum of sprite ARTMusOneMusicSprite + 1
  164.             set the locV of sprite ARTMusOneUnderLineSprite to 2000
  165.             set the trails of sprite ARTVerticalTrailSprite to 0
  166.             set the locV of sprite ARTVerticalTrailSprite to 2000
  167.             set the ink of sprite ARTMusOneMusicSprite to 36
  168.             updateStage()
  169.             if ARTMusicOneBeenHere = 1 then
  170.               repeat with a = 1 to count(ARTMusicOneMasterList)
  171.                 set ChangeSprite to getAt(ARTMusicOneMasterList, a)
  172.                 set the locH of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 3)
  173.                 set the locV of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 4)
  174.                 set the ink of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 5)
  175.                 set the castNum of sprite getAt(ChangeSprite, 1) to getAt(ChangeSprite, 2)
  176.               end repeat
  177.             end if
  178.           end if
  179.           if ARTMusicOneBeenHere = 0 then
  180.             repeat with y = 4 to count(whichSection)
  181.               set ThisList to getAt(whichSection, y)
  182.               set the castNum of sprite getAt(ThisList, 1) to getAt(ThisList, 2)
  183.               set the locH of sprite getAt(ThisList, 1) to getAt(ThisList, 3)
  184.               set the locV of sprite getAt(ThisList, 1) to getAt(ThisList, 4)
  185.               set the ink of sprite getAt(ThisList, 1) to getAt(ThisList, 5)
  186.             end repeat
  187.             if t = 1 then
  188.               set the castNum of sprite ARTMusOneBackgroudSprite to the castNum of sprite ARTMusOneBackgroudSprite + 1
  189.               repeat while the locV of sprite 10 > (205 + 25)
  190.                 set the locV of sprite 10 to the locV of sprite 10 - 25
  191.                 if the locV of sprite 9 > (246 + 25) then
  192.                   set the locV of sprite 9 to the locV of sprite 9 - 25
  193.                 else
  194.                   set the locV of sprite 9 to 246
  195.                 end if
  196.                 if the locV of sprite 8 > (288 + 25) then
  197.                   set the locV of sprite 8 to the locV of sprite 8 - 25
  198.                 else
  199.                   set the locV of sprite 8 to 288
  200.                 end if
  201.                 if the locV of sprite 7 > (330 + 25) then
  202.                   set the locV of sprite 7 to the locV of sprite 7 - 25
  203.                 else
  204.                   set the locV of sprite 7 to 330
  205.                 end if
  206.                 updateStage()
  207.               end repeat
  208.               set the locV of sprite 10 to 205
  209.               updateStage()
  210.               set TemPList to getAt(ARTMusicOneList, 1)
  211.               repeat with d = 4 to count(TemPList)
  212.                 set InfoList to getAt(TemPList, d)
  213.                 set the castNum of sprite getAt(InfoList, 1) to getAt(InfoList, 2)
  214.                 set the locH of sprite getAt(InfoList, 1) to getAt(InfoList, 3)
  215.                 set the locV of sprite getAt(InfoList, 1) to getAt(InfoList, 4)
  216.                 set the ink of sprite getAt(InfoList, 1) to getAt(InfoList, 5)
  217.               end repeat
  218.               updateStage()
  219.               set ARTMusicOnePlayCount to 1
  220.             end if
  221.           end if
  222.           updateStage()
  223.         end if
  224.       end if
  225.       next repeat
  226.     end if
  227.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  228.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  229.       if t = 1 then
  230.         set the ink of sprite getAt(whichSection, 3) to 36
  231.       end if
  232.       if t = 2 then
  233.         set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  234.       end if
  235.       if t = 3 then
  236.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  237.       end if
  238.       updateStage()
  239.       setAt(whichSection, 2, 0)
  240.     end if
  241.   end repeat
  242. end
  243.  
  244. on ARTSubSection
  245.   global ARTWhichPartList
  246.   repeat with f = 1 to count(ARTWhichPartList)
  247.     if getAt(ARTWhichPartList, f) = 1 then
  248.       if f = 1 then
  249.         ARTMusicOne()
  250.         next repeat
  251.       end if
  252.       if f = 4 then
  253.         ARTVideo()
  254.         next repeat
  255.       end if
  256.       if f = 2 then
  257.         ARTLiterature()
  258.         next repeat
  259.       end if
  260.       if f = 3 then
  261.         ARTGraphics()
  262.         exit repeat
  263.       end if
  264.     end if
  265.   end repeat
  266. end
  267.