Differences

This shows you the differences between two versions of the page.

docs:strategies:settle [2010/09/09 09:57] (current)
xtian created
Line 1: Line 1:
 +====== Strategy: Settle ======
 +
 +
 +^Purpose  |To create a new village  |
 +^When to use  |When you want to automatically create a new village  |
 +^When to avoid  |  |
 +
 +This strategy will send Settlers to the given target. It is useful for example when you are training the settlers and want to send them out as soon as possible to avoid having them killed by an unexpected incoming attack.
 +
 +** Notes **
 +This strategy will keep trying to send settlers and never disable itself (TO CHECK).
 +
 +
 +==== Syntax ====
 +<code xml>
 +<strategy class="Settle" desc="DESCRIPTION" enabled="true" minPauseMinutes="MINPAUSE"
 +          runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID">
 +    <target x="TARGETX" y="TARGETY"/>
 +</strategy>
 +</code>
 +
 +==== Attributes and parameters ====
 +
 +|DESCRIPTION  |some optional description of your choice  |
 +|WAITFOR_UID  |See [[index|"Strategies"]]  |
 +|RUNWHILE_UID  |See [[index|"Strategies"]]  |
 +|UID  |Unique IDentifier. See [[index|"Strategies"]]  |
 +|MINPAUSE  |The minimum amount of time to wait between attempts  |
 +|TARGETX, TARGETY  |Map coordinates of a free slot  |
 +==== Examples ====
 +<code xml>
 +<strategy class="Settle" desc="Fonda villo" enabled="true" uid="s2937" minPauseMinutes="10">
 +       <target x="-76" y="-300"/>
 +</strategy>
 +</code>


Personal Tools