home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 September / Personal_Computer_World_Sep_97.iso / Democd3 / oasquiz.dxr / 00201.ls < prev    next >
Encoding:
Text File  |  1997-06-04  |  3.6 KB  |  122 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.   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 then
  28.       set diff to 3
  29.     else
  30.       if the keyCode <> 18 then
  31.         set the text of cast "quest" to "Access Denied! You didn't enter the correct password! Complete the medium level to get the password"
  32.         set the visible of sprite 26 to 1
  33.         set the locH of sprite 26 to 310
  34.         set the locV of sprite 26 to 350
  35.         repeat with n = 256 to 265
  36.           set the castNum of sprite 26 to n
  37.           updateStage()
  38.           startTimer()
  39.           repeat while the timer < 5
  40.             nothing()
  41.           end repeat
  42.         end repeat
  43.         startTimer()
  44.         repeat while the timer < 200
  45.           nothing()
  46.         end repeat
  47.         go(1, "oasquiz")
  48.         exit
  49.       end if
  50.     end if
  51.   end if
  52.   set the visible of sprite 26 to 1
  53.   set the locH of sprite 26 to 310
  54.   set the locV of sprite 26 to 350
  55.   repeat with n = 155 to 160
  56.     set the castNum of sprite 26 to n
  57.     updateStage()
  58.     startTimer()
  59.     repeat while the timer < 5
  60.       nothing()
  61.     end repeat
  62.   end repeat
  63.   startTimer()
  64.   repeat while the timer < 35
  65.     nothing()
  66.   end repeat
  67.   set the visible of sprite 26 to 0
  68.   if helpon = 1 then
  69.     set the visible of sprite 14 to 1
  70.     set the visible of sprite 10 to 1
  71.     set the visible of sprite 8 to 1
  72.     set the visible of sprite 9 to 0
  73.     updateStage()
  74.     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!"
  75.     set the text of cast "answer1" to "Press Any Key"
  76.     set the text of cast "answer2" to "Press Any Key"
  77.     set the text of cast "answer3" to "Press Any Key"
  78.     repeat while the mouseDown = 0
  79.       repeat with z = 370 down to 70
  80.         if the mouseDown then
  81.           set the visible of sprite 10 to 0
  82.           set the visible of sprite 14 to 0
  83.           updateStage()
  84.           go(1, "oasquiz")
  85.           exit
  86.         end if
  87.         set the locV of sprite 14 to z
  88.         updateStage()
  89.       end repeat
  90.       repeat with z = 70 to 370
  91.         set the locV of sprite 14 to z
  92.         if the mouseDown then
  93.           set the visible of sprite 10 to 0
  94.           set the visible of sprite 14 to 0
  95.           updateStage()
  96.           go(1, "oasquiz")
  97.           exit
  98.         end if
  99.         updateStage()
  100.       end repeat
  101.     end repeat
  102.     set the visible of sprite 9 to 1
  103.     set the visible of sprite 8 to 0
  104.     set the visible of sprite 19 to 0
  105.     updateStage()
  106.   end if
  107.   if (timeoption = 0) and (helpon = 0) then
  108.     set the visible of sprite 22 to 0
  109.     set the visible of sprite 23 to 0
  110.     set the visible of sprite 24 to 0
  111.     go("s")
  112.   end if
  113.   if timeoption = 1 then
  114.     set timeoption to 0
  115.     go(the frame)
  116.   end if
  117.   if helpon = 1 then
  118.     set helpon to 0
  119.     go(the frame)
  120.   end if
  121. end
  122.