Isn't that exactly what I wrote?
Dawn wrote it in the other thread and oUF_Simple2 has a tag tutorial aswell.
Coypied from Dawn
lua Code:
local MAELSTROM_WEAPON = GetSpellInfo(53817)
oUF.Tags["maelstrom"] = function(unit)
if unit == "player" then
local name, _, icon, count = UnitBuff("player", MAELSTROM_WEAPON)
return name and count
end
end
oUF.TagEvents["maelstrom"] = "UNIT_AURA UNIT_HEALTH"
The "UNIT_AURA UNIT_HEALTH" part is where you have your events that will call the tag.