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
shalimar
GURU


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

PostPosted: Tue Jun 10, 2008 9:44 am   

[2.26] MXP color
 
Code:
<trigger priority="210" id="21">
  <pattern>%q({@crafts})%q</pattern>
  <value><![CDATA[#SUB {<send 'crafts %1'><color red>%1</color></send>}]]></value>
</trigger>


For some reason the color is completely ignored.
_________________
Discord: Shalimarwildcat
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jun 10, 2008 10:35 am   
 
Yep, colour tag goes on the outside.

Also, for future reference, it's a good idea to include the variable in the pattern so we can do exactly what you're doing. In this case, I could just use the #mxp command or something to echo the text, but in other cases that won't work.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Jun 10, 2008 5:02 pm   
 
Actually, this is a bug that I plan to fix in v2.27. In 2.26 it is broken and you have to put the color tag outside of the send tag for it to work. Or wait till 2.27 later this week.
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