Stack.GetInstanceAmount

Pilus edited this page Aug 11, 2015 · 1 revision
Clone this wiki locally

Syntax:

stack.GetInstanceCount([number])

Arguments:

stack.GetInstanceCount() has one argument.

--------------------

number
''Number''
The instance in the current stack you wish to count. This depend son the stack order you set when creating the advanced item.

Returns:

instanceCount
''Number''
This is a count of how many different there are of the specified instance of an advanced item in a single stack.

Example:

local cnt = stack.GetInstanceCount(1)

print(cnt)