• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

ability to activate at hero level 6

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
527
IIRC, wasn't there an event Unit - A hero gains a level? If there is:

I'm going to assume your ability's effect is through triggers.
Compare the integer level of the hero if it is = 6, if so, enable the trigger for that ability/make unit cast the ability if you want it casted as soon as the hero hits 6.

If the ability effect is not triggered, the ability that should be leveled should be a dummy ability which does nothing. After hero gains level 6, replace that ability with the one that actually works.
 
Level 39
Joined
Feb 27, 2007
Messages
5,010
If each player only has 1 hero this logic should be applied to there is another solution You can use a techtree upgrade for the ability called "Level Six" that starts unresearched for all players. When their hero becomes level 6, set the upgrade to researched with the trigger action. Until you set the research the ability will be visible but darkened and unclickable.
 
Status
Not open for further replies.
Top