I have a trigger that matches a line, and I want to add some text to the line for output.
For example, say the text that comes in is:
A janitor barely clings to life.
I want to replace it with:
A janitor barely clings to life. (1%-7%)
I can do that with a omit_from_output trigger and a world.note(), but that way I loose all color information associated with the line.
I found a post that described a method for reconstructing a line using world.GetStyleInfo() and others, but that depends on the line being in the window. If I omit_from_output, it isn't.
I had had high hopes for GetRecentLines(), because it includes lines even if they have been omitted from output by a trigger, but, alas, they don't contain the ANSI codes.
the OnPluginPacketReceived() callback seems to give me color information, but that's not much use, because I'd have to regexp match every packet and save the matches to use later in the trigger, hoping everything lined up right.
Is there any way to get color information for a line that was omitted from output?
Mark
For example, say the text that comes in is:
A janitor barely clings to life.
I want to replace it with:
A janitor barely clings to life. (1%-7%)
I can do that with a omit_from_output trigger and a world.note(), but that way I loose all color information associated with the line.
I found a post that described a method for reconstructing a line using world.GetStyleInfo() and others, but that depends on the line being in the window. If I omit_from_output, it isn't.
I had had high hopes for GetRecentLines(), because it includes lines even if they have been omitted from output by a trigger, but, alas, they don't contain the ANSI codes.
the OnPluginPacketReceived() callback seems to give me color information, but that's not much use, because I'd have to regexp match every packet and save the matches to use later in the trigger, hoping everything lined up right.
Is there any way to get color information for a line that was omitted from output?
Mark