- Joined
- Aug 8, 2010
- Messages
- 1,022
Hello, guys! It's me again.
So in my map, i have a item stack system created by me. However, the problem is not in it. If i have 6 stacks of an item (max stacks are 10) and my other 5 slots are full, i can't get another item of the same type as the one that is stacking. I mean that i have 4 more stacks to put that item in, but the game says my inventory is full. How can i prevent this???
I know that i should probably run a trigger each time a unit is ordered to get an item and check if this unit has it's inventory full. If it is, then remove an item, order it again, and return the item i removed.
And the real problem comes, prepare for it.
What i should do when the hero gets almost near the item? How i can make the hero take it? I have to somehow make the event "A unit acquires an item" run.
So in my map, i have a item stack system created by me. However, the problem is not in it. If i have 6 stacks of an item (max stacks are 10) and my other 5 slots are full, i can't get another item of the same type as the one that is stacking. I mean that i have 4 more stacks to put that item in, but the game says my inventory is full. How can i prevent this???
I know that i should probably run a trigger each time a unit is ordered to get an item and check if this unit has it's inventory full. If it is, then remove an item, order it again, and return the item i removed.
And the real problem comes, prepare for it.
What i should do when the hero gets almost near the item? How i can make the hero take it? I have to somehow make the event "A unit acquires an item" run.