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


Joined: 08 Jul 2006
Posts: 17

PostPosted: Tue Sep 12, 2006 1:33 pm   

setting a script to log
 
is there anyway to set up a script that will start a log whenever a certain word appears? and if so, can anyone help me with it please?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Sep 13, 2006 12:01 am   
 
#LOG "path and name of logfile"

If you want to stop logging on another word, I believe #LOG without parameters turns off logging.
_________________
EDIT: I didn't like my old signature
Reply with quote
koga
Beginner


Joined: 08 Jul 2006
Posts: 17

PostPosted: Wed Sep 13, 2006 1:13 am   
 
so, if I were to type #LOG test for example, whenever the word "test" showed up in the window it would start a log?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Sep 13, 2006 2:16 am   
 
No, that would be #TRIGGER. #LOG would just set up the file you specified and start logging to it.
_________________
EDIT: I didn't like my old signature
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Sep 13, 2006 10:46 am   
 
Topic moved to General Discussion.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
koga
Beginner


Joined: 08 Jul 2006
Posts: 17

PostPosted: Thu Sep 14, 2006 7:31 pm   
 
so, how would I set up a way for it to log? #TRIGGER {#LOG <phrase to start logging>} ?
Reply with quote
Tech
GURU


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

PostPosted: Thu Sep 14, 2006 8:39 pm   
 
#trigger {<phrase to start logging>} {#LOG <name of file to log to>}

You should also know that since you triggers are so powerful, your phrase to log can be a regular expression patterns.
_________________
Asati di tempari!
Reply with quote
koga
Beginner


Joined: 08 Jul 2006
Posts: 17

PostPosted: Thu Sep 14, 2006 10:05 pm   
 
ok, thanks, it seems to work
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