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
mdeming
Beginner


Joined: 08 Jul 2002
Posts: 10

PostPosted: Fri Jul 12, 2002 7:04 pm   

Capturing Multiple Lines
 
I've currently got a trigger going for capturing whispers to a database. It is:
#trigger {(%w) whispers "(%*)" to (%w).} {#NEW All {WhoSaid=%1|WhoHeard=%2|What=%3}}

The problem I've run into is when the whisper is long all the text won't be captured. How can I correct this?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Fri Jul 12, 2002 11:10 pm   
 
My first suggestion is to try to set the screen size larger on your mud. That way your mud doesn't do the line wrapping and zMud does. Generally the mud command is some like "width" or "screen".
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jul 13, 2002 9:32 pm   
 
quote:

I've currently got a trigger going for capturing whispers to a database. It is:
#trigger {(%w) whispers "(%*)" to (%w).} {#NEW All {WhoSaid=%1|WhoHeard=%2|What=%3}}

The problem I've run into is when the whisper is long all the text won't be captured. How can I correct this?



Another method would be to create a second trigger with a pattern of (*) or (%*) and checking the ending of %1 for punctuation--if it ends with a double-quote or whatever is used to close spoken words in your MUD, then you disable the trigger after doing your stuff to %1.

li'l shmoe of Dragon's Gate MUD
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