Trigger help...

Posted by Noodlez on Wed 13 Aug 2008 03:21 PM — 3 posts, 14,209 views.

USA #0
Wasn't sure where to post it, so it's going here... I'll be happy to repost it in the correct spot if someone would tell me where that is.

Ok, so my dilemma is this... I'm trying to make it show up a different color when I cleave someone on this MUD I play call legends of Krynn.

The problem is, when I cleave, the text that shows up, shows up AFTER my prompt.

So it's like this.

Before:
HP: 2493/2857 MANA: 642/642 MOVES: 799/799 TNL: 182740

After:
HP: 2493/2857 MANA: 642/642 MOVES: 799/799 TNL: 182740 You raise your axe high above your head and swing it towards * with a massive cleave!

In the after, the asterisk symbolizes a wildcard that would symbolize any enemy, as I know that much. But many commands show up after your prompt and because of this my friends and I have not been able to figure out how to make triggers to comply to them... Any help will be appreciated, so long as it's helpful.
Australia Forum Administrator #1
There are a number of ways of handling that. First, read the http://mushclient.com/faq point 11.

The easiest would be to customize the prompt to always show a newline. Some MUDs let you rearrange your prompt, including putting a newline on the end.

If that is not possible then, as mentioned in the FAQ, a simple plugin could detect prompt lines and put the newline there for you.

Finally, you could amend the trigger to allow for it. eg.


HP: */* MANA: */* MOVES: */* TNL: * You raise your axe high above your head and swing it towards * with a massive cleave!


I prefer the last option the least, because then you have to amend every trigger like that.
USA #2
Oh man... I never thought to put a newline at the end of my prompt... Thanks a million.