Hello all,
I am trying to make a vJass multiboard inventory system. I am trying to come up with a way to "equip" an item. I would like to have it such that the hero picks up an item, and then if the player clicks the item, it is "equipped". The item wont have any stats on it, I just need to be able to get the item ID from it and i'm not sure. I have tried copying several abilities and giving it to an item, but I can't seem to get it to do anything in game. Hero can pick up the item, but clicking it does nothing.
How would I go about this? How should i make an ability to give to an item to "use". I am trying to avoid making charged items. All that I need to recover from the item is the item ID, and then I will destroy it and change stats based on my custom stat system. I am also unsure of what event would be used, whether it would be an item is used, or a unit starts casting an ability, or a unit starts the effects of an ability, or even a unit finishes casting an ability.
Any and all help/suggestions would be appreciated. Thanks
I am trying to make a vJass multiboard inventory system. I am trying to come up with a way to "equip" an item. I would like to have it such that the hero picks up an item, and then if the player clicks the item, it is "equipped". The item wont have any stats on it, I just need to be able to get the item ID from it and i'm not sure. I have tried copying several abilities and giving it to an item, but I can't seem to get it to do anything in game. Hero can pick up the item, but clicking it does nothing.
How would I go about this? How should i make an ability to give to an item to "use". I am trying to avoid making charged items. All that I need to recover from the item is the item ID, and then I will destroy it and change stats based on my custom stat system. I am also unsure of what event would be used, whether it would be an item is used, or a unit starts casting an ability, or a unit starts the effects of an ability, or even a unit finishes casting an ability.
Any and all help/suggestions would be appreciated. Thanks