Jonnycakes
New Member
- Reaction score
- 6
I am working on an item stacking trigger, and it works pretty well so far-items stack even if a unit's inventory is full. This is achieved through using dummy powerup items to replace the real items when they are on the ground. One problem arises when trying to give items to another unit-the item being transferred is not a powerup and it says the hero's inventory is full. Is there a way around this?
Question 2 is the big problem. When a hero drops a 'real' item, the item needs to be replaced with a dummy. The event EVENT_PLAYER_UNIT_DROP_ITEM also registers when a unit sells an item (or loses an item for any reason I am guessing). Is there a way to distinguish between when a unit is pawning and dropping an item?
Question 2 is the big problem. When a hero drops a 'real' item, the item needs to be replaced with a dummy. The event EVENT_PLAYER_UNIT_DROP_ITEM also registers when a unit sells an item (or loses an item for any reason I am guessing). Is there a way to distinguish between when a unit is pawning and dropping an item?