|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Tue Jul 16, 2002 8:28 am |
Try
#trigger {(Comm rl: %*)} {#window Comms "%1"}
- Charbal |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Evangelist Adept
Joined: 10 Oct 2000 Posts: 224 Location: USA
|
Posted: 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 |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: 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 |
|
|
|
|
|