AutoLearn hero abilities

Status
Not open for further replies.
Level 1
Joined
May 15, 2016
Messages
4
Hi!
Pls give advise how to code heroes learning THEIR spells on lvl up WITHOUT BIG UGLY triggers like:
Code:
- levelling hero
------------------
- if race
- if heroclass
- if lvl
etc
- learn HARDCODED ability name

I don't want to hardcode anything.
How to get skills available for current hero in trigger?
Thank you.
 
Level 1
Joined
May 15, 2016
Messages
4
Please, read carefully.
How to get skills enumerated in available skills for current hero?
example:
Archmage got lvl 2
I DONT WANT TO KNOW(HARDCODE) if he's archmage or not and what abilities he had.
I want this function to work with any hero, something like that(pseudocode):
Code:
- for 1 to FreeSkillPoints do
- Learn random skill(A WAY TO GET SKILL LIST)
Same question, how to get AVAILABLE SKILLS for current hero in trigger?
 
Status
Not open for further replies.
Top