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

  1. on enterFrame
  2.   global level, highest, rightq, wrongq, plost, pwon, pend, notend, inarow, timerate, gameover, rest, diff, beenhere
  3.   set the visible of sprite 14 to 0
  4.   updateStage()
  5.   set the visible of sprite 8 to 0
  6.   set the visible of sprite 2 to 0
  7.   set the visible of sprite 26 to 0
  8.   updateStage()
  9.   set the cursor of sprite 5 to [111, 112]
  10.   set the cursor of sprite 6 to [111, 112]
  11.   set the cursor of sprite 7 to [111, 112]
  12.   set the castNum of sprite 1 to 270
  13.   updateStage()
  14.   if (inarow = 6) and (timerate < 7) then
  15.     set the text of cast "quest" to "You're obviously finding this too easy.  Let's speed the timer up just a little bit"
  16.     set timerate to timerate + 1
  17.   end if
  18.   if (inarow = 6) and (timerate >= 5) and (beenhere = 0) then
  19.     set the text of cast "quest" to "This is just too easy for you.  If you get one more wrong now, game over."
  20.     set beenhere to 1
  21.     set gameover to 1
  22.   end if
  23.   if notend = 0 then
  24.     set the text of cast "answer1" to "New Game"
  25.     set the text of cast "answer2" to "Statistics"
  26.     set the text of cast "answer3" to "Quit The Quiz"
  27.     if plost then
  28.       set the text of cast "quest" to "You need to find out more about Oasis. Go back to the biography section to read up on them!"
  29.     end if
  30.     if pwon then
  31.       if diff = 1 then
  32.         set rest to " Password for medium level: Type '*' (Shift Key + 8) when asked for a diffuculty level. Then click  'Medium'!"
  33.       end if
  34.       if diff = 2 then
  35.         set rest to "Password for hard level: Type '!' (Shift Key + 1) when asked for a diffuculty level. Then click on 'Hard'"
  36.       end if
  37.       if diff = 3 then
  38.         set rest to "Why don't you spend more time learning to play music, though?"
  39.       end if
  40.       set the text of cast "quest" to "Brilliant! " & rest
  41.       updateStage()
  42.       puppetSound(1, "finished")
  43.       repeat while soundBusy(1) = 1
  44.       end repeat
  45.     end if
  46.     if pend = 1 then
  47.       set the text of cast "quest" to "You got through all the questions on this level but didn't get to the top rating!"
  48.       updateStage()
  49.     end if
  50.     set the castNum of sprite 12 to 275
  51.   end if
  52.   if notend = 1 then
  53.     if (inarow < 6) and not pwon and not plost then
  54.       set the text of cast "quest" to "Choose an option"
  55.     end if
  56.     set the text of cast "answer1" to "Next Question"
  57.     set the text of cast "answer2" to "Statistics"
  58.   end if
  59.   set the text of cast "answer3" to " "
  60.   set the visible of sprite 22 to 1
  61.   set the visible of sprite 23 to 1
  62.   set the visible of sprite 24 to 1
  63.   set the visible of sprite 5 to 1
  64.   set the visible of sprite 6 to 1
  65.   set the visible of sprite 7 to 1
  66.   set the visible of sprite 19 to 1
  67.   if plost = 1 then
  68.     startTimer()
  69.     repeat while the timer < 150
  70.       nothing()
  71.     end repeat
  72.   end if
  73.   updateStage()
  74.   if inarow = 6 then
  75.     set inarow to 0
  76.   end if
  77.   if level = 0 then
  78.     set the locV of sprite 14 to 370
  79.   else
  80.     if level = 1 then
  81.       set the locV of sprite 14 to 355
  82.     else
  83.       if level = 2 then
  84.         set the locV of sprite 14 to 340
  85.       else
  86.         if level = 3 then
  87.           set the locV of sprite 14 to 325
  88.         else
  89.           if level = 4 then
  90.             set the locV of sprite 14 to 310
  91.           else
  92.             if level = 5 then
  93.               set the locV of sprite 14 to 295
  94.             else
  95.               if level = 6 then
  96.                 set the locV of sprite 14 to 280
  97.               else
  98.                 if level = 7 then
  99.                   set the locV of sprite 14 to 265
  100.                 else
  101.                   if level = 8 then
  102.                     set the locV of sprite 14 to 250
  103.                   else
  104.                     if level = 9 then
  105.                       set the locV of sprite 14 to 235
  106.                     else
  107.                       if level = 10 then
  108.                         set the locV of sprite 14 to 220
  109.                       else
  110.                         if level = 11 then
  111.                           set the locV of sprite 14 to 205
  112.                         else
  113.                           if level = 12 then
  114.                             set the locV of sprite 14 to 190
  115.                           else
  116.                             if level = 13 then
  117.                               set the locV of sprite 14 to 175
  118.                             else
  119.                               if level = 14 then
  120.                                 set the locV of sprite 14 to 160
  121.                               else
  122.                                 if level = 15 then
  123.                                   set the locV of sprite 14 to 145
  124.                                 else
  125.                                   if level = 16 then
  126.                                     set the locV of sprite 14 to 130
  127.                                   else
  128.                                     if level = 17 then
  129.                                       set the locV of sprite 14 to 115
  130.                                     else
  131.                                       if level = 18 then
  132.                                         set the locV of sprite 14 to 100
  133.                                       else
  134.                                         if level = 19 then
  135.                                           set the locV of sprite 14 to 85
  136.                                         else
  137.                                           if level = 20 then
  138.                                             set the locV of sprite 14 to 70
  139.                                           end if
  140.                                         end if
  141.                                       end if
  142.                                     end if
  143.                                   end if
  144.                                 end if
  145.                               end if
  146.                             end if
  147.                           end if
  148.                         end if
  149.                       end if
  150.                     end if
  151.                   end if
  152.                 end if
  153.               end if
  154.             end if
  155.           end if
  156.         end if
  157.       end if
  158.     end if
  159.   end if
  160.   set the visible of sprite 14 to 1
  161.   updateStage()
  162.   pause()
  163. end
  164.  
  165. on exitFrame
  166.   set the visible of sprite 19 to 0
  167.   set the visible of sprite 22 to 0
  168.   set the visible of sprite 23 to 0
  169.   set the visible of sprite 24 to 0
  170.   updateStage()
  171. end
  172.