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