• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Why doesnt this work?

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,805
Well, why doesnt this action work? no damage and no special effect on the units i have picked, and yes i know it leaks, but nvm that if its not relevant
  • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting unit)) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) belongs to an ally of (Owner of (Casting unit))) Equal to False))) and do (Actions)
    • Loop - Actions
      • Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real((Strength of (Casting unit) (Include bonuses)))) x 1.00) damage of attack type Spells and damage type Normal
      • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
      • Special Effect - Destroy (Last created special effect)
 
I never use (matching conditions) like that and I may be right because, I did it like that, using a dummy ability of thunder clap and it works just fine, with special effect and everything. I'm using a ready dummy Unit ability here from my map but you can make it with conditions if level = 1 to cause strengt x1 dmg or if level 2 to cause str x 2 dmg. etc Just paste it from this map. Hope it helps.

  • Request 02
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Request 02
    • Actions
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting 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
              • (Owner of (Picked unit)) Not equal to (Owner of (Casting unit))
              • (Owner of (Picked unit)) Not equal to (Random player from (All allies of Player 1 (Red)))
            • Then - Actions
              • Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real(((Strength of (Casting unit) (Include bonuses)) x 1))) damage of attack type Spells and damage type Normal
              • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
              • Special Effect - Destroy (Last created special effect)
            • Else - Actions
 

Attachments

Status
Not open for further replies.
Back
Top