Quote: As your client supports 256 colours, you may also specify a three digit 'rgb' sequence, with each digit representing a colour intensity from 0 to 5 (eg '533' for pink, '530 for orange, etc).
That only lets you choose 216 colors. I assume some colors are considered off limits, then? Maybe the really dark hard to see ones?
Quote: Is there a way for me to retrieve the actual code sent by the MUD
Yes. Two ways.
If your trigger is in a plugin, and it sends to a Lua script function (this is what Wuggly's example is doing), the function will accept 4 input arguments, like so:
function my_trigger (name, line, wildcards, styles)
end -- function my_trigger
That fourth argument, styles, contains a Lua table of something called style runs.
A style run is a Lua table containing the text, number of characters, foreground color, background color, and bold/italic/underline for every section of the line where the style changes. The foreground/background color fields will give you exactly what you want.
If your trigger is not in a plugin, or does not send to a Lua script function, you can have it "Send to Script (after omit)" and then when processing the trigger it will populate a variable called TriggerStyleRuns for you that contains the same information as above.
For more information read: http://www.mushclient.com/forum/?id=7818 and http://www.mushclient.com/forum/?id=8034 |