Halls Hopper
Posts: 74
Joined: Sunday, 21st February 2016, 14:55
flushing a message to the text area before a turn is done
I'm trying to output a message when autotravel begins, because sometimes it is slow and the player doesn't always know something is happening. The message displays just fine, but it doesn't show up until the auto-travel is over, which defeats the purpose of course.
I've tried about a dozen different things, but can't seem to get it right. I've looked into how prompts work, since prompts always appear immediately even in the middle of a turn. I've even tried to send the message through the prompt channel, and even that doesn't work.
Here's the mess I've currently have in place, which of course doesn't work.
redraw_screen();
clear_messages();
mprf("Travelling...");
msgwin_got_input();
msgwin_new_cmd(true);
display_message_window();
Anyone know what I'm doing wrong?
I've tried about a dozen different things, but can't seem to get it right. I've looked into how prompts work, since prompts always appear immediately even in the middle of a turn. I've even tried to send the message through the prompt channel, and even that doesn't work.
Here's the mess I've currently have in place, which of course doesn't work.
redraw_screen();
clear_messages();
mprf("Travelling...");
msgwin_got_input();
msgwin_new_cmd(true);
display_message_window();
Anyone know what I'm doing wrong?