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

To Create Dummy on All Enemies

Status
Not open for further replies.
Level 5
Joined
Jul 30, 2012
Messages
93
  • Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching ((((Triggering unit) is A Hero) Equal to True) and (((Triggering unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))) and do (Actions)
    • Loop - Actions
      • Unit - Create 1 normal dummy for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees
i wanna create dummy position of all of my my enemy heroes then those dummies use slow skill them,so what's wrong there ?
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
its leaking, point+group leak

whatever why do u need the check trigger unit is hero?

  • Set unitgroup = (Units in (Playable map area) matching (((Triggering unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True))

  • Set unitgroup = (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Triggering unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True)))
 
Level 5
Joined
Jul 30, 2012
Messages
93
  • Global Slow
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Global Slow-[R]
    • Actions
      • Set globalslow = (Units in (Playable map area) matching ((((Triggering unit) belongs to an enemy of (Owner of (Matching unit))) Equal to True) and (((Matching unit) is A Hero) Equal to True)))
      • Unit Group - Pick every unit in globalslow and do (Actions)
        • Loop - Actions
          • Unit - Create 1 global dummy for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees
          • Unit - Add Slow to (Last created unit)
          • Unit - Order (Last created unit) to Human Sorceress - Slow (Rally-Point of (Triggering unit) as a unit)
          • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Now, how to slow my enemies ?
 
Well, there is a VERY easy way to do this instead of using that Trigger, which apparently, for some reason for me, it doesn't work, I would rather create a dummy with negative HP regen, and an aura skill that reduces enemy speed, based on Unholy Aura, check the attachment below, I use Slowed (Cold) Buff for the Aura. but it still uses a trigger to spawn the dummy, I don't attach condition in it, so it is modifiable for all of you :)
 

Attachments

  • Mass Slow.w3x
    17.2 KB · Views: 49
Level 5
Joined
Jul 30, 2012
Messages
93
Now works fine.Thank you all <3

That's my last question about this trigger.If we are in 2. team, trigger works fine but if not, it doesn't freeze.How can i fix ?

  • Ice Type Loop
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to EA_Ability
    • Actions
      • Set EA_MaxIndex = (EA_MaxIndex + 1)
      • Set TempUnit = (Triggering unit)
      • Set TempLoc = (Position of TempUnit)
      • Set TempLoc2 = (Target point of ability being cast)
      • Set EA_Angle[EA_MaxIndex] = (Angle from TempLoc to TempLoc2)
      • Unit - Create 1 EA_DummyType for (Owner of (Triggering unit)) at TempLoc facing EA_Angle[EA_MaxIndex] degrees
      • Set EA_Arrow[EA_MaxIndex] = (Last created unit)
      • Trigger - Turn on Ice Type Loop 2 <gen>
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Custom script: call RemoveLocation(udg_TempLoc2)
 
Status
Not open for further replies.
Top