Lore archive · Warcraft Wiki, 2023 dump
API GetActionCount
Last wiki revision 2022-08-01
Returns the available number of uses for an action. text = GetActionCount(actionSlot)
- actionSlot: - An action slot ID.
- text: - How often an item-based action (see details) may be performed; or always zero for other action types.
- Use with and to confirm that 'zero' is due to having zero uses of an item-based action, rather than always returning zero.
- In Classic, use with to ignore abilities that require a reagent; or alternatively use with if the itemID of a reagent is known.
- In Retail, use with for abilities with multiple charges.
The following example originates from an older version of FrameXML/ActionButton.lua to display a number on each action button if applicable.
Source
https://warcraft.wiki.gg/wiki/API_GetActionCount · 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.