• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Add ability to hero which is learnable

Level 3
Joined
Jan 31, 2023
Messages
17
Hi guys I need a help about adding and ability to a hero on trigger but after leveling up hero can learn it to upgrade as well. I am trying to do a map it kinda has base thing with LoD where we choose skills to heroes. If there are any solutions please type it I need to look for it
 
Two problems: 1) a hero can only have 5 learnable abilities, even if you try to add more and enable/disable them via trigger, and 2) adding hero abilities via trigger doesn't make them learnable

With this in mind, what I'd do is turn them into unit abilities with several levels and create fake hero abilities e.g. "learn ability slot 1" and upgrade the abilities via trigger
  • Skills
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Learn ability slot 1
    • Actions
      • Unit - Increase level of (Actual Ability 1) for (Triggering unit)
 
Two problems: 1) a hero can only have 5 learnable abilities, even if you try to add more and enable/disable them via trigger, and 2) adding hero abilities via trigger doesn't make them learnable

With this in mind, what I'd do is turn them into unit abilities with several levels and create fake hero abilities e.g. "learn ability slot 1" and upgrade the abilities via trigger
  • Skills
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Learn ability slot 1
    • Actions
      • Unit - Increase level of (Actual Ability 1) for (Triggering unit)
I know the thing I mentioned ''trigger'' for is there any other way to solve that problem I dont want to do +200 ability's fake icons because it should be seem what upgrades it has on learn senction. Because heroes has abilities I am trying to draft them to another heroes fake upgrade ability is not on the table as solution.
 
DotA LoD works by thousands (or mabye several hundreds) of 'ANeg' Engineering Upgrade skills that replace 5 dummy skills with the wanted hero skills.
Ohhh, I see! That's how it works like that... Thanks brother but if there are any JASS code or something helps it I'd like to hear too
 
all you need is Engineering Upgrade and spell book and you can make hero learn from a shop and they weill become learnable
 

Attachments

  • 1.jpg
    1.jpg
    51.1 KB · Views: 25
  • 2.jpg
    2.jpg
    69.6 KB · Views: 25
  • 3.jpg
    3.jpg
    56.3 KB · Views: 28
  • 4.jpg
    4.jpg
    32.2 KB · Views: 28
  • 5.jpg
    5.jpg
    37.3 KB · Views: 28
  • 6.jpg
    6.jpg
    28.6 KB · Views: 32
Back
Top