• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Spell] Help with Illusions that deal damage upon death..

Status
Not open for further replies.
Level 5
Joined
Oct 16, 2015
Messages
132
hey guys..... i'm making a spell based on mirror image where it makes a clone and it will deal damage upon death... i don't know if this is a stupid question or nah but i'm just not too good at triggering
 
Level 16
Joined
Mar 25, 2016
Messages
1,327
This trigger contains leaks, but I just wanted to quickly show how this would work.
  • Illusion
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is an illusion) Equal to True
      • -------- if there are multiple sources of illusions in your map you should add a condition --------
      • -------- to verifiy that this illusion comes from the ability --------
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Triggering unit))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A structure) Equal to False
              • -------- add a conditions so only certain targets are damaged (do not damage buildings for example) --------
              • ((Owner of (Triggering unit)) is an enemy of (Owner of (Picked unit))) Equal to False
            • Then - Actions
              • Unit - Cause (Triggering unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Normal
            • Else - Actions
 
Level 11
Joined
May 16, 2016
Messages
730
hmmm i dont get the condition where i must verify that the illusion must come from the ability but still thx :)
Here is the template which allows to explode illusions which are summoned ONLY heroic ability. Try to use Wand of Illusion to make sure. WoI Illusion wouldn't explode.
To configurate the ability go to "INIT" and "USE OR CONFIG".
 

Attachments

  • Illusion.w3x
    21 KB · Views: 32
Level 16
Joined
Mar 24, 2017
Messages
827
You could also try giving it the AOE damage ability that mines have, they explode when they are destroyed, however Im pretty sure you can modify the animation to whatever you want instead of an explosion
 
Status
Not open for further replies.
Top