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
Keoteka
Beginner


Joined: 06 Sep 2004
Posts: 10

PostPosted: Thu Jan 27, 2005 5:20 pm   

Simple script question
 
I made a script to color my friends names when I look through the who list. How do I trigger a variable to color only if it is a seperate word not part of a word (i.e. my friends name is Dre but if the word dream show up dre is colored)

#CLASS {buddyscript}
#ALIAS wanted {#ADDITEM wanted %1}
#ALIAS friend {#ADDITEM friend %1}
#ALIAS delwanted {#DELITEM wanted %1}
#ALIAS delfriend {#DELITEM friend %1}
#VAR wanted {abcd|efgh}
#VAR friend {ijkl|mnop}
#TRIGGER {{@wanted}} {#CW pink} "" {case}
#TRIGGER {{@friend}} {#CW cyan} "" {case}
#CLASS 0
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Jan 27, 2005 9:54 pm   
 
#TRIGGER {%q{@wanted}%q} {#CW pink} "" {case}
#TRIGGER {%q{@friend}%q} {#CW cyan} "" {case}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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