 |
BlackSmith Apprentice

Joined: 08 Dec 2002 Posts: 152
|
Posted: Wed Jun 07, 2006 8:01 am
coloring part of line |
Is there a way to color part of a line and then return to the default coloring for the rest of the line?
e.g.
#Say blaa %ansi(red)blaa%ansi(blank) blaa |
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4772 Location: Pensacola, FL, USA
|
Posted: Wed Jun 07, 2006 8:12 am |
have you thought of using a color trigger? or using MXP <color blue>text to color</color> tags
|
|
_________________ Discord: Shalimarwildcat |
|
|
 |
BlackSmith Apprentice

Joined: 08 Dec 2002 Posts: 152
|
Posted: Wed Jun 07, 2006 8:52 am |
shalimar wrote: |
have you thought of using a color trigger? |
Yes, this would be that color trigger combined with substitute trigger
shalimar wrote: |
or using MXP <color blue>text to color</color> tags |
Those seem to work. thanks. |
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
 |
Kjata GURU

Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Wed Jun 07, 2006 11:50 am |
Also, just so you are not left wondering, %ansi(default) goes back to the default color.
|
|
_________________ Kjata |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Jun 09, 2006 10:09 pm |
Yep, it does. There's one or two situations where %ansi(default) doesn't work, however.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
BlackSmith Apprentice

Joined: 08 Dec 2002 Posts: 152
|
Posted: Tue Jun 13, 2006 2:22 pm |
and there one more thing why color worked better.
Compare the results of these two
Code: |
#Say kissa %ansi(green)kissa%ansi(default) kissa
#Say kissa <color green>kissa</color> kissa |
|
|
_________________ BatMUD Best MMORPG around since 1990 telnet://bat.org:23
~ Magic & Mind beats Chrome & Meat anytime ~
Pattern(s) in PERL. Using Cmud 1.34/2.09 & BatClient. |
|
|
 |
|
|