• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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