home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / faewaug.dxr / 00015_FAEPreviewGame,FAELeavePreview.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  3.9 KB  |  88 lines

  1. on FAEPreviewGame
  2.   global FAEMasterList, FAEButtonsSprite, IFLFamilyNameSprite, ADDADCOntTwo, IFLButtonList, ADDAdCount, ADDADvertSprite, FAEOptionList, FAEPreview, FAEGOELSEWHERE, FAERemOne, FAERemTwo, FAERemThree, FAEPreviewOrderList, FAEChoosen, FAERAting, FAERateingList
  3.   if FAEPreview = 0 then
  4.     set FAEPreview to 1
  5.     set FAEGOELSEWHERE to 1
  6.     wait(1)
  7.     set FAERemOne to getAt(getAt(FAEOptionList, 3), 4)
  8.     set FAERemTwo to getAt(getAt(FAEOptionList, 2), 4)
  9.     set FAERemThree to getAt(getAt(FAEOptionList, 4), 4)
  10.     setAt(getAt(FAEOptionList, 3), 4, 5)
  11.     setAt(getAt(FAEOptionList, 2), 4, 5)
  12.     setAt(getAt(FAEOptionList, 4), 4, 5)
  13.     repeat with f = 1 to count(FAEMasterList)
  14.       set TwochangeSprite to getAt(FAEMasterList, 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.       if (getAt(TwochangeSprite, 1) <> 2) and (getAt(TwochangeSprite, 1) <> 16) then
  24.         set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  25.         set the locV of sprite getAt(TwochangeSprite, 1) to 2000
  26.       end if
  27.     end repeat
  28.     set the locH of sprite ADDADvertSprite 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.       if t <> IFLFamilyNameSprite then
  35.         set the locH of sprite t to 2000
  36.       end if
  37.     end repeat
  38.     set ADDADCOntTwo to 0
  39.     set ADDAdCount to 0
  40.     set the locH of sprite ADDADvertSprite to 2000
  41.     set the castNum of sprite 2 to 80
  42.     set the locH of sprite 2 to 325
  43.     set the locV of sprite 2 to 272
  44.     set the castNum of sprite 10 to getAt(FAEPreviewOrderList, 1)
  45.     set the castNum of sprite 11 to getAt(FAEPreviewOrderList, 2)
  46.     repeat with x = 10 to 11
  47.       set the locH of sprite x to 548
  48.       set the locV of sprite x to 423
  49.       set the ink of sprite x to 36
  50.     end repeat
  51.     set the castNum of sprite 12 to getAt(getAt(FAEPreviewOrderList, 3), FAEChoosen)
  52.     set the locH of sprite 12 to 177
  53.     set the locV of sprite 12 to 241
  54.     set the ink of sprite 12 to 36
  55.     updateStage()
  56.   end if
  57. end
  58.  
  59. on FAELeavePreview
  60.   global FAEMasterList, IFLButtonList, IFLFamilyNameSprite, FAEHeadCastNum, FAEVisitCoverSprite, ADDADvertSprite, FAEPreview, FAEGOELSEWHERE, FAERemOne, FAERemTwo, FAERemThree, FAEPreviewCounter
  61.   set FAEPreviewCounter to 0
  62.   set FAEPreview to 0
  63.   set FAEGOELSEWHERE to 0
  64.   repeat with f = 1 to count(FAEMasterList)
  65.     set TwochangeSprite to getAt(FAEMasterList, f)
  66.     if count(TwochangeSprite) > 2 then
  67.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  68.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  69.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  70.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  71.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  72.     else
  73.       set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  74.     end if
  75.     set the locH of sprite 24 to 2000
  76.   end repeat
  77.   repeat with f = 1 to count(IFLButtonList)
  78.     set TwochangeSprite to getAt(IFLButtonList, f)
  79.     set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  80.     set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  81.     set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  82.   end repeat
  83.   setAt(getAt(FAEOptionList, 3), 4, FAERemOne)
  84.   setAt(getAt(FAEOptionList, 2), 4, FAERemTwo)
  85.   setAt(getAt(FAEOptionList, 4), 4, FAERemThree)
  86.   updateStage()
  87. end
  88.