I use Nick's redirector plug in, and I'm trying to have PK toasts go over to the capture window, as well.
The trigger match will be as follows (for example):
[ BadGuys ] Bobby got ***DESTROYED*** by SallyMae [ GoodGuys ]
So, the first part I'm having trouble with is the damage. ***DESTROYED*** is only one variable, some have extraneous punctuation and some does not. For example, a simple "offed" or "killed" or "<<< ERADICATED >>>" or "=== OBLITERATED ==="
Second part is that stuff within the brackets and the character names will change, as well. Ergo, the only constant in the equation will be:
[ * ] * got * by [ * ]
I'm also assuming just * isn't enough for so many variables, but I'm a potato with no script talent.
This isn't enough information for us to know which plugin you mean. Please link to either a copy of the plugin or the forum post where you got it from.
Quote: [ * ] * got * by [ * ]
I think you mean [ * ] * got * by * [ * ]
Quote: I'm also assuming just * isn't enough for so many variables, but I'm a potato with no script talent.
Did you try it? What did you try and what happened?
<script>
<![CDATA[
chat_world = "RoD chats"
local first_time = true
function redirect (name, line, wildcards, styles)
-- try to find "chat" world
local w = GetWorld (chat_world) -- get "chat" world
-- if not found, try to open it
if first_time and not w then
local filename = GetInfo (67) .. chat_world .. ".mcl"
Open (filename)
w = GetWorld (chat_world) -- try again
if not w then
ColourNote ("white", "red", "Can't open chat world file: " .. filename)
first_time = false -- don't repeatedly show failure message
end -- can't find world
end -- can't find world first time around
if w then -- if present
for _, v in ipairs (styles) do
w:ColourTell (RGBColourToName (v.textcolour),
RGBColourToName (v.backcolour),
v.text)
end -- for each style run
w:Note ("") -- wrap up line
end -- world found
end -- function redirect
]]>
</script>
</muclient>
The chat redirect works great, but I tried adding the below and it didn't work:
A link to the relevant page would be helpful rather than copy/pasting
it. That way we can all refer back to the same page rather than the
copy. Also, comments on that page may shed some light onto things.
Please post the link to where you found it (I have done
a few chat redirector plugins).