• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Hero abilties question?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
Currently my hero has abilities he can manually choose and upgrade. How can I make it so that the abilities are automatically assigned based on levels. And make him start with abilities? Do I have to trigger this? And if I do trigger it, if the hero dies and you revive him will he still have the abilities you last gave him via trigger?
 
Level 5
Joined
Jan 19, 2018
Messages
126
Greetings,
Here is a simple trigger that does what you are asking for.
  • Ability Level
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Leveling Hero) Equal to Sylvanas Windrunner 0005 <gen>
    • Actions
      • Hero - Modify unspent skill points of (Leveling Hero): Subtract 1 points
      • Unit - Increase level of Acid Bomb for (Leveling Hero)
      • Unit - Increase level of Banish for (Leveling Hero)
      • Unit - Increase level of Blink for (Leveling Hero)
      • Unit - Increase level of Animate Dead for (Leveling Hero)
So what this trigger does is remove the skill point and just levels all 4 abilities to level 2 (assuming your 4 abilities have 10 levels since you didn't specify)
Make sure the Hero has the ability in the object editor like normal.

Hope this answers your question.
 
Level 5
Joined
Jan 19, 2018
Messages
126
You mean like having a tech tree upgrade research requirement for level 1 and then another research required to get level 2?
 
Level 5
Joined
Jan 19, 2018
Messages
126
In the object editor under abilities go to the spell you are making and look for the field that says "Required Level" it is normally set to 1,
and ultimates are set to level 6. Set it to whatever you want. There is also a field called "level skip requirement", which is normally set to zero.
If you change it to anything greater than 0, lets say 3, then you can only level the ability once every 3 levels.

Example:
Your custom spell -
Level requirement: 2
Level skip requirement: 3
Levels: 2

When you look at this skill ingame and you open your hero ability menu and hover over the ability, it will say "spell level 1 - requires hero level 2"
when you hit level 2 and open the ability menu again and learn the level 1 ability, it will now tell you "spell level 2 - requires hero level 5"

Hope this clears everything up.
 
Status
Not open for further replies.
Top