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


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Thu Mar 25, 2004 7:45 am   

#LOG
 
Hi all.

I've been messing about with logging but no matter what I try I can't seem to get it work..

Here's what I need to do.

>diagnose vendor
You lay one hand on a ragged street-vendor, carefully studying his injuries, and trying to become in rapport with him.
A ragged street-vendor has no obvious wounds.

I type 'diagnose x' and I need the results from 'You lay....' to 'no obvious wounds' (which always shows at the end) appended to a text file I have named diagnose.txt.

No matter how I set it up, I always seem to get no text captured, or the log starts on an infinite loop?

-=Insomniac=-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Mar 25, 2004 9:31 am   
 
#TR {^You lay one hand on *, carefully} {#LOG diagnose.txt}
#COND {no obvious wounds.$} {#LOG}
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Fri Mar 26, 2004 10:21 am   
 
Almost!

I see this:

diagnose eir
You lay one hand on Eir, carefully studying his injuries, and trying to become in rapport with him.
Appending to log: diagnose.txt
Eir has 100 of 100 units of health

Eir has a blinded right eye, a mangled right ear, a mangled left ear, massive neck bleeding, massive chest wounds, massive abdomen wounds, massive back wounds, a broken right arm, scratches and bruises on his right arm, bleeding slightly, a broken left arm, scratches and bruises on his left arm, bleeding slightly, scratches and bruises on his right hand, bleeding slightly, scratches and bruises on his left hand, bleeding slightly, severed fingers on his right hand, severed fingers on his left hand, a severed right leg, a severed left leg, massive nervous system damage, but otherwise appears to be healthy.
Log is off


But all I get is the diagnose.txt file is...

You lay one hand on Eir, carefully studying his injuries, and trying to become in rapport with him.
Appending to log: diagnose.txt
Eir has 100 of 100 units of health


Thanks for the start Lightbulb, and yes I got the 'no obvious wounds' wrong, it should indeed be 'appears to be healthy' I hav changed that but still only get the beginning part.

Any clues please?

-=Insomniac=-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Mar 26, 2004 2:10 pm   
 
Perhaps you need to wait until the following line to end logging.
#TR {^You lay one hand on *, carefully} {#LOG diagnose.txt}
#COND {healthy.$} {}
#COND {} {#LOG} {Looplines|Param=1}
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Sat Mar 27, 2004 10:53 am   
 
Thanks Lightbulb, that worked a treat!

-=Insomniac=-
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