Stack.GetAttribute

Pilus edited this page Aug 11, 2015 · 1 revision

Syntax:

stack.GetAttribute(attributeName, itemInstanceIndex)

'''Note:''' This should be used with an attribute defined in the item interface.

Arguments:

stack.GetAttribute() has 1 required argument and 1 optional argument

attributeName
''String''
The number you wish to increase the instance stack by.
itemInstanceIndex
''number''
The number item instance.

Returns:

attribute
''Any''
The contents of the attribute.

Example:

local value = stack.GetAttribute("str")

print(value)

This script will get the contents of the attribute "str" and print it.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.