I'm sure this is something very simple to fix, but i'm not finding the solution, despite forum and google searches.
I am having trouble with the following trigger:
<triggers>
<trigger
bold="y"
enabled="y"
inverse="y"
italic="y"
match="^(.*?) DISARMS you and you struggle not to drop your weapon\!$"
match_bold="y"
match_inverse="y"
match_italic="y"
sequence="100"
>
<send>wield dagger
dual dagger</send>
</trigger>
</triggers>
It fails to fire, and gives no error message at all.
An example that i feel should match is:
A gardener DISARMS you and you struggle not to drop your weapon!
Thanks for any insight.
You have made a regular expression, but not checked the "regular expression" checkbox.
Alrighty, i've checked regular expression, here's the trigger again with the fix, just to keep me honest:
<triggers>
<trigger
bold="y"
enabled="y"
inverse="y"
italic="y"
match="^(.*?) DISARMS you and you struggle not to drop your weapon\!$"
match_bold="y"
match_inverse="y"
match_italic="y"
regexp="y"
sequence="100"
>
<send>wield dagger
dual dagger</send>
</trigger>
</triggers>
and here's some mud output, prompt to prompt:
<2982/4602hp 1964/4005m 2392/3945mv [2308tnl] Dbl: 7 14tq> Enemy: 33%
Your pierce <-+-><-*-> CREMATES <-*-><-+-> a gardener! [237]
Your shadow <->*<=> WASTES <=>*<-> a gardener! [205]
Your pierce <*><*><*><*> ANNIHILATES <*><*><*><*> a gardener! [260]
Your pierce <*><*><*><*> ANNIHILATES <*><*><*><*> a gardener! [259]
A gardener's chop MASSACRES you! [67]
A gardener's chop misses you. [0]
A gardener's chop misses you. [0]
A gardener DISARMS you and you struggle not to drop your weapon!
A gardener has some very nasty wounds.
<2915/4602hp 1964/4005m 2392/3945mv [2308tnl] Dbl: 7 14tq> Enemy: 29%
still not firing
You have requested a match on bold, inverse and italic. Is the first character of the matching text bold, inverse and italic?
If you aren't sure, select that character and go to Display menu -> Text Attributes.
Once I unchecked those boxes, and tried with your test data, it matched.
ahh, i see. i thought leaving those options checked would broaden the match possibilities, not limit them. that should fix it.
thanks very much for your time
When you make a new trigger those checkboxes are in the "don't care" state which is a sort-of filled-in colour (not checked, and not empty). They are tri-state checkboxes.
If unchecked, the matching line must not be bold (italic/inverse).
If checked, the matching line must be bold (italic/inverse).
If in the third (default) state, the state of bold (italic/inverse) is irrelevant.
that fixed it, thanks again.
i also checked "Ignore Case" just for the sake of it...