home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / CYRIXO.DXR / 00194_CYSelectthing.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  4.9 KB  |  150 lines

  1. on CYSelectthing
  2.   global CRSelect, LineHFlag, CRCountContent, XCount, CRCountContentTwo, CrSlide, CySlidePosList
  3.   case LineHFlag of
  4.     0:
  5.       set XCount to 80
  6.       set yCount to 40
  7.     6:
  8.       set XCount to 10
  9.       set yCount to 3
  10.       if CRCountContent > XCount then
  11.         set CRCountContent to 0
  12.       end if
  13.       if CRCountContentTwo > yCount then
  14.         set CRCountContentTwo to 0
  15.       end if
  16.     5:
  17.       set XCount to 10
  18.       set yCount to 3
  19.       if CRCountContent > XCount then
  20.         set CRCountContent to 0
  21.       end if
  22.       if CRCountContentTwo > yCount then
  23.         set CRCountContentTwo to 0
  24.       end if
  25.   end case
  26.   case CrSlide of
  27.     0:
  28.       case CRCountContent of
  29.         XCount:
  30.           if the castNum of sprite 43 = the number of member "CRContentOne" then
  31.             set the castNum of sprite 43 to the number of member "CRContentOneB"
  32.           else
  33.             set the castNum of sprite 43 to the number of member "CRContentOne"
  34.           end if
  35.           updateStage()
  36.           set CRCountContent to 0
  37.       end case
  38.       set CRCountContent to 1 + CRCountContent
  39.     1:
  40.       CrSlidePuz()
  41.   end case
  42.   case CRCountContentTwo of
  43.     yCount:
  44.       if the castNum of sprite 44 = the number of member "CRContentTwoB" then
  45.         set the castNum of sprite 44 to the number of member "CRContentTwo"
  46.       else
  47.         set the castNum of sprite 44 to the castNum of sprite 44 + 1
  48.       end if
  49.       if the castNum of sprite 45 = the number of member "CRContentThreeB" then
  50.         set the castNum of sprite 45 to the number of member "CRContentThree"
  51.         set the locV of sprite 45 to the locV of sprite 45 + 36
  52.         puppetSound(1, "bounce")
  53.         updateStage()
  54.       else
  55.         set the castNum of sprite 45 to the castNum of sprite 45 + 1
  56.         set the locV of sprite 45 to the locV of sprite 45 - 12
  57.       end if
  58.       updateStage()
  59.       set CRCountContentTwo to 0
  60.   end case
  61.   set CRCountContentTwo to 1 + CRCountContentTwo
  62.   case rollOver() of
  63.     44:
  64.       if the mouseDown then
  65.         set CrSlide to 0
  66.         set the castNum of sprite 42 to the number of member "CRBlank"
  67.         ReplaceCast()
  68.       end if
  69.     43:
  70.       if the mouseDown then
  71.         if CrSlide = 0 then
  72.           set CrSlide to 1
  73.           set the castNum of sprite 43 to the number of member "SldeBoxA"
  74.           repeat with f = 1 to 18
  75.             set the locH of sprite f to 2000
  76.           end repeat
  77.           set the locH of sprite 46 to 2000
  78.           set the locH of sprite 38 to 2000
  79.           set LineHFlag to 6
  80.           updateStage()
  81.           AdWait(1)
  82.           set the castNum of sprite 43 to the number of member "SldeBoxB"
  83.           set the castNum of sprite 42 to the castNum of sprite 42 + 1
  84.           set the castNum of sprite 2 to the number of member "CRBlankC"
  85.           set the loc of sprite 2 to the loc of sprite 42
  86.           repeat with f = 1 to count(CySlidePosList)
  87.             set the castNum of sprite getAt(getAt(CySlidePosList, f), 1) to the number of member getAt(getAt(CySlidePosList, f), 2)
  88.             set the loc of sprite getAt(getAt(CySlidePosList, f), 1) to point(getAt(getAt(CySlidePosList, f), 5), getAt(getAt(CySlidePosList, f), 6))
  89.             set the ink of sprite getAt(getAt(CySlidePosList, f), 1) to 36
  90.           end repeat
  91.           updateStage()
  92.         end if
  93.       end if
  94.     45:
  95.       if the mouseDown then
  96.         if the castNum of sprite 47 = the number of member "CrLogoTwo" then
  97.           puppetSound(1, "cyrguit1")
  98.           set the castNum of sprite 47 to the number of member "CrFast"
  99.           if CrSlide = 0 then
  100.             repeat with f = 1 to 17
  101.               set the locH of sprite f to 2000
  102.             end repeat
  103.           end if
  104.           updateStage()
  105.           repeat while the mouseDown
  106.           end repeat
  107.           repeat while the mouseUp
  108.           end repeat
  109.           set the castNum of sprite 47 to the number of member "CrLogoTwo"
  110.           updateStage()
  111.           repeat while the mouseDown
  112.           end repeat
  113.         end if
  114.       end if
  115.   end case
  116.   if (the mouseH > 302) and (the mouseH < 326) and (the mouseV > 356) and (the mouseV < 378) and the mouseDown then
  117.     repeat with f = 1 to 18
  118.       set the locH of sprite f to 2000
  119.     end repeat
  120.     repeat with f = 42 to 47
  121.       set the locH of sprite f to 2000
  122.     end repeat
  123.     set the locH of sprite 38 to 2000
  124.     set the castNum of sprite 1 to the number of member "CRBlank"
  125.     set the loc of sprite 1 to point(312, 237)
  126.     updateStage()
  127.     repeat with f = 1 to 7
  128.       set the castNum of sprite 1 to the castNum of sprite 1 - 1
  129.       updateStage()
  130.     end repeat
  131.     puppetSound(1, "doorclos")
  132.     updateStage()
  133.     repeat while soundBusy(1) = 1
  134.     end repeat
  135.     set CRSelect to 2
  136.     set LineHFlag to 6
  137.     set CrSlide to 0
  138.   end if
  139.   if rollOver(48) and the mouseDown then
  140.     repeat with d = 1 to 48
  141.       set the locH of sprite d to 2000
  142.       puppetSprite(d, 0)
  143.     end repeat
  144.     updateStage()
  145.     set the stageColor to 255
  146.     updateStage()
  147.     play done
  148.   end if
  149. end
  150.