The event "Unit - A unit Acquires an item" does not work when a unit already has same type item with max stacks > 1.
For example a hero has 1 potion, he picks another potion and now he has 2 potions in one slot and the event will not work.
How to make this event work? Or what's the alternative? The only solution I can think of is to periodically check the number of stacks but it's ridiculous.
What exactly I want to do:
When hero acquires an item I want to create a new same type item at exactly same place on the ground. Then I disable possiblity for this hero to get that newly created item again.
Example: 1 potion lies on the ground and all players can get this one potion, but they can't pick it up second time. It does not work when hero already has a potion, because the event works only when a new item appears in the inventory, it does not work when a stack of item is increased.
Not sure if I made it easy to understand, sorry.
Update:
I just tried to disable built-in stacks system and use these:
Item Stacking System
or
Easy Item Stack 'n Split v2.7.4
I can make everything work with those but.
The problem is that to disable built-in stacks system I have to manually set Max Stacks parameter to 0 on ALL items. I don't really like this.
Also 3rd party systems like easy-item-stack-n-split does not allow you to pick up the item if all 6 slots are filled (you can do this with default item stacking) - but this is ok, not a big problem.
For example a hero has 1 potion, he picks another potion and now he has 2 potions in one slot and the event will not work.
How to make this event work? Or what's the alternative? The only solution I can think of is to periodically check the number of stacks but it's ridiculous.
What exactly I want to do:
When hero acquires an item I want to create a new same type item at exactly same place on the ground. Then I disable possiblity for this hero to get that newly created item again.
Example: 1 potion lies on the ground and all players can get this one potion, but they can't pick it up second time. It does not work when hero already has a potion, because the event works only when a new item appears in the inventory, it does not work when a stack of item is increased.
Not sure if I made it easy to understand, sorry.
Update:
I just tried to disable built-in stacks system and use these:
Item Stacking System
or
Easy Item Stack 'n Split v2.7.4
I can make everything work with those but.
The problem is that to disable built-in stacks system I have to manually set Max Stacks parameter to 0 on ALL items. I don't really like this.
Also 3rd party systems like easy-item-stack-n-split does not allow you to pick up the item if all 6 slots are filled (you can do this with default item stacking) - but this is ok, not a big problem.
Last edited: