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


Joined: 16 Oct 2005
Posts: 22
Location: Canada

PostPosted: Mon Jul 18, 2011 3:32 am   

Capturing Multiple Lines
 
I've been trying to set up a trigger to capture tells that can be multiple lines and having troubles.

Sample:
Code:

Raven:> Katanah: Quantavious is swimmin' with the fishes.
Raven:> Chronos spanks Bunbun properly!
Raven:> SaRette cheers Onyxdragun enthusiastically.
Raven:> Onyxdragun: lol i was going to take my time leveling. but i miss
                    being part of Raven!
Raven:> Onyxdragun: thanks!
Raven:> SaRette grins mischievously.
Raven:> Sarette: hang on brb


I can't seem to make it capture the "being part of Raven!" portion and send it to another window.

I was doing

#TRIGGER {Raven:> (*)} {#CAPTURE Guild}

I tried using {within|param=1} but I wasn't sure how to use that properly. What am I doing wrong?
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Mon Jul 18, 2011 8:15 pm   
 
Don't know multistate triggers..

Code:
#trigger {Raven:> (*)} {#capture Guild}
#cond {                    (*)} {#capture Guild}

or something like:
#trigger {Raven:> (*)} {}
#cond {                    (*)} {#capture Guild}




Wish I knew more about multistate triggers, anyway I've made a trigger similar to my examples.
Reply with quote
Gimli
Beginner


Joined: 16 Oct 2005
Posts: 22
Location: Canada

PostPosted: Mon Jul 18, 2011 8:23 pm   
 
Oh thanks!

If I did this
Code:

#TRIGGER {Raven:> (*)} {#CAPTURE Guild}
#COND {(%d)(*)} {#CAPTURE Guild}


Would that work too.. that way it didn't matter how big the whitespace was in the 2nd line? (can't test it right now as I am at work)
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon Jul 18, 2011 8:35 pm   
 
You want %s, not %d. %s matches whitespace, %d matches digits.
Reply with quote
Gimli
Beginner


Joined: 16 Oct 2005
Posts: 22
Location: Canada

PostPosted: Mon Jul 18, 2011 8:36 pm   
 
Oops, yea I had %S first and must of replaced it with d and meant to add s

Thanks!
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