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.
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%
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?