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?
Mage Pet Triggers
Re: Mage Pet Triggers
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.
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.
^\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.
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.