This is an old revision of the document!


Strategy: ResourceSender

Purpose to periodically send resources to other villages
When to use
When to avoid

FIXME: description

Syntax

<strategy class="ResourceSender" desc="DESCRIPTION" enabled="true"
          runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID">
   <options cleverWait="CLEVERWAIT" delayMinutes="DELAY" randomOrder="RANDOMORDER"/>
   <keepResources wood="WOODKEEP" clay="CLAYKEEP" iron="IRONKEEP" crop="CROPKEEP"/>
 
   <sendMerchant x="XCOORD" y="YCOORD" village="TARGETNAME" wood="WOOD" clay="CLAY" 
                 iron="IRON" crop="CROP" allowLess="ALLOWLESS"/>
   <sendMerchant x="XCOORD" y="YCOORD" village="TARGETNAME" wood="WOOD" clay="CLAY" 
                 iron="IRON" crop="CROP" allowLess="ALLOWLESS"/>
   <sendMerchant x="XCOORD" y="YCOORD" village="TARGETNAME" wood="WOOD" clay="CLAY" 
                 iron="IRON" crop="CROP" allowLess="ALLOWLESS"/>
</strategy>

Attributes and parameters

DESCRIPTION some optional description of your choice
WAITFOR_UID See "Strategies"
RUNWHILE_UID See "Strategies"
UID Unique IDentifier. See "Strategies"
CLEVERWAIT Run the strategy again when merchants come back
DELAY Time to wait before running again (with CLEVERWAIT false)
RANDOMORDER When the strategy runs, choose sendMerchants entries randomly
WOODKEEP, CLAYKEEP, IRONKEEP, CROPKEEP Minimum resources that should be left in the village
XCOORD, YCOORD target village coordinates, safer than using the name
TARGETNAME The name of the target village - beware if have same names
WOOD, CLAY, IRON, CROP resources to send
ALLOWLESS “false” if you want to send the amount of resources and don't send anything if you don't have them, “true” if you might also send less than the specified amount when you don't have enough; default is “false”

Examples

FIXME



Personal Tools