Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
HerenIstarian
Novice


Joined: 30 Oct 2005
Posts: 40

PostPosted: Sun Feb 06, 2011 6:25 am   

Coloring one word in a line.
 
So I'm trying to color particular words only in particular lines. I've been able to color words in the past but then it colors that word whenever it appears in the mud. I just want the word colored for that line. I'll give a line for example:

You easily absorb a forceful attack with your dagger!

Would look like:

You easily absorb a forceful attack with your dagger!
Reply with quote
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Sun Feb 06, 2011 7:26 am   
 
#PCOL is the command you want. The trigger for the example you gave would look something like the one below.

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="10" copy="yes">
    <pattern>^You easily (absorb) a forceful attack with your (dagger)!</pattern>
    <value>#pcol dodgerblue %x1
#pcol orangered %x2
</value>
  </trigger>
</cmud>
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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