Welcome to the Builder Academy

Question Can you reduce the frequency of the prompt's output?

More
01 Sep 2020 08:00 #9336 by cry1004
I do not want to display a prompt for the movement of NPC and players, changes in weather, etc.

I want to hide the prompt because the damage message shows the health even during battle.

I only want to show a prompt when the player manually enters something.

I want to display a prompt only when I type a command, say something, or just hit enter.

However, I want to display a prompt once in a while when there is no input for too long.

Which file do I need to modify to make this happen?

Thank you for reading my concerns. :)

Please Log in or Create an account to join the conversation.

More
01 Sep 2020 20:03 #9366 by thomas
This might not be as easy as you think. However, some things may be done.
The descriptor_data structure has a field called has_prompt, which is manipulated in comm.c:
Code:
/* Print prompts for other descriptors who had no other output */ for (d = descriptor_list; d; d = d->next) { if (!d->has_prompt) { write_to_descriptor(d->descriptor, make_prompt(d)); d->has_prompt = TRUE; } }
The following user(s) said Thank You: cry1004

Please Log in or Create an account to join the conversation.

Time to create page: 0.183 seconds