I know i can write a trigger that will call a World.AnsiNote, allowing me to make colored notes. But this is a lot of tedious work, and not all situation can be handled like this, e.g. mobs or items with names in non-standart color, etc.
I know this theme has been discussed a lot of times, but i dont have time to burrow thru forum archives, so the question is - it possible to substitute word (or several words) in text output, while retaining its original colors?
Well. Nick says it is complicated. I still don't see however why the client couldn't automatically buffer any line that matches, so you can use commands like:
GetMatchedLineInfo
GetMatchedLineStyle
etc.
Then you can fiddle with it all you want, since you can still use 'omit from output' to kill the original, but also correctly retrieve all the color and style information.
The other possibility that occured to me is to have two triggers, one with a low sequence number to 'capture' the styles and temporarilly store them, then a second to omit the line and call a script to reproduce the line with stuff changed/added. I haven't tried that yet though. But I agree, this is one serious annoyance.
The short answer is that simple word substitution is not possible. The closest you can get is to omit the original line and recolour the new line with world.ColourNote.