home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global timerate, sound_level, soundon, vox, disable, cheatmode, highest, right, wrong, answered, mouse_pressed, question, skip, answer_string, gQuestionList, queslist1, ans1, ans2, ans3, true_answer, checklist, match, check_counter, val, counter, checkcounter, original, valtimer, pass, passno, clicked, helpon, helptimes, n, paused, timeup, correct1_position, Rand_Quest, diff, backdrop, level
- if the keyCode = 44 then
- set cheatmode to 1
- end if
- puppetSprite(42, 1)
- puppetSprite(43, 1)
- if diff = 1 then
- set the castNum of sprite 42 to 219
- set the castNum of sprite 43 to 306
- end if
- if diff = 2 then
- set the castNum of sprite 42 to 220
- set the castNum of sprite 43 to 307
- end if
- if diff = 3 then
- set the castNum of sprite 42 to 221
- set the castNum of sprite 43 to 308
- end if
- if soundon = 0 then
- set the soundEnabled to 0
- end if
- set sound_level to 0
- set the text of cast 250 to " " & 26
- set the visible of sprite 38 to 0
- puppetTempo(timerate)
- set the visible of sprite 26 to 0
- set the visible of sprite 40 to 0
- set the visible of sprite 36 to 1
- set the visible of sprite 10 to 1
- set the visible of sprite 14 to 1
- set the visible of sprite 17 to 0
- set the visible of sprite 18 to 0
- updateStage()
- set the visible of sprite 8 to 0
- set the visible of sprite 12 to 1
- if level = 0 then
- set the castNum of sprite 12 to 275
- else
- if level = 1 then
- set the castNum of sprite 12 to 276
- else
- if level = 2 then
- set the castNum of sprite 12 to 277
- else
- if level = 3 then
- set the castNum of sprite 12 to 278
- else
- if level = 4 then
- set the castNum of sprite 12 to 279
- else
- if level = 5 then
- set the castNum of sprite 12 to 280
- else
- if level = 6 then
- set the castNum of sprite 12 to 281
- else
- if level = 7 then
- set the castNum of sprite 12 to 282
- else
- if level = 8 then
- set the castNum of sprite 12 to 283
- else
- if level = 9 then
- set the castNum of sprite 12 to 284
- else
- if level = 10 then
- set the castNum of sprite 12 to 285
- else
- if level = 11 then
- set the castNum of sprite 12 to 286
- else
- if level = 12 then
- set the castNum of sprite 12 to 287
- else
- if level = 13 then
- set the castNum of sprite 12 to 288
- else
- if level = 14 then
- set the castNum of sprite 12 to 289
- else
- if level = 15 then
- set the castNum of sprite 12 to 290
- else
- if level = 16 then
- set the castNum of sprite 12 to 291
- else
- if level = 17 then
- set the castNum of sprite 12 to 292
- else
- if level = 18 then
- set the castNum of sprite 12 to 293
- else
- if level = 19 then
- set the castNum of sprite 12 to 294
- else
- if level = 20 then
- set the castNum of sprite 12 to 295
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- updateStage()
- set correct1_position to 0
- updateStage()
- set the cursor of sprite 22 to [111, 112]
- set the cursor of sprite 23 to [111, 112]
- set the cursor of sprite 24 to [111, 112]
- puppetSound(0)
- set helptimes to 0
- set helpon to 0
- set clicked to 0
- updateStage()
- set helpon to 0
- set match to 1
- if counter >= 0 then
- choose_q()
- end if
- if diff = 1 then
- set question to getAt(queslist1, Rand_Quest)
- set ans1 to getAt(anslist1, (Rand_Quest * 3) - 2)
- set ans2 to getAt(anslist1, (Rand_Quest * 3) - 1)
- set ans3 to getAt(anslist1, Rand_Quest * 3)
- set true_answer to getAt(correct1, Rand_Quest)
- set the text of member "quest" to question
- set the text of cast "answer1" to ans1
- set the text of cast "answer2" to ans2
- set the text of cast "answer3" to ans3
- end if
- if diff = 2 then
- set question to getAt(queslist2, Rand_Quest)
- set ans1 to getAt(anslist2, (Rand_Quest * 3) - 2)
- set ans2 to getAt(anslist2, (Rand_Quest * 3) - 1)
- set ans3 to getAt(anslist2, Rand_Quest * 3)
- set true_answer to getAt(correct2, Rand_Quest)
- set the text of member "quest" to question
- set the text of cast "answer1" to ans1
- set the text of cast "answer2" to ans2
- set the text of cast "answer3" to ans3
- end if
- if diff = 3 then
- set question to getAt(queslist3, Rand_Quest)
- set ans1 to getAt(anslist3, (Rand_Quest * 3) - 2)
- set ans2 to getAt(anslist3, (Rand_Quest * 3) - 1)
- set ans3 to getAt(anslist3, Rand_Quest * 3)
- set true_answer to getAt(correct3, Rand_Quest)
- set the text of member "quest" to question
- set the text of cast "answer1" to ans1
- set the text of cast "answer2" to ans2
- set the text of cast "answer3" to ans3
- end if
- updateStage()
- set answered to 0
- updateStage()
- updateStage()
- set pass to pass + 1
- end
-
- on exitFrame
- set the visible of sprite 1 to 1
- updateStage()
- set the visible of sprite 38 to 1
- set the visible of sprite 37 to 1
- set the visible of sprite 5 to 1
- set the visible of sprite 6 to 1
- set the visible of sprite 19 to 1
- set the visible of sprite 22 to 1
- set the visible of sprite 23 to 1
- set the visible of sprite 24 to 1
- set n to random(52)
- puppetTransition(28, 2, 1, 0)
- updateStage()
- end
-