Help with line spacer in multiline trigger.
Posted: Tue Mar 04, 2014 5:58 pm
Hello,
Here's the trigger I'm trying to set up:
1 :line spacer
A ghost (misses|pounds|bites) :regex
A ghost (misses|pounds|bites) :regex
1 :line spacer
The idea is that when I see something like:
A ghost misses the mob.
A ghost bites the mob.
,including the preceding blank line, and including the trailing blank line, then one of my followers (my supplicant) has failed to join in the battle with my ghosts and i want to reissue the order to join the fight.
But I'm having problems figuring out how to do it right because of the blank lines and the fact that the regex pattern for the ghost attack is identical, so both are going to match on the first occurence. And I'm not sure what the correct line delta will be.
Any help appreciated as always. Thx.
Here's the trigger I'm trying to set up:
1 :line spacer
A ghost (misses|pounds|bites) :regex
A ghost (misses|pounds|bites) :regex
1 :line spacer
The idea is that when I see something like:
A ghost misses the mob.
A ghost bites the mob.
,including the preceding blank line, and including the trailing blank line, then one of my followers (my supplicant) has failed to join in the battle with my ghosts and i want to reissue the order to join the fight.
But I'm having problems figuring out how to do it right because of the blank lines and the fact that the regex pattern for the ghost attack is identical, so both are going to match on the first occurence. And I'm not sure what the correct line delta will be.
Any help appreciated as always. Thx.