So, this gives hero abilities to normal units?
Can't you just untick the "Is a Hero Ability" box and give it to a unit through the OE?
I haven't bothered to look at the code though so I'm not really sure what this actually does.
Explain:
(Icon)(Icon)(Icon)(Icon)
of any hero.
Example -
(Blizzard) (water elemental) (brillance aura) (teleport)
(Mana Burn) (Immolation) (Evasion) (Demon Metamorphasis)
My system allows each and any unit in your map include heroes as I gave them iconless ability (need to see to understand about how it works for heroes)
Back to the subject: it give each and any unit the ability to learn blizzard or mana burn, etc.
After 30 seconds of cooldown, the unit can remove the first picked ability and replace it with a new one (this is optional).
Examples of how the system can be used:
1) Hashtable controlling a unit rank, killing one unit means "level up", this level up can be used to allow the unit to learn blizzard and then remove the ability controlling (most left icon) in case you want to make each unit have it permanent, or leave it as it is and allow 30 second switching among each and any unit - make your game much more intresting.
2) Heroes that can swap their abilities are much more fun than a normal ones when it comes to fights of hero againts hero, learnning the "LEVEL UP MOST LEFT ICON" hero ability, the hero cannot learn the ability untill he level this passive iconless ability, making him unable to gain "most left icon" untill learned and the level of the learned ability is the same as this. making your hero againts hero much more intresting game.
3) RPG that make each hero ability to have a needed requiment to work, if you want to be able to swap into mana burn you must first upgrade the tech, for example: can't switch into mana burn UNTILL a dragon boss is killed - making the reward for quest more rewarding than just gold.