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

Natures Grasp

Status
Not open for further replies.
Level 2
Joined
May 24, 2005
Messages
18
Im Trying to Make an Regular ability (Aereal Shackle) into a hero ability. It worked. But, also i want the unit that died to be replaced with another unit that is under my control.
Ok for Example, I cast Natures grip on a Ghoul. And if the Ghoul dies, i want a treant to appear from its corpse or something like that. Should i use a dummy Necromancer to summon it or something else?
Thx u :)
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Well, it's a little complicated if you want it multiinstance. However, if you don't, it's pretty simple.

Trigger 1
Event - An Unit Starts The Effect of an Ability
Conditions - (Ability Being Cast) equal to Shackles
Actions - set ShacklesTarget = (Target Unit of Ability Being Cast)
- set ShacklesCaster = (Casting Unit)

Trigger 2
Event - An Unit Stops Casting an Ability
- An Unit Dies
Conditions - Any of the conditions are true
-> (Dying Unit) equal to ShacklesTarget
-> (Ability Being Cast) equal to Shackles
Actions - If ShacklesTarget is dead equal to true then
-> Create 1 Treant for Owner of ShacklesCaster at Position of (Dying Unit) facing 0.00 degrees
- Set ShacklesTarget = (No Unit)
- Set ShacklesCaster = (No Unit)

That should do it! ;)

~Daelin
 
Status
Not open for further replies.
Top