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

  1. on mouseDown
  2.   global diff, timeoption, timerate, helpon, hardlev
  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.   updateStage()
  16.   startTimer()
  17.   repeat while the timer < 15
  18.     nothing()
  19.   end repeat
  20.   updateStage()
  21.   set the locH of sprite 7 to the locH of sprite 7 - 2
  22.   set the locV of sprite 7 to the locV of sprite 7 - 2
  23.   set the locH of sprite 24 to the locH of sprite 24 - 2
  24.   set the locV of sprite 24 to the locV of sprite 24 - 2
  25.   updateStage()
  26.   if (timeoption = 0) and (helpon = 0) then
  27.     if (the keyCode = 18) or (diff = 3) then
  28.       set diff to 3
  29.       set the castNum of sprite 43 to 308
  30.       set the castNum of sprite 37 to 221
  31.     else
  32.       if the keyCode <> 18 then
  33.         set the text of cast "quest" to "Access Denied! You didn't enter the correct password! Complete the medium level to get the password"
  34.         set the visible of sprite 26 to 1
  35.         set the locH of sprite 26 to 310
  36.         set the locV of sprite 26 to 350
  37.         repeat with n = 256 to 265
  38.           set the castNum of sprite 26 to n
  39.           updateStage()
  40.           startTimer()
  41.           repeat while the timer < 5
  42.             nothing()
  43.           end repeat
  44.         end repeat
  45.         startTimer()
  46.         repeat while the timer < 200
  47.           nothing()
  48.         end repeat
  49.         go(the frame)
  50.         exit
  51.       end if
  52.     end if
  53.   end if
  54.   set the visible of sprite 26 to 1
  55.   set the locH of sprite 26 to 310
  56.   set the locV of sprite 26 to 350
  57.   repeat with n = 155 to 160
  58.     set the castNum of sprite 26 to n
  59.     updateStage()
  60.     startTimer()
  61.     repeat while the timer < 5
  62.       nothing()
  63.     end repeat
  64.   end repeat
  65.   startTimer()
  66.   repeat while the timer < 35
  67.     nothing()
  68.   end repeat
  69.   set the visible of sprite 26 to 0
  70.   if helpon = 1 then
  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 9 to 0
  75.     updateStage()
  76.     set the text of cast "quest" to "You know the rules - no cheating! For you cheats, there is a cheat mode in this game.  You just have to find it!"
  77.     set the text of cast "answer1" to "Back To Game"
  78.     set the text of cast "answer2" to "Back To Game"
  79.     set the text of cast "answer3" to "Back To Game"
  80.     repeat while the mouseDown = 0
  81.       repeat with z = 370 down to 70
  82.         if the mouseDown then
  83.           set the visible of sprite 10 to 0
  84.           set the visible of sprite 14 to 0
  85.           updateStage()
  86.           go(the frame)
  87.           exit
  88.         end if
  89.         set the locV of sprite 14 to z
  90.         updateStage()
  91.       end repeat
  92.       repeat with z = 70 to 370
  93.         set the locV of sprite 14 to z
  94.         if the mouseDown then
  95.           set the visible of sprite 10 to 0
  96.           set the visible of sprite 14 to 0
  97.           updateStage()
  98.           go(the frame)
  99.           exit
  100.         end if
  101.         updateStage()
  102.       end repeat
  103.     end repeat
  104.     set the visible of sprite 9 to 1
  105.     set the visible of sprite 8 to 0
  106.     set the visible of sprite 19 to 0
  107.     updateStage()
  108.   end if
  109.   if (timeoption = 0) and (helpon = 0) then
  110.     set the visible of sprite 22 to 0
  111.     set the visible of sprite 23 to 0
  112.     set the visible of sprite 24 to 0
  113.     go("s")
  114.   end if
  115.   if timeoption = 1 then
  116.     set timeoption to 0
  117.     go(the frame)
  118.   end if
  119.   if helpon = 1 then
  120.     set helpon to 0
  121.     go(the frame)
  122.   end if
  123. end
  124.