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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Mon Apr 28, 2003 7:42 am   

Coloring Rooms... Take 3!
 
Hey all, right now, I have this trigger..,

#TR {~"(*)~" - (%w*) ~[([NESWUD])~]} {#PCOL 11 %x1;#PCOL 11 %x2;#PCOL 15 %x3}

Which will color room titles to something like this

Note - teal is cyan, while red is bright white

"The Sun King's Sanctuary" - Tavern [NEWUD]

However, I ran into a little problem, not all room have the patern of

"TEXT" - TEXT [EXITS]

The room titles are in actually two pattern, the above and this

TEXT - [EXITS]

So, any ideas on how to change the trigger to accept both room titles?

Thanks.


zMUD General Discussion: All the power you'll ever need.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 28, 2003 8:17 am   
 
Just make a second trigger to cover the second possibility.
#TR {(*) - ~[([NESWUD])~]} {#PCOL 11 %x1;#PCOL 15 %x2}

LightBulb
Advanced Member
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