I want to give item for all heroes when game start in lua.
What code good?
Barebones has an option for that built in.
all the highs & lows
Sadly, this option overwrites the first item in any hero's inventory.
barebones just uses AddItem() for that
it should just place the item in the first available inventory space, if any.