home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / FAEWDEC.DXR / 00015_FAEPreviewGame,FAELeavePreview.ls < prev    next >
Encoding:
Text File  |  1997-10-14  |  4.6 KB  |  107 lines

  1. on FAEPreviewGame
  2.   global FAEMasterList, FAEButtonsSprite, IFLFamilyNameSprite, ADDADCOntTwo, IFLButtonList, ADDAdCount, ADDADvertSprite, FAEOptionList, FAEPreview, FAEGOELSEWHERE, FAERemOne, FAERemTwo, FAERemThree, FAEPreviewOrderList, FAEChoosen, FAERAting, FAERateingList, FAEOfHowManyList
  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 Howmany to getAt(FAEOfHowManyList, FAEChoosen)
  45.     put "Howmany", Howmany
  46.     case Howmany of
  47.       1:
  48.         set the castNum of sprite 10 to the number of member "FAEOfOne"
  49.       2:
  50.         set the castNum of sprite 10 to the number of member "FAEOfTwo"
  51.       3:
  52.         set the castNum of sprite 10 to the number of member "FAEOfThree"
  53.       4:
  54.         set the castNum of sprite 10 to the number of member "FAEOfFour"
  55.       5:
  56.         set the castNum of sprite 10 to the number of member "FAEOffive"
  57.     end case
  58.     set the castNum of sprite 11 to getAt(FAEPreviewOrderList, 1)
  59.     repeat with x = 10 to 11
  60.       set the locH of sprite x to 548
  61.       set the locV of sprite x to 380
  62.       set the ink of sprite x to 36
  63.     end repeat
  64.     set the castNum of sprite 12 to getAt(getAt(FAEPreviewOrderList, 2), FAEChoosen)
  65.     set the locH of sprite 12 to 18
  66.     set the locV of sprite 12 to 161
  67.     set the ink of sprite 12 to 0
  68.     set the member of sprite 30 to member "leftbrowse"
  69.     set the member of sprite 31 to member "rightbrowse"
  70.     set the loc of sprite 30 to point(2000, 423)
  71.     set the loc of sprite 31 to point(578, 423)
  72.     set the ink of sprite 30 to 0
  73.     set the ink of sprite 31 to 0
  74.     updateStage()
  75.   end if
  76. end
  77.  
  78. on FAELeavePreview
  79.   global FAEMasterList, IFLButtonList, IFLFamilyNameSprite, FAEHeadCastNum, FAEVisitCoverSprite, ADDADvertSprite, FAEPreview, FAEGOELSEWHERE, FAERemOne, FAERemTwo, FAERemThree, FAEPreviewCounter
  80.   set FAEPreviewCounter to 1
  81.   set FAEPreview to 0
  82.   set FAEGOELSEWHERE to 0
  83.   repeat with f = 1 to count(FAEMasterList)
  84.     set TwochangeSprite to getAt(FAEMasterList, f)
  85.     if count(TwochangeSprite) > 2 then
  86.       set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  87.       set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  88.       set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  89.       set the ink of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 5)
  90.       set the visible of sprite getAt(TwochangeSprite, 1) to 1
  91.     else
  92.       set the locH of sprite getAt(TwochangeSprite, 1) to 2000
  93.     end if
  94.     set the locH of sprite 24 to 2000
  95.   end repeat
  96.   repeat with f = 1 to count(IFLButtonList)
  97.     set TwochangeSprite to getAt(IFLButtonList, f)
  98.     set the castNum of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 2)
  99.     set the locH of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 3)
  100.     set the locV of sprite getAt(TwochangeSprite, 1) to getAt(TwochangeSprite, 4)
  101.   end repeat
  102.   setAt(getAt(FAEOptionList, 3), 4, FAERemOne)
  103.   setAt(getAt(FAEOptionList, 2), 4, FAERemTwo)
  104.   setAt(getAt(FAEOptionList, 4), 4, FAERemThree)
  105.   updateStage()
  106. end
  107.