• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Units get hurt 2HP per second when in terrirory {only if they don't possess a tech}

Status
Not open for further replies.
Level 9
Joined
Aug 11, 2007
Messages
429
It works, all units and buildings get hurt 2HP every 2 seconds of the game. What would I need to do so that i someone researched "Endurance" they wouldn't lose HP anymore.


+Rep for help.
 
Level 2
Joined
Mar 11, 2009
Messages
26
Add a condition to that trigger that does damage checking the integer level of that certain reseach.

If - research level of endurance equal to 1
Then -
Else - reduce health by 2
 
Level 9
Joined
Aug 11, 2007
Messages
429
Any tips on which "player" to set it to?

Like, if I make it player 1 red, once red researches it, everyone is fine. I want just red to research it, just red is immune. If blue researches it, just blue is immune.

Thanks.
 
Level 9
Joined
Jan 5, 2007
Messages
283
You could try this.

  • Events
    • Time - Every 2.00 seconds of game time
  • Conditions
  • Actions
    • Unit Group - Pick every unit in (Units in YOUR.REGION <gen> matching ((Current research level of Endurance for (Owner of (Matching unit))) Not equal to 1)) and do (Unit - Cause (Picked unit) to damage (Picked unit), dealing 2.00 damage of attack type Chaos and damage type Universal)
There are almost certainly better, cleaner, more effective ways of doing this, but this is the quick and easy way.
 
Level 9
Joined
Jan 5, 2007
Messages
283
Ohp, shi-, Dr Super Good has a valid point. I forgot about leaks. Yeah, it'd be advisable to find a way that doesn't leak. I would imagine it wouldn't be too hard to do though. Well, if you brought in some Jass... sorry, my brain's not working too well at the moment, anybody able to come up with something?
 
Status
Not open for further replies.
Top