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


Joined: 25 Jul 2004
Posts: 5

PostPosted: Tue Aug 10, 2004 3:09 pm   

New twist on Multiline Chat Capture
 
Realising this is likely an often asked question I combed through the postings for capturing chats for two days before posting this. I have a couple of questions for clarification and what I think is a unique and unaddressed situation which I am having difficulty fashioning a solution from the posts I read about this topic.
The difference between multiline and multistate triggers is confusing, which is which and when is it best to use which one.

My actual issue

[retro]: Malucjut fashions a broom handle from a frog a tree and
some other odds and ends
Malicjut [retro]: is there a way to remove all labels simultaneously
and then not have to worry about the possibility of mixing
up anymore


the [] and {} are not specific for some reason some people get straight brackets and some get curly so I need to be able to capture either.

The problem is, you do not always get a statusline after one of these, there is no set punctuation that would denote the end.
What is constant is after receiving a tell or chat line, if the next line is part of it there are 5 spaces that start the line, and if not, then it is part of something else. Somtimes the tells are 3 or more lines lone and I would like to create one trigger to capture any number of lines for a given inital pattern. I am not sure how to tell it to evaluate the next line and see if it starts with 5 spaces, or if I just need a trigger on 5 spaces and to evaluate the line before. I would like to do this in the most speed effiecent manner possible. If you can help me hash out the line issue I can handle duplicating it for the various types of brackets and tell chat types. Thanks
Reply with quote
Malicjut
Newbie


Joined: 25 Jul 2004
Posts: 5

PostPosted: Tue Aug 10, 2004 3:11 pm   
 
oh this sucks it shows my examples but without the spaces, let me try again
[retro]: Malucjut fashions a broom handle from a frog a tree and
_____some other odds and ends
Malicjut [retro]: is there a way to remove all labels simultaneously
_____and then not have to worry about the possibility of mixing
_____up anymore

the underlines are for the spaces that the forum refuses to allow, and yes it is 5 spaces and not one tab character
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Aug 10, 2004 6:59 pm   
 
The order of triggers is significant.
Code:

#TR retrocap {(*)} {#IF (%begins( "%1", "     ")) {#CAP retro} {#T- retrocap}}
#TR {~[retro~]:} {#T+ retrocap;#CAP retro}
#TR {~{retro~}:} {#T+ retrocap;#CAP retro}

By the way, I think you'll find the people who get {} are all leaders.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
Reply with quote
Malicjut
Newbie


Joined: 25 Jul 2004
Posts: 5

PostPosted: Sat Aug 21, 2004 4:13 pm   Triger Order
 
Why is it the order of the trigers is significant?
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