Page 1 of 1

Mage Pet Triggers

Posted: Tue May 09, 2017 7:12 am
by galacticat
I am trying to figure out a regular expression for the random Mage pet names, to trigger a timer when I buff my pet.

For example for Burnout.
XXXXX goes berserk.

What would the regular expression be for a randomly generated pet name.

Also is it possible to store the pet name as a variable from a previous log line when I summoned by pet?

Re: Mage Pet Triggers

Posted: Wed May 10, 2017 8:31 pm
by Sirene
You could do something like this:

^\w+ goes berserk\.

But it will fire on any mage pet who gets Burnout.

You could also do:

^You begin casting Frenzied Burnout

For pet name in a variable, afaik you can't save it.

If you name your pet something unique, all of these problems will be solved. :mrgreen:

Edit: Oops, this isn't really about Frenzied Burnout. Also there is a much easier way -
Here is a better solution -

^Your pet's Burnout(\s\w+)?(\sRk\. III?)? spell has worn off\.

Matches (for example):
Your pet's Burnout XII Rk. II spell has worn off.
Your pet's Burnout XII Rk. III spell has worn off.
Your pet's Burnout spell has worn off.
Your pet's Burnout III spell has worn off.