|
Eiredrake Beginner
Joined: 14 Jun 2005 Posts: 15
|
Posted: Mon Apr 27, 2009 4:10 am
Logging options |
I've been searching around the site, on the net and in the FAQ to find the answer to this question but not turning up any answers.
Can you prevent a line of text being output to the log with a trigger?
I ask this because i play on an RP mux, and one of the ways you advance your characters is to turn in logs of RP. However, inevitably the log ends up filled with private in game IM's, character sheets, backup notifications, and other spam that isn't needed and you later have to remove before submission. It would be handy if there was a way to match a pattern with a trigger and NOT output it to the log so that I don't have to remove it later.
Anyone have any idea how to do that? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Mon Apr 27, 2009 11:37 am |
Nope; you have to do it yourself. You could use the regex find-and-replace features of an advanced text editor, but that's about it. CMUD has a new #gaglog command, but it's unfortunately it's missing in zMUD.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Tue Apr 28, 2009 9:24 pm |
But you could however just make a text file using #WRITE in a trigger that captures only the RP stuff... for example:
If your mud output looks like this:
[RP] Ralgith: So, you're a half gnome enchanter? Fool! I eat your kind for breakfast!
Then your trigger would look like this:
Code: |
#TRIG {^~[RP~] (*)} {
#FILE 1 RP.log
#WRITE 1 {[RP] %1}
#CLOSE 1
} |
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|