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

  1. on ARTNextOrLast
  2.   global ARTMusicOneList, ARTAreSomewhere, ARTMusOneBackgroudSprite, ArtMusicOneBoxesList, ARTMusicOnePlayCount, ARTWhichSide, ARTStoreList, ARTStoreListTwo, ARTWhichSideFut, ARTSIDEUP, ARTMusicOneStopSprite, ARTStoreListThree, ArtMusicOneBoxesListTwo, ArtMusicOneBoxesListThree, ARTWhichSideFutLst
  3.   if ARTMusicOnePlayCount = 2 then
  4.     set TemPList to getAt(ARTMusicOneList, 2)
  5.     set InfoList to getAt(TemPList, 4)
  6.     if rollOver(getAt(InfoList, 1)) then
  7.       set ThisOne to 4
  8.       if (getAt(InfoList, 6) = 0) and (getAt(InfoList, 7) <> 1) then
  9.         setAt(InfoList, 6, 1)
  10.         set the castNum of sprite getAt(InfoList, 1) to the castNum of sprite getAt(InfoList, 1) + 1
  11.         updateStage()
  12.       end if
  13.       if the mouseDown then
  14.         if ThisOne = 4 then
  15.           if getAt(InfoList, 7) = 0 then
  16.             setAt(InfoList, 7, 1)
  17.             if ARTWhichSideFut = 1 then
  18.               repeat with f = 1 to 4
  19.                 set BoxList to getAt(ArtMusicOneBoxesListTwo, 2)
  20.                 set the castNum of sprite (f + 6) to getAt(BoxList, f)
  21.               end repeat
  22.               set ARTWhichSideFut to 2
  23.               set the castNum of sprite 20 to the castNum of sprite 20 + 2
  24.               set the castNum of sprite 16 to the castNum of sprite 16 + 1
  25.             else
  26.               if ARTWhichSideFut = 2 then
  27.                 repeat with f = 1 to 4
  28.                   set BoxList to getAt(ArtMusicOneBoxesListThree, 2)
  29.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  30.                 end repeat
  31.                 set ARTWhichSideFut to 3
  32.                 set the castNum of sprite 20 to the castNum of sprite 20 + 2
  33.                 set the castNum of sprite 16 to the castNum of sprite 16 + 1
  34.               else
  35.                 repeat with f = 1 to 4
  36.                   set BoxList to getAt(ArtMusicOneBoxesList, 2)
  37.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  38.                 end repeat
  39.                 set ARTWhichSideFut to 1
  40.                 set the castNum of sprite 20 to the castNum of sprite 20 - 4
  41.                 set the castNum of sprite 16 to the castNum of sprite 16 - 2
  42.               end if
  43.             end if
  44.           end if
  45.         end if
  46.       end if
  47.     end if
  48.     if the mouseUp then
  49.       setAt(InfoList, 7, 0)
  50.     end if
  51.     set TemPListThree to getAt(ARTMusicOneList, 2)
  52.     set InfoListThree to getAt(TemPListThree, 4)
  53.     if not rollOver(getAt(InfoListThree, 1)) then
  54.       if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  55.         setAt(InfoListThree, 6, 0)
  56.         set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  57.         updateStage()
  58.       end if
  59.     end if
  60.   end if
  61.   if ARTMusicOnePlayCount = 3 then
  62.     set TemPList to getAt(ARTMusicOneList, 3)
  63.     set InfoList to getAt(TemPList, 4)
  64.     if rollOver(getAt(InfoList, 1)) then
  65.       set ThisOne to 4
  66.       if (getAt(InfoList, 6) = 0) and (getAt(InfoList, 7) <> 1) then
  67.         setAt(InfoList, 6, 1)
  68.         set the castNum of sprite getAt(InfoList, 1) to the castNum of sprite getAt(InfoList, 1) + 1
  69.         updateStage()
  70.       end if
  71.       if the mouseDown then
  72.         if ThisOne = 4 then
  73.           if getAt(InfoList, 7) = 0 then
  74.             setAt(InfoList, 7, 1)
  75.             if ARTWhichSideFutLst = 1 then
  76.               repeat with f = 1 to 4
  77.                 set BoxList to getAt(ArtMusicOneBoxesListTwo, 3)
  78.                 set the castNum of sprite (f + 6) to getAt(BoxList, f)
  79.               end repeat
  80.               set ARTWhichSideFutLst to 2
  81.               set the castNum of sprite 20 to the castNum of sprite 20 + 2
  82.               set the castNum of sprite 16 to the castNum of sprite 16 + 1
  83.             else
  84.               if ARTWhichSideFutLst = 2 then
  85.                 repeat with f = 1 to 4
  86.                   set BoxList to getAt(ArtMusicOneBoxesListThree, 3)
  87.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  88.                 end repeat
  89.                 set ARTWhichSideFutLst to 3
  90.                 set the castNum of sprite 20 to the castNum of sprite 20 + 2
  91.                 set the castNum of sprite 16 to the castNum of sprite 16 + 1
  92.               else
  93.                 repeat with f = 1 to 4
  94.                   set BoxList to getAt(ArtMusicOneBoxesList, 3)
  95.                   set the castNum of sprite (f + 6) to getAt(BoxList, f)
  96.                 end repeat
  97.                 set ARTWhichSideFutLst to 1
  98.                 set the castNum of sprite 20 to the castNum of sprite 20 - 4
  99.                 set the castNum of sprite 16 to the castNum of sprite 16 - 2
  100.               end if
  101.             end if
  102.           end if
  103.         end if
  104.       end if
  105.     end if
  106.     if the mouseUp then
  107.       setAt(InfoList, 7, 0)
  108.     end if
  109.     set TemPListThree to getAt(ARTMusicOneList, 3)
  110.     set InfoListThree to getAt(TemPListThree, 4)
  111.     if not rollOver(getAt(InfoListThree, 1)) then
  112.       if (getAt(InfoListThree, 6) = 1) and (getAt(InfoListThree, 7) = 0) then
  113.         setAt(InfoListThree, 6, 0)
  114.         set the castNum of sprite getAt(InfoListThree, 1) to the castNum of sprite getAt(InfoListThree, 1) - 1
  115.         updateStage()
  116.       end if
  117.     end if
  118.   end if
  119. end
  120.