home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / reswaug.dxr / 00012_RESEWordSwitch.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  7.7 KB  |  214 lines

  1. on RESEWordSwitch
  2.   global RESESwitch, ESprite, RESButtonCount, browserID, GTSWIN95, RESHiLightList
  3.   if RESESwitch = 0 then
  4.     repeat with t = 1 to 20
  5.       if the castNum of sprite ESprite = 55 then
  6.         set the castNum of sprite ESprite to 56
  7.       else
  8.         set the castNum of sprite ESprite to 55
  9.       end if
  10.       updateStage()
  11.     end repeat
  12.     set RESESwitch to 1
  13.     set the castNum of sprite ESprite to 56
  14.     repeat with t = 1 to 5
  15.       set the castNum of sprite ESprite to the castNum of sprite ESprite + 1
  16.       wait(0.05)
  17.       updateStage()
  18.     end repeat
  19.     wait(0.5)
  20.     set the locH of sprite 7 to the locH of sprite ESprite
  21.     set the locV of sprite 7 to the locV of sprite ESprite
  22.     updateStage()
  23.     wait(0.5)
  24.     set the locH of sprite 5 to the locH of sprite ESprite
  25.     set the locV of sprite 5 to the locV of sprite ESprite
  26.     updateStage()
  27.     wait(0.5)
  28.     set the locH of sprite 6 to the locH of sprite ESprite
  29.     set the locV of sprite 6 to the locV of sprite ESprite
  30.     updateStage()
  31.     set the locH of sprite 8 to 100
  32.     set the locV of sprite 8 to 100
  33.     startTimer()
  34.     repeat while the timer < 30
  35.     end repeat
  36.     updateStage()
  37.     repeat with t = 1 to count(RESHiLightList)
  38.       set the locH of sprite getAt(getAt(RESHiLightList, t), 1) to 100
  39.       set the locV of sprite getAt(getAt(RESHiLightList, t), 1) to 100
  40.       startTimer()
  41.       repeat while the timer < 30
  42.       end repeat
  43.       updateStage()
  44.     end repeat
  45.   end if
  46.   if RESESwitch = 1 then
  47.     set RESButtonCount to 1 + RESButtonCount
  48.     if RESButtonCount = 6 then
  49.       set RESButtonCount to 0
  50.       if the castNum of sprite 4 = 65 then
  51.         set the castNum of sprite 4 to 66
  52.         set the locH of sprite 35 to 2000
  53.         set the castNum of sprite 41 to 32
  54.       else
  55.         set the castNum of sprite 41 to 86
  56.         set the castNum of sprite 4 to 65
  57.         set the castNum of sprite 35 to 87
  58.         set the locH of sprite 35 to 200
  59.       end if
  60.       updateStage()
  61.     end if
  62.     repeat with t = 1 to count(RESHiLightList)
  63.       set FlashOrNot to getAt(getAt(RESHiLightList, t), 2)
  64.       if FlashOrNot = 16 then
  65.         set the locH of sprite 34 to getAt(getAt(RESHiLightList, t), 3)
  66.         set the locV of sprite 34 to getAt(getAt(RESHiLightList, t), 4)
  67.         setAt(getAt(RESHiLightList, t), 2, 0)
  68.         next repeat
  69.       end if
  70.       setAt(getAt(RESHiLightList, t), 2, FlashOrNot + 1)
  71.     end repeat
  72.     repeat with t = 1 to count(RESHiLightList)
  73.       if rollOver(getAt(getAt(RESHiLightList, t), 1)) then
  74.         set the locH of sprite 34 to getAt(getAt(RESHiLightList, t), 3)
  75.         set the locV of sprite 34 to getAt(getAt(RESHiLightList, t), 4)
  76.         updateStage()
  77.         repeat while rollOver(getAt(getAt(RESHiLightList, t), 1))
  78.           if the mouseDown then
  79.           end if
  80.         end repeat
  81.       end if
  82.     end repeat
  83.     if (the mouseH < 455) and (the mouseH > 237) and (the mouseV < 376) and (the mouseV > 191) and not rollOver(48) then
  84.       repeat while (the mouseH < 455) and (the mouseH > 237) and (the mouseV < 376) and (the mouseV > 191)
  85.         set the castNum of sprite 41 to 86
  86.         set the castNum of sprite 4 to 65
  87.         set the castNum of sprite 35 to 87
  88.         set the locH of sprite 35 to 200
  89.         updateStage()
  90.         if the mouseDown then
  91.           if the machineType < 200 then
  92.             set the castNum of sprite 36 to 71
  93.             set the locH of sprite 36 to 235
  94.             set the locV of sprite 36 to 232
  95.             set RESNETUP to 0
  96.             updateStage()
  97.             repeat while 1
  98.               if RESNETUP = 1 then
  99.                 if word the mouseWord of field 71 = "YES" then
  100.                   set RESThisword to the mouseWord
  101.                   set the foreColor of word RESThisword of field 71 to 164
  102.                   repeat while word the mouseWord of field 71 = "YES"
  103.                     if the mouseDown then
  104.                       set RESYesOrCancel to 1
  105.                       exit repeat
  106.                     end if
  107.                   end repeat
  108.                   set the foreColor of word RESThisword of field 71 to 255
  109.                 end if
  110.                 if word the mouseWord of field 71 = "NO" then
  111.                   set RESThisword to the mouseWord
  112.                   set the foreColor of word RESThisword of field 71 to 164
  113.                   repeat while word the mouseWord of field 71 = "NO"
  114.                     if the mouseDown then
  115.                       set RESYesOrCancel to 2
  116.                       exit repeat
  117.                       updateStage()
  118.                     end if
  119.                   end repeat
  120.                   set the foreColor of word RESThisword of field 71 to 255
  121.                 end if
  122.                 if RESYesOrCancel > 0 then
  123.                   exit repeat
  124.                 else
  125.                   if (the mouseCast <> 71) and the mouseDown then
  126.                     beep()
  127.                   end if
  128.                 end if
  129.                 next repeat
  130.               end if
  131.               if the mouseUp then
  132.                 set RESNETUP to 1
  133.               end if
  134.             end repeat
  135.             set RESNETUP to 0
  136.             if RESYesOrCancel = 2 then
  137.               set the locH of sprite 36 to 2000
  138.               updateStage()
  139.               repeat while the mouseDown
  140.               end repeat
  141.             else
  142.               set the castNum of sprite 36 to 69
  143.               set the locH of sprite 36 to 235
  144.               set the locV of sprite 36 to 261
  145.               updateStage()
  146.               repeat while the mouseDown
  147.               end repeat
  148.             end if
  149.             next repeat
  150.           end if
  151.           set the castNum of sprite 36 to 71
  152.           set the locH of sprite 36 to 235
  153.           set the locV of sprite 36 to 232
  154.           set RESNETUP to 0
  155.           updateStage()
  156.           repeat while 1
  157.             if RESNETUP = 1 then
  158.               if word the mouseWord of field 71 = "YES" then
  159.                 set RESThisword to the mouseWord
  160.                 set the foreColor of word RESThisword of field 71 to 164
  161.                 repeat while word the mouseWord of field 71 = "YES"
  162.                   if the mouseDown then
  163.                     set RESYesOrCancel to 1
  164.                     exit repeat
  165.                   end if
  166.                 end repeat
  167.                 set the foreColor of word RESThisword of field 71 to 255
  168.               end if
  169.               if word the mouseWord of field 71 = "NO" then
  170.                 set RESThisword to the mouseWord
  171.                 set the foreColor of word RESThisword of field 71 to 164
  172.                 repeat while word the mouseWord of field 71 = "NO"
  173.                   if the mouseDown then
  174.                     set RESYesOrCancel to 2
  175.                     exit repeat
  176.                     updateStage()
  177.                   end if
  178.                 end repeat
  179.                 set the foreColor of word RESThisword of field 71 to 255
  180.               end if
  181.               if RESYesOrCancel > 0 then
  182.                 exit repeat
  183.               else
  184.                 if (the mouseCast <> 71) and the mouseDown then
  185.                   beep()
  186.                 end if
  187.               end if
  188.               next repeat
  189.             end if
  190.             if the mouseUp then
  191.               set RESNETUP to 1
  192.             end if
  193.           end repeat
  194.           set RESNETUP to 0
  195.           if RESYesOrCancel = 2 then
  196.             set the locH of sprite 36 to 2000
  197.             updateStage()
  198.             repeat while the mouseDown
  199.             end repeat
  200.             next repeat
  201.           end if
  202.           set the castNum of sprite 36 to 69
  203.           set the locH of sprite 36 to 235
  204.           set the locV of sprite 36 to 261
  205.           updateStage()
  206.           repeat while the mouseDown
  207.           end repeat
  208.           StartBrowser("HTML/res/reshome.htm")
  209.         end if
  210.       end repeat
  211.     end if
  212.   end if
  213. end
  214.