For the dialogue box, you should be able to specify the two labels, instead of forcing it to be yes and no (they should also be passed through the translation system).
Example syntax:
dialogueBox(question, label1, label2)- question - Name of the language string for the question.
- label1 - Name of the language string for the first label (button).
- label2 - Name of the language string for the second label.
The function would return 0 if the first label is chosen, and 1 if the second label was chosen, thus, you could assign it to a variable or use it immediately in an argument.
Example:
if dialogueBox('endGameString', 'no', 'yes') then
endGame();
end
endGameString=After a harrowing battle, you have defeated your foe. Exit the game?
no=No
yes=Yes