Im trying to make a trigger for a stat roller.
matching the following text:
1) 9
2) 14
3) 8
4) 15
5) 9
6) 9
7) 14
[k to keep, q to quit, h for help, or enter for more choices]:
Here is my code:
<triggers>
<trigger
enabled="y"
lines_to_match="7"
match="(?x) ^1\)s*(?P<str>\d+)\n 2\)s*(?P<dex>\d+)\n 3\)s*(?P<con>\d+)\n 4\)s*(?P<int>\d+)\n 5\)s*(?P<wis>\d+)\n 6\)s*(?P<cha>\d+)\n 7\)s*(?P<lck>\d+)\n \n$"
multi_line="y"
regexp="y"
sequence="100"
>
<send>
total = %<str> + %<dex> + %<con> + %<int> + _
%<wis> + %<cha> + %<lck>
if %<str> < 14 or _
%<dex> < 14 or _
%<con> < 14 or _
%<int> < 14 or _
%<wis> < 14 or _
%<cha> < 14 or _
%<lck> < 14 then
ColourNote "white", "blue", "stats too low"
Send "enter"
else
ColourNote "white", "blue", "accepted stats"
Send "k"
</send>
</trigger>
</triggers>
My trigger is not even firing. I have checked a few of the posts here, but i think the main problem i have is the lines that I have to match:
1) ...
2) ...
Please help,
Thanks
matching the following text:
1) 9
2) 14
3) 8
4) 15
5) 9
6) 9
7) 14
[k to keep, q to quit, h for help, or enter for more choices]:
Here is my code:
<triggers>
<trigger
enabled="y"
lines_to_match="7"
match="(?x) ^1\)s*(?P<str>\d+)\n 2\)s*(?P<dex>\d+)\n 3\)s*(?P<con>\d+)\n 4\)s*(?P<int>\d+)\n 5\)s*(?P<wis>\d+)\n 6\)s*(?P<cha>\d+)\n 7\)s*(?P<lck>\d+)\n \n$"
multi_line="y"
regexp="y"
sequence="100"
>
<send>
total = %<str> + %<dex> + %<con> + %<int> + _
%<wis> + %<cha> + %<lck>
if %<str> < 14 or _
%<dex> < 14 or _
%<con> < 14 or _
%<int> < 14 or _
%<wis> < 14 or _
%<cha> < 14 or _
%<lck> < 14 then
ColourNote "white", "blue", "stats too low"
Send "enter"
else
ColourNote "white", "blue", "accepted stats"
Send "k"
</send>
</trigger>
</triggers>
My trigger is not even firing. I have checked a few of the posts here, but i think the main problem i have is the lines that I have to match:
1) ...
2) ...
Please help,
Thanks