I've been fiddling around with the World Editor trying to create a sort of diner dash-esque map and I've hit a snag. I have a non-hero waiter unit that i want to be able to pick up items such as food and drinks and use them on customers. I want to be able to upgrade all of the waiters' inventories at a separate upgrade building. I've managed to get this working fine, starting with a 2-slot inventory and upgrading to 3, 4 and 5-slot, but I've encountered an interesting glitch.
Once the inventory is upgraded past 3 slots, when I try to pick up another item with an active ability, the game automatically drops my most recently picked up item and replaces it with the new one. I tried removing the active ability from the item and the game let me pick up as many as I wanted. I also tried picking up 4 items with no ability and then a 5th item with an active ability, which then forced the waiter to drop both the 3rd and 4th item, leaving him with 3 including the one he had just picked up.
I've not introduced any triggers that might be causing this. I tried dropping in a regular Paladin with a 6-slot inventory and he could pick up any number and combination of items no problem. I made a custom hero backpack ability that increased inventory size as it leveled up, and that also worked totally fine. Does anybody have any idea what might be causing this and, if possible, is there a workaround that doesn't require JASS or complicated triggers?
Once the inventory is upgraded past 3 slots, when I try to pick up another item with an active ability, the game automatically drops my most recently picked up item and replaces it with the new one. I tried removing the active ability from the item and the game let me pick up as many as I wanted. I also tried picking up 4 items with no ability and then a 5th item with an active ability, which then forced the waiter to drop both the 3rd and 4th item, leaving him with 3 including the one he had just picked up.
I've not introduced any triggers that might be causing this. I tried dropping in a regular Paladin with a 6-slot inventory and he could pick up any number and combination of items no problem. I made a custom hero backpack ability that increased inventory size as it leveled up, and that also worked totally fine. Does anybody have any idea what might be causing this and, if possible, is there a workaround that doesn't require JASS or complicated triggers?