Removing Rank (Rk. II and Rk. III)

Post Reply
Sped
Posts: 5
Joined: Mon Jun 29, 2015 3:27 pm

Removing Rank (Rk. II and Rk. III)

Post by Sped » Mon Jun 29, 2015 4:17 pm

I have an aura trigger that lets me know when the aura is down. Is there any way to remove the "Rk. II" and "Rk. III" from the output?

Currently the simplistic trigger is this:
{S} expires.

And it does an audio trigger of:
Your {S} has expired.

This works, but when it does rank 2 and rank 3 spells it says:
Your <name_of_aura> rk eye eye eye has expired.

I am looking to get a single trigger that works for all three ranks. Here are my examples:
Befuddler's Aura
Befuddler's Aura Rk. II
Befuddler's Aura Rk. III
Smokecloud
Smokecloud Rk. II
Smokecloud Rk. III

I am looking to get one trigger that will pull out the full name of the aura (minus the rank) and have that as a variable I can set it for the audio trigger.

I have attempted to make two different triggers, one for the single ranked aura and one for the rank 2 and 3 auras, but the single rank aura is the only one that triggers.

I went as far as to attempt to make a null audio trigger in the Gnomish Articulator so that "Rk. II" and "Rk. III" were empty and it would not say anything...but it will not allow an empty same for the Phonetic Word. So now I have two that say "Rank 2" and "Rank 3" (so I do not get the "rk. eye eye eye"), but I do not care what the rank is, and I am trying to avoid it altogether.

Any ideas on how I can resolve this?

Thanks!

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

Re: Removing Rank (Rk. II and Rk. III)

Post by Sirene » Tue Jun 30, 2015 12:58 am

This is my favorite solution (enc aura for example):

Search Text:
  • ^Befuddler's Aura Rk. III expires.
Display Text:
  • Your Befuddler's Aura has expired.
Text To Speech:
  • Your Befuddler's Aura has expired.
Another solution (less ideal, allows for more generic use):
Search Text:
  • ^{s} expires.
Display Text:
  • {s} has expired.
Text To Speech:
  • {c}'s aura expired.
You can also make a trigger like below that will eliminate the Rk. III, but it won't work for every case:
Search Text:
  • ^{s1} {s2} {s3} expires.
Display Text:
  • Your {s1} has expired.
Text To Speech:
  • Your {s1} has expired.
ex: Befuddler's Aura Rk. III expires.
{s1} = Befuddler's Aura
{s2} = Rk.
{s3} = III

ex: Smokecloud expires.
{s1} = Smokecloud
{s2, s3} = no match, trigger will not fire

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

Re: Removing Rank (Rk. II and Rk. III)

Post by Gimagukk » Tue Jun 30, 2015 10:13 am

The following should work to capture any aura and strip off the Rk. II and Rk. III as needed:

Search Text: ^(?<name>.+?)( Rk\. III{0,1}){0,1} expired\.
Display Text: Recast ${name}

Sped
Posts: 5
Joined: Mon Jun 29, 2015 3:27 pm

Re: Removing Rank (Rk. II and Rk. III)

Post by Sped » Tue Jun 30, 2015 7:14 pm

That works (ALMOST) perfectly!!!

I got it working, but it is not your fault...it is EQ's fault! (as usual)

So SOMETIMES they add an additional space between the rank number and the expires. I ended up with this and it APPEARS to be working....

^(?<name>.+?)( Rk\. III{0,1}){0,1}\s*expires\.

And I am using ${name} to call the variable.

Thank you SO much...my OCD cannot thank you enough!!!

-Sped

Post Reply