Skip to content
SpatenLa edited this page Jul 4, 2024 · 6 revisions

Custom Actions

The Custom Code section of the Actions tab can be used to execute custom Lua commands whenever a display is shown or hidden.

For a list of all commands that interact with the WoW client, see the WoW API. Note that some actions, like moving or casting spells, cannot be executed by Lua code.

For more information on Lua syntax, see Programming in Lua.

The aura's On Show Custom Code can be used to announce the name of the person on whom Beacon of Light is cast to your raid, with the following code:

local name = GetUnitName(aura_env.state.name)
SendChatMessage("Beacon of Light on "..name, "RAID")

The above snippet is possible without the use of Custom Code. It is recommended to use built-in WeakAura functionality where possible.

Each custom action (On Init, On Show, On Hide) does not require a function to be used.

For more information about aura_env see here.