WEAK AURA 2 - Trigger for Rare - Help appreciated.
I'm trying to make a weak aura group for a friend and myself.
But I need some help with creating a trigger in weak aura 2. Im looking for something that will trigger a aura when i'm fighting a rare as I think some of the sound queues I am planning to use would just get plain annoying if they were to trigger when ever you go into combat. So I want to make them work only on boss fights or rares.
I have this code that works, at least as far as my testing goes, which I found on a old MMO Champion post. But its for bosses only, now i'm looking at making it work for rares:
Event -
INSTANCE_ENCOUNTER_ENGAGE_UNIT
Trigger Code-
function()
local guid = UnitGUID("boss1") or UnitGUID("boss2") or UnitGUID("boss3") or UnitGUID("boss4") or UnitGUID("boss5")
if guid then
return true
else
return false
end
end
Untrigger Code:
function()
local guid = UnitGUID("boss1") or UnitGUID("boss2") or UnitGUID("boss3") or UnitGUID("boss4") or UnitGUID("boss5")
if guid then
return false
else
return true
end
end
I have tried replacing the "boss" words with "rare" but it did not work. Assuming replacing boss with rare was the correct thing to do I assume that where I went wrong was the event name as it does have the word "INSTANCE" in it and most rares you would fight are not in a instance but rather open world. Though im not sure if the event name changes anything or is merely a Naming Convention.
I have no idea how to write code unfortunately Is anyone able to tell me how to make this trigger work on all rares. Or at least open world rares.
Thanks a bunch
Oh and the import data for this particular aura is here in case someone needs to fiddle. Currently its set up with a custom sound file and a secondary health % trigger.
You need a valid unit to check for a rare. Like nameplate or target. It's a bit different from encounter bosses. All depends on how it has to be displayed on the screen
you have few ways for rares
1) target based trigger
2) nameplate iteration