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


Joined: 14 Aug 2005
Posts: 4

PostPosted: Thu Sep 01, 2005 12:04 pm   

Colors
 
I currently have a trigger for each individual color that would change that color to be displayed in it's proper color.

Every time the word red comes up, it's red, and so on.

Is there a way to take all the colors, put them into one trigger, and make the trigger show the color of whatever word came up?

I don't know how it would go exactly, but something like this:

#trigger (red, green, blue, all the other colors)

#cw (whichever color it happened to be)



Is that possible?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Thu Sep 01, 2005 1:00 pm   
 
this should work
#TR {({red|blue|green|yellow})} {#CW %1 %1}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Sep 01, 2005 8:37 pm   
 
Too many %1's in that example. When using #CW or other coloring commands from within an existing setting (trigger, alias, etc), all you specify is the color.

blah blah blah {#CW %1}

If you want to quickly create a coloring trigger and you happen to know the exact word/phrase and the color, you can use #CW directly from the command-line (or script if you want it to create triggers automatically).

#cw pattern color (ie, #CW %1 %1)
_________________
EDIT: I didn't like my old signature
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