UnitAddItemToSlotById(unit, itemId, slot)
There isUnitAddItemToSlotById(unit, itemId, slot)
Its for an inventory system, instead of making it a unit ability im making it an item and giving the item the abilitywhy would you want to do that? shouldn't the player have freedom to move items around their inventory as they wish?
oh...is this one of those item systems that is like...armor goes in that slot, weapon goes in that slot and perishable in that slot, kindof thing?
if you make an item undroppable then you can't change the slot. you can use the function to remove an item if you need to remove it otherwise.
so you just want only the 6th slot be an extra ability which is actually an item? is that the idea?
you might want to give every hero a 6th slot item when they are summoned which is undroppable and doesn't do anything except to serve as a placeholder until they unlock their item ability. this way you don't let players fill up their inventory and then get annoyed when an item gets removed from their inventory when they unlock their item ability.
then add the item[ability] and not use a placeholder anymore... just make it undroppable so that it cannot be moved...
yeah, sounds good, then. wasn't sure about your plan so just thought i'd mention that.