|
Sterling Newbie
Joined: 26 Dec 2007 Posts: 2
|
Posted: Wed Dec 26, 2007 8:27 am
Conversation routing? |
This may have been answered elsewhere but under a different name.
I'm trying to find out if there is a way to get Zmud to route conversations from other players in a mud to a separate window in order to keep track of conversations in massive screen scroll. I play Majormud and don't like using megamud, which reroutes conversations automatically.
This would really only have to recognize just a few strings of text, such as "<player> gossips:" and "<player> says:" in order to be effective. All the speech is also colour coded - purple for gossip, green for talking, white for tells. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Dec 26, 2007 10:37 am |
You need the #cap command.
#trig {^%w gossips:} {#cap comm}
#trig {^%w says:} {#cap comm} |
|
|
|
Sterling Newbie
Joined: 26 Dec 2007 Posts: 2
|
Posted: Thu Dec 27, 2007 11:13 pm |
Is there a way to get it to recognize colours? Gossips are always in purple, tells in white, and so on. I don't want to just cap 3 lines if there is not 3 lines of gossip or tell. And I want it to cap the lines below not the lines on top. Is there any way to do this?
|
|
|
|
Zost Newbie
Joined: 27 Dec 2007 Posts: 2
|
Posted: Fri Dec 28, 2007 2:20 am |
I've done this exact same thing. I found that the colours were automatically snagged and put into the communications window. Also, a line of communications is usually literally a single line. This means that the #cap command should catch the whole gossip/say/etc.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Dec 28, 2007 3:14 am |
For your first question, yes. Colours are sent using ANSI colour codes, and if you set the ANSI Trigger option, your trigger will match them. If you paste text copied from the output window into the pattern box when the ANSI Trigger option is on, the codes will be added automatically. They're in the format %e[12m where 12 is a number representing that colour.
Sterling wrote: |
I don't want to just cap 3 lines if there is not 3 lines... I want it to cap the lines below not the lines on top. |
Not sure what you're asking here - there's been no mention so far of three lines, or lines above or below anything. |
|
|
|
|
|