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


Joined: 07 Aug 2002
Posts: 9
Location: Australia

PostPosted: Tue Mar 02, 2004 5:31 am   

Tell trigger Help
 
I need help getting a trigger to capture multiple line tells.
^&%*{TellName} {tells|asks} you(*): &%*{LastTell}
This is the pattern I use but it only grabs the first line.
A sample tell
Honourable Voice Sul'linari asks you: hey there..i have a newbie who
Blah BLah Blah Blah Blah Blah
Blah BLah Blah Blah Blah Blah


Zmud 7.3 Win2000
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Tue Mar 02, 2004 9:56 am   
 
I know of two ways to capture multiple lines after a trigger. One way is to use the #COND command or set up a multi-state trigger. The other way is to use a trigger in a temporary or normally disabled class, you can turn a class on and off using #t+ and #t-. You can then trigger on an empty line using ^$ or your prompt, to end the sequence.

I would advise you to avoid using %*, when * or [a-zA-Z(etc.)] are sufficient. %* could capture semicolons, bracers, quotes and mess with your script, it leaves your script open to abuse, very special care has to be made to avoid that.
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