Trigger when characters name is in a list ?

Post Reply
Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Trigger when characters name is in a list ?

Post by Angahran » Sat Dec 05, 2015 7:11 pm

Hi,

Trying to get a trigger to work and not having much luck :(
For the Broken Mirror raid, Vim and Vigor, there is an emote where the NPC gives a list of 4 names.

I don't have the exact line yet, but it is along the lines of:
Vigor benevolently chooses bob, fred, jim and sally.

I need some way to match the trigger if the character name is any of the 4 given.

I tried the following but it does not appear to work :(

Vigor benevolently chooses.*\s{C}[,!].*

Any thoughts or suggestions much appreciated.

Angahran

Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger when characters name is in a list ?

Post by Angahran » Mon Dec 07, 2015 1:16 pm

Got some regex that I think may work, if anyone has better suggestion that would be great 😆

^(?=.*this\sis\sa\stest)(?=.*character1|character2)

Could maybe replace "character1|character2" with {C} ?

HSishi
Posts: 62
Joined: Sun Aug 26, 2012 3:19 pm

Re: Trigger when characters name is in a list ?

Post by HSishi » Thu Feb 01, 2018 6:39 am

Code: Select all

Vigor benevolently chooses.*{C}
with "Use Regular Expressions" enabled.

".*" will be a placeholder for 0 to infinite chars until either the line is ending or any text after ".*" matches (in this case, your character's name).

Post Reply