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
nostra
Wanderer


Joined: 23 May 2001
Posts: 68
Location: Sweden

PostPosted: Tue May 27, 2003 1:49 am   

String-list not sensitive?
 
In one of my trigger I use a color value if the player is a member of the string list variable.

That is,
Pattern: {@string_list}
Value: #color red

Problem: I just noticed that the trigger kicked in on just about anything that resembles the true names in my @string_list.

For example, I have a name called "Smile" in my string_list, but the trigger fires on "smiley" as well.

Is there anything I can do to avoid this "insensitive nonsense"? :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue May 27, 2003 3:24 am   
 
quote:

In one of my trigger I use a color value if the player is a member of the string list variable.

That is,
Pattern: {@string_list}
Value: #color red

Problem: I just noticed that the trigger kicked in on just about anything that resembles the true names in my @string_list.

For example, I have a name called "Smile" in my string_list, but the trigger fires on "smiley" as well.

Is there anything I can do to avoid this "insensitive nonsense"? :)



Stringlists by themselves are not case-sensitive. When used in a trigger, for example, you must click the Case Sensitive option on under the Options tab. In a function like %ismember(), however, stringlists are forced into case-sensitivity.

li'l shmoe of Dragon's Gate MUD
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