• 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.

Exploding Chickens(havent change model to chickens yet)

Status
Not open for further replies.
I need help with my trigger i tryed to do it by myself but i wouldnt work, ive used the ability base as taunt so it does it, it creates the units just doesnt move them and makes them explode.

  • Explode Copys
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Exploding Copys
    • Actions
      • Unit Group - Pick every unit in (Units within 1.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • Unit - Create 3 Exploding Dummy for (Owner of (Casting unit)) at (Position of (Triggering unit)) facing Default building facing degrees
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Number of units in (Units within 200.00 of (Position of (Casting unit)))) + 0) Greater than or equal to 1
              • (Unit-type of (Triggering unit)) Equal to Exploding Dummy
            • Then - Actions
              • Unit - Move (Triggering unit) instantly to (Position of (Random unit from (Units owned by (Matching player) matching (((Triggering unit) belongs to an enemy of (Triggering player)) Equal to True))))
              • Wait 2.00 seconds
              • Unit - Explode (Triggering unit)
              • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Triggering unit)), dealing 100.00 damage of attack type Spells and damage type Normal
            • Else - Actions
              • Do nothing
 
Level 13
Joined
Jun 5, 2008
Messages
504
TRIGGERING UNIT IS THE UNIT THAT CASTS THE SPELL (in this case)

Well atleast you are doing it wrong.
You should first greate unit group like this:

set GROUP = units withing 200 of triggering unit matching, mattching unit belongs enmy of triggering unit, matching unit is not equal to "unit type" etc...

And then if units in GROUP greater than 0
Pic every random 3 unit from GROUP
- create exploding unit at possition
move last created unit to possition of picked unit

That aint perfect yet, but it I hope it helps enough. Everything in your trigger is bad so it really needs to be redone. That wait is pretty troublesome since I never use them...

If you are interested in fixing leaks (which i suggest). You should check THINGS THAT LEAK thread.
 
So like this

  • Explode Copys
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Exploding Copys
    • Actions
      • Unit Group - Add all units of (Units within 200.00 of (Position of (Casting unit)) matching (((Triggering unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) to (Units owned by (Owner of (Triggering unit)) matching (((Triggering unit) is in (Units within 200.00 of (Position of (Triggering unit)))) Equal to True))
      • Unit Group - Pick every unit in (Units within 1.00 of (Position of (Casting unit))) and do (Actions)
        • Loop - Actions
          • Unit - Create 3 Exploding Dummy for (Owner of (Casting unit)) at (Position of (Triggering unit)) facing Default building facing degrees
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Number of units in (Units within 200.00 of (Position of (Casting unit)))) + 0) Greater than or equal to 1
              • (Unit-type of (Triggering unit)) Equal to Exploding Dummy
            • Then - Actions
              • Unit - Move (Triggering unit) instantly to (Position of (Random unit from (Units owned by (Matching player) matching (((Triggering unit) belongs to an enemy of (Triggering player)) Equal to True))))
              • Wait 2.00 seconds
              • Unit - Explode (Triggering unit)
              • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Triggering unit)), dealing 100.00 damage of attack type Spells and damage type Normal
            • Else - Actions
              • Do nothing
 
Status
Not open for further replies.
Top