|
nutsnbolts Apprentice
Joined: 01 May 2002 Posts: 188 Location: USA
|
Posted: 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. |
|
|
|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: 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. |
|
|
|
nutsnbolts Apprentice
Joined: 01 May 2002 Posts: 188 Location: USA
|
Posted: 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. |
|
|
|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: 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} |
|
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Sat Mar 04, 2006 1:40 am |
just #sub Armor :
|
|
|
|
|
|