The mud output is:
The Trigger is:
function foo's definition is repeated in the send for convenience sake.
What you see: the print that's directly in the send body prints out the first column's captured information. The w table in the foo function contains the second column's captured information.
I would expect a "global" PCRE to fire the send body and script call for each match; not half on the first and the other half on the second.
Syntax: train <skill>
Current Skill Levels:
Alacrity : 10/10(-) Harmony : 27/50(95790)
Spellcraft : 30/50(700000) Rhythm : 30/46(77750)
Playing : 21/21(-) Singing : 30/30(-)
Melee : 30/30(-) Dodge : 24/24(-)
Mana : 40/40(-) Power : 18/30(187000)
Knowledge : 30/80(42500) The Trigger is:
<triggers>
<trigger
custom_colour="17"
colour_change_type="2"
enabled="y"
keep_evaluating="y"
match=" (?'Name'\w+)\s+: (?P<Current>\d+)\/(?P<Max>\d+)\((?P<Cost>[0-9,-]+)\)"
regexp="y"
repeat="y"
script="foo"
send_to="12"
sequence="100"
other_back_colour="dimgray"
>
<send>print("%<Name>", "%<Current>", "%<Max>", "%<Cost>")
function foo (t,l,w) for k,v in pairs(w) do Tell(k, " ", v, " ") end Note("") end</send>
</trigger>
</triggers>
function foo's definition is repeated in the send for convenience sake.
What you see: the print that's directly in the send body prints out the first column's captured information. The w table in the foo function contains the second column's captured information.
I would expect a "global" PCRE to fire the send body and script call for each match; not half on the first and the other half on the second.