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


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Fri Mar 03, 2006 2:30 pm   

Options regarding Substitute coloring of text...
 
I really didn't know how to to subject this but what I'm doing is substituting colors for text that is show in the mud. It works, however, I want to make it more refined....

For instance, I have a word that says...

Armor : Last 10 hours.

Well I would highlight Armor to yellow.
#sub {%ansi(bold,yellow)Armor}

Well, if i was walking around and the room description says something...

Here is a dead man with his Armor on his body. He seems to have been laying here for blab blah blah....

The armor there would be highlighted as well. Anyone know how to control this?
_________________
Thank you for everything, it's always appreciated.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri Mar 03, 2006 2:39 pm   
 
Try something like this:
Code:
#TRIGGER {(Armor) ~: Lasts (%d) hours.} {#SUB {%ansi(bold,yellow)%1 ~: Lasts %2 hours.}}

You may, or may not, need to adjust spacing depending on if you have some kind of formatted output that evenly spaces out your spells and such.
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Fri Mar 03, 2006 2:45 pm   
 
Dang, I didn't want to do the entire line...just the beginning. Anything in the options "verbatim, trigger on trigger, etc.?"
_________________
Thank you for everything, it's always appreciated.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri Mar 03, 2006 3:43 pm   
 
You could try using #PCOL instead of #SUBSTITUTE.
Code:
#TRIGGER {(Armor) : Lasts %d hours.} {#PCOL %eval(%color(bold)+%color(yellow)) %x1}
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Sat Mar 04, 2006 1:40 am   
 
just #sub Armor :
_________________
http://www.Aardwolf.com
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