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


Joined: 20 Apr 2004
Posts: 9

PostPosted: Tue Apr 20, 2004 5:24 pm   

a nick color script
 
i have a list of nicknames in a array, can i match him in a tiggrer?

example:

Nickboy say: lalalal

List of nicks in array: Nickboy, lalalal

The names to colorize are Nickboy and lalalal...
Any idea for this???

Thank you and sorry for my english
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Apr 20, 2004 5:50 pm   
 
No. Put your list of nicknames in a list instead of an array. Use #ADDITEM to create the variable and add names to it.
#ADDI nicks {Nickboy}
#ADDI nicks {lalal}
#TR {{@nicks}} {#CW red}
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Apr 20, 2004 5:55 pm   
 
Help Pattern Matching has exactly what you need!

Two ways
First
#TR {{Nickboy|lalala}} {#CW Red}

Second
#ADDITEM Nicks nickboy
#ADDITEM Nicks lalala
#TR {{@Nicks}} {#CW red}
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