Match variable number of names in trigger ?

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

Match variable number of names in trigger ?

Post by Angahran » Thu Apr 02, 2020 9:30 pm

Hi,

Not sure if this is possible or not.
Have a trigger "Dancers swoop in to engage with" which is followed by between 1 and 6 names.
Is there an easy way to grab a variable number of names into {s1}, {s2}... etc

The long winded way would be to do something like -

{s1} | {s1},{s2} | {s1},{s2},{s3} | .... etc

Sirene
Posts: 38
Joined: Fri Sep 27, 2013 2:52 pm

Re: Match variable number of names in trigger ?

Post by Sirene » Sun May 03, 2020 10:47 pm

Not exactly what you want but this is what I use:

Search text: ^Dancers swoop in to engage with.*\s{c}[\s,\.]
Display text: {c} dancer emote

Will only display for characters I'm playing.

For variable names in a list you can also do this: (would display whole list)
Search text: ^Dancers swoop in to engage with {s}\.
Display text: {s} dancer emote

I wasn't able to figure out a "clean" way of displaying 1 at a time for 1-5 targets.

Post Reply