home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 June / WPCJUN97.ISO / dxrs / mgiwjun.dxr / 00021_MGIButtonRoll.ls < prev    next >
Encoding:
Text File  |  1997-04-07  |  4.3 KB  |  118 lines

  1. on MGIButtonRoll
  2.   global MGIRotateRCounter, MGIstarRoll, MGILaunch, MGIRadioON, MGIStoneyCounter, MGISTONEON
  3.   repeat with s = 4 to 5
  4.     if rollOver(s) then
  5.       set MGIstarRoll to s
  6.     end if
  7.   end repeat
  8.   if rollOver(9) then
  9.     set MGIstarRoll to 6
  10.   end if
  11.   repeat with t = 4 to 6
  12.     if (the mouseCast = the castNum of sprite t) or (MGIstarRoll <> 0) then
  13.       if MGIstarRoll <> 0 then
  14.         set t to MGIstarRoll
  15.       end if
  16.       set the castNum of sprite t to the castNum of sprite t + 1
  17.       updateStage()
  18.       repeat while (the castNum of sprite 7 <> the number of member "endStar") and (the castNum of sprite 8 <> the number of member "endStar")
  19.         if the castNum of sprite 7 <> the number of member "endStar" then
  20.           set the castNum of sprite 7 to the castNum of sprite 7 + 1
  21.           updateStage()
  22.         end if
  23.         if the castNum of sprite 8 <> the number of member "StartStar" then
  24.           set the castNum of sprite 8 to the castNum of sprite 8 - 1
  25.           updateStage()
  26.         else
  27.           set the castNum of sprite 8 to the number of member "endStar"
  28.           updateStage()
  29.         end if
  30.         if the castNum of sprite 9 <> the number of member "EndR" then
  31.           set the castNum of sprite 9 to the castNum of sprite 9 + 1
  32.           updateStage()
  33.           next repeat
  34.         end if
  35.         set the castNum of sprite 9 to the number of member "StartR"
  36.         updateStage()
  37.       end repeat
  38.       case t of
  39.         4:
  40.           set the castNum of sprite 7 to the number of member "pinkStar"
  41.         5:
  42.           set the castNum of sprite 8 to the number of member "pinkStar"
  43.       end case
  44.       repeat while (the mouseCast = the castNum of sprite t) or ((rollOver(9) or rollOver(4) or rollOver(5) or rollOver(6)) and (MGILaunch <> 2))
  45.         if (rollOver(4) or rollOver(7)) and the mouseDown then
  46.           set the ink of sprite 10 to 0
  47.           set the castNum of sprite 10 to the number of member "ExplainRoom"
  48.           set the loc of sprite 10 to point(336, 408)
  49.           updateStage()
  50.           repeat while the mouseDown
  51.           end repeat
  52.         end if
  53.         if (rollOver(5) or rollOver(8)) and the mouseDown then
  54.           set the ink of sprite 10 to 0
  55.           set the castNum of sprite 10 to the number of member "ExplainBrowser"
  56.           set the loc of sprite 10 to point(336, 408)
  57.           updateStage()
  58.           repeat while the mouseDown
  59.           end repeat
  60.         end if
  61.         if (MGISTONEON <> 3) and (MGIRadioON <> 3) then
  62.           if rollOver(6) and the mouseDown then
  63.             set the castNum of sprite 6 to the number of member "MGIChooseLaunch"
  64.             set the castNum of sprite 11 to the number of member "NetYesNoOne"
  65.             set the loc of sprite 11 to point(481, 241)
  66.             set the locH of sprite 9 to 376
  67.             set MGILaunch to 1
  68.             updateStage()
  69.             repeat while the mouseDown
  70.             end repeat
  71.           end if
  72.           if MGILaunch = 1 then
  73.             MGILaunchWWW()
  74.           end if
  75.         else
  76.           if rollOver(6) then
  77.             exit repeat
  78.           end if
  79.         end if
  80.         if MGILaunch = 3 then
  81.           exit repeat
  82.         end if
  83.         case MGIRotateRCounter of
  84.           30:
  85.             if the castNum of sprite 9 <> the number of member "EndR" then
  86.               set the castNum of sprite 9 to the castNum of sprite 9 + 1
  87.               updateStage()
  88.             else
  89.               set the castNum of sprite 9 to the number of member "StartR"
  90.               updateStage()
  91.             end if
  92.             set MGIRotateRCounter to 0
  93.         end case
  94.         set MGIRotateRCounter to 1 + MGIRotateRCounter
  95.       end repeat
  96.       set MGIStoneyCounter to 0
  97.       set MGIRotateRCounter to 0
  98.       set MGIstarRoll to 0
  99.       if MGILaunch <> 3 then
  100.         set the castNum of sprite t to the castNum of sprite t - 1
  101.         set the castNum of sprite 6 to the number of member "MGIEnterroomOne"
  102.         set the locH of sprite 9 to 435
  103.         set the locH of sprite 10 to 2000
  104.         set the locH of sprite 11 to 2000
  105.         set MGILaunch to 0
  106.       end if
  107.       case t of
  108.         4:
  109.           set the castNum of sprite 7 to the number of member "endStar"
  110.         5:
  111.           set the castNum of sprite 8 to the number of member "endStar"
  112.       end case
  113.       updateStage()
  114.       updateStage()
  115.     end if
  116.   end repeat
  117. end
  118.