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

Animate Dead all over the map

Level 12
Joined
Aug 3, 2021
Messages
434
Hello. Its Pekisa7 again. How do I make Animate Dead abillty to raise at least 20 dead units all over my map when the enemy units die? Can somone help me with this? Here are the triggers:
  • Animated Dead Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead (Death Tower)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) belongs to an ally of (Owner of (Casting unit))) Equal to True
        • Then - Actions
          • For each (Integer A) from 1 to 20, do (Actions)
            • Loop - Actions
              • Unit - Order DeathTower to Undead Death Knight - Animate Dead
        • Else - Actions
 
With a large enough Area of Effect Animate Dead can raise dead units with the Death Type Can raise, Does decay all over the map.

The alliance Targets Allowed fields for Animate Dead work as one would expect and as follows:
Player Units = Raises own units
Allied = Raises allied units
Friend = Raises own and allied units
Neutral = Raises neutral units
Enemy = Raises enemy units
No alliance specified (Default) = Raises all units
 
With a large enough Area of Effect Animate Dead can raise dead units with the Death Type Can raise, Does decay all over the map.

The alliance Targets Allowed fields for Animate Dead work as one would expect and as follows:
Player Units = Raises own units
Allied = Raises allied units
Friend = Raises own and allied units
Neutral = Raises neutral units
Enemy = Raises enemy units
No alliance specified (Default) = Raises all units
Errm... Triggers?
 
Can you describe in more detail what kind of trigger you are looking for?

Information so far: When an enemy units dies, if possible to raise at least any 20 dead units on the map cast Animate Dead.
I am looking for a trigger to spawn at least 20 enemy units using animated dead all over the map. When 20 enemy units die from players units by using death tower buliding you click animate dead to raise at least 20 enemy units to fight for the player.
 
Last edited:
Per heaps something like this? This stores every raisable unit that dies for the enemies of Player 1 (Red) in a group and increases a counter if the killing unit is the death tower. When the death tower casts the Animated Dead ability, it has at least 20 kills and the group contains at least 20 dead enemy units that can be raised, it spawns a DummyUnit that casts an animate dead ability able to raise 20 dead enemy units all over the map. When 20 dead enemy units have been raised, it sets the kill counter back to 0 so that at least 20 more units must be killed by the death tower before the ability can be cast again.
  • Enemy Dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of Player 1 (Red).) Equal to True
      • ((Unit-type of (Triggering unit)) is Mechanical) Equal to False
      • ((Unit-type of (Triggering unit)) is A flying unit) Equal to False
      • ((Unit-type of (Triggering unit)) is A structure) Equal to False
      • ((Unit-type of (Triggering unit)) is A Hero) Equal to False
      • ((Unit-type of (Triggering unit)) is Summoned) Equal to False
      • ((Triggering unit) is an illusion) Equal to False
    • Actions
      • Unit Group - Add (Triggering unit) to AD_Group
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Killing unit) Equal to DeathTower
        • Then - Actions
          • Set VariableSet AD_Kills = (AD_Kills + 1)
        • Else - Actions
  • Cast Animate Dead
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set VariableSet TempInt = 0
      • Unit Group - Pick every unit in AD_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is dead) Equal to False
            • Then - Actions
              • Unit Group - Remove (Picked unit) from AD_Group.
            • Else - Actions
              • Set VariableSet TempInt = (TempInt + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • AD_Kills Greater than or equal to 20
          • TempInt Greater than or equal to 20
        • Then - Actions
          • Unit - Create 1 DummyUnit for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
          • Unit - Add Animate Dead to (Last created unit)
          • Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Undead Death Knight - Animate Dead.
          • Set VariableSet AD_Kills = 0
        • Else - Actions
 
I did everything you told me. But I've got a problem. When i kill a bunch of enemies a mile away and build the death tower and click animate dead it only raises corpses nearby not far away too. So how do I fix this?
 
Back
Top