home *** CD-ROM | disk | FTP | other *** search
- setPuppets("5, 6, 26, 27, 28, 29, 46, 47", 1)
- set pr to getaProp(gStuInfo, #proficiency)
- setGoalPost(pr)
- set sc to getScore()
- setaProp(gStuMethod, #currPageScore, getWholeScore())
- set total to getaProp(sc, #right) + getaProp(sc, #wrong)
- if total <> 0 then
- set percent to getaProp(sc, #right) * 100 / total
- else
- set percent to 0
- end if
- repeat with i = 1 to integer(percent / 5)
- if i < integer(percent / 5) then
- setMercury(i * 5)
- else
- setMercury(percent)
- end if
- updateStage()
- waitTicks(1)
- end repeat
- if percent >= pr then
- set the visible of sprite 46 to 1
- alignYesNo(-1, #YES)
- giveYeahSnd()
- else
- alignYesNo(-1, #no)
- giveNoSnd()
- end if
- if gTest = 1 then
- saveRecord()
- end if
- set gTest to 0
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- set the visible of sprite 46 to 0
-