home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / GROWDEC.DXR / 00022_GROQuitCD.ls < prev    next >
Encoding:
Text File  |  1997-10-14  |  2.9 KB  |  80 lines

  1. on GROQuitCD
  2.   global GROQuittingList, IFLQuitsprite, GROQuitCounter, GROChooseQuit
  3.   if rollOver(IFLQuitsprite) then
  4.     set GROChooseQuit to 0
  5.     repeat with t = 1 to count(GROQuittingList)
  6.       if t <> 1 then
  7.         setAt(getAt(GROQuittingList, t), 2, the castNum of sprite getAt(getAt(GROQuittingList, t), 1))
  8.       end if
  9.       set the castNum of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 3)
  10.       set the ink of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 5)
  11.     end repeat
  12.     updateStage()
  13.     repeat while rollOver(IFLQuitsprite)
  14.       if the mouseDown then
  15.         if the castNum of sprite 10 <> "0" then
  16.           if the type of member the member of sprite 10 = #digitalVideo then
  17.             set the movieRate of sprite 10 to 0
  18.           end if
  19.         end if
  20.         set GROChooseQuit to 1
  21.         set the castNum of sprite 48 to 82
  22.         set the locH of sprite 48 to 500
  23.         set the locV of sprite 48 to 420
  24.         set the ink of sprite 48 to 0
  25.         set the castNum of sprite IFLQuitsprite to 86
  26.         set the ink of sprite IFLQuitsprite to 36
  27.         updateStage()
  28.         exit repeat
  29.       end if
  30.     end repeat
  31.     if GROChooseQuit = 1 then
  32.       repeat while 1
  33.         wait(0.01)
  34.         set GROQuitCounter to 1 + GROQuitCounter
  35.         if GROQuitCounter = 15 then
  36.           set the castNum of sprite 48 to the castNum of sprite 48 + 1
  37.           updateStage()
  38.         else
  39.           if GROQuitCounter = 30 then
  40.             set GROQuitCounter to 0
  41.             set the castNum of sprite 48 to the castNum of sprite 48 - 1
  42.             updateStage()
  43.           end if
  44.         end if
  45.         if (the mouseH > 548) and (the mouseH < 605) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  46.           set the locH of sprite 48 to 2000
  47.           set GROQuitCounter to 0
  48.           set GROChooseQuit to 0
  49.           if the castNum of sprite 10 <> "0" then
  50.             if the type of member the member of sprite 10 = #digitalVideo then
  51.               set the movieRate of sprite 10 to 1
  52.             end if
  53.           end if
  54.           exit repeat
  55.         end if
  56.         if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  57.           set GROQuitCounter to 0
  58.           set GROChooseQuit to 2
  59.           exit repeat
  60.         end if
  61.       end repeat
  62.     end if
  63.     if GROChooseQuit = 0 then
  64.       repeat with t = 1 to count(GROQuittingList)
  65.         set the castNum of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 2)
  66.         set the ink of sprite getAt(getAt(GROQuittingList, t), 1) to getAt(getAt(GROQuittingList, t), 4)
  67.       end repeat
  68.       updateStage()
  69.     end if
  70.   end if
  71.   if GROChooseQuit = 2 then
  72.     repeat with t = 1 to 48
  73.       puppetSprite(t, 0)
  74.     end repeat
  75.     puppetPalette(0)
  76.     go("Credits")
  77.     updateStage()
  78.   end if
  79. end
  80.