home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 February / WPCFEB97.ISO / dxrs / mgiwfeb.dxr / 00005_IFLsectionWordAnimate.ls < prev    next >
Encoding:
Text File  |  1996-12-05  |  3.4 KB  |  82 lines

  1. on IFLsectionWordAnimate
  2.   global IFLhowManyWordTurnList, IFLRolledOver, IFLSpriteDifference, IFLhasLineFlashedList, IFLCanChange, GTSbuttonCount, IFLMAGNETNameSprite, IFLMovieNameList, MGISTONEON, STComp, MGIHeadList, GTSLASTRolledover, MGIRadio
  3.   repeat with t = 39 to 47
  4.     set WHICHHEADING to getAt(MGIHeadList, t - IFLSpriteDifference)
  5.     if (getAt(WHICHHEADING, 5) = 1) and not rollOver(t) then
  6.       setAt(WHICHHEADING, 5, 0)
  7.       if GTSLASTRolledover = t then
  8.         set the castNum of sprite 27 to -1
  9.         set the locH of sprite 27 to 2000
  10.         updateStage()
  11.         set the castNum of sprite 27 to 77
  12.         updateStage()
  13.         set GTSLASTRolledover to 0
  14.         if the castNum of sprite getAt(WHICHHEADING, 7) <> the number of member "ALLNAmesMGI" then
  15.           set the locH of sprite getAt(WHICHHEADING, 7) to 2000
  16.         end if
  17.       end if
  18.     end if
  19.     if rollOver(t) and (t <> IFLMAGNETNameSprite) then
  20.       set WHICHHEADING to getAt(MGIHeadList, t - IFLSpriteDifference)
  21.       if getAt(WHICHHEADING, 5) = 0 then
  22.         if (MGIRadio = 0) and (MGISTONEON = 0) then
  23.           set the castNum of sprite 27 to the number of member getAt(WHICHHEADING, 1)
  24.           set the loc of sprite 27 to point(getAt(WHICHHEADING, 2), getAt(WHICHHEADING, 3))
  25.           set the ink of sprite 27 to getAt(WHICHHEADING, 4)
  26.         end if
  27.         set the castNum of sprite getAt(WHICHHEADING, 7) to the number of member getAt(WHICHHEADING, 6)
  28.         set the loc of sprite getAt(WHICHHEADING, 7) to point(200, 200)
  29.         set the ink of sprite getAt(WHICHHEADING, 7) to 0
  30.         setAt(WHICHHEADING, 5, 1)
  31.         set GTSLASTRolledover to t
  32.         updateStage()
  33.       end if
  34.       set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
  35.       if value = 3 then
  36.         set the castNum of sprite t to the castNum of sprite t + 1
  37.         setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
  38.       else
  39.         if value = 6 then
  40.           set the castNum of sprite t to the castNum of sprite t - 1
  41.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  42.         else
  43.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, value + 1)
  44.         end if
  45.       end if
  46.       if rollOver(t) and (IFLRolledOver <> t) and the mouseDown and (IFLCanChange = 1) then
  47.         set IFLCanChange to 0
  48.         if MGISTONEON = 1 then
  49.           forget(window "STONEY")
  50.         else
  51.           if MGIRadio = 1 then
  52.             forget(window "RADIO")
  53.           end if
  54.         end if
  55.         set IFLRolledOver to t
  56.         set value to getAt(IFLhasLineFlashedList, t - IFLSpriteDifference)
  57.         if value < 4 then
  58.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  59.         else
  60.           setAt(IFLhasLineFlashedList, t - IFLSpriteDifference, 0)
  61.           set the castNum of sprite t to the castNum of sprite t - 1
  62.         end if
  63.         updateStage()
  64.         set the locH of sprite 26 to 2000
  65.         set the locH of sprite 27 to 2000
  66.         updateStage()
  67.         MGILeave(1)
  68.         repeat with g = 1 to 10
  69.           set the castNum of sprite IFLMAGNETNameSprite to the castNum of sprite IFLMAGNETNameSprite + 1
  70.           updateStage()
  71.         end repeat
  72.         cursor(-1)
  73.         puppetSound(0)
  74.         updateStage()
  75.         unloadMember(member 23, 170)
  76.         updateStage()
  77.         go(1, getAt(IFLMovieNameList, IFLRolledOver - IFLSpriteDifference))
  78.       end if
  79.     end if
  80.   end repeat
  81. end
  82.