Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetInventorySlotStackCount

From RoR Wiki

UI Lua API · Item functions
Version: WAR 1.4.8

Returns a count that the client stores under the given number in a lookup table of the player's item data.

count = GetInventorySlotStackCount(key)

Arguments

key
number – Lookup key.

Returns

count
number – The stored count, or 0 if there is no entry for key.

Details

  • The lookup works like GetItemStackCount, but on a separate table of the client's item data.
  • If there is no player object, or the argument check fails, the function still returns 0.
  • Exactly one argument must be passed.
  • The stock UI never calls this function.

Errors

None besides the generic Invalid Parameters message when the argument is missing or not a number.

Example

A minimal call built from the signature above:

local count = GetInventorySlotStackCount( 1 )

See also