Color Specific?

by Unknown

Back to Mechanic's Corner.

Unknown2004-12-09 16:28:13
Trying to mess around with color specific triggers (such as prompt, room name, etc.). How do I go about configuring this?
Unknown2004-12-09 17:58:33
There are two ways: 1) make a trigger with the ANSI color option checked and copy and paste your text from the output window into your pattern (the strange looking characters will be the ANSI escape codes for color and what-not) and then edit the pattern with any wildcards you like, or 2) make a trigger with the Line Color option checked and select the foreground and background colors for the trigger to catch.

I recommend option 2 unless you're trying to parse out colored text in the middle of a line, such as room descriptions.
Unknown2004-12-09 18:23:20
Well, I'll have to use the escape codes (I did already read this in the Help, but seemed odd) - the colors aren't exact matches with the basic colors ZMud has in their line color option.
Unknown2004-12-09 18:34:46
I'm not getting any codes whatsover when I paste it.


Still not getting codes, but fixed my problem.
Unknown2004-12-09 20:28:52
You can also look at log files for the ANSI colour, as long as you log in ANSI. But usually, when you copy a line from zMUD and paste it into the trigger pasttern with the ANSI option checked, it should paste the ANSI into it too.
Unknown2004-12-10 14:19:32
Pasting lines from the mud output into pattern boxes doesn't work for me anyway, it usually won't let me paste at all because zmud keeps copying ascii linebreaks which it can't paste into a one-line textbox. And even if it does let me paste patterns then it won't convert them so the ansi codes show up correctly. ranting.gif

You can also use the Editor (Windows->Editor or SHIFT+CTRL+ENTER) switched to "raw" mode, if you paste mud output into the editor you'll get it converted to ansi codes which you can then use for your color trigger patterns.
Unknown2004-12-10 18:18:52
hmm...
Unknown2004-12-10 19:48:04
My problem originally was this:

3224h, 3836m, 2460e, 10p, 15020en, 18080w ex- (the ex- are white, rest is green. There's also possibilities of yellow and red and white, so I have it figured out now). Thanks all!