Lore archive · Warcraft Wiki, 2023 dump
API SetMacroSpell
Last wiki revision 2022-07-27
Changes the spell used for dynamic feedback for a macro. SetMacroSpell(index, spell [, target]) or SetMacroSpell(name, spell [, target])
- index: - Index of the macro, using the values 1-36 for the first page and 37-54 for the second.
- name: - Name of a macro.
- spell: - Localized name of a spell to assign.
- target: : UnitId - The unit to assign (for range indication).
- When assigned to an action button, macros can provide dynamic feedback such as range indication, cooldown, and charges/quantity remaining.
- Normally, this dynamic feedback corresponds the action that the macro will take; however, this function directs the macro to provide feedback based on a particular spell instead.
- This only changes the visual cues appearing on the action buttons, but not the actual logic. Clicking an action button executes the macro as written.
Source
https://warcraft.wiki.gg/wiki/API_SetMacroSpell · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.