Well, first youd paste us some output of the exact text, since specifics are easier to work with than generalities.
However, Bascially, You match on the beginning of a chat group (XXX chats: ") then you have that enable a trigger which matches (") (A Regexp) as well as a trigger to catch EVERYTHING in between. Then youd concatenate the line(s) together. And do whatever parsing...
Erm no. You just want to color, so, isntead of joining them all in a script, you'd merely color all the lines in your EVERYTHING trigger. And then your END trigger as well.
This runs into a bit of problems with someone saying something someone else said:
XXX says "YYY says "Hello, This is a confusing trigger""
However, you can get around that with using some specific regexps.
Begin:
^\w+ says "
Flags: Regexp, Keep Evaluating, Send to Script and I think thats it. Name it something, Ill reference it as Begin.
Send:
Enabletrigger "Middle", 1
EnableTrigger "End", 1
Middle:
.*
Flags: RegExp, Keep Evaluating, Color.
Name it: Middle (you can change to whatever, just make sure everything references the correct things)
End:
"$
IF your mud has trailing spaces after the " you may need to change this to.. say
" $
You can copy your mud output, and we'll be able to let you know.
Flags: Regexp, Keep Evaluating, Color, Send To Script
Send:
Enabletrigger "Middle", 0
EnableTrigger "End", 0
That SHOULD do it. Im sorry these arent XML, I dont have MC on this computer at the moment.
Nick, and others:
Think we should set the sequences to be well, sequential?
Also, will this actually catch ALL of the stuff? The first one will color stuff, then the second will take over, then the last should work as well... I think. I was thinking you might have problems with only certain bits being colored, but now I think itll work again.
Also, Nick, With multiline triggers, cant this all be done in one trigger? Just have :
^XXX Says "(.*\n)+?"$
Or, would that not work? I havent looked into ML triggers much, just a thought though.
Edit: Removed something stupid. |