home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 September / WPCSEP96.ISO / mgiw08f.dxr / 00008_MGILeave,MGIReturn.ls < prev    next >
Encoding:
Text File  |  1996-07-10  |  3.6 KB  |  101 lines

  1. on MGILeave y
  2.   global IFLButtonList, IFLMAGNETNameSprite, ADDADCOntTwo, ADDAdCount, MGIMasterList, ADDADvertSprite, STComp
  3.   if y = 1 then
  4.     nothing()
  5.   else
  6.     puppetSound(0)
  7.     updateStage()
  8.   end if
  9.   set STComp to 0
  10.   set the locH of sprite 22 to 2000
  11.   set the castNum of sprite 22 to 111
  12.   updateStage()
  13.   repeat with f = 1 to count(MGIMasterList)
  14.     set TwochangeSprite to getAt(MGIMasterList, f)
  15.     if count(TwochangeSprite) > 2 then
  16.       setAt(TwochangeSprite, 2, the castNum of sprite getAt(TwochangeSprite, 1))
  17.       setAt(TwochangeSprite, 5, the ink of sprite getAt(TwochangeSprite, 1))
  18.       setAt(TwochangeSprite, 3, the locH of sprite getAt(TwochangeSprite, 1))
  19.       setAt(TwochangeSprite, 4, the locV of sprite getAt(TwochangeSprite, 1))
  20.     else
  21.       setAt(TwochangeSprite, 2, 0)
  22.     end if
  23.     set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  24.     set the locV of sprite getAt(TwochangeSprite, 1) to 2000
  25.   end repeat
  26.   set the locH of sprite ADDADvertSprite to 2000
  27.   if y = 2 then
  28.     set the locH of sprite 1 to 2000
  29.     repeat with f = 1 to count(IFLButtonList)
  30.       set ThisTempList to getAt(IFLButtonList, f)
  31.       setAt(ThisTempList, 2, the castNum of sprite getAt(ThisTempList, 1))
  32.     end repeat
  33.     repeat with t = 39 to 47
  34.       set the locH of sprite t to 2000
  35.     end repeat
  36.     set the castNum of sprite IFLMAGNETNameSprite to getAt(getAt(IFLButtonList, 9), 5)
  37.     set ADDADCOntTwo to 0
  38.     set ADDAdCount to 0
  39.     set the locH of sprite ADDADvertSprite to 2000
  40.     ADDLOADAdd()
  41.   end if
  42.   updateStage()
  43. end
  44.  
  45. on MGIReturn y
  46.   global MGIMasterList, IFLButtonList, IFLMAGNETNameSprite, ESpinsprite, MGIMasFlag
  47.   if y = 1 then
  48.     repeat with g = 1 to 9
  49.       set the castNum of sprite IFLMAGNETNameSprite to the castNum of sprite IFLMAGNETNameSprite - 1
  50.       updateStage()
  51.     end repeat
  52.     puppetSound("REFDrum.wav")
  53.     updateStage()
  54.     set the castNum of sprite ESpinsprite to 29
  55.     set the locH of sprite ESpinsprite to 432
  56.     set the locV of sprite ESpinsprite to 30
  57.     set the castNum of sprite IFLMAGNETNameSprite to the castNum of sprite IFLMAGNETNameSprite - 1
  58.     set the castNum of sprite 36 to 41
  59.     set the locH of sprite 36 to 407
  60.     set the locV of sprite 36 to 25
  61.     set the ink of sprite 36 to 37
  62.     updateStage()
  63.     if MGIMasFlag = 0 then
  64.       set MGIMasFlag to 1
  65.       repeat with t = 39 to 47
  66.         if t <> IFLMAGNETNameSprite then
  67.           set the ink of sprite t to 39
  68.         end if
  69.       end repeat
  70.       set the ink of sprite 1 to 39
  71.       updateStage()
  72.     end if
  73.   end if
  74.   repeat with f = 1 to count(MGIMasterList)
  75.     set TwochangeSprite to getAt(MGIMasterList, f)
  76.     if count(TwochangeSprite) > 2 then
  77.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  78.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  79.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  80.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  81.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  82.       next repeat
  83.     end if
  84.     set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  85.   end repeat
  86.   set the locH of sprite 1 to 325
  87.   set the locV of sprite 1 to 271
  88.   if y = 2 then
  89.     repeat with f = 1 to count(IFLButtonList)
  90.       set TwochangeSprite to getAt(IFLButtonList, f)
  91.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  92.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  93.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  94.     end repeat
  95.   end if
  96.   updateStage()
  97.   ADDAdvertBreak(9)
  98.   updateStage()
  99.   go("MGISection")
  100. end
  101.