Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Sterling
Newbie


Joined: 26 Dec 2007
Posts: 2

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 26, 2007 10:37 am   
 
You need the #cap command.

#trig {^%w gossips:} {#cap comm}
#trig {^%w says:} {#cap comm}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Sterling
Newbie


Joined: 26 Dec 2007
Posts: 2

PostPosted: 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?
Reply with quote
Zost
Newbie


Joined: 27 Dec 2007
Posts: 2

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net