Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Sun Oct 12, 2008 12:35 am   

ansi triggers
 
Thanks to all who have answered my previous questions, I have two more.

One I can not seem to get a trigger to fire on anything that is colored red
%e[1;31m%d This should fire on any red number. I can't get it to fire at all. I can give you the actually pattern but that is where it is failing.
This is the literal pattern I am trying to match.
%e[37m 10 1 %e[1;31m 45 %e[0;32mMichael %e[36mButcher's Shop %e[0m

I can't get it to fire. Also I was wondering if there is a way to do an an or null basically something like trigger on "This is a trigger" or "This a trigger"
Something like This {is|null} a trigger

Thanks again.
Reply with quote
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Sun Oct 12, 2008 12:53 am   
 
Solved the color issue, only the {is|null} needs resolution
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Oct 12, 2008 1:38 am   
 
Sure can do the {is|} trigger...

#TRIGGER {This {is|} a trigger}

Or you could use regex:

#REGEX {This (?:is )?a trigger} would also work...

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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