|
einar Wanderer
Joined: 06 Nov 2000 Posts: 80 Location: USA
|
Posted: 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 |
|
|
|
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: Fri Nov 23, 2001 2:57 pm |
I take it that's a 6.22 beta thingy?
Acaila |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|