Named patterns demo
Posted: Thu Mar 11, 2021 6:32 am
A little demo package showing how to use named patterns, which allows your triggers to use matches.variablename as a capture instead of matches[#]:
Before: After: This is particularly handy when you have several patterns and the order of matches changes throughout them, as you can notice is the case here - attacker either comes first or second in the patterns.
Before: After: This is particularly handy when you have several patterns and the order of matches changes throughout them, as you can notice is the case here - attacker either comes first or second in the patterns.