- Joined
- Aug 7, 2004
- Messages
- 875
I'm making a trigger that orders a unit to harvest a goldmine which is selected by the rally point of the townhall.
So I'm asking you if these two things.
Is there such thing as a Order(return)?
Is there an event where a rally point is set?
Or do you guys have any other solutions?
Waiting for ur reply, and ofcourse +rep for ur help
-
[COLOR="Yellow"][B]Events[/B]
- Time - Every 1.00 seconds of game time
-
[B]Actions[/B]
- Set p = (Rally-Point of Barracks 0029 <gen> as a point)
-
Unit Group - Pick every unit in (Units within 800.00 of p) and do (Actions)
-
Loop - Actions
- If ((Unit-type of (Picked unit)) Equal to Mine Cart) then do (Set
-
Loop - Actions
- MineCart = (Picked unit)) else do (Do nothing)[/COLOR]
-
[COLOR="YellowGreen"][B]Events[/B]
- Time - Every 1.00 seconds of game time
-
[B]Conditions[/B]
- (Triggering unit) Equal to Peasant 0009 <gen>
-
[B]Actions[/B]
- If ((Current order of Peasant 0009 <gen>) Equal to (Order(harvest))) then do (Do nothing) else do (Unit - Order Peasant 0009 <gen> to Harvest MineCart)[/COLOR]
So I'm asking you if these two things.
Is there such thing as a Order(return)?
Is there an event where a rally point is set?
Or do you guys have any other solutions?
Waiting for ur reply, and ofcourse +rep for ur help
Last edited by a moderator: