Table of Contents
Strategy: TroopMaker
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<strategy class="TroopMaker" desc="DESCRIPTION" enabled="true" minPauseMinutes="MINPAUSE" runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> <keepResources wood="WOODKEEP" clay="CLAYKEEP" iron="IRONKEEP" crop="CROPKEEP"/> <minProductionRate wood="WOODRATE" clay="CLAYRATE" iron="IRONRATE" crop="CROPRATE"/> <troops type="TROOPTYPE" maxQueueHours="MAXQUEUEHOURS" desc="TROOPDESCRIPTION" great="GREATBUILDING">AMOUNT</troops> <troops type="TROOPTYPE" maxQueueHours="MAXQUEUEHOURS" desc="TROOPDESCRIPTION" great="GREATBUILDING">AMOUNT</troops> <troops type="TROOPTYPE" maxQueueHours="MAXQUEUEHOURS" desc="TROOPDESCRIPTION" great="GREATBUILDING">AMOUNT</troops> </strategy> Note: The syntax has changed in v2.3.0 Attributes and parameters
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:
Examples<strategy class="TroopMaker" desc="Cavalli" enabled="true" minPauseMinutes="120" uid="cav01"> <keepResources wood="8000" clay="8000" iron="8000" crop="3000"/> <troops type="Cavalleria Romana">15</troops> </strategy>
|
![]() |