home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / ARTSFINJ.DXR / 00016_ARTWhichSection,ARTSubSection.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  11.3 KB  |  222 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
  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.             end if
  38.           end repeat
  39.           setAt(ARTWhichPartList, t, 1)
  40.           if t = 3 then
  41.             set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  42.             set the castNum of sprite IFLArtsNameSprite to 58
  43.             repeat with c = 1 to 3
  44.               set the locV of sprite getAt(whichSection, 3) to the locV of sprite getAt(whichSection, 3) - 18
  45.               updateStage()
  46.             end repeat
  47.             if ARTGraphicsBeenHere = 1 then
  48.               repeat with A = 1 to count(ARTGraphicsMasterList)
  49.                 set changeSprite to getAt(ARTGraphicsMasterList, A)
  50.                 set the locH of sprite getAt(changeSprite, 1) to getAt(changeSprite, 3)
  51.                 set the locV of sprite getAt(changeSprite, 1) to getAt(changeSprite, 4)
  52.                 set the ink of sprite getAt(changeSprite, 1) to getAt(changeSprite, 5)
  53.                 set the castNum of sprite getAt(changeSprite, 1) to getAt(changeSprite, 2)
  54.               end repeat
  55.               updateStage()
  56.             else
  57.               repeat with g = 1 to count(ARTGraphicsSpriteList)
  58.                 set the castNum of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 2)
  59.                 set the locH of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 3)
  60.                 set the locV of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 4)
  61.                 set the ink of sprite getAt(getAt(ARTGraphicsSpriteList, g), 1) to getAt(getAt(ARTGraphicsSpriteList, g), 5)
  62.               end repeat
  63.             end if
  64.           end if
  65.           if t = 2 then
  66.             set whichSection to getAt(ARTChooseSectionList, t)
  67.             set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  68.             set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  69.             set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  70.             set the castNum of sprite 24 to 166
  71.             set the locH of sprite ARTLiteratureTrailSprite to the locH of sprite ARTLiteratureSprite
  72.             set the locV of sprite ARTLiteratureTrailSprite to the locV of sprite ARTLiteratureSprite
  73.             updateStage()
  74.             repeat while the locV of sprite ARTLiteratureSprite > (185 + 20)
  75.               set the locV of sprite ARTLiteratureSprite to the locV of sprite ARTLiteratureSprite - 20
  76.               set the locV of sprite ARTLiteratureTrailSprite to the locV of sprite ARTLiteratureTrailSprite - 20
  77.               updateStage()
  78.             end repeat
  79.             set the locV of sprite ARTLiteratureSprite to 185
  80.             set the locV of sprite ARTLiteratureTrailSprite to 185
  81.             updateStage()
  82.             wait(0.29999999999999999)
  83.             repeat with g = 1 to count(ARTLitSpriteList)
  84.               set the castNum of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 2)
  85.               set the locH of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 3)
  86.               set the locV of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 4)
  87.               set the ink of sprite getAt(getAt(ARTLitSpriteList, g), 1) to getAt(getAt(ARTLitSpriteList, g), 5)
  88.             end repeat
  89.             if ARTLiteratureBeenHere = 1 then
  90.               repeat with A = 1 to count(ARTLiteratureMasterList)
  91.                 set changeSprite to getAt(ARTLiteratureMasterList, A)
  92.                 set the locH of sprite getAt(changeSprite, 1) to getAt(changeSprite, 3)
  93.                 set the locV of sprite getAt(changeSprite, 1) to getAt(changeSprite, 4)
  94.                 set the ink of sprite getAt(changeSprite, 1) to getAt(changeSprite, 5)
  95.                 set the castNum of sprite getAt(changeSprite, 1) to getAt(changeSprite, 2)
  96.               end repeat
  97.             else
  98.               set SetUp to getAt(getAt(ARTLiteratureList, 1), 4)
  99.               set the castNum of sprite getAt(SetUp, 1) to getAt(SetUp, 2)
  100.               set the locH of sprite getAt(SetUp, 1) to getAt(SetUp, 3)
  101.               set the locV of sprite getAt(SetUp, 1) to getAt(SetUp, 4)
  102.               set the ink of sprite getAt(SetUp, 1) to getAt(SetUp, 5)
  103.               set ARTLitNet to 1
  104.             end if
  105.             updateStage()
  106.           end if
  107.           if t = 1 then
  108.             repeat with c = 1 to 2
  109.               set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  110.               set the locV of sprite ARTMusOneUnderLineSprite to the locV of sprite ARTMusOneUnderLineSprite - 20
  111.               updateStage()
  112.             end repeat
  113.             repeat with c = 1 to 8
  114.               set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  115.               set the locV of sprite ARTMusOneUnderLineSprite to the locV of sprite ARTMusOneUnderLineSprite - 20
  116.               updateStage()
  117.               set the locV of sprite ARTVerticalTrailSprite to the locV of sprite ARTVerticalTrailSprite - 20
  118.               updateStage()
  119.             end repeat
  120.             set the castNum of sprite IFLArtsNameSprite to 71
  121.             set the locV of sprite ARTMusOneMusicSprite to the locV of sprite ARTMusOneMusicSprite - 20
  122.             set the castNum of sprite ARTMusOneMusicSprite to the castNum of sprite ARTMusOneMusicSprite + 1
  123.             set the locV of sprite ARTMusOneUnderLineSprite to 2000
  124.             set the trails of sprite ARTVerticalTrailSprite to 0
  125.             set the locV of sprite ARTVerticalTrailSprite to 2000
  126.             set the ink of sprite ARTMusOneMusicSprite to 36
  127.             updateStage()
  128.             if ARTMusicOneBeenHere = 1 then
  129.               repeat with A = 1 to count(ARTMusicOneMasterList)
  130.                 set changeSprite to getAt(ARTMusicOneMasterList, A)
  131.                 set the locH of sprite getAt(changeSprite, 1) to getAt(changeSprite, 3)
  132.                 set the locV of sprite getAt(changeSprite, 1) to getAt(changeSprite, 4)
  133.                 set the ink of sprite getAt(changeSprite, 1) to getAt(changeSprite, 5)
  134.                 set the castNum of sprite getAt(changeSprite, 1) to getAt(changeSprite, 2)
  135.               end repeat
  136.             end if
  137.           end if
  138.           if ARTMusicOneBeenHere = 0 then
  139.             repeat with y = 4 to count(whichSection)
  140.               set ThisList to getAt(whichSection, y)
  141.               set the castNum of sprite getAt(ThisList, 1) to getAt(ThisList, 2)
  142.               set the locH of sprite getAt(ThisList, 1) to getAt(ThisList, 3)
  143.               set the locV of sprite getAt(ThisList, 1) to getAt(ThisList, 4)
  144.               set the ink of sprite getAt(ThisList, 1) to getAt(ThisList, 5)
  145.             end repeat
  146.             if t = 1 then
  147.               set the castNum of sprite ARTMusOneBackgroudSprite to the castNum of sprite ARTMusOneBackgroudSprite + 1
  148.               repeat while the locV of sprite 10 > (205 + 25)
  149.                 set the locV of sprite 10 to the locV of sprite 10 - 25
  150.                 if the locV of sprite 9 > (246 + 25) then
  151.                   set the locV of sprite 9 to the locV of sprite 9 - 25
  152.                 else
  153.                   set the locV of sprite 9 to 246
  154.                 end if
  155.                 if the locV of sprite 8 > (288 + 25) then
  156.                   set the locV of sprite 8 to the locV of sprite 8 - 25
  157.                 else
  158.                   set the locV of sprite 8 to 288
  159.                 end if
  160.                 if the locV of sprite 7 > (330 + 25) then
  161.                   set the locV of sprite 7 to the locV of sprite 7 - 25
  162.                 else
  163.                   set the locV of sprite 7 to 330
  164.                 end if
  165.                 updateStage()
  166.               end repeat
  167.               set the locV of sprite 10 to 205
  168.               updateStage()
  169.               set TempList to getAt(ARTMusicOneList, 1)
  170.               repeat with d = 4 to count(TempList)
  171.                 set InfoList to getAt(TempList, d)
  172.                 set the castNum of sprite getAt(InfoList, 1) to getAt(InfoList, 2)
  173.                 set the locH of sprite getAt(InfoList, 1) to getAt(InfoList, 3)
  174.                 set the locV of sprite getAt(InfoList, 1) to getAt(InfoList, 4)
  175.                 set the ink of sprite getAt(InfoList, 1) to getAt(InfoList, 5)
  176.               end repeat
  177.               updateStage()
  178.               set ARTMusicOnePlayCount to 1
  179.             end if
  180.           end if
  181.           updateStage()
  182.         end if
  183.       end if
  184.       next repeat
  185.     end if
  186.     if (getAt(whichSection, 2) = 1) and (getAt(ARTWhichPartList, t) <> 1) then
  187.       set the castNum of sprite getAt(whichSection, 3) to the castNum of sprite getAt(whichSection, 3) - 1
  188.       if t = 1 then
  189.         set the ink of sprite getAt(whichSection, 3) to 36
  190.       end if
  191.       if t = 2 then
  192.         set the castNum of sprite ARTLiteratureSprite to the castNum of sprite ARTLiteratureSprite - 1
  193.       end if
  194.       if t = 3 then
  195.         set the castNum of sprite ArtImageSmallSprite to the castNum of sprite ArtImageSmallSprite - 1
  196.       end if
  197.       updateStage()
  198.       setAt(whichSection, 2, 0)
  199.     end if
  200.   end repeat
  201. end
  202.  
  203. on ARTSubSection
  204.   global ARTWhichPartList
  205.   repeat with f = 1 to count(ARTWhichPartList)
  206.     if getAt(ARTWhichPartList, f) = 1 then
  207.       if f = 1 then
  208.         ARTMusicOne()
  209.         next repeat
  210.       end if
  211.       if f = 2 then
  212.         ARTLiterature()
  213.         next repeat
  214.       end if
  215.       if f = 3 then
  216.         ARTGraphics()
  217.         exit repeat
  218.       end if
  219.     end if
  220.   end repeat
  221. end
  222.