home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / GESWDEC.DXR / 00008_GESLeave,GesReturn.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  4.7 KB  |  133 lines

  1. on GESLeave y
  2.   global IFLButtonList, ADDADCOntTwo, ADDAdCount, GESMasterList, IFLGettingSNameSprite, ADDADvertSprite, IFLHeadInkList
  3.   if y = 1 then
  4.     nothing()
  5.   else
  6.     puppetSound(0)
  7.     updateStage()
  8.   end if
  9.   repeat with f = 1 to count(GESMasterList)
  10.     set TwochangeSprite to getAt(GESMasterList, f)
  11.     if count(TwochangeSprite) > 2 then
  12.       setAt(TwochangeSprite, 2, the castNum of sprite getAt(TwochangeSprite, 1))
  13.       setAt(TwochangeSprite, 5, the ink of sprite getAt(TwochangeSprite, 1))
  14.       setAt(TwochangeSprite, 3, the locH of sprite getAt(TwochangeSprite, 1))
  15.       setAt(TwochangeSprite, 4, the locV of sprite getAt(TwochangeSprite, 1))
  16.     else
  17.       setAt(TwochangeSprite, 2, 0)
  18.     end if
  19.     set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  20.     set the locV of sprite getAt(TwochangeSprite, 1) to 2000
  21.   end repeat
  22.   set the ink of sprite IFLGettingSNameSprite to 36
  23.   set the locH of sprite ADDADvertSprite to 2000
  24.   if y = 1 then
  25.     set the castNum of sprite IFLGettingSNameSprite to the castNum of sprite IFLGettingSNameSprite + 1
  26.   end if
  27.   set the ink of sprite ADDADvertSprite to 36
  28.   if y = 2 then
  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 f = 1 to count(IFLHeadInkList)
  34.       set InkTempList to getAt(IFLHeadInkList, f)
  35.       setAt(InkTempList, 2, the ink of sprite getAt(ThisTempList, 1))
  36.     end repeat
  37.     repeat with t = 39 to 47
  38.       set the locH of sprite t to 2000
  39.     end repeat
  40.     set the locH of sprite 1 to 2000
  41.     set the castNum of sprite IFLGettingSNameSprite to getAt(getAt(IFLButtonList, 6), 5)
  42.     set ADDADCOntTwo to 0
  43.     set ADDAdCount to 0
  44.     set the locH of sprite ADDADvertSprite to 2000
  45.     ADDLOADAdd()
  46.   end if
  47.   updateStage()
  48. end
  49.  
  50. on GESReturn y
  51.   global GESMasterList, IFLButtonList, IFLGettingSNameSprite, ADDADvertSprite, GESWhichXplor, IFLHeadInkList
  52.   if y = 2 then
  53.     case GESWhichXplor of
  54.       0:
  55.         puppetPalette("GESMASTER")
  56.       1:
  57.         puppetPalette("GESMASTER")
  58.       2:
  59.         puppetPalette("GESMASTER")
  60.       3:
  61.         puppetPalette("NoteGes")
  62.     end case
  63.   end if
  64.   if y = 1 then
  65.     repeat with g = 1 to 7
  66.       set the castNum of sprite IFLGettingSNameSprite to the castNum of sprite IFLGettingSNameSprite - 1
  67.       updateStage()
  68.     end repeat
  69.     case GESWhichXplor of
  70.       0:
  71.         set the castNum of sprite IFLGettingSNameSprite to 65
  72.       1:
  73.         set the castNum of sprite IFLGettingSNameSprite to 65
  74.       2:
  75.         set the castNum of sprite IFLGettingSNameSprite to 65
  76.       3:
  77.         set the castNum of sprite IFLGettingSNameSprite to 67
  78.     end case
  79.     repeat while soundBusy(1)
  80.     end repeat
  81.     updateStage()
  82.   end if
  83.   set the castNum of sprite IFLGettingSNameSprite to the castNum of sprite IFLGettingSNameSprite - 1
  84.   repeat with f = 1 to count(GESMasterList)
  85.     set TwochangeSprite to getAt(GESMasterList, f)
  86.     if count(TwochangeSprite) > 2 then
  87.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  88.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  89.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  90.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  91.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  92.       next repeat
  93.     end if
  94.     set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  95.   end repeat
  96.   if y = 2 then
  97.     repeat with f = 1 to count(IFLButtonList)
  98.       set TwochangeSprite to getAt(IFLButtonList, f)
  99.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  100.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  101.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  102.     end repeat
  103.     repeat with f = 1 to count(IFLHeadInkList)
  104.       set TwochangeSprite to getAt(IFLHeadInkList, f)
  105.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  106.     end repeat
  107.   end if
  108.   set the locH of sprite 1 to 325
  109.   set the locV of sprite 1 to 271
  110.   if y = 2 then
  111.     set the castNum of sprite 1 to the number of member "IFLStaticBackground"
  112.     set the ink of sprite 1 to 36
  113.     repeat with f = 39 to 47
  114.       set the ink of sprite f to 36
  115.     end repeat
  116.   end if
  117.   set the ink of sprite ADDADvertSprite to 39
  118.   case GESWhichXplor of
  119.     0:
  120.       set the ink of sprite IFLGettingSNameSprite to 39
  121.     1:
  122.       set the ink of sprite IFLGettingSNameSprite to 39
  123.     2:
  124.       set the ink of sprite IFLGettingSNameSprite to 39
  125.     3:
  126.       set the ink of sprite IFLGettingSNameSprite to 37
  127.   end case
  128.   updateStage()
  129.   ADDAdvertBreak(6)
  130.   updateStage()
  131.   go("GESSection")
  132. end
  133.