The default reply from lookup_msg() is "Unknown NKI (this should not happen)"
If that does happen, it means that a number less than 1 or greater than
MESSAGE_NUM was given. There may be something wacky going on with
Inform's random() function.
[ get_random_msg num;
num = random(MESSAGE_NUM);
- while (is_duplicate_msg(num) == true) {
+ while (is_duplicate_msg(num) == true || num > MESSAGE_NUM || num < 1) {
num = random(MESSAGE_NUM);
}
return num;