Exporting output in full color

Posted by Krosan on Wed 14 Jan 2009 08:23 AM — 7 posts, 28,190 views.

#0
The MUD I play on has channel-based roleplay. The common practice is to log said roleplay in text format. I've worked out how, using simple triggers, to set MUSHclient to automatically grab that output and put it in note format, ready to be put in a text file, but I want something more.

You see, our roleplay takes place with many different colors, used for emphasis. What I am trying to do is to set MUSHclient to grab the output of that single channel and save it in full color. I know how to set it to log in full color HTML, but that logs ALL output, not just the channel posts that I need. Any suggestions? I'm at a loss.
Australia Forum Administrator #1
I think the easiest way is to make two triggers using sequence numbers to get that effect.

Make a trigger that matches the chat data (to be logged) and make it sequence 10.

Then make a trigger that matches everything ( ie. *) and have it "omit from log" and make it sequence 20 and "keep evaluating".

That will omit everything except chats from the log.
#2
I can honestly say I wouldn't have thought of that, since I didn't even know what sequence numbers were. Mushclient's documentation is a bit hard for someone like me to get into, so I tend to discover features through trial and error

Thanks a million, though! That worked perfectly!
USA #3
What if you want to log everything in the normal log, but use triggers to extract those channels either to a separate notepad, or a separate log file, all preserving the original colors?
Australia Forum Administrator #4
Template:faq=23
Please read the MUSHclient FAQ - point 23.
USA #5
What if we're still using vbscript, is it possible still?

(I haven't had the time to even think of working in Lua yet)
Australia Forum Administrator #6
It is harder in VBscript but not impossible. The nice thing about Lua is you get the "style runs" as a fourth argument to the trigger, and the style runs have all the colour information.

You can make a plugin, as suggested in one of the linked threads:

Template:post=7991
Please see the forum thread: http://gammon.com.au/forum/?id=7991.


The plugin could handle your chats, and be in Lua, and you can use VBscript for everything else.