I am trying to write a trigger to capture a list of mobiles killed by me.
To this means I wrote a script that I'm satisfied with for maintaining the list (kill buffer list) but the trigger to call the script function is giving me the following error:
Error executing regular expression: Match Limit
This of course occurs during long input sequences where many lines could be potential matches.
The regular expression is:
Your? \w*\s?(?:\*+ \w* \*+|\w*) ((?:[\w,\']+\s?)*)[.|!]\n((?:[\w,\']+\s?)*) is DEAD!!\Z
Which matches things like:
Your pierce _butchers_ the guard!
The guard is DEAD!!
Of course the first segment is pretty common:
You jolt the guard!
You jolt the guard!
You jolt the guard!
You dodge the guard's attack.
You dodge the guard's attack.
You dodge the guard's attack.
You dodge the guard's attack.
But the second line is the part that gets what I want. The two work together because you want to know "who got the hit on the line prior and to which mob" in case multiple people are fighting in the same room.
For example the following is NOT a match:
Jimbo's pierce _butchers_ the guard!
The guard is DEAD!!
I tried changing the \n in the middle of the trigger to $ or using \n$ or \s+$ which aren't doing anything for me (in fact don't match anymore) but that's just hacking around rather than understanding.
I am using Mush 4.73
Thanks!
<triggers>
<trigger
enabled="y"
group="thKillBuffer"
lines_to_match="2"
match="Your? \w*\s?(?:\*+ \w* \*+|\w*) ((?:[\w,\']+\s?)*)[.|!]\n((?:[\w,\']+\s?)*) is DEAD!!\Z"
multi_line="y"
regexp="y"
script="UpdateKillBuffer"
send_to="12"
sequence="100"
lowercase_wildcard="y"
>
<send>
</send>
</trigger>
</triggers>
EDIT:
I did add \A before "Your?" in the regex to no improvement in the conditions.
Also apologies for the double post.
To this means I wrote a script that I'm satisfied with for maintaining the list (kill buffer list) but the trigger to call the script function is giving me the following error:
Error executing regular expression: Match Limit
This of course occurs during long input sequences where many lines could be potential matches.
The regular expression is:
Your? \w*\s?(?:\*+ \w* \*+|\w*) ((?:[\w,\']+\s?)*)[.|!]\n((?:[\w,\']+\s?)*) is DEAD!!\Z
Which matches things like:
Your pierce _butchers_ the guard!
The guard is DEAD!!
Of course the first segment is pretty common:
You jolt the guard!
You jolt the guard!
You jolt the guard!
You dodge the guard's attack.
You dodge the guard's attack.
You dodge the guard's attack.
You dodge the guard's attack.
But the second line is the part that gets what I want. The two work together because you want to know "who got the hit on the line prior and to which mob" in case multiple people are fighting in the same room.
For example the following is NOT a match:
Jimbo's pierce _butchers_ the guard!
The guard is DEAD!!
I tried changing the \n in the middle of the trigger to $ or using \n$ or \s+$ which aren't doing anything for me (in fact don't match anymore) but that's just hacking around rather than understanding.
I am using Mush 4.73
Thanks!
<triggers>
<trigger
enabled="y"
group="thKillBuffer"
lines_to_match="2"
match="Your? \w*\s?(?:\*+ \w* \*+|\w*) ((?:[\w,\']+\s?)*)[.|!]\n((?:[\w,\']+\s?)*) is DEAD!!\Z"
multi_line="y"
regexp="y"
script="UpdateKillBuffer"
send_to="12"
sequence="100"
lowercase_wildcard="y"
>
<send>
</send>
</trigger>
</triggers>
EDIT:
I did add \A before "Your?" in the regex to no improvement in the conditions.
Also apologies for the double post.