WeakAuras Custom LUA for Specific Targets

I got a few different groups of weakauras for each person that tanks in my raid and there's like 3 groups of them. I'm wondering if there's a custom lua function I can place in the area you would put "Name %s" and have it pull from the main tank raid frame. Is this possible? So it would dynamically update with the name of the tank and their stacks instead of having to have a aura for each person.

So "Bunye 1" would be dynamically pulled from the tank frames, excluding myself and place it in place of "Bunye 1", etc.

as far as I'm aware there's no direct way to use the API to retrieve the main tanks from your raid. You'd probably have to create a dummy Weakaura that checks on GROUP_ROSTER_UPDATE by iterating over your raid members and calling GetPartyAssignment("MAINTANK",unitId,true), and if true, storing UnitName(unitId) as a global variable, e.g. WA_MainTank1, WA_MainTank2, WA_MainTank3. Then you can write your icon functions to utilize one of those global variables if it exists.

Instead of creating multiple auras, you can just add multiple triggers with each tank's name and have it load on 'Any Trigger'. But to be honest, a much easier way would just be creating a dynamic group of debuffs of focus and put your co-tank on focus so you don't have to create individual auras for everyone.

I would do that, but on say DA we 3 tank it, you can't have more than one focus, etc. And I use my focus for other things most of the time to. I may just try the multiple triggers and see how that works out.

I (or somebody else here) can write custom functions for you, just need more details about what you want. I get the general idea but don't exactly understand what your ideal structure is. Do you want something like 2 columns by 3 rows with each column being a certain tank debuff for the current fight and each row being one of the tanks?

I want it just like the screenshot above is. Except the name, in this case would be 'Bunye' would be dynamic according to who is labeled main tank in the raid frames except me of course and would have the stack count to the right of it.

That group up there is in a dynamic group as well by the way. It grows to the left.

Okay, here's what I got. Might be a few bugs but when I tested it seemed okay.

There are 2 things to import. The first is your list of spellIDs to track, and if you go to its custom trigger you can add to the list. The second is the group of icons, I gave you 4 to start with, if you need more than that for any single fight, you can duplicate them and CHANGE THE "auraNum" NUMBER at the top of the first 3 custom functions for the new ones (Trigger, Untrigger, and Duration).