Warcraft III resources & community, 2003–2006 · archived

Change Owner, when HP is low

4 posts
#1

Change Owner, when HP is low

I need this code:
Unit attacks one type of BUILDING, and when this building have less than X% HP, it change owner to attacker. I need code that will change owner of not specified bulding just of one type, like Tower.
Thx for help.
#2
this should probably be in maps, but w/e

Events
Unit - A Unit Is Attacked
Conditions
Unit Type of Triggering Unit Equal to *Tower, or w/e*
Percent Life of Triggering Unit less than *percent*
Actions
Unit - Change owner of Triggering Unit to Owner of Attacking Unit, and Change Color
Unit - Set Percent Life of Triggering Unit to 100%
#3
Prepare fire extunguishers, I'm going to flame!
Another n000000000b comes to forums (JASS forums, even not Maps) without even trying to write triggers and learn. I'm wondering: are all of our visitors such stupid?
#4
Prepare fire extunguishers, I'm going to flame!


or you could just not comment... flaming is not the answer to life, the universe, and everything ( thats 42 :P )