Page 1 of 1

Trigger when characters name is in a list ?

Posted: Sat Dec 05, 2015 7:11 pm
by Angahran
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

Re: Trigger when characters name is in a list ?

Posted: Mon Dec 07, 2015 1:16 pm
by Angahran
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} ?

Re: Trigger when characters name is in a list ?

Posted: Thu Feb 01, 2018 6:39 am
by HSishi

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