have you ever played legacies tides of the serpent, it uses text cammands to move items from ur invoentory into a box, you could do this. but ive also heard how complex the maps triggers are, i dont know if it would be too difficult to do
Give it the ability 'Inventory (Hero)' however that will aslo allow it to use the items just like a hero, edit the ability if you don't want them to be able to.
U sorta can make a unit with a nearly infinite inventtory
U sorta can make an infinite inventory but it will make so much lag it might not be worth it. U need a unit with an inventory of 6 and no model file. When a player says "empty inventory" or some string like that, his items are transported to the modeless unit. After he empties his inventory a second one is created. So on and so fourth. The thing is, if u have one item and u empty ur inventory, the modeless unit will have 1 item meaning it will create a second when the first has but one item. Another thing (but fixable) is the lack off increase, what i mean by that is +5 dmg. Instead of u getting boosted, ur inventory siphoner gets it. However theres a way around it. Give ur guy 1 dmg and 1 range. When he gets dmg increased u give it back to ur hero. s if ur modeless unit has 6 dmg ur hero gets dmg + 6. Again with lag though as 3 units with 6 items with +100 each adds up to +600 giving ur hero 1800 dmg causing .2% more lag (about) whitch is alot if u have 100% the boxes. And if u want to save... well...
What I would recommend is this: Make a custom unit called "Item Cache" with Inventory(hero)
Now, with triggers make as many "Item Caches" as you want the player to use. With triggers make it so that you can type stuff like: -store slot(1-6) in ItemCache(1-3) To trade an item in your current inventory, make it: -trade slot(1-6) with ItemCache(1-3) slot(1-6) To delete an item from a cache: -Delete ItemCache slot(1-3)(1-6) That's my favorite way of doing it.