• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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