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

Help me Make Skill

Status
Not open for further replies.
Level 2
Joined
Aug 29, 2012
Messages
17
hey guys, please Help me To make This Skill

it will increase damage and attack Speed for each missing Health

if you play DOTA, the hero is like the Huskar - Sacred Warrior From STR the skill 3 berserker's Blood.

please Help me...
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Use unit indexer: http://www.hiveworkshop.com/forums/spells-569/gui-unit-indexer-1-2-0-2-a-197329/
and the following trigger:

  • Mising HP inc STR
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in group and do (Actions)
        • Loop - Actions
          • Set u = (Picked unit)
          • Set ID = (Custom value of u)
          • Set i1 = (Integer((100.00 - (Percentage life of u))))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • i1 Not equal to Bonus[ID]
            • Then - Actions
              • Hero - Modify Strength of u: Add (i1 - Bonus[ID])
              • Set Bonus[ID] = i1
            • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: (String(i1))

This gives the unit 1 str per percentage of missing health.

The attack speed you can do by setting ability level. You could use 10 levels. > 0% -> level 2, > 10% -> level 3 and so on. Level 1 gives no bonus.
 
Status
Not open for further replies.
Top