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

How do I make Chain frost ability from Lich (DotA)

Status
Not open for further replies.
Level 12
Joined
Jan 2, 2016
Messages
973
Make an ability, based on Acid Bomb with missile art = the Frost Dargon's attack.
Make a custom buff, and give it to the ability.
Make the ability deal as much dmg as you want it to.
copy-paste the ability, and make it cost 0 mana.

Then with a trigger, when a player casts this ability - set an integer to 0.

(You need a DDS for the next part):
Whenever a unit takes damage - check if they have the custom buff you made for the skill.
If they have it - Set the integer to + 1.
Remove the buff from them.
If the integer is less than the maximum amount of hits allowed - create a dummy, give it the ability with no mana cost.
Pick all the units in range, and make the dummy cast the skill to a random enemy unit.

That's the base of it.

Notes:
1) for the slow effect you'd need another dummy to cast "slow" on the units, hit by the ability. (One that has "slowed" as buff)
2) when making the dummy for the jumps, make it for player = Owner of damage source
3) You'd need an array to make the spell MPI, and an array + indexing to make it MUI
 
Status
Not open for further replies.
Top