|
snc1989 Newbie
Joined: 05 Feb 2018 Posts: 2
|
Posted: Tue Feb 06, 2018 12:08 am
T2T Mud - ZMUD Capture Trigger |
I am looking for a trigger to capture tells and party says into a separate window, so that while I am moving in a party, I don't have to continuously scroll or request a brief stop to answer tells and party says, because I couldn't see them within the movement. I currently have them sent to a Tells window, which works flawlessly. My only concern is that because of wordwrap within the Mud, this capture window will not pick up 2nd and 3rd wrapped lines.
My trigger for tells (main concern) is as follows:
#TRIGGER {(%w) tells you: (*)} {#CAP Tells}
Any help would be appreciated. Thanks! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Feb 08, 2018 1:16 am |
Are the wrapped lines indented, or is there a blank line afterward to help signify the end of said capture?
In general, it would be something like:
Code: |
#TRIGGER {(%w) tells you: (*)} {#CAP Tells}
#COND {(*)} {
#IF (%1) {
#CAP Tells
#STATE 1
}
} {Within|Param=1} |
This is only testing for a non-null value though, without a proper way to test for end of line it could be capturing indefinitely. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
snc1989 Newbie
Joined: 05 Feb 2018 Posts: 2
|
Posted: Thu Feb 08, 2018 2:42 am |
I have a 5 character indent on the second and third lines of tells. Would the above work for that? or no?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Thu Feb 08, 2018 5:02 am |
change it to:
Code: |
#TRIGGER {(%w) tells you: (*)} {#CAP Tells}
#COND {^ %x} {
#CAP Tells
#STATE 1
} {Within|Param=1} |
Always better to have the error checking in the pattern itself if possible. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|