WoW:API GetActionCount: Difference between revisions
Jump to navigation
Jump to search
GetActionCount - Documentation by Flickering
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
:(actionSlot) | :(actionSlot) | ||
:;actionSlot : | :;actionSlot : Number - The slot number of the action to query. | ||
=== Returns === | === Returns === | ||
: | :count | ||
:;count : Number If the action has a count (such as potion actions), then the count for the action is returned. 0 is returned for slots with no count as well as empty slots. | |||
== See Also == | |||
* [[API IsConsumableAction|IsConsumableAction(slot)]] to determine whether '0' means that there are no more charges of the item, or whether it simply doesn't have a count. | |||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 22:45, 15 May 2006
Get the available count for an action.
text = GetActionCount(actionSlot)
Parameters
Arguments
- (actionSlot)
- actionSlot
- Number - The slot number of the action to query.
Returns
- count
- count
- Number If the action has a count (such as potion actions), then the count for the action is returned. 0 is returned for slots with no count as well as empty slots.
See Also
- IsConsumableAction(slot) to determine whether '0' means that there are no more charges of the item, or whether it simply doesn't have a count.