====== Strategy: TroopMaker ====== ^Purpose |to periodically train troops | ^When to use |for increasing your troops regularly | ^When to avoid | | This strategy tries to train the given amount of troops every time it runs. The frequency of training is set by the "minPauseMinutes" attribute. You can set the minimum amount of resources that should be left in the village ("keepResources" tag) and the minimum production rate that is required to start training ("minProductionRate" tag). You can also specify that the training queue should not exceed a given time ("maxQueueHours" attribute). ==== Syntax ==== AMOUNT AMOUNT AMOUNT **Note:** The syntax has changed in v2.3.0 ==== Attributes and parameters ==== |DESCRIPTION |some description of your choice (optional) | |WAITFOR_UID |See [[index|"Strategies"]] | |RUNWHILE_UID |See [[index|"Strategies"]] | |UID |Unique IDentifier. See [[index|"Strategies"]] | |MINPAUSE |Minimum pause, in minutes, between runs (optional) | |WOODKEEP, CLAYKEEP, IRONKEEP, CROPKEEP |Minimum resources that should be left in the village (optional) | |WOODRATE, CLAYRATE, IRONRATE, CROPRATE |Minimum production rate for strategy to run (optional) | |TROOPTYPE |Type of troop to train, in the server language or as an alias (see [[:docs:languages]]) | |MAXQUEUEHOURS |The max length of the training queue in hours (optional) | |TROOPDESCRIPTION |Description of the troop (optional) | |GREATBUILDING |Can be "true" for training in the great barracks or great stables (optional) | |AMOUNT |Troops to train at each run | If an attribute is (optional), it means you can skip it. Skip the whole tag when you're skipping all its attributes. minProductionRate is useful if, for example, you don't want to run out of crop due to overcrowding: by setting CROPRATE at 1 the strategy will stop when the crop production gets to zero. It can also be a negative value. **Notes:** * Heroes can not be trained * Currently you have to set GREATBUILDING to "true" for training Settlers in the Palace ==== Examples ==== 15 FIXME