I have a variable in my script to easily change some regex matches.
I use it in a trigger
The issue is the trigger is matching as follows (issue seems to be with the dash to me)
A dwarf guard is jabbed on the head with your pierce causing slight damage.
BUT NOT
A tough-looking dwarf guard is jabbed on the head with your pierce causing slight damage.
When i test this in a normal trigger vs a plugin using the following it works. Just not in the plugin script
<variable name="char_name">[a-zA-Z0-9 \-\,\.\']+</variable>I use it in a trigger
<trigger
enabled="y"
group="script-dpercent"
keep_evaluating="y"
expand_variables="y"
match="^(?P<tgt>(@!char_name)) is (.+) on the (?P<bpart>.+) with your (?P<type>.+) causing (?P<how_much>.+) damage\.$"
omit_from_output="y"
regexp="y"
send_to="14"
sequence="100"
>
<send>trigger_style_runs = TriggerStyleRuns
check_my_dmg("%0", "%<tgt>", "%<bpart>", "%<type>", "%<how_much>")
</send>
</trigger>
The issue is the trigger is matching as follows (issue seems to be with the dash to me)
A dwarf guard is jabbed on the head with your pierce causing slight damage.
BUT NOT
A tough-looking dwarf guard is jabbed on the head with your pierce causing slight damage.
When i test this in a normal trigger vs a plugin using the following it works. Just not in the plugin script
^(?P<tgt>([a-zA-Z0-9 \-\,\.\']+)) is (.+) on the (?P<bpart>.+) with your (?P<type>.+) causing (?P<how_much>.+) damage\.$