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
einkryptonite
Newbie


Joined: 24 Jun 2004
Posts: 2
Location: Singapore

PostPosted: Thu Jun 24, 2004 4:52 am   

Me newbie :) appreciates help
 
Firstly, a hello! to everyone~ who view this message. I'm very new to zmud, just started using it a few days ago.
Basically I need help capturing data from the mud, and outputting it to a sub window in zmud and also logging the data to a text file.

I've explored zmud a bit and managed to set up triggers to get the information i've required, but i couldn't find a way to log that specific amount of text except manually.

Triggers on "night has come".
Activated commands are "weather" and "time"

Weather yields this information:
You see the constellation Pisces in the center of the sky.
The crescent waning Lunitari glows red in the sky.
The gibbous waxing Solinari showers you with its silvery light.
The crescent waxing Nuitari emits an eerie aura, sending chills down your spine.

Time yields this information:
It is 8 o'clock pm, Day of the Great Gods, 20th the Month of Pisces, 983AD.
Lost Dragon Chronicles started up at Tue Jun 22 03:40:21 2004
The current time is Wed Jun 23 22:17:09 2004

I would really fancy some help, but would even appreciate it more, if the help given is simple enough to understand. I'm not really a whiz at understanding some things. Smile walkthroughs for dummies would do~~
Reply with quote
Ryntrax
Wanderer


Joined: 15 Mar 2004
Posts: 55
Location: USA

PostPosted: Thu Jun 24, 2004 2:23 pm   
 
Take a look at #window and #capture in the help files.

Somthing as simple as:
#trigger {You see the constellation (%w) in the (%w) of the sky.} {#window weather}
Not saying that would work exactly but just some idea of what you might be looking for.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jun 24, 2004 2:52 pm   
 
Set up a capture trigger for each line. The patterns should contain enough information so that only the desired lines will be captured, but don't need to include the entire line. Run a log from the capture window.
#AL {atconnect} {#CAP Weather;:Weather:#LOG weather.txt}
#TR {You see * in * the sky} {#CAP Weather}
#TR {Lunitari glows red in the sky} {#CAP Weather}
#TR {Solinari showers you with its silvery light} {#CAP Weather}
#TR {Nuitari emits an eerie aura} {#CAP Weather}
#TR {It is %d o'clock} {#CAP Weather}
#TR {Lost Dragon Chronicles started up at} {#CAP Weather}
#TR {The current time is} {#CAP Weather}

Many people prefer to remove information from the main window if they are displaying it elsewhere. This may be done by adding a #GAG command to each trigger.
Reply with quote
einkryptonite
Newbie


Joined: 24 Jun 2004
Posts: 2
Location: Singapore

PostPosted: Fri Jun 25, 2004 1:32 am   
 
I wished to thank you all for all the help.
It was very informative Smile

thanks and have a good day!
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