Hi all,
I've been doing some search on the forum, but I couldn't find anything like this. I'd like to make that items require a specific level of a hero to use it. For ex., Potion of Greater Healing requires the hero to be at least level 5 to be able to use it. Or Boots of Quel'Thalas (+6 Agility) requires level 5.
I solved the part where charged/usable items are involved (like potions - I just check for the ability being cast if it is equal to the item ability, check the level; if lvl<5 => stop the unit), but I cannot solve the part where items are permanent and give permanent bonus as long as they are in the inventory, like the Boots.
And I'd like not to drop the item if it doesn't meet the level requirements. Just be inactive. Any idea is welcome!
Thanks,
Regards!
I've been doing some search on the forum, but I couldn't find anything like this. I'd like to make that items require a specific level of a hero to use it. For ex., Potion of Greater Healing requires the hero to be at least level 5 to be able to use it. Or Boots of Quel'Thalas (+6 Agility) requires level 5.
I solved the part where charged/usable items are involved (like potions - I just check for the ability being cast if it is equal to the item ability, check the level; if lvl<5 => stop the unit), but I cannot solve the part where items are permanent and give permanent bonus as long as they are in the inventory, like the Boots.
And I'd like not to drop the item if it doesn't meet the level requirements. Just be inactive. Any idea is welcome!
Thanks,
Regards!