Help with line spacer in multiline trigger.

Post Reply
DarkArtist
Posts: 21
Joined: Sun Dec 15, 2013 12:36 am

Help with line spacer in multiline trigger.

Post 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.

User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Re: Help with line spacer in multiline trigger.

Post by Vadi »

Setup this:

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

DarkArtist
Posts: 21
Joined: Sun Dec 15, 2013 12:36 am

Re: Help with line spacer in multiline trigger.

Post by DarkArtist »

What about the preceeding and following carriage returns tho?

Jor'Mox
Posts: 1142
Joined: Wed Apr 03, 2013 2:19 am

Re: Help with line spacer in multiline trigger.

Post 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.

Post Reply