home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00193.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  3.9 KB  |  126 lines

  1. on mouseDown
  2.   global diff, timeoption, timerate, helpon
  3.   puppetSound("click")
  4.   if timeoption = 1 then
  5.     set timerate to 4
  6.   end if
  7.   set the visible of sprite 13 to 0
  8.   set the visible of sprite 28 to 0
  9.   set the visible of sprite 29 to 0
  10.   set the visible of sprite 30 to 0
  11.   set the locH of sprite 7 to the locH of sprite 7 + 2
  12.   set the locV of sprite 7 to the locV of sprite 7 + 2
  13.   set the locH of sprite 24 to the locH of sprite 24 + 2
  14.   set the locV of sprite 24 to the locV of sprite 24 + 2
  15.   startTimer()
  16.   repeat while the timer < 15
  17.     nothing()
  18.   end repeat
  19.   updateStage()
  20.   set the locH of sprite 7 to the locH of sprite 7 - 2
  21.   set the locV of sprite 7 to the locV of sprite 7 - 2
  22.   set the locH of sprite 24 to the locH of sprite 24 - 2
  23.   set the locV of sprite 24 to the locV of sprite 24 - 2
  24.   updateStage()
  25.   if (timeoption = 0) and (helpon = 0) then
  26.     if the keyCode = 18 then
  27.       set diff to 3
  28.     else
  29.       if the keyCode <> 18 then
  30.         set the text of cast "quest" to "Access Denied! You didn't enter the correct password! Complete the medium level to get the password"
  31.         set the visible of sprite 26 to 1
  32.         set the locH of sprite 26 to 310
  33.         set the locV of sprite 26 to 350
  34.         repeat with n = 256 to 265
  35.           set the castNum of sprite 26 to n
  36.           updateStage()
  37.           startTimer()
  38.           repeat while the timer < 5
  39.             nothing()
  40.           end repeat
  41.         end repeat
  42.         startTimer()
  43.         repeat while the timer < 200
  44.           nothing()
  45.         end repeat
  46.         go(1, "oasquiz")
  47.         exit
  48.       end if
  49.     end if
  50.   end if
  51.   set the visible of sprite 26 to 1
  52.   set the locH of sprite 26 to 310
  53.   set the locV of sprite 26 to 350
  54.   repeat with n = 155 to 160
  55.     set the castNum of sprite 26 to n
  56.     updateStage()
  57.     startTimer()
  58.     repeat while the timer < 5
  59.       nothing()
  60.     end repeat
  61.   end repeat
  62.   startTimer()
  63.   repeat while the timer < 35
  64.     nothing()
  65.   end repeat
  66.   set the visible of sprite 26 to 0
  67.   if helpon = 1 then
  68.     set the visible of sprite 22 to 0
  69.     set the visible of sprite 23 to 0
  70.     set the visible of sprite 24 to 0
  71.     set the visible of sprite 14 to 1
  72.     set the visible of sprite 10 to 1
  73.     set the visible of sprite 8 to 1
  74.     set the visible of sprite 5 to 0
  75.     set the visible of sprite 6 to 0
  76.     set the visible of sprite 7 to 0
  77.     set the visible of sprite 9 to 0
  78.     set the visible of sprite 21 to 1
  79.     set the visible of sprite 25 to 1
  80.     updateStage()
  81.     set the text of cast "quest" to "The aim of the quiz is to get to a perfect fan rating on the most difficult level.  Get a question right and you move up one, get a question wrong and you move down from one to maybe the bottom.  There's a cheat mode on the easy level but you'll never find it!"
  82.     repeat while the mouseDown = 0
  83.       repeat with z = 370 down to 70
  84.         if the mouseDown then
  85.           set the visible of sprite 10 to 0
  86.           set the visible of sprite 14 to 0
  87.           updateStage()
  88.           go(1, "oasquiz")
  89.           exit
  90.         end if
  91.         set the locV of sprite 14 to z
  92.         updateStage()
  93.       end repeat
  94.       repeat with z = 70 to 370
  95.         set the locV of sprite 14 to z
  96.         if the mouseDown then
  97.           set the visible of sprite 10 to 0
  98.           set the visible of sprite 14 to 0
  99.           updateStage()
  100.           go(1, "oasquiz")
  101.           exit
  102.         end if
  103.         updateStage()
  104.       end repeat
  105.     end repeat
  106.     set the visible of sprite 9 to 1
  107.     set the visible of sprite 8 to 0
  108.     set the visible of sprite 19 to 0
  109.     updateStage()
  110.   end if
  111.   if (timeoption = 0) and (helpon = 0) then
  112.     set the visible of sprite 22 to 0
  113.     set the visible of sprite 23 to 0
  114.     set the visible of sprite 24 to 0
  115.     go("s")
  116.   end if
  117.   if timeoption = 1 then
  118.     set timeoption to 0
  119.     go(the frame)
  120.   end if
  121.   if helpon = 1 then
  122.     set helpon to 0
  123.     go(the frame)
  124.   end if
  125. end
  126.