Okay I've written the trigger which works, except it won't omit the prompt coming in from the MUD. I have it sending to script after omit, and checked the omit from output box, but I dunno why it doesn't work? Here's the trigger:
<triggers>
<trigger
enabled="y"
match="^(?P<h>\d+)h, (?P<m>\d+)m(?:, (?P<e>\d+)e|)(?:, (?P<w>\d+)w|) (?P<str>c?e?x?k?d?b?\@?)-(?P<kai>[+]{1,5}--)?$"
omit_from_output="y"
regexp="y"
send_to="14"
sequence="100"
>
<send>local a
a = string.match ("%5", "ex")
if a == "ex" then
AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (32, 1, 40), " %5-")
end
if a == nil then
a = string.match ("%5", "x")
if a == "x" then
AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (31, 1, 40), " e", ANSI (32, 1, 40), "x-")
else
a = string.match ("%5", "e")
if a == "e" then
AnsiNote (ANSI (32, 40), "%1h, %2m, %3e, %4w", ANSI (32, 1, 40), " e", ANSI (31, 1, 40), "x", ANSI (32, 1, 40), "-")
end
end
end
</send>
</trigger>
</triggers>
|