Hi there. I’m learning TADS3 with adv3lite, jumped ship from adv3 since it seemed like adv3lite was the way of the world nowadays. I’m trying to create randomized quit messages a-la Doom. In adv3, I achieved such by doing this:
modify libMessages
confirmQuit() {
say(quitMessages.getNextValue() + ' (Press Y to quit.) ');
}
;
But with the standard mechanism for custom messages in adv3lite, I always end up with the same message every time I try to quit. It gets randomized once, and then never again. Here’s my latest attempt:
CustomMessages messages = [
Msg(quit query, '<<one of>>
Please don\'t leave, there\'s more bad guys to smack!<<or>>
Let\'s beat it; this is getting really stupid!<<or>>
I wouldn\'t leave if I were you. Real life is much worse.<<or>>
You\'re trying to say you like real life better than me, right?<<or>>
Don\'t leave yet; there\'s an eggbear around that corner!<<or>>
Ya know, next time you come in here I\'m gonna toast ya.<<or>>
Go ahead and leave. See if I care.<<or>>
Are you sure you want to quit this great game?<<or>>
You want to quit? Then, thou hast lost an eighth!<<or>>
Don\'t go now, responsibilities are waiting outside!<<or>>
Get outta here and go back to your boring programs.<<or>>
If I were your boss, I\'d money match ya in a minute!<<or>>
Look, bud. You leave now and you forfeit your hug count!<<or>>
You\'re lucky I don\'t smack you for thinking about leaving.
<<shuffled>> (y/n) ')
];
Why does this happen, and is there anything I can do to fix it?