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

<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

DESCRIPTION some description of your choice (optional)
WAITFOR_UID See "Strategies"
RUNWHILE_UID See "Strategies"
UID Unique IDentifier. See "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 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

<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>

FIXME



Personal Tools