Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Trigger help...

Trigger help...

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Noodlez   USA  (11 posts)  Bio
Date Wed 13 Aug 2008 03:21 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 13 Aug 2008 09:20 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Noodlez   USA  (11 posts)  Bio
Date Reply #2 on Thu 14 Aug 2008 11:08 AM (UTC)
Message
Oh man... I never thought to put a newline at the end of my prompt... Thanks a million.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,713 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.