Gammon Forum
Entire forum
MUSHclient
General
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 (22,975 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.
9,549 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.