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
Amylon
Novice


Joined: 31 Jan 2003
Posts: 49
Location: Australia

PostPosted: Wed Jun 30, 2004 8:47 am   

Colorizations in words
 
Greetings,
I have a stringlist for all my clan members that looks like this:
Name: clanm
Stringlist: Ralph|Michelle|Jon|Jack|Garradiane|Jerryine|Charlit
Now I have a trigger that colors these people as such:
#TR ({@clanm}) {#cw high,red}

The problem I have is that besides coloring my people it also colors:
Jonathon, Jackman, Garrad, Jerry, Helle, Diane, Ryi and Chel

Is there a way to make it so it only colors if it is an exact match to the name within the Clanm stringlist?
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Wed Jun 30, 2004 9:16 am   
 
Use braces for list

#TRIGGER {{@clanm}} {#cw high,red}

Cheers
Reply with quote
Amylon
Novice


Joined: 31 Jan 2003
Posts: 49
Location: Australia

PostPosted: Wed Jun 30, 2004 10:37 am   
 
{{@clanm}} doesnt work at all due to the fact there is no syntax at all that uses double {

Thanks for trying :)
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Wed Jun 30, 2004 12:52 pm   
 
#TRIGGER {%q{@clanm}%q} {#cw high,red}
Reply with quote
Yodous
Apprentice


Joined: 23 Jun 2004
Posts: 105
Location: Poland

PostPosted: Wed Jun 30, 2004 1:37 pm   
 
Use space in pattern
#TR ({@clanm} ) {#cw high,red}
or in the string list
Ralph |Michelle |Jon |Jack |Garradiane |Jerryine |Charlit
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jun 30, 2004 4:09 pm   
 
#TR {%q{@clanm}%q} {#CW hi,red}

You need to mark the word boundaries if you don't want partial words colored. %q was made for precisely this purpose.

And yes, {{@clanm}} does work. The syntax which uses double {} is the syntax to use a stringlist, by itself, as a trigger pattern. You have it incorrectly as ({@clanm}), which creates the same trigger but doesn't match the documentation.
Reply with quote
remus
Wanderer


Joined: 06 Jul 2002
Posts: 53
Location: Australia

PostPosted: Wed Jun 30, 2004 9:20 pm   
 
#TR {({@clanm})} works too.
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