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


Joined: 22 Jul 2003
Posts: 7
Location: USA

PostPosted: Thu Jul 24, 2003 11:25 am   

Help with capturing two lines
 
I'm using the trigger #TRIGGER {shouts:} {#CAP tell;#GAG} .

If a players sentences goes two lines the trigger only captures the 1st line of text to the capture window adn 2nd lines stays on the orgial screen. Is there a command I can add to this trigger inorder to get the entire 2 line sentence captured?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Jul 24, 2003 9:22 pm   
 
If the mud adds single or double quotes to the channel message then you can use a multistate trigger. The second state should be of type Within Lines, with a parameter of 1. The commands would be the same, but the pattern would just be whatever type of closing quote there is followed by $.
Reply with quote
SunKing
Newbie


Joined: 22 Jul 2003
Posts: 7
Location: USA

PostPosted: Thu Jul 24, 2003 10:01 pm   
 
Unfortunately the mud doesnt. the text ends with what the player typed in.
example

=NEWBIE= Morganti: probably not too bad!

and the trigger I use being #TRIGGER {=NEWBIE=} {#CAP tell;#GAG}


can u please post an example of the parameter with $ and ! being the last character of thext
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jul 25, 2003 11:11 am   
 
Does the mud do anything to signal that the message was more then 1 line?
Reply with quote
SunKing
Newbie


Joined: 22 Jul 2003
Posts: 7
Location: USA

PostPosted: Fri Jul 25, 2003 10:45 pm   
 
nope. .. like i showed. =NEWBIE= Morganti: probably not too bad!

Starts with the same character but ends with whatever the play types.. nothing else I can find.


edit ..but some lines I am capturing do end with ! character

edit .. is it possible to trigger a color if I set the =arena= text to say bold red?
Reply with quote
SunKing
Newbie


Joined: 22 Jul 2003
Posts: 7
Location: USA

PostPosted: Tue Jul 29, 2003 11:29 pm   
 
bump

can u please post an example of the parameter with $ and ! being the last character of thext
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Wed Jul 30, 2003 4:26 am   
 
Check out..
http://zuggsoft.com/forum/topic.asp?TOPIC_ID=8698&SearchTerms=cap

Thats for Achaea, but the principle is the same. You begin capturing when they start shouting... and you END capturing next time you see a prompt. This has the bonus of capturing *any* number of lines of text without hassle.. not just 1 or even 2.
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