Color to the output

Posted by Malek on Thu 28 Sep 2006 03:05 AM — 4 posts, 20,224 views.

USA #0
this is the trigger I have set..

<triggers>
<trigger
custom_colour="7"
colour_change_type="1"
group="pk"
match="^You follow (.*?) (.*?)$"
regexp="y"
send_to="2"
sequence="100"
>
<send>You sTaLk %1-------------------------------------------------( %2 )</send>
</trigger>
</triggers>

I need to set different colors for the out put's to make them easier to see as I am drug all across the world during a Player Kill. Is there any way yo make lets say %1 display as one color and %2 another when sending to the output?
USA #1
Yes, though Im unsure totally what you're looking for, the following should achieve what you want.
It uses MUSHclients 'world.ColourNote' and 'world.ColourTell' to send a colourful message.
You would change it to your colours you wanted definined in the first, and second arguement.
You might want to change one of the wildcards to a (\w+) match instead of a double 'everything' match

NOTE: Im not to sure on Syntax, but the following should work for LUA if you've scripting enabled

<triggers>
<trigger
custom_colour="7"
colour_change_type="1"
group="pk"
match="^You follow (.*?) (.*?)$"
regexp="y"
send_to="12"
sequence="100"
>
<send>ColourTell "silver","black", "You sTaLk "
ColourTell "white","black", "%1" 
ColourTell "silver", "black", "-------------------------------------------------"
ColourNote "red","black","( %2 )"</send>
</trigger>
</triggers>


--Rakon
Amended on Thu 28 Sep 2006 06:02 AM by Rakon
Australia Forum Administrator #2
For Lua, only simple strings can be outside brackets. You need to put brackets in like this:


ColourTell ("silver", "black", "You sTaLk ")
ColourTell ("white", "black", "%1") 
ColourTell ("silver", "black", "-------------------------------------------------")
ColourNote ("red", "black", "( %2 )")


You can use the Edit menu -> Colour Picker, to find the valid names for colours.
USA #3
That worked great.. Thanks for the help guys..