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
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jul 16, 2002 6:10 am   

Partial Capture
 
Is it possible to only capture part of a line. Sometimes my comm text appears on my prompt line and I only want the comm text in the new windows.

120/120hp 98/98sp> Comm rl: [Ragman] double booked?


Any suggestions?

Asati di tempari!
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Tue Jul 16, 2002 8:28 am   
 
Try
#trigger {(Comm rl: %*)} {#window Comms "%1"}




 - Charbal
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jul 16, 2002 11:11 pm   
 
Thanks.

I've got to RTFM more carefully. I was too busy looking at #CAPTURE

Asati di tempari!
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jul 16, 2002 11:54 pm   
 
I did what you said and it worked.. but I'm losing the text colors.. which I didn't with #CAPTURE


Asati di tempari!
Reply with quote
Evangelist
Adept


Joined: 10 Oct 2000
Posts: 224
Location: USA

PostPosted: Wed Jul 17, 2002 7:44 am   
 
You use capture in a trigger

#trigger {(Comm rl: %*)} {#CAP Comms "%1"}

That should work, on the mud I play Comm is on a line by itself, so I have mine firing as

Comm: %w* #CAP Other


Evangelist
www.phidar.com
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Jul 17, 2002 10:56 am   
 
The problem is that %1 is not providing the color codes to the function.

You can fix this by making it an ANSI trigger so it parses the color codes. This setting can be made on the options tab for the trigger.

Taking everything so far into account, we have:
#trigger {(Comm rl: %*)} {#cap Comms "%1"} "" {color}

 - Charbal
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