| 10-17-2009, 03:00 PM | #1 |
I want to create a trigger that picks perodically one building of selected type and IF THAT BUILDING ISN'T ALREADY BUILDING SOMETHING then order it to train a Footman. I created something like this : Trigger: But it doesn't work, units are queued in one building if it is picked several times. Please help me ![]() |
| 10-17-2009, 03:10 PM | #2 |
I am pretty sure that "train" isn't the actual orderstring associated with training a unit. (I'm almost certain that order doesn't even have an orderstring..) Anyways, your problem is that you only pick 1 unit, you should pick all units and then act on all of them, but only issue the train order once. |
| 10-17-2009, 03:30 PM | #3 |
But if I order all of them to train then after some time units will be queued in one of them, which I don't want to happen. |
| 10-17-2009, 03:39 PM | #4 |
That didn't make any sense. You don't order all of them to train, you just pick all of them in the group before selecting the first applicable candidate for giving the train order. It would do the same thing as you described in your first post as what you wanted, it would just actually work. |
| 10-17-2009, 04:11 PM | #5 |
Put the structures that are already creating/training units inside a group. |
| 10-18-2009, 08:42 AM | #6 | |
Thanks chobibo, that actually worked for me! Quote:
Thanks guys |
