Page 1 of 1

how to leave

Posted: Thu May 07, 2009 7:08 pm
by greggarcia
Hi again, i just want to know if it is possible have a command or a trick to stop the "answer" dialog without putting the instruction in each "answer" dialog, i have a scrip like this:

answer "17.- ¿Por qué naufragó el Titanic?" with "Porque se durmió el capitán" or "Porque choco con otro barco" or "Porque chocó contra un iceberg"
if it is "Porque chocó contra un iceberg" then
add 1 to ctotal
correctas
else
incorrectas
end if
answer "18.- ¿En qué países actuales vivieron los fenicios?" with "En Egipto y Arabia Saudita" or "En Siria y Líbano" or "En Israel y Palestina"
if it is "En Siria y Líbano" then
add 1 to ctotal
correctas
else
incorrectas
end if

end mouseUp

on correctas
add 1 to countergood
answer "respuesta correcta, vamos sigue adelante, llevas " && countergood && "correctas de un total de" && ctotal && "jugadas"
end correctas

on incorrectas
add 1 to counterbad
answer error "No, no no, la que sigue" && counterbad && "contestadas incorrectamente"
end incorrectas

Regards
Greg

Posted: Thu May 07, 2009 10:50 pm
by grc
I've got into those situations and so far the best way I know of is to add this script to at least one of your questions:

Code: Select all

Answer "Question?" with "Answer" and "Cancel"
If it is "Cancel" then exit mouseUp #or whatever the handler is 

Posted: Fri May 08, 2009 2:56 am
by greggarcia
Thanks grc, i was thinking the same and i put in the code every 10 or 5 question, thanks a lot

Regards
Greg