• 🏆 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!

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 40
Joined
Feb 27, 2007
Messages
5,124
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