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

Level Requiements on skills :)

Status
Not open for further replies.
Level 3
Joined
Oct 29, 2011
Messages
43
I created a new unit skill for a Hero, just to gain that skill if he reach a certain level. how do i put a level requirements on that skill?
 
Level 6
Joined
Dec 9, 2008
Messages
233
  • Spell
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to (==) YourHero
      • (Level of (YourHero)) Equal to (==) etc. 15
    • Actions
      • Hero - Modify unspent skill points of (YourHero): Add 1 points
      • Hero - Learn skill for (YourHero): Spell
Something like this :)
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
@TerraNexx: Would check for level > desiredLevel - 1, because you might skip levels. The Learn Skill action accounts for selecting a hero ability from the hero ability menu, it was said that the skill would be a normal unit skill.

@Boykillah: Then input some requirement for your ability in object editor and fulfill this requirement via trigger. Requirements are player-specific though, so if a player can have more than one hero with this ability, it won't work. Maybe in this case establish some dummy skill for the hero that gets replaced in time and write the requirement in the tooltip of the dummy ability yourself.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
@TerraNexx: This is not a hero level requirement, it's the amount for the requirement you specified in the field above. If you require unit's of a type, it's the amount of units the player needs. If it's a research, the player is expected to have the research on this level.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
  • Events
    • Einheit - A unit Gains a Level //Generic Unit Event
  • Conditions
    • (Level of <yourAbility> for (Triggering unit)) Greater Than 0 //Integer comparison, Unit - Level Of Ability For Unit
    • (Hero level of (Triggering unit)) Greater Than <desiredLevel-1> //Integer comparison, Hero - Hero Level
  • Actions
    • Player - Set the current research level of <dummyResearch> to 1 for (Owner of (Triggering unit)) //Player - Set Current Research Level
 
Status
Not open for further replies.
Top