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

[Trigger] Landing Impact Spell

Status
Not open for further replies.
Level 4
Joined
Jun 22, 2009
Messages
63
Im creating a big tauren hero, and when he dies and has this ability, he should damage all enemy units around him when he lands. But he wont damage them.

  • Landing True
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Landing Impact
    • Actions
      • Set Landing_True = True
      • Set Minotaur = (Triggering unit)
  • Landing Impact
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Minotaur
      • Landing_True Equal to True
    • Actions
      • Wait 3.10 seconds
      • Unit Group - Pick every unit in (Units within 512.00 of (Position of Minotaur)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an ally of (Owner of Minotaur)) Equal to False
            • Then - Actions
              • Unit Group - Add (Picked unit) to Impact_Group
              • Unit - Cause Minotaur to damage (Picked unit), dealing 300.00 damage of attack type Chaos and damage type Defensive
            • Else - Actions
              • Do nothing


Also, what should i base this spell on? Making it passive with no extra damage or anything like that?
 
Level 2
Joined
Feb 17, 2010
Messages
6
I would say set in your trigger "Landing Impact" at first action the position of the triggering unit to a variable and use that variable when you pick the units in range. im not very experienced with spell-scripting, but i think the command "Unit - Cause Mintaur to damage..." could make problems, 'coz the Mino is dead... but try the positions-thing first, maybe it works then.
 
Status
Not open for further replies.
Top