home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 January / WPCJAN97.ISO / artwjan.dxr / 00012_ARTMusicOne.ls < prev    next >
Encoding:
Text File  |  1996-11-07  |  13.2 KB  |  289 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.         end if
  25.       end if
  26.       updateStage()
  27.     end repeat
  28.     set the castNum of sprite ARTMusicOneStopSprite to 171
  29.   end if
  30.   if ARTMusicOnePlayCount = 1 then
  31.     repeat while ((the mouseH < 640) and (the mouseH > 201) and (the mouseV < 352) and (the mouseV > 189)) or rollOver(20)
  32.       set TemPList to getAt(ARTMusicOneList, 1)
  33.       repeat with d = 4 to count(TemPList)
  34.         set InfoList to getAt(TemPList, d)
  35.         if rollOver(getAt(InfoList, 1)) then
  36.           set ThisOne to d
  37.           if (getAt(InfoList, 6) = 0) and (getAt(InfoList, 7) <> 1) then
  38.             setAt(InfoList, 6, 1)
  39.             set the castNum of sprite getAt(InfoList, 1) to the castNum of sprite getAt(InfoList, 1) + 1
  40.             updateStage()
  41.           end if
  42.           if the mouseUp then
  43.             set ARTSIDEUP to 1
  44.           end if
  45.           if the mouseDown and (ARTSIDEUP = 1) then
  46.             set ARTSIDEUP to 0
  47.             if ThisOne = 4 then
  48.               setAt(InfoList, 7, 1)
  49.               if ARTWhichSide = 1 then
  50.                 set ARTWhichSide to 2
  51.                 repeat with f = 1 to 4
  52.                   set BoxList to getAt(ArtMusicOneBoxesListTwo, 1)
  53.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  54.                 end repeat
  55.                 repeat with x = 4 to count(TemPList)
  56.                   set InfoListTwo to getAt(TemPList, x)
  57.                   if x = 4 then
  58.                     set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  59.                   else
  60.                     if getAt(InfoListTwo, 7) = 1 then
  61.                       set ARTStoreList to InfoListTwo
  62.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 7
  63.                     else
  64.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 8
  65.                     end if
  66.                   end if
  67.                   if InfoListTwo = ARTStoreListTwo then
  68.                     set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  69.                     setAt(InfoListTwo, 6, 0)
  70.                     setAt(InfoListTwo, 7, 1)
  71.                     next repeat
  72.                   end if
  73.                   setAt(InfoListTwo, 6, 0)
  74.                   setAt(InfoListTwo, 7, 0)
  75.                 end repeat
  76.               else
  77.                 if ARTWhichSide = 2 then
  78.                   set ARTWhichSide to 3
  79.                   repeat with f = 1 to 4
  80.                     set BoxList to getAt(ArtMusicOneBoxesListThree, 1)
  81.                     set the castNum of sprite (f + 6) to getAt(BoxList, f)
  82.                   end repeat
  83.                   repeat with x = 4 to count(TemPList)
  84.                     set InfoListTwo to getAt(TemPList, x)
  85.                     if x = 4 then
  86.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  87.                     else
  88.                       if getAt(InfoListTwo, 7) = 1 then
  89.                         set ARTStoreListTwo to InfoListTwo
  90.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 7
  91.                       else
  92.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 8
  93.                       end if
  94.                     end if
  95.                     if InfoListTwo = ARTStoreListThree then
  96.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  97.                       setAt(InfoListTwo, 6, 0)
  98.                       setAt(InfoListTwo, 7, 1)
  99.                       next repeat
  100.                     end if
  101.                     setAt(InfoListTwo, 6, 0)
  102.                     setAt(InfoListTwo, 7, 0)
  103.                   end repeat
  104.                 else
  105.                   set ARTWhichSide to 1
  106.                   repeat with f = 1 to 4
  107.                     set BoxList to getAt(ArtMusicOneBoxesList, 1)
  108.                     set the castNum of sprite (f + 6) to getAt(BoxList, f)
  109.                   end repeat
  110.                   repeat with x = 4 to count(TemPList)
  111.                     set InfoListTwo to getAt(TemPList, x)
  112.                     if x = 4 then
  113.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 5
  114.                     else
  115.                       if getAt(InfoListTwo, 7) = 1 then
  116.                         set ARTStoreListThree to InfoListTwo
  117.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 17
  118.                       else
  119.                         set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) - 16
  120.                       end if
  121.                     end if
  122.                     if InfoListTwo = ARTStoreList then
  123.                       set the castNum of sprite getAt(InfoListTwo, 1) to the castNum of sprite getAt(InfoListTwo, 1) + 1
  124.                       setAt(InfoListTwo, 6, 0)
  125.                       setAt(InfoListTwo, 7, 1)
  126.                       next repeat
  127.                     end if
  128.                     setAt(InfoListTwo, 6, 0)
  129.                     setAt(InfoListTwo, 7, 0)
  130.                   end repeat
  131.                 end if
  132.               end if
  133.             else
  134.               if getAt(InfoList, 7) = 0 then
  135.                 set TemPList to getAt(ARTMusicOneList, 1)
  136.                 repeat with x = 4 to count(TemPList)
  137.                   set InfoListTwo to getAt(TemPList, x)
  138.                   if (getAt(InfoListTwo, 7) = 1) or (InfoListTwo = ARTStoreList) or (InfoListTwo = ARTStoreListTwo) or (InfoListTwo = ARTStoreListThree) then
  139.                     if getAt(InfoListTwo, 7) = 1 then
  140.                       if the machineType < 200 then
  141.                         if ARTWhichSide = 1 then
  142.                           set StopSideOne to getAt(InfoListTwo, 8)
  143.                           put "For the mac-"
  144.                           put "Stop midi file" & StopSideOne
  145.                         else
  146.                           if ARTWhichSide = 2 then
  147.                             set StopSideTwo to getAt(InfoListTwo, 9)
  148.                             put "For the mac-"
  149.                             put "Stop midi file" & StopSideTwo
  150.                           else
  151.                             set StopSideThree to getAt(InfoListTwo, 11)
  152.                             put "For the mac-"
  153.                             put "Stop midi file" & StopSideThree
  154.                           end if
  155.                         end if
  156.                         exit repeat
  157.                       else
  158.                         if ARTWhichSide = 1 then
  159.                           set StopSideOne to getAt(InfoListTwo, 8)
  160.                           win_midiStop()
  161.                         else
  162.                           set StopSideTwo to getAt(InfoListTwo, 9)
  163.                           win_midiStop()
  164.                         end if
  165.                         exit repeat
  166.                       end if
  167.                       next repeat
  168.                     end if
  169.                     if InfoListTwo = ARTStoreList then
  170.                       if the machineType < 200 then
  171.                         set StopSideOne to getAt(InfoListTwo, 8)
  172.                         put "For the mac-"
  173.                         put "Stop midi file" & StopSideOne
  174.                         exit repeat
  175.                       else
  176.                         set StopSideOne to getAt(InfoListTwo, 8)
  177.                         win_midiStop()
  178.                         exit repeat
  179.                       end if
  180.                       next repeat
  181.                     end if
  182.                     if InfoListTwo = ARTStoreListTwo then
  183.                       if the machineType < 200 then
  184.                         set StopSideTwo to getAt(InfoListTwo, 9)
  185.                         put "For the mac-"
  186.                         put "Stop midi file" & StopSideTwo
  187.                         exit repeat
  188.                       else
  189.                         set StopSideTwo to getAt(InfoListTwo, 9)
  190.                         win_midiStop()
  191.                         exit repeat
  192.                       end if
  193.                       next repeat
  194.                     end if
  195.                     if the machineType < 200 then
  196.                       set StopSideThree to getAt(InfoListTwo, 11)
  197.                       put "For the mac-"
  198.                       put "Stop midi file" & StopSideThree
  199.                       exit repeat
  200.                       next repeat
  201.                     end if
  202.                     set StopSideThree to getAt(InfoListTwo, 11)
  203.                     win_midiStop()
  204.                     exit repeat
  205.                   end if
  206.                 end repeat
  207.                 set ARTStoreList to 0
  208.                 set ARTStoreListTwo to 0
  209.                 set ARTStoreListThree to 0
  210.                 setAt(InfoList, 7, 1)
  211.                 set the locH of sprite ARTMusicOneStopSprite to 93
  212.                 set the locV of sprite ARTMusicOneStopSprite to 407
  213.                 set the ink of sprite ARTMusicOneStopSprite to 37
  214.                 updateStage()
  215.                 if the machineType < 200 then
  216.                   if ARTWhichSide = 1 then
  217.                     set PlaySideOne to getAt(InfoList, 8)
  218.                     put "For the mac-"
  219.                     put "Start midi file" & PlaySideOne
  220.                   else
  221.                     if ARTWhichSide = 2 then
  222.                       set PlaySideTwo to getAt(InfoList, 9)
  223.                       put "For the mac-"
  224.                       put "Start midi file" & PlaySideTwo
  225.                     else
  226.                       set PlaySideThree to getAt(InfoList, 11)
  227.                       put "For the mac-"
  228.                       put "Start midi file" & PlaySideThree
  229.                     end if
  230.                   end if
  231.                 else
  232.                   if ARTWhichSide = 1 then
  233.                     set PlaySideOne to getAt(InfoList, 8)
  234.                     put "For the P.C"
  235.                     put "Start midi file" & PlaySideOne
  236.                     win_midiStart("midi\" & PlaySideOne)
  237.                   else
  238.                     if ARTWhichSide = 2 then
  239.                       set PlaySideTwo to getAt(InfoList, 9)
  240.                       put "For the P.C"
  241.                       put "Start midi file" & PlaySideTwo
  242.                       win_midiStart("midi\" & PlaySideTwo)
  243.                     else
  244.                       set PlaySideThree to getAt(InfoList, 11)
  245.                       put "For the P.C"
  246.                       put "Start midi file" & PlaySideThree
  247.                       win_midiStart("midi\" & PlaySideThree)
  248.                     end if
  249.                   end if
  250.                 end if
  251.               end if
  252.             end if
  253.             set TemPList to getAt(ARTMusicOneList, 1)
  254.             repeat with x = 4 to count(TemPList)
  255.               set InfoListTwo to getAt(TemPList, x)
  256.               if (getAt(InfoListTwo, 7) = 1) and (x <> ThisOne) and (InfoListTwo <> ARTStoreList) and (InfoListTwo <> ARTStoreListTwo) and (InfoListTwo <> ARTStoreListThree) then
  257.                 setAt(InfoListTwo, 7, 0)
  258.                 setAt(InfoListTwo, 6, 1)
  259.               end if
  260.             end repeat
  261.           end if
  262.         end if
  263.       end repeat
  264.       set TemPListThree to getAt(ARTMusicOneList, 1)
  265.       repeat with v = 4 to count(TemPListThree)
  266.         set InfoListThree to getAt(TemPListThree, v)
  267.         if not rollOver(getAt(InfoListThree, 1)) then
  268.           if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  269.             setAt(InfoListThree, 6, 0)
  270.             set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  271.             updateStage()
  272.           end if
  273.         end if
  274.       end repeat
  275.     end repeat
  276.     set TemPListThree to getAt(ARTMusicOneList, 1)
  277.     repeat with v = 4 to count(TemPListThree)
  278.       set InfoListThree to getAt(TemPListThree, v)
  279.       if not rollOver(getAt(InfoListThree, 1)) then
  280.         if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  281.           setAt(InfoListThree, 6, 0)
  282.           set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  283.           updateStage()
  284.         end if
  285.       end if
  286.     end repeat
  287.   end if
  288. end
  289.