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
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: 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.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4772
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: 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.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jun 07, 2006 11:50 am   
 
Also, just so you are not left wondering, %ansi(default) goes back to the default color.
_________________
Kjata
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
BlackSmith
Apprentice


Joined: 08 Dec 2002
Posts: 152

PostPosted: 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.
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