Page 1 of 1

Help with line spacer in multiline trigger.

Posted: Tue Mar 04, 2014 5:58 pm
by DarkArtist
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.

Re: Help with line spacer in multiline trigger.

Posted: Wed Mar 05, 2014 7:04 am
by Vadi
Setup this:

0 - your regex
1 - line spacer 1
2 - your next line regex

Re: Help with line spacer in multiline trigger.

Posted: Wed Mar 05, 2014 3:29 pm
by DarkArtist
What about the preceeding and following carriage returns tho?

Re: Help with line spacer in multiline trigger.

Posted: Wed Mar 05, 2014 5:37 pm
by Jor'Mox
A line spacer accepts ANY line, not just blank ones. If you need a blank line, you need a regex pattern that only matches a blank line, not a line spacer.