I am making a map where a building creates a unit, then it goes and builds a farm, after 10 farms it returns to the castle and is removed from the map.
The problem is I get it to build the first farm, then it stands there, I can't get it to build a second one. Any ideas?
Part of the trigger I am using is
Now I found that The Triggering unit is the unit built, not the unit that did the building. How would I get the information from the unit that did the building so I can send it to build another farm?
Or at least a trigger that would send a unit from player 12 to build at another location if it has nothing to do.
I have tried several things and have yet to figure out how to get this script to work properly. :banghead:
The problem is I get it to build the first farm, then it stands there, I can't get it to build a second one. Any ideas?
Part of the trigger I am using is
JASS:
Keep Building TIll 10
Events
Unit - A unit Finishes construction
Conditions
And - All (Conditions) are true
Conditions
(Owner of (Triggering unit)) Equal to Player 12 (Brown)
(Number of living Farm units owned by Player 12 (Brown)) Less than 9
Actions
Unit - Order (Triggering unit) to build a Farm at (Random point in Town Build <gen>)
Now I found that The Triggering unit is the unit built, not the unit that did the building. How would I get the information from the unit that did the building so I can send it to build another farm?
Or at least a trigger that would send a unit from player 12 to build at another location if it has nothing to do.
I have tried several things and have yet to figure out how to get this script to work properly. :banghead: