home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 September / WPCSEP96.ISO / gesw08f.dxr / 00015_GESQuitCD.ls < prev    next >
Encoding:
Text File  |  1996-07-10  |  2.7 KB  |  76 lines

  1. on GESQuitCD
  2.   global GESQuittingList, IFLQuitsprite, GESQuitCounter, GESChooseQuit, GESWhichXplor
  3.   if rollOver(IFLQuitsprite) then
  4.     repeat with t = 1 to count(GESQuittingList)
  5.       if t <> 1 then
  6.         setAt(getAt(GESQuittingList, t), 2, the castNum of sprite getAt(getAt(GESQuittingList, t), 1))
  7.       end if
  8.       set the castNum of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 3)
  9.       set the ink of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 5)
  10.     end repeat
  11.     if GESWhichXplor = 1 then
  12.       set the castNum of sprite 42 to 255
  13.       set the ink of sprite 42 to 39
  14.       set the castNum of sprite 40 to 256
  15.       set the ink of sprite 40 to 39
  16.     end if
  17.     updateStage()
  18.     repeat while rollOver(IFLQuitsprite)
  19.       if the mouseDown then
  20.         set GESChooseQuit to 1
  21.         set the castNum of sprite 48 to 253
  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 39
  25.         set the castNum of sprite IFLQuitsprite to 252
  26.         set GESWhereH to the locH of sprite 30
  27.         set the locH of sprite 30 to 2000
  28.         updateStage()
  29.         exit repeat
  30.       end if
  31.     end repeat
  32.     if GESChooseQuit = 1 then
  33.       repeat while 1
  34.         set GESQuitCounter to 1 + GESQuitCounter
  35.         wait(0.002)
  36.         if GESQuitCounter = 30 then
  37.           set the castNum of sprite 48 to the castNum of sprite 48 + 1
  38.           updateStage()
  39.         else
  40.           if GESQuitCounter = 60 then
  41.             set GESQuitCounter to 0
  42.             set the castNum of sprite 48 to the castNum of sprite 48 - 1
  43.             updateStage()
  44.           end if
  45.         end if
  46.         if (the mouseH > 548) and (the mouseH < 605) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  47.           set the locH of sprite 48 to 2000
  48.           set GESQuitCounter to 0
  49.           set GESChooseQuit to 0
  50.           set the locH of sprite 30 to GESWhereH
  51.           exit repeat
  52.         end if
  53.         if (the mouseH > 442) and (the mouseH < 504) and (the mouseV > 431) and (the mouseV < 469) and the mouseDown then
  54.           set GESQuitCounter to 0
  55.           set GESChooseQuit to 2
  56.           exit repeat
  57.         end if
  58.       end repeat
  59.     end if
  60.     if GESChooseQuit = 0 then
  61.       repeat with t = 1 to count(GESQuittingList)
  62.         set the castNum of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 2)
  63.         set the ink of sprite getAt(getAt(GESQuittingList, t), 1) to getAt(getAt(GESQuittingList, t), 4)
  64.       end repeat
  65.       updateStage()
  66.     end if
  67.   end if
  68.   if GESChooseQuit = 2 then
  69.     repeat with t = 1 to 48
  70.       puppetSprite(t, 0)
  71.     end repeat
  72.     go("Credits")
  73.     updateStage()
  74.   end if
  75. end
  76.