Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Rastamutti
Beginner


Joined: 27 Jun 2012
Posts: 17

PostPosted: Mon Jul 30, 2012 8:37 pm   

Trigger to color names
 
*********************[ THE HOLY GRAND DUCHY OF MAGNAGORA ]*********************
Citizen Rank Position CT
-------------------------------------------------------------------------------
Xaldrin Baron Steward On
Marcella Lady City Aide On
Rastamutti Lord On
Donovain Peasant On
Cipher Nobleman On
Varen Goodman On
Artur Peasant On
Kanaya Baroness On
*******************************************************************************

I want to take this and make it color code the names.. Then everytime the name shows up I want it to be that color.
Only way I really know to do it is {Xaldrin|Marcella|Rastamutti|Donovain|} #color 12.
I'd rather add all those names to a string list and have it automatically color but I'm not sure how to make that check nonstop.

Thanks in advance!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jul 30, 2012 8:50 pm   
 
Code:
#ALIAS colorname {#ADDITEM ColorNames %1}
#TRIGGER {{@ColorNames}} {#COLOR 12}


Then just type colorname <name> for each name you want colored.
Reply with quote
Rastamutti
Beginner


Joined: 27 Jun 2012
Posts: 17

PostPosted: Mon Jul 30, 2012 9:15 pm   
 
Thanks a ton, Charn. Didn't know I could do a trigger like that.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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