- Joined
- Nov 30, 2013
- Messages
- 926
Hi, I getting trouble making a trigger to make a unit don't move.
But it can move when I test it.
Here's my triggers
But it can move when I test it.
Here's my triggers
-
Villager Var
-
Events
- Map initialization
- Conditions
-
Actions
- Set Villager[1] = Villager 0010 <gen>
- Set Villager[2] = Villager 0011 <gen>
- Set Villager[3] = Villager 0012 <gen>
- Set Villager[4] = Villager 0013 <gen>
- Set Villager[5] = Villager 0014 <gen>
-
Events
-
Villager Control
-
Events
- Unit - A unit Is issued an order with no target
- Unit - A unit Is issued an order targeting a point
- Unit - A unit Is issued an order targeting an object
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Ordered unit)) Equal to (Owner of Villager[(Player number of (Owner of (Ordered unit)))])
- (Ordered unit) Equal to Villager[(Player number of (Owner of (Ordered unit)))]
- Villager_Controlled[(Player number of (Owner of (Ordered unit)))] Equal to 0
-
Then - Actions
- Set Villager_Controlled[(Player number of (Owner of (Ordered unit)))] = 1
- Unit - Order (Ordered unit) to Stop
- Set Villager_Controlled[(Player number of (Owner of (Ordered unit)))] = 0
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events