• 🏆 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] Help me with skill please =)

Status
Not open for further replies.
Level 3
Joined
Feb 12, 2008
Messages
33
Trigger :

  • Dance Of Death 1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Dance Of Death
      • (Level of Dance Of Death for (Casting unit)) Equal to 1
    • Actions
      • Wait 0.50 seconds
      • Set DanceOfDeath = (Position of (Target unit of ability being cast))
      • Set Target = (Target unit of ability being cast)
      • Region - Center Dance Of Death <gen> on DanceOfDeath
      • Unit - Cause (Casting unit) to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
      • Unit - Move (Casting unit) instantly to DanceOfDeath
      • Special Effect - Create a special effect at DanceOfDeath using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_DanceOfDeath)
      • Wait 0.50 seconds
      • Set Target = (Random unit from (Units in Dance Of Death <gen>))
      • Set DanceOfDeath = (Position of Target)
      • Region - Center Dance Of Death <gen> on DanceOfDeath
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target Not equal to (Casting unit)) or ((Target is alive) Equal to True)
        • Then - Actions
          • Unit - Cause (Casting unit) to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
          • Unit - Move (Casting unit) instantly to DanceOfDeath
          • Special Effect - Create a special effect at DanceOfDeath using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_DanceOfDeath)
          • Wait 0.50 seconds
          • Set Target = (Random unit from (Units in Dance Of Death <gen>))
          • Set DanceOfDeath = (Position of Target)
          • Region - Center Dance Of Death <gen> on DanceOfDeath
        • Else - Actions
          • Do nothing
Hello everyone , i need help fixing this trigger.
It's a chain spell , but it uses region to aquire a target.
The hero damages the unit and moves instantly beside it.
However the spell damages the hero and dead units such as skeletons , corpses.

Help me please and i thank you from the bottom of my heart.
 
Last edited:
Level 8
Joined
Aug 3, 2008
Messages
391
You got a condition wrong. Should be:
  • Or - Any (Conditions) are true
    • Conditions
      • Target Equal to (Casting unit)
      • Target Equal to (Target unit of ability being cast)
Maybe you can add a loop, with conditions checking the random units? Coz, from what I see, the random unit could be a dead unit right?
 
Level 3
Joined
Feb 12, 2008
Messages
33
Yea ... it's annoying , but how do u do a loop ? and btw i changed the trigger =D
+ Rep ^^
 
Status
Not open for further replies.
Top