Trigger when characters name is in a list ?

Trigger when characters name is in a list ?

Postby 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: 23
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger when characters name is in a list ?

Postby 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} ?
Angahran
 
Posts: 23
Joined: Thu Jul 17, 2014 8:04 pm

Re: Trigger when characters name is in a list ?

Postby 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).
HSishi
 
Posts: 43
Joined: Sun Aug 26, 2012 3:19 pm


Return to Specific Trigger Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron