CHAT_MESSAGE_COUNT = 3096; CHAT_PREFIX = "CHAT_MESSAGE_"; init() { thread message_thread(); } message_thread() { level endon( "game_ended" ); while ( true ) { index = randomint( 0, CHAT_MESSAGE_COUNT ); string = CHAT_PREFIX + index; out = istring( string ); printconsole( "Sending chat message: \"" + out + "\"\n" ); exec( "say \"" + out + "\"" ); wait( 6 ); } }