WoW:API GetActionCount: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
:(actionSlot)
:(actionSlot)


:;actionSlot : Numeric - The slot number of the action to query.
:;actionSlot : Number - The slot number of the action to query.
=== Returns ===
=== Returns ===
:text
: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.


:;count : Numeric - 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.
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}
{{Template:WoW API}}

Revision as of 22:45, 15 May 2006

GetActionCount - Documentation by Flickering

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.

Template:WoW API