|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: Thu Dec 18, 2003 2:24 am |
Perfect, sorry, i should have thought of that.
Thanx for the info!
G. |
|
|
|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Dec 22, 2003 3:24 am |
#VAR #TR {^(~(In Character~) *)} {#WRITE 1 {%1}}
EDIT: Corrected command |
|
|
|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: 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. |
|
|
|
|
|