Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Sat Nov 17, 2007 5:06 pm   

#CAPTURE
 
I'm using a #CAPTURE command to catch guild comms and post them to another window.

The trigger is ~[ Udungul ~]
The action is #CAPTURE 1 Udungul

How can I change the line number so it will stop processing when the prompt is received again?
I'm having issues where I'm missing lines on the end of long comms.

Thanks for any help you can give me.
_________________
Yama
Reply with quote
luggage
Novice


Joined: 20 Jul 2004
Posts: 38
Location: Australia

PostPosted: Fri Nov 23, 2007 9:29 am   
 
Well, #CAPTURE will only capture a specified number of lines.
An alternate is to use #C+ , which will continuously capture text to the window.
Then you will need to trigger on your prompt and use a #C- , to turn the capture off.

An alternative way (Which I managed on all the muds I play) is to examine closely how the guild comms with multiple lines are received from the mud.
On one mud, I can set the colouring of the guild comm lines, and then simply trigger on a line with that colour using an ansi trigger. On another, multiple lines messages always have 3 spaces at the beginning, while any other text starts at the beginning of the line, so i check for that, and if so, capture it to the window as well.

If you still have trouble, post a couple of examples of multiple line guild messages, and a single line one, and we can probably help you further.
Reply with quote
Tanetti
Newbie


Joined: 01 Nov 2006
Posts: 8

PostPosted: Fri Nov 23, 2007 10:11 am   
 
I had errors too when I tried to send info to another window.

From reading the forums, I believe that in 1.34 the #SEND to another window is buggy, and is/should be fixed in the next public release.

I think you can also use #TRIGGER for the first line for pattern matching, and then use a #CONDITION to extract the text your looking for. From the helpfiles here, the example shows it nicely... although not sure you want to try and #SEND it yet :)

#CONDITION link in the helpfiles.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Fri Nov 23, 2007 6:27 pm   
 
Tanetti, #SEND is for sending stuff to the MUD: it's completely different to #CAPTURE. To capture something _from_ the MUD and send it to another window, you need to basically use #CAPTURE or #WINDOW.

luggage has the answer, or maybe you can turn off line-wrapping on your MUD and then just capture a single line?
Reply with quote
Tanetti
Newbie


Joined: 01 Nov 2006
Posts: 8

PostPosted: Sun Nov 25, 2007 6:08 am   
 
Seb, your right... I was thinking of the #WINDOW command to make a new window (as you mentioned above), not #SEND which is just to send a command to the MUD.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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