- Joined
- Oct 5, 2008
- Messages
- 15
Hey there, Hiveworkshop.
I'm currently attempting to make a trigger; I'm not really that good at making them, however, and have decided to ask for some assistance here, seeing as you guys are good at such.
Generally, the main idea of the trigger is to make it so, if a unit is attacked while it's health is under 1500, the unit and every structure in the region is given to the owner of the attacker of the initial building.
I've been able to make it so every unit in the region go to the owner of the attacking unit, but currently I'm having trouble trying to figure out how to make it so the picked units are only the structure units in the region.
Here's my trigger so far:
I'm currently attempting to make a trigger; I'm not really that good at making them, however, and have decided to ask for some assistance here, seeing as you guys are good at such.
Generally, the main idea of the trigger is to make it so, if a unit is attacked while it's health is under 1500, the unit and every structure in the region is given to the owner of the attacker of the initial building.
I've been able to make it so every unit in the region go to the owner of the attacking unit, but currently I'm having trouble trying to figure out how to make it so the picked units are only the structure units in the region.
Here's my trigger so far:
-
Events:
-
Unit - BuildingNameGoesHere 0070 <gen> Is attacked
-
Conditions:
-
(Life of (Attacked unit)) Less than or equal to 1500.00
-
Actions:
-
Unit Group - Pick every unit in (Units in REGIONSouthernOntario <gen>) and do (Actions)
-
Loop - Actions
-
Unit - Change ownership of (Picked unit) to (Owner of (Attacking unit)) and Change color
-
-