I need a trigger to let:
---------------------------------------------------------
Units of one type,
move to,
one type of building,
and the owner of the building (were those units must go) is the owner of the target near those units.
---------------------------------------------------------
It is a mess I know, I will send the trigger that I already have.
This part:
---------------------------------------------------------
Units of one type,
move to,
one type of building,
and the owner of the building (were those units must go) is the owner of the target near those units.
---------------------------------------------------------
It is a mess I know, I will send the trigger that I already have.
-
Pack Horse
-
Events
- Time - Every 10.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Picked unit)) Equal to Town Hall
-
Then - Actions
- Unit - Create 1 Pack Horse (Neutral) for Neutral Passive at (Position of (Picked unit)) facing Default building facing degrees
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type Pack Horse (Neutral)) and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Move To (Position of (Random unit from (Units owned by (Owner of (Random unit from (Units within 200.00 of (Position of (Picked unit)) matching ((Unit-type of (Matching unit)) Equal to Town Hall)))) of type Capital)))
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
This part:
-
Unit Group - Pick every unit in (Units of type Pack Horse (Neutral)) and do (Actions)
-
Loop - Actions
- Unit - Order (Picked unit) to Move To (Position of (Random unit from (Units owned by (Owner of (Random unit from (Units within 200.00 of (Position of (Picked unit)) matching ((Unit-type of (Matching unit)) Equal to Town Hall)))) of type Capital)))
-
Loop - Actions
Last edited by a moderator: