Differences

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

docs:strategies:levelresources [2010/09/09 09:58] (current)
xtian created
Line 1: Line 1:
 +====== Strategy: Levelresources ======
 +
 +
 +^Purpose  |Sends resources across own villages to distribute them evenly  |
 +^When to use  |  |
 +^When to avoid  |  |
 +
 +FIXME Description goes here
 +
 +**Notes**
 +
 +  * FIXME Notes go here
 +
 +==== Syntax ====
 +This is a "server strategy" not a "village strategy", and should be placed outside any <village></village> section.
 +
 +<code xml>
 +<serverStrategy class="LevelResources" enabled="true" uid="lvl01" desc="DESCRIPTION"
 +runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID" maxPauseMinutes="MAXPAUSE" minPauseMinutes="MINPAUSE" tolerance="TOLERANCE">
 +    <village enabled="true" villageUid="VILLAGEUID" receiveOnly="RECVONLY" merchants="MERCHANTS"/>
 +    <village enabled="true" villageUid="VILLAGEUID" receiveOnly="RECVONLY" merchants="MERCHANTS"/>
 +    <village enabled="true" villageUid="VILLAGEUID" receiveOnly="RECVONLY" merchants="MERCHANTS"/>
 +</serverStrategy>
 +</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"]]  |
 +|MAXPAUSE  |Max pause between runs, in minutes  |
 +|MINPAUSE  |Min pause between runs, in minutes  |
 +|TOLERANCE  |Won't run when village resource difference from total average is less than this value (optional)  |
 +|VILLAGEUID  |UID of village to level  |
 +|RECVONLY  |Can be "true" if the village only receives resources and doesn't send (optional)  |
 +|MERCHANTS  |Max merchants to use, default is all (optional)  |
 +==== Examples ====
 +FIXME Examples
 +<code xml>
 +<serverStrategy class="LevelResources" enabled="true" uid="lvl01" maxPauseMinutes="30" minPauseMinutes="2" tolerance="9000">
 +    <village enabled="true" villageUid="b02"/>
 +    <village enabled="true" merchants="15" villageUid="b03"/>
 +    <village enabled="true" villageUid="b04"  receiveOnly="true"/>
 +</serverStrategy>
 +</code>


Personal Tools