Supported {} tags

Post Reply
Gimagukk
Site Admin
Posts: 237
Joined: Wed Oct 26, 2011 9:29 pm

Supported {} tags

Post by Gimagukk » Mon Apr 16, 2012 10:26 pm

GINA supports the following tags in triggers:

{C} - This is replaced with the character's name, and can be used in Search Text, Display Text, Text to Say, and Timer Name fields.

{S} - This is a wildcard that can match any string. This can be used in Search Text, Display Text, Text to Say, and Timer Name fields.

{S1}, {S2}, etc -- Work the same as {S}, just gives you more wildcards.

{N} - This is a wildcard that matches a number. If you only want the trigger to match if the number meets a certain critera, you can use syntax such as {N>=50000} and the tag will only match if the number is greater than 50k. This can be used in Search Text, Display Text, Text to Say, and Timer Name fields. (The >=50000 portion should only be used in the Search Text field. Just use {N} in the rest of the fields.)

{N1}, {N2}, etc. -- Work the same as {N}, just gives you more wildcards.

{L} -- This is replaced with the whole line of text when a trigger is matched. This can be used in Display Text, Text to Say, and Timer Name fields, but not in the Search Text field.

{COUNTER} - Resolves to the number of times a trigger has been matched (tracked per character). This can be used in Display Text, Text to Say, and Timer Name fields.

{TS} - This matches a time span and is used to set a timer duration dynamically. This tag can only be used in the Search Text field. If this tag is present in the Search Text field and the trigger's Timer Type is set to Timer or Repeating Timer, this result of this match will be used as the Timer Duration when the trigger is matched. The tag will match the format D:H:M:S.L where D = days, H = hours, M = minutes, S = seconds, and L = fraction of second, and only the S (seconds) value is required. Examples of supported matches are:
  • 90 (start 90 second timer)
  • 20.5 (start 20 second 500 millisecond timer)
  • 5:30 (start timer 5 minute 30 second timer)
  • 1:00:00 (start 1 hour timer)
  • 2:12:15:20 (start 2 day 12 hour 15 minute 20 second timer -- note: log off, take a break from the game!)

Ketchin
Posts: 1
Joined: Wed Aug 29, 2012 8:46 pm

Re: Supported {} tags

Post by Ketchin » Wed Aug 29, 2012 8:51 pm

I am vaguely familiar with pattern matching using Regex, but could someone list a couple of examples of how one would use the {S1} type tags inside both a search string and in the display text?

An example might be something like what what I attempted to get working:
Search text - ^.*you have been healed for.*{S1}.*$
Display text - {S1}

Gimagukk
Site Admin
Posts: 237
Joined: Wed Oct 26, 2011 9:29 pm

Re: Supported {} tags

Post by Gimagukk » Wed Aug 29, 2012 9:26 pm

The {S} and {S#} are just shortcuts for the regex (?<s#>.+) in Regex, so you're effectively getting 3 wildcards in a row (.*.+.*) in your example, which isn't going to give you a very good match. In your example, your are probably better off using "you have been healed for {S1} points" as your search text. I would leave off the line beginning and end anchors (^ and $) since you have variable text at the beginning of the line anyway.

Also, you can use the {N} shortcut if you are trying to isolate a number -- "you have been healed for {N} points". Or if you only want to report when you receive a heal for more than 500 points -- "you have been healed for {N>500} points". You could then use {N} in your display text.

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

Re: Supported {} tags

Post by HSishi » Sun Dec 06, 2015 4:17 pm

With the newest EQ expansion there are new raid scripts introduced, where the bosses do some kind of countdown like "in xx minutes I go rage".

Is it possible to catch that "xx" and start or adjust a countdown timer with that value in minutes?

//HSishi

Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Re: Supported {} tags

Post by Angahran » Tue Mar 19, 2019 9:47 pm

HSishi wrote:Is it possible to catch that "xx" and start or adjust a countdown timer with that value in minutes?
//HSishi
Would be useful if we could do something like {00:00:TS:00} (to get minutes) or {00:00:00:TS} to get seconds, etc.

Angahran
Posts: 26
Joined: Thu Jul 17, 2014 8:04 pm

Re: Supported {} tags

Post by Angahran » Tue Jan 09, 2024 12:25 pm

It appears this message does not work with the {TS} tag :(
01/09/24 09:39:24 AM You have received a replay timer for 'The Emberclaw Sisters': 0d:0h:30m remaining.

Post Reply