I’m struggling to find how to retrieve the Unit Name returned from a trigger and use it on a Custom LUA function. Essentially if a player is affected by a debuff I display their name. I want to further customize this but have no idea how to get that player name in LUA that’s returned from the trigger… Certainly there has to be a way to reference the WA API right? As of now the text displayed is %unitName which shows the affected players name.
I tried this, and as assumed, it did not work.
local name = t[1]
local name = UnitName("%unitName")