 |
mdeming Beginner
Joined: 08 Jul 2002 Posts: 10
|
Posted: 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? |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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".
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
 |
|
|