home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
menus
/
scorestr.dir
/
00456_Script_456
< prev
next >
Wrap
Text File
|
1994-11-08
|
1KB
|
54 lines
on startmovie
global numr,wrong,title,name
set the timeoutScript to EMPTY
put title into field "titlescreen"
put name into field "name here"
set the textsize of field "titlescreen" to 24
set the textsize of field "name here" to 24
checkscore
WHATSCREEN
end startmovie
ON WHATSCREEN
global choice,score
if score >60 then PUT RANDOM (2) INTO CHOICE
if score<60 then set choice=3
if choice=1 then go marker("back")
if choice=2 then
-- preloadcast a81,b35
go marker("up comes the wolf")
else
if choice=3 then go marker("castle")
end if
end whatscreen
on GetOut a
if a=1 then go movie "greatest stories:MENUS:STORIES SUB"
if a=2 then go movie"greatest stories:menus:STORIES SUB"
end GetOut
on checkscore
global numr,wrong,score,attempted,correct
set score=0.0
--put integer(numr) into field "correct"
put integer(numr+wrong) into attempted
if attempted = 0 then
set score=0.0
else
set score=(numr/(numr+wrong)) *100
end if
put integer(score) & "%" into field "correct"
if score >79 then put "Congratulations!!" into field "how do"
else if score > 59 and score<80 then put "Why not read the story ¼
again?"into field "how do"
else if score <60 then put "Did you read the story ¼
carefully?" into field "how do"
end checkscore