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


Joined: 28 Mar 2004
Posts: 10
Location: USA

PostPosted: Sat Oct 10, 2009 5:04 am   

Multi Color line pattern matching?
 
Ok, So I am working with something that is not documented so easily. Here is an example of what I am trying to accomplish.

Pattern: Bob drops something here.

I only want it to fire if the word here is in brown. Otherwise, it should not fire. The line is in a differing color.

Here is what I have attempted, using an ansi trigger.

#trigger {(*) drops (*) %e[8;33m(%w).} {#echo Its a hit!}
I dont remember the command line option to turn it into an ansi trigger, so I just opened its editing window and turned it on there.

This doesnt work, does someone have a better idea? Or am I doing something wrong?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Oct 10, 2009 3:10 pm   
 
To make sure your are using the right color code

Select the whole line from the mud window
open the settings editor
create a new trigger
Turn on the ansi trigger option
select the pattern box
press CTRL-V to past the pattern with escape codes

remove the ones your not worried about and see if you can get it to work
If you cant get it to work post the whole line here with all of the escape codes in place and ill try and dig into it further.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Sorin
Beginner


Joined: 28 Mar 2004
Posts: 10
Location: USA

PostPosted: Mon Oct 12, 2009 8:02 am   Not Working
 
I have selected the line and tried your steps in exact sequence, and it is not grabbing the ansi code escape characters at all.
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