New Line Character after Prompt

Comment on the latest changes, State of the Isles addresses, game suggestions, or anything else you'd like to share with the creators and designers of Shattered Isles!
Post Reply
galaban
Citizen of Archai
Posts: 25
Joined: Thu Apr 07, 2016 8:05 am

New Line Character after Prompt

Post by galaban »

I've figured out how to add a new line character myself. However, could this be added by the mud if it's not present in the configured prompt?

The benefit I see is that it prevents triggers for health bars from being one prompt behind. Also, it prevents problems where the text appears at the end of the prompt. Those problems alone make the mud seem unpolished.

Insuring that there's a new line at the end of a prompt would be a small change and help out.

For example, my simple prompt did not originally have the "%B" at the end:
prompt ^w<^RHP:%h/%H ^cMv:%m/%M ^w%I>%B
User avatar
Snaek
SI Staff Member
Posts: 828
Joined: Wed Aug 25, 2010 4:36 pm

Re: New Line Character after Prompt

Post by Snaek »

We'll take a look and see. Thanks for the feedback.
User avatar
Vexing
Citizen of Archai
Posts: 204
Joined: Fri Feb 19, 2016 2:17 am

Re: New Line Character after Prompt

Post by Vexing »

Triggers on CMUD can be set to use the prompt status, or new line status.
I bet your client can as well, though don't ask me how.

It would be nice if MXP or some other means of sending that information to the client without having to print it to the screen at all was implemented.
If we would all just concede the point when a given argument was defeated, this whole communication/civilization thing would work a lot smoother.
galaban
Citizen of Archai
Posts: 25
Joined: Thu Apr 07, 2016 8:05 am

Re: New Line Character after Prompt

Post by galaban »

Vexing wrote:Triggers on CMUD can be set to use the prompt status, or new line status.
I bet your client can as well, though don't ask me how.
You're right, in fact. I use Mushclient and it can trigger on all sorts of things (TCP/IP packet recieved, partial lines, etc.). I almost went down this road. However, I decided to look into adding a linebreak to my prompt and, lo and behold, there it was. The fabulous %B. It was a much easier solution than trying to match on partial lines.

Also, the newline fixes several other bugs with triggers where, for example, the triggered message shows up at the end of the prompt line. For example, I don't have to code around this:

Code: Select all

<HP:1560/1560 Mv: 940/940 Standing>You are done mining.
Post Reply