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

Remove Blight

Status
Not open for further replies.
Level 8
Joined
Oct 26, 2008
Messages
387
  • Melee Initialization
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Black Citadel
    • Actions
      • Environment - Remove Blight for (Owner of (Triggering unit)) from (Position of (Triggering unit)) to a radius of 2000.00
You can modify the radius, and may i suggest setting a unit group in some other trigger, adding in that unitgroup every building that creates blight, and then have the condition,

  • ((Triggering unit) is in (Units in (YourUnitGroup))) Equal to True
And then remove it from the unit group.
 
Level 8
Joined
Oct 26, 2008
Messages
387
only undead (ziggurat and necropolis with all stages)
they can be built (its melee)

In that case, (if only those two are the buildings, then its easy to do this)


  • Melee Initialization
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Necropolis
          • (Unit-type of (Triggering unit)) Equal to Halls of the Dead
          • (Unit-type of (Triggering unit)) Equal to Black Citadel
          • (Unit-type of (Triggering unit)) Equal to Ziggurat
          • (Unit-type of (Triggering unit)) Equal to Spirit Tower
          • (Unit-type of (Triggering unit)) Equal to Nerubian Tower
    • Actions
      • Set TempLoc = (Position of (Triggering unit))
      • Environment - Remove Blight for (Owner of (Triggering unit)) from TempLoc to a radius of 2000.00
      • Custom script: call RemoveLocation(udg_TempLoc)
 
Level 4
Joined
Aug 26, 2012
Messages
123
How about this?
  • Melee Initialization
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • Level of (Blight growth large) for triggering unit not equal to 0
          • Level of (Blight growth small) for triggering unit not equal to 0
    • Actions
      • Set TempLoc = (Position of (Triggering unit))
      • Environment - Remove Blight for (Owner of (Triggering unit)) from TempLoc to a radius of 2000.00
      • Custom script: call RemoveLocation(udg_TempLoc)
(well, just a refined form of Maestros's...)
 
Status
Not open for further replies.
Top