m
Move page script moved page API GetActionCount to WoW:API GetActionCount without leaving a redirect
(→Returns: fix what looks like a typo) |
m (Move page script moved page API GetActionCount to WoW:API GetActionCount without leaving a redirect) |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Gets the available count for an action, if applicable. | |||
text = GetActionCount(actionSlot) | |||
== Parameters == | == Parameters == | ||
<big>'''Arguments'''</big> | |||
: | |||
:;actionSlot - [[ActionSlot]] : The queried action slot. | |||
<big>'''Returns'''</big> | |||
:;text - Number | |||
:* The action's count as displayed on the action's icon; e.g. for a potion action, returns the number of potions left. | |||
:* 0, if the action has no count or if the specified action slot is empty | |||
== See Also == | |||
* Use [[API IsConsumableAction|IsConsumableAction(slot)]] to determine whether a returned <tt>0</tt> means that there are no more charges of the item, or whether it simply doesn't have a count. | |||