Page 1 of 1

Alcove and stackable items

Posted: Sun Oct 21, 2012 6:10 pm
by Leki
Hi. I have a question.
How to count stackable items placed in alcoe?

"for item in alcove:containedItems() do"

returns "2 x rock" as a "rock"... :roll:

Re: Alcove and stackable items

Posted: Sun Oct 21, 2012 6:42 pm
by Decayer
item:getStackSize() is your friend!

Re: Alcove and stackable items

Posted: Sun Oct 21, 2012 8:59 pm
by Leki
Decayer wrote:item:getStackSize() is your friend!
omg... , I used "item.name:getStackSize()" :oops: