home *** CD-ROM | disk | FTP | other *** search
/ Armageddon - Interactive Preview / Interactive Preview: Armageddon.iso / pc / quizgame.dxr / 00164_MovieScript.ls < prev    next >
Encoding:
Text File  |  1998-05-15  |  4.8 KB  |  216 lines

  1. global gTime, gPlayList, gQuestionList, gcheckQ, n, gQuitB, gFinal, gPauseState, gQ1List, gQ2List, gQ3List, gBuzzState, gWhoA, g1stTimeout, g2ndTimeout, gAnswer, gP1Money, gP2Money, gP3Money, gOldtimer, gHowLong
  2.  
  3. on startMovie
  4.   puppetSprite(90, 1)
  5.   puppetSprite(115, 1)
  6.   puppetSprite(116, 1)
  7.   set the visible of sprite 90 to 0
  8.   set the soundLevel to 7
  9.   set the volume of sound 1 to 210
  10.   set the volume of sound 2 to 210
  11.   puppetSound(2, "MUSIC")
  12.   updateStage()
  13.   repeat with x = 3 to 5
  14.     puppetSprite(x, 1)
  15.   end repeat
  16.   repeat with x = 98 to 113
  17.     puppetSprite(x, 1)
  18.   end repeat
  19.   set gPlayList to []
  20.   put EMPTY into field 161
  21.   put EMPTY into field 203
  22.   set gcheckQ to 0
  23.   set gQuestionList to []
  24.   repeat with x = 14 to 25
  25.     add(gQuestionList, x)
  26.     updateStage()
  27.   end repeat
  28.   set gPauseState to 0
  29.   set gBuzzState to 0
  30.   set gOldtimer to 0
  31.   set gPauseB to 0
  32.   set gQuitB to 0
  33.   set gOK to 0
  34.   set gFinal to 0
  35.   set gWhoA to 0
  36.   set gQ1List to []
  37.   set gQ2List to []
  38.   set gQ3List to []
  39.   set g1stTimeout to 0
  40.   set g2ndTimeout to 0
  41.   set gAnswer to 0
  42.   set gP1Money to 0
  43.   set gP2Money to 0
  44.   set gP3Money to 0
  45.   set gHowLong to 0
  46.   put gP1Money into field 200
  47.   put gP2Money into field 201
  48.   put gP3Money into field 202
  49.   repeat with x = 260 to 265
  50.     add(gQ1List, x)
  51.     updateStage()
  52.   end repeat
  53.   repeat with x = 266 to 271
  54.     add(gQ2List, x)
  55.     updateStage()
  56.   end repeat
  57.   repeat with x = 272 to 278
  58.     add(gQ3List, x)
  59.     updateStage()
  60.   end repeat
  61. end
  62.  
  63. on keyDown
  64.   if the key = "p" then
  65.     case gPauseState of
  66.       0:
  67.         set gPauseState to 1
  68.         set gOldtimer to the timer
  69.         puppetSound(1, "soft metal")
  70.         set the visible of sprite 115 to 1
  71.         set the loc of sprite 115 to point(320, 240)
  72.         set the member of sprite 95 to "SOUND D"
  73.         set the member of sprite 97 to "Q D"
  74.         set the visible of sprite 90 to 1
  75.         set the loc of sprite 90 to point(320, 240)
  76.         updateStage()
  77.         pause()
  78.       1:
  79.         set gPauseState to 0
  80.         puppetSound(1, "soft metal")
  81.         set the visible of sprite 115 to 0
  82.         set the member of sprite 95 to "SOUND NORMAL"
  83.         set the member of sprite 97 to "Q NORMAL"
  84.         set the visible of sprite 90 to 0
  85.         startTimer()
  86.         continue()
  87.     end case
  88.   end if
  89.   if gBuzzState = 1 then
  90.     case n of
  91.       1:
  92.         if the key = "z" then
  93.           puppetSound(1, "buzz")
  94.           set gWhoA to 1
  95.           startTimer()
  96.           updateStage()
  97.         end if
  98.       2:
  99.         if the key = "z" then
  100.           puppetSound(1, "buzz")
  101.           set gWhoA to 1
  102.           startTimer()
  103.           updateStage()
  104.         end if
  105.         if the key = "n" then
  106.           puppetSound(1, "buzz")
  107.           set gWhoA to 2
  108.           startTimer()
  109.           updateStage()
  110.         end if
  111.       3:
  112.         if the key = "z" then
  113.           puppetSound(1, "buzz")
  114.           set gWhoA to 1
  115.           startTimer()
  116.           updateStage()
  117.         end if
  118.         if the key = "n" then
  119.           puppetSound(1, "buzz")
  120.           set gWhoA to 2
  121.           startTimer()
  122.           updateStage()
  123.         end if
  124.         if the key = "/" then
  125.           puppetSound(1, "buzz")
  126.           set gWhoA to 3
  127.           startTimer()
  128.           updateStage()
  129.         end if
  130.     end case
  131.   end if
  132.   if gWhoA <> 0 then
  133.     if the key = "a" then
  134.       set gAnswer to 1
  135.     end if
  136.     if the key = "b" then
  137.       set gAnswer to 2
  138.     end if
  139.     if the key = "c" then
  140.       set gAnswer to 3
  141.     end if
  142.   end if
  143. end
  144.  
  145. on PlayerB
  146.   if rollOver(3) then
  147.     cursor(280)
  148.     repeat with x = 13 to 18
  149.       set the memberNum of sprite 3 to x
  150.       updateStage()
  151.       SlowDown()
  152.     end repeat
  153.     repeat with x = 18 down to 13
  154.       set the memberNum of sprite 3 to x
  155.       updateStage()
  156.       SlowDown()
  157.     end repeat
  158.   else
  159.     cursor(0)
  160.     set the memberNum of sprite 3 to 13
  161.   end if
  162.   if rollOver(4) then
  163.     cursor(280)
  164.     repeat with x = 20 to 25
  165.       set the memberNum of sprite 4 to x
  166.       updateStage()
  167.       SlowDown()
  168.     end repeat
  169.     repeat with x = 25 down to 20
  170.       set the memberNum of sprite 4 to x
  171.       updateStage()
  172.       SlowDown()
  173.     end repeat
  174.   else
  175.     cursor(0)
  176.     set the memberNum of sprite 4 to 20
  177.   end if
  178.   if rollOver(5) then
  179.     cursor(280)
  180.     repeat with x = 27 to 32
  181.       set the memberNum of sprite 5 to x
  182.       updateStage()
  183.       SlowDown()
  184.     end repeat
  185.     repeat with x = 32 down to 27
  186.       set the memberNum of sprite 5 to x
  187.       updateStage()
  188.       SlowDown()
  189.     end repeat
  190.   else
  191.     cursor(0)
  192.     set the memberNum of sprite 5 to 27
  193.   end if
  194. end
  195.  
  196. on SlowDown
  197.   startTimer()
  198.   repeat while the timer < 3
  199.     nothing()
  200.   end repeat
  201. end
  202.  
  203. on SlowDown2
  204.   startTimer()
  205.   repeat while the timer < 8
  206.     nothing()
  207.   end repeat
  208. end
  209.  
  210. on SlowDown3
  211.   startTimer()
  212.   repeat while the timer < 60
  213.     nothing()
  214.   end repeat
  215. end
  216.