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
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: Wed Dec 17, 2003 6:06 am   

Logging, & multiple logs open?
 

Hi again,

just wondering, can you open multiple logs at the same time?
I'm hoping to have a map log, and an event log open at the same time
and didn't know if this was possible.

as for the map log, I'd like to just capture the room exit msg
when folling a person, since i cant get the automapper working on
my mud.

the trigger is easy..."you follow fred west."
You follow %1 %2

what i'd like to do is just capture the %2 variable to a log
or something, and NOT see all the room descriptions and actions.

...if not to a log, could i capture this any other way, besides
capturing to a window and logging the window...(can that be done?)

so my log file would look something like this..

west,north,west,west, Through the gate....etc.

Thanks again for any help,
G.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Dec 17, 2003 2:15 pm   
 
In your case, it would probably be simpler to use the #FILE command to open a sequential file and then use #WRITE in a trigger.
#FI 1 follow
#TR {You follow %w (*).} {#WRI 1 %1}

A log records everything that happens in a window, according to how your Logging prefs are set. It might be possible to open multiple logs from the same window but it wouldn't make much sense, since they would all have the same prefs and therefore would all record exactly the same thing.

It is possible to open different logs from multiple windows. What goes in each log is then controlled by controlling what is displayed in each window.
Reply with quote
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: Thu Dec 18, 2003 2:24 am   
 

Perfect, sorry, i should have thought of that.
Thanx for the info!
G.
Reply with quote
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: Sun Dec 21, 2003 11:38 pm   
 
As an add-on to this, how would you take a line containing a certain couple of words (In Character) and put it in a file?

Thanks
Matt
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Dec 22, 2003 3:24 am   
 
#VAR #TR {^(~(In Character~) *)} {#WRITE 1 {%1}}

EDIT: Corrected command
Reply with quote
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: Tue Dec 23, 2003 5:29 am   
 
Or for Any words, just make an alias,
#alias file (*)
value:
#file 1 hints.txt
#wri 1 %1
#close

Then you should be able to do this

file "john says the entrance is in the castle"
..and the line would go to your file 1

You may need a period after the file(*). part, or it may
lose the last word, not sure on this tho
Hope this helps,
G.
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