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


Joined: 05 May 2005
Posts: 2

PostPosted: Thu May 05, 2005 8:31 pm   

ANSI Triggers
 
Okay, I'm aware that there have been other questions similar to this one, but I haven't been able to adapt any of the responses to those questions to my situation. I want to make a trigger where -any- text in a given color sets it off, regardless of where in the line the colored text starts. I assume it would be something like
Code:
#tr {%e[1;31m(*)%e[0m} {dosomething}
And yes, I do have the ANSI trigger option on. Is there anyone that could help me out?
Reply with quote
Maelstrom
Apprentice


Joined: 10 Feb 2005
Posts: 158

PostPosted: Thu May 05, 2005 8:42 pm   
 
Odd,

I tested with this and it worked just fine:
#TRIGGER {%e[32m(*)%e[0m} {#ECHO %1}
Reply with quote
Tarn
GURU


Joined: 10 Oct 2000
Posts: 873
Location: USA

PostPosted: Fri May 06, 2005 2:22 pm   Re: ANSI Triggers
 
There are a couple of ways for the server to send color commands. There can be a comma-separated list between '[' and 'm' or just one.

Can you give us a log excerpt from the mud? (turn on ansi logging in the logging section. View|Preferences|General menu)

-Tarn
Reply with quote
ShadowMaster
Newbie


Joined: 05 May 2005
Posts: 2

PostPosted: Fri May 06, 2005 7:45 pm   
 
Oddly enough, despite the format appearing to be the same, after using the code in the ansi log to make the trigger, it worked fine. Thanks for the help.
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