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
overstated
Newbie


Joined: 25 Jun 2005
Posts: 2

PostPosted: Sat Jun 25, 2005 5:41 am   

Coloring #subbed lines
 
Recieved line: Your victim is shocked by your hit!

Desired result:

To have the line #sub'd with 'Scored a crit!', and shown in bold green (#cw 10).

The #SUB part is no problem, but I can't get it to color it. The idea of making a seperate trigger has occured to me:

#trigger {^Scored a crit~!} {#cw 10}

....but surely there must be a more elegant way. Doesn't Zmud have a way to build color into a #sub/#say/#echo/#show without building a seperate #cw-based trigger for the new text? Like a built-in ANSI coding function or something?
Reply with quote
overstated
Newbie


Joined: 25 Jun 2005
Posts: 2

PostPosted: Sat Jun 25, 2005 5:55 am   
 
Managed to do it with:

#sub {Scored a crit!}
#co {Scored a crit!} 10

is this the only way to do it? What if I wanted multiple colors in a single line of subbed text?

(Update #2)

Figured the better way was with %ansi in the line as such:

#sub {%ansi(high, green)Scored a crit!}

Also suppose that MXP is worth looking into..as it looks like it allows for HTML-ish displaying..
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