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


Joined: 05 Feb 2018
Posts: 2

PostPosted: 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!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
snc1989
Newbie


Joined: 05 Feb 2018
Posts: 2

PostPosted: 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?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: 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
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