I wanted to do multiple messages on the quit window for when the user quits the game. I therefore named the message field in quit.window "quitmsg"
Then in quit.script I wrote:
// set a random quit text every time
var QuitMsg =
new Array();
QuitMsg[0] = "/QUIT0001/Testtext 1";
QuitMsg[1] = "/QUIT0002/Testtext 2";
QuitMsg[2] = "/QUIT0003/Testtext 3";
QuitMsg[3] = "/QUIT0004/Testtext 4";
QuitMsg[4] = "/QUIT0005/Testtext 5";
// get control over the quit text to insert the random new one
The corresponding messages are also in string.tab
It indeed displays the texts in the window now but only the texts I defined in the array, for example: /QUIT0005/Testtext 5
So it displays just what I have in the array. I even changed the texts from the string table and it just ignores it.
What goes wrong?