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


Joined: 06 Nov 2000
Posts: 80
Location: USA

PostPosted: Thu Nov 22, 2001 9:50 pm   

Coloring using multi-state triggers
 
How would I be able to color this line:

Obvious exits: southwest, east, west

So that the "Obvious exits: " is bold cyan, and all the exits (all directions, n, e, s, w, ne, se, sw, nw, all in their long form) are magenta
I want it to only color the exits after it has recieved to "Obvious exits: " line, so that it won't color any part of the room description.

Master, seventh circle of idling
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: Thu Nov 22, 2001 11:35 pm   
 
The following should work (untested)

#TRIGGER {^Obvious exits: (*)$} {#SUBSTITUTE {%ansi( high, cyan)Obvious exits: %ansi( magenta)%1%ansi( grey)}}

I ended with %ansi(grey) to stop the magenta from bleeding over into the following text. Replace that with whatever color the default text has on your mud.

Acaila
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Nov 23, 2001 1:17 pm   
 
You can also use the new #PCOL command like this:
#TRIGGER {Obvious exits: (*)} {#COLOR cyan,bold;#PCOL magenta %x1}

Kjata
Reply with quote
Acaila
Apprentice


Joined: 30 Aug 2001
Posts: 187
Location: Netherlands

PostPosted: Fri Nov 23, 2001 2:57 pm   
 
I take it that's a 6.22 beta thingy?

Acaila
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Nov 24, 2001 11:26 am   
 
Yup, 6.22.

I provided it since einar hinted in the title that it could be used.

Kjata
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