One Trigger, Multiple Search Texts

Have a question about how to use GINA? Ask away.
Post Reply
Gerhart
Posts: 2
Joined: Sat Jul 07, 2018 6:50 am

One Trigger, Multiple Search Texts

Post by Gerhart » Sat Jul 07, 2018 6:56 am

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? :)

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

Re: One Trigger, Multiple Search Texts

Post by Sirene » Sat Jul 07, 2018 1:49 pm

The or | needs to be in a grouping ()

Try this:
(^Your eardrums rupture\.|^You resist the Force Breath spell!)

Gerhart
Posts: 2
Joined: Sat Jul 07, 2018 6:50 am

Re: One Trigger, Multiple Search Texts

Post by Gerhart » Sat Jul 07, 2018 1:56 pm

Sirene wrote:The or | needs to be in a grouping ()

Try this:
(^Your eardrums rupture\.|^You resist the Force Breath spell!)
Hey thanks so much for the response! I’ll give this a go!

Another question - what are the ^ and \ for?

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

Re: One Trigger, Multiple Search Texts

Post by HSishi » Mon Jul 16, 2018 10:47 am

^ 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."

Post Reply