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
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sat Apr 24, 2004 9:23 pm   

Responding to colors
 
Is it possible to make triggers that respond to colors? Would I just make it like #TRIGGER {#CO red} {flee} if I wanted it to flee when it sees the color red?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Apr 25, 2004 1:04 am   
 
*sings the prasises of helpfiles*
#HELP Trigger (read this)
then click the link for options (read this too) and then the link for "trigger options tab" (and oh yeah read this)
below is the relevant section of said helpfile

ANSI Trigger

Turn this option on to allow patterns to contain ANSI color sequences. An ANSI color sequence looks like %e[xxm where xx is the ANSI color value. To trigger on specific color patterns, turn this option on, select the line from the MUD output window that contains the pattern you want to match, and paste (Ctrl-V) this line into the trigger pattern field. If the Ansi Trigger option was on when you pasted the line, any ANSI color codes will be pasted into the Pattern field along with the rest of the text.
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