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
Eiredrake
Beginner


Joined: 14 Jun 2005
Posts: 15

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


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

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

- Happy bunny is happy! (1/25)
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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
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