home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / artwaug.dxr / 00017_ARTMusicOne.ls < prev    next >
Encoding:
Text File  |  1996-06-17  |  16.9 KB  |  376 lines

  1. on ARTMusicOne
  2.   global ARTMusicOneList, ARTAreSomewhere, ARTMusOneBackgroudSprite, ArtMusicOneBoxesList, ARTMusicOnePlayCount, ARTWhichSide, ARTStoreList, ARTStoreListTwo, ARTWhichSideFut, ARTSIDEUP, ARTMusicOneStopSprite, ARTStoreListThree, ArtMusicOneBoxesListTwo, ArtMusicOneBoxesListThree, ARTWhichSideFutLst
  3.   if rollOver(ARTMusicOneStopSprite) then
  4.     repeat while rollOver(ARTMusicOneStopSprite)
  5.       if the castNum of sprite ARTMusicOneStopSprite = 171 then
  6.         set the castNum of sprite ARTMusicOneStopSprite to 172
  7.       end if
  8.       if the mouseDown then
  9.         set the locH of sprite ARTMusicOneStopSprite to 2000
  10.         set the castNum of sprite ARTMusicOneStopSprite to 171
  11.         set TemPList to getAt(ARTMusicOneList, 1)
  12.         repeat with x = 4 to count(TemPList)
  13.           set InfoListTwo to getAt(TemPList, x)
  14.           if getAt(InfoListTwo, 7) = 1 then
  15.             setAt(InfoListTwo, 7, 0)
  16.             setAt(InfoListTwo, 6, 1)
  17.           end if
  18.         end repeat
  19.         set ARTStoreList to 0
  20.         set ARTStoreListTwo to 0
  21.         set ARTStoreListThree to 0
  22.         if the machineType > 200 then
  23.           win_midiStop()
  24.         else
  25.         end if
  26.       end if
  27.       updateStage()
  28.     end repeat
  29.     set the castNum of sprite ARTMusicOneStopSprite to 171
  30.   end if
  31.   repeat with g = 1 to count(ARTMusicOneList)
  32.     if rollOver(getAt(getAt(ARTMusicOneList, g), 1)) then
  33.       if the mouseDown and (getAt(getAt(ARTMusicOneList, g), 3) = 0) then
  34.         setAt(getAt(ARTMusicOneList, g), 3, 1)
  35.         repeat with f = 1 to count(ARTMusicOneList)
  36.           if (getAt(getAt(ARTMusicOneList, f), 3) = 1) and (f <> g) then
  37.             set LastPlace to f
  38.             set ARTAreSomewhere to 1
  39.             setAt(getAt(ARTMusicOneList, f), 3, 0)
  40.           end if
  41.         end repeat
  42.         if g = 1 then
  43.           if ARTWhichSide = 1 then
  44.             repeat with f = 1 to 4
  45.               set TemPList to getAt(ArtMusicOneBoxesList, g)
  46.               set the castNum of sprite (f + 6) to getAt(TemPList, f)
  47.             end repeat
  48.           else
  49.             if ARTWhichSide = 2 then
  50.               repeat with f = 1 to 4
  51.                 set TemPList to getAt(ArtMusicOneBoxesListTwo, g)
  52.                 set the castNum of sprite (f + 6) to getAt(TemPList, f)
  53.               end repeat
  54.             else
  55.               repeat with f = 1 to 4
  56.                 set TemPList to getAt(ArtMusicOneBoxesListThree, g)
  57.                 set the castNum of sprite (f + 6) to getAt(TemPList, f)
  58.               end repeat
  59.             end if
  60.           end if
  61.         else
  62.           repeat with f = 1 to 4
  63.             set TemPList to getAt(ArtMusicOneBoxesList, g)
  64.             set the castNum of sprite (f + 6) to getAt(TemPList, f)
  65.           end repeat
  66.         end if
  67.         if (g <> 1) and (LastPlace = 1) then
  68.           set TemPList to getAt(ARTMusicOneList, 1)
  69.           repeat with x = 4 to count(TemPList)
  70.             set InfoListTwo to getAt(TemPList, x)
  71.             setAt(InfoListTwo, 2, the castNum of sprite getAt(InfoListTwo, 1))
  72.             setAt(InfoListTwo, 10, 1)
  73.           end repeat
  74.         end if
  75.         set TemPList to getAt(ARTMusicOneList, g)
  76.         repeat with d = 4 to count(TemPList)
  77.           set InfoList to getAt(TemPList, d)
  78.           set the castNum of sprite getAt(InfoList, 1) to getAt(InfoList, 2)
  79.           set the locH of sprite getAt(InfoList, 1) to getAt(InfoList, 3)
  80.           set the locV of sprite getAt(InfoList, 1) to getAt(InfoList, 4)
  81.           set the ink of sprite getAt(InfoList, 1) to getAt(InfoList, 5)
  82.         end repeat
  83.         updateStage()
  84.         if g = 1 then
  85.           set ARTMusicOnePlayCount to 1
  86.         else
  87.           if g = 2 then
  88.             set ARTMusicOnePlayCount to 2
  89.             set ARTWhichSideFut to 1
  90.           else
  91.             set ARTMusicOnePlayCount to 3
  92.             set ARTWhichSideFutLst to 1
  93.           end if
  94.         end if
  95.       end if
  96.       if getAt(getAt(ARTMusicOneList, g), 2) = 0 then
  97.         set the castNum of sprite getAt(getAt(ARTMusicOneList, g), 1) to the castNum of sprite getAt(getAt(ARTMusicOneList, g), 1) + 1
  98.         setAt(getAt(ARTMusicOneList, g), 2, 1)
  99.         repeat with f = 1 to count(ARTMusicOneList)
  100.           if (getAt(getAt(ARTMusicOneList, f), 2) = 1) and (f <> g) and (getAt(getAt(ARTMusicOneList, f), 3) = 0) then
  101.             set the castNum of sprite getAt(getAt(ARTMusicOneList, f), 1) to the castNum of sprite getAt(getAt(ARTMusicOneList, f), 1) - 1
  102.             setAt(getAt(ARTMusicOneList, f), 2, 0)
  103.           end if
  104.         end repeat
  105.       end if
  106.     end if
  107.   end repeat
  108.   repeat with g = 1 to count(ARTMusicOneList)
  109.     if not rollOver(getAt(getAt(ARTMusicOneList, g), 1)) then
  110.       if (getAt(getAt(ARTMusicOneList, g), 2) = 1) and (getAt(getAt(ARTMusicOneList, g), 3) = 0) then
  111.         set the castNum of sprite getAt(getAt(ARTMusicOneList, g), 1) to the castNum of sprite getAt(getAt(ARTMusicOneList, g), 1) - 1
  112.         setAt(getAt(ARTMusicOneList, g), 2, 0)
  113.       end if
  114.     end if
  115.   end repeat
  116.   if ARTMusicOnePlayCount = 1 then
  117.     repeat while ((the mouseH < 640) and (the mouseH > 201) and (the mouseV < 352) and (the mouseV > 189)) or rollOver(20)
  118.       set TemPList to getAt(ARTMusicOneList, 1)
  119.       repeat with d = 4 to count(TemPList)
  120.         set InfoList to getAt(TemPList, d)
  121.         if rollOver(getAt(InfoList, 1)) then
  122.           set ThisOne to d
  123.           if (getAt(InfoList, 6) = 0) and (getAt(InfoList, 7) <> 1) then
  124.             setAt(InfoList, 6, 1)
  125.             set the castNum of sprite getAt(InfoList, 1) to the castNum of sprite getAt(InfoList, 1) + 1
  126.             updateStage()
  127.           end if
  128.           if the mouseUp then
  129.             set ARTSIDEUP to 1
  130.           end if
  131.           if the mouseDown and (ARTSIDEUP = 1) then
  132.             set ARTSIDEUP to 0
  133.             if ThisOne = 4 then
  134.               setAt(InfoList, 7, 1)
  135.               if ARTWhichSide = 1 then
  136.                 set ARTWhichSide to 2
  137.                 repeat with f = 1 to 4
  138.                   set BoxList to getAt(ArtMusicOneBoxesListTwo, 1)
  139.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  140.                 end repeat
  141.                 repeat with x = 4 to count(TemPList)
  142.                   set InfoListTwo to getAt(TemPList, x)
  143.                   if x = 4 then
  144.                     set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  145.                   else
  146.                     if getAt(InfoListTwo, 7) = 1 then
  147.                       set ARTStoreList to InfoListTwo
  148.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 7
  149.                     else
  150.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 8
  151.                     end if
  152.                   end if
  153.                   if InfoListTwo = ARTStoreListTwo then
  154.                     set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  155.                     setAt(InfoListTwo, 6, 0)
  156.                     setAt(InfoListTwo, 7, 1)
  157.                     next repeat
  158.                   end if
  159.                   setAt(InfoListTwo, 6, 0)
  160.                   setAt(InfoListTwo, 7, 0)
  161.                 end repeat
  162.               else
  163.                 if ARTWhichSide = 2 then
  164.                   set ARTWhichSide to 3
  165.                   repeat with f = 1 to 4
  166.                     set BoxList to getAt(ArtMusicOneBoxesListThree, 1)
  167.                     set the castNum of sprite (f + 6) to getAt(BoxList, f)
  168.                   end repeat
  169.                   repeat with x = 4 to count(TemPList)
  170.                     set InfoListTwo to getAt(TemPList, x)
  171.                     if x = 4 then
  172.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  173.                     else
  174.                       if getAt(InfoListTwo, 7) = 1 then
  175.                         set ARTStoreListTwo to InfoListTwo
  176.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 7
  177.                       else
  178.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 8
  179.                       end if
  180.                     end if
  181.                     if InfoListTwo = ARTStoreListThree then
  182.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  183.                       setAt(InfoListTwo, 6, 0)
  184.                       setAt(InfoListTwo, 7, 1)
  185.                       next repeat
  186.                     end if
  187.                     setAt(InfoListTwo, 6, 0)
  188.                     setAt(InfoListTwo, 7, 0)
  189.                   end repeat
  190.                 else
  191.                   set ARTWhichSide to 1
  192.                   repeat with f = 1 to 4
  193.                     set BoxList to getAt(ArtMusicOneBoxesList, 1)
  194.                     set the castNum of sprite (f + 6) to getAt(BoxList, f)
  195.                   end repeat
  196.                   repeat with x = 4 to count(TemPList)
  197.                     set InfoListTwo to getAt(TemPList, x)
  198.                     if x = 4 then
  199.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 5
  200.                     else
  201.                       if getAt(InfoListTwo, 7) = 1 then
  202.                         set ARTStoreListThree to InfoListTwo
  203.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 17
  204.                       else
  205.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 16
  206.                       end if
  207.                     end if
  208.                     if InfoListTwo = ARTStoreList then
  209.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  210.                       setAt(InfoListTwo, 6, 0)
  211.                       setAt(InfoListTwo, 7, 1)
  212.                       next repeat
  213.                     end if
  214.                     setAt(InfoListTwo, 6, 0)
  215.                     setAt(InfoListTwo, 7, 0)
  216.                   end repeat
  217.                 end if
  218.               end if
  219.             else
  220.               if getAt(InfoList, 7) = 0 then
  221.                 set TemPList to getAt(ARTMusicOneList, 1)
  222.                 repeat with x = 4 to count(TemPList)
  223.                   set InfoListTwo to getAt(TemPList, x)
  224.                   if (getAt(InfoListTwo, 7) = 1) or (InfoListTwo = ARTStoreList) or (InfoListTwo = ARTStoreListTwo) or (InfoListTwo = ARTStoreListThree) then
  225.                     if getAt(InfoListTwo, 7) = 1 then
  226.                       if the machineType < 200 then
  227.                         if ARTWhichSide = 1 then
  228.                           set StopSideOne to getAt(InfoListTwo, 8)
  229.                           put "For the mac-"
  230.                           put "Stop midi file" & StopSideOne
  231.                         else
  232.                           if ARTWhichSide = 2 then
  233.                             set StopSideTwo to getAt(InfoListTwo, 9)
  234.                             put "For the mac-"
  235.                             put "Stop midi file" & StopSideTwo
  236.                           else
  237.                             set StopSideThree to getAt(InfoListTwo, 11)
  238.                             put "For the mac-"
  239.                             put "Stop midi file" & StopSideThree
  240.                           end if
  241.                         end if
  242.                         exit repeat
  243.                       else
  244.                         if ARTWhichSide = 1 then
  245.                           set StopSideOne to getAt(InfoListTwo, 8)
  246.                           win_midiStop()
  247.                         else
  248.                           set StopSideTwo to getAt(InfoListTwo, 9)
  249.                           win_midiStop()
  250.                         end if
  251.                         exit repeat
  252.                       end if
  253.                       next repeat
  254.                     end if
  255.                     if InfoListTwo = ARTStoreList then
  256.                       if the machineType < 200 then
  257.                         set StopSideOne to getAt(InfoListTwo, 8)
  258.                         put "For the mac-"
  259.                         put "Stop midi file" & StopSideOne
  260.                         exit repeat
  261.                       else
  262.                         set StopSideOne to getAt(InfoListTwo, 8)
  263.                         win_midiStop()
  264.                         exit repeat
  265.                       end if
  266.                       next repeat
  267.                     end if
  268.                     if InfoListTwo = ARTStoreListTwo then
  269.                       if the machineType < 200 then
  270.                         set StopSideTwo to getAt(InfoListTwo, 9)
  271.                         put "For the mac-"
  272.                         put "Stop midi file" & StopSideTwo
  273.                         exit repeat
  274.                       else
  275.                         set StopSideTwo to getAt(InfoListTwo, 9)
  276.                         win_midiStop()
  277.                         exit repeat
  278.                       end if
  279.                       next repeat
  280.                     end if
  281.                     if the machineType < 200 then
  282.                       set StopSideThree to getAt(InfoListTwo, 11)
  283.                       put "For the mac-"
  284.                       put "Stop midi file" & StopSideThree
  285.                       exit repeat
  286.                       next repeat
  287.                     end if
  288.                     set StopSideThree to getAt(InfoListTwo, 11)
  289.                     win_midiStop()
  290.                     exit repeat
  291.                   end if
  292.                 end repeat
  293.                 set ARTStoreList to 0
  294.                 set ARTStoreListTwo to 0
  295.                 set ARTStoreListThree to 0
  296.                 setAt(InfoList, 7, 1)
  297.                 set the locH of sprite ARTMusicOneStopSprite to 93
  298.                 set the locV of sprite ARTMusicOneStopSprite to 407
  299.                 set the ink of sprite ARTMusicOneStopSprite to 37
  300.                 updateStage()
  301.                 if the machineType < 200 then
  302.                   if ARTWhichSide = 1 then
  303.                     set PlaySideOne to getAt(InfoList, 8)
  304.                     put "For the mac-"
  305.                     put "Start midi file" & PlaySideOne
  306.                   else
  307.                     if ARTWhichSide = 2 then
  308.                       set PlaySideTwo to getAt(InfoList, 9)
  309.                       put "For the mac-"
  310.                       put "Start midi file" & PlaySideTwo
  311.                     else
  312.                       set PlaySideThree to getAt(InfoList, 11)
  313.                       put "For the mac-"
  314.                       put "Start midi file" & PlaySideThree
  315.                     end if
  316.                   end if
  317.                 else
  318.                   if ARTWhichSide = 1 then
  319.                     set PlaySideOne to getAt(InfoList, 8)
  320.                     put "For the P.C"
  321.                     put "Start midi file" & PlaySideOne
  322.                     win_midiStart("midi\" & PlaySideOne)
  323.                   else
  324.                     if ARTWhichSide = 2 then
  325.                       set PlaySideTwo to getAt(InfoList, 9)
  326.                       put "For the P.C"
  327.                       put "Start midi file" & PlaySideTwo
  328.                       win_midiStart("midi\" & PlaySideTwo)
  329.                     else
  330.                       set PlaySideThree to getAt(InfoList, 11)
  331.                       put "For the P.C"
  332.                       put "Start midi file" & PlaySideThree
  333.                       win_midiStart("midi\" & PlaySideThree)
  334.                     end if
  335.                   end if
  336.                 end if
  337.               end if
  338.             end if
  339.             set TemPList to getAt(ARTMusicOneList, 1)
  340.             repeat with x = 4 to count(TemPList)
  341.               set InfoListTwo to getAt(TemPList, x)
  342.               if (getAt(InfoListTwo, 7) = 1) and (x <> ThisOne) and (InfoListTwo <> ARTStoreList) and (InfoListTwo <> ARTStoreListTwo) and (InfoListTwo <> ARTStoreListThree) then
  343.                 setAt(InfoListTwo, 7, 0)
  344.                 setAt(InfoListTwo, 6, 1)
  345.               end if
  346.             end repeat
  347.           end if
  348.         end if
  349.       end repeat
  350.       set TemPListThree to getAt(ARTMusicOneList, 1)
  351.       repeat with v = 4 to count(TemPListThree)
  352.         set InfoListThree to getAt(TemPListThree, v)
  353.         if not rollOver(getAt(InfoListThree, 1)) then
  354.           if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  355.             setAt(InfoListThree, 6, 0)
  356.             set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  357.             updateStage()
  358.           end if
  359.         end if
  360.       end repeat
  361.     end repeat
  362.     set TemPListThree to getAt(ARTMusicOneList, 1)
  363.     repeat with v = 4 to count(TemPListThree)
  364.       set InfoListThree to getAt(TemPListThree, v)
  365.       if not rollOver(getAt(InfoListThree, 1)) then
  366.         if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  367.           setAt(InfoListThree, 6, 0)
  368.           set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  369.           updateStage()
  370.         end if
  371.       end if
  372.     end repeat
  373.   end if
  374.   ARTNextOrLast()
  375. end
  376.