Hi all,
I've tried searching for the answer to this question, but I haven't been able to find anything. I think it's a pretty elementary feature of GINA to allow multiple search texts within one trigger, but I cannot remember how to do it.
For example, I want GINA to fire when I get hit by a spell or when I resist the spell without having to create two triggers.
Phara Dar's Force Breath spell is a good use case here. I thought the trigger search text would go something like below, but my tests are not successful.
Your eardrums rupture. | You resist the Force Breath spell!
Any tips?
One Trigger, Multiple Search Texts
Re: One Trigger, Multiple Search Texts
The or | needs to be in a grouping ()
Try this:
(^Your eardrums rupture\.|^You resist the Force Breath spell!)
Try this:
(^Your eardrums rupture\.|^You resist the Force Breath spell!)
Re: One Trigger, Multiple Search Texts
Hey thanks so much for the response! I’ll give this a go!Sirene wrote:The or | needs to be in a grouping ()
Try this:
(^Your eardrums rupture\.|^You resist the Force Breath spell!)
Another question - what are the ^ and \ for?
Re: One Trigger, Multiple Search Texts
^ signalizes "this is the begin of the text to be compared" (after timestamps and following spaces are taken out), the \ signalizes "the following character is NOT a RegEx command / filter / wildcard / whatever".
In the examples above "\." means "look for a . in the text" instead of the RegEx dot's meaning "skip this letter, can be anything."
In the examples above "\." means "look for a . in the text" instead of the RegEx dot's meaning "skip this letter, can be anything."