This is an old revision of the document!


Strategy: TroopMaker

Purpose to periodically train troops
When to use for increasing your troops regularly
When to avoid

FIXME: description

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 optional description of your choice
WAITFOR_UID See "Strategies"
RUNWHILE_UID See "Strategies"
UID Unique IDentifier. See "Strategies"
MINPAUSE Minimum pause, in minutes, between runs
WOODKEEP, CLAYKEEP, IRONKEEP, CROPKEEP Minimum resources that should be left in the village
WOODRATE, CLAYRATE, IRONRATE, CROPRATE Minimum production rate for strategy to run
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
TROOPDESCRIPTION Optional description of the troop
GREATBUILDING Can be “true” for training in the great barracks or great stables
AMOUNT Troops to train at each run

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

FIXME



Personal Tools