docs:nextversion:strategies:troopmanager [2010/03/13 23:34] gac Draft documentation |
docs:nextversion:strategies:troopmanager [2010/03/14 14:49] (current) gac |
| | ^Purpose |to manage troop movements in a village and between villages| | | ^Purpose |to manage troop movements in a village and between villages| |
| | ^When to use |when you want to send troops at a specific time to reinforce or attack or dodge attacks| | | ^When to use |when you want to send troops at a specific time to reinforce or attack or dodge attacks| |
| - | ^When to avoid |when you want to send very accurate timed waves or dodge close multiple waves| | + | ^When to avoid |when you want to send very accurate timed waves or dodge close multiple waves or have multiple incoming attacks| |
| | | | |
| | The TroopManager strategy supports several modes of operation: | | The TroopManager strategy supports several modes of operation: |
| | | | |
| | <code xml> | | <code xml> |
| - | <strategy class="TroopManager" desc="DESCRIPTION" minPauseMinutes="MINS" enabled="true" | + | <strategy class="TroopManager" desc="DESCRIPTION" minPauseMinutes="MINS" sleep="SLEEP" |
| - | runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> | + | enabled="true" runWhile="RUNWHILE_UID" waitFor="WAITFOR_UID" uid="UID"> |
| | <release enabled="RELEASE" /> | | <release enabled="RELEASE" /> |
| | <dodge enabled="DODGE" x="XCOORD" y="YCOORD" recall="RSECS" wait="WSECS" /> | | <dodge enabled="DODGE" x="XCOORD" y="YCOORD" recall="RSECS" wait="WSECS" /> |
| | x="XCOORD" y="YCOORD" | | x="XCOORD" y="YCOORD" |
| | </code> | | </code> |
| | + | |
| | ==== Attributes and parameters ==== | | ==== Attributes and parameters ==== |
| | | | |
| | |UID |Unique IDentifier. See [[index|"Strategies"]] | | | |UID |Unique IDentifier. See [[index|"Strategies"]] | |
| | |MINS|the time in minutes to wait before running again when no action is scheduled or attack detected| | | |MINS|the time in minutes to wait before running again when no action is scheduled or attack detected| |
| | + | |SLEEP|the time in seconds to wait in this strategy watching the clock rather than look at other villages. Longer will give better timing for this movement but may interfere with other village actions or multiple attacks; default is "60"| |
| | |DODGE|"false" if you want to report incoming attacks in log, "true" if you want any troops in the village to be sent away; default is "false"| | | |DODGE|"false" if you want to report incoming attacks in log, "true" if you want any troops in the village to be sent away; default is "false"| |
| | + | |RSECS|time in seconds before attack to send troops out and wait to recall troops; default is "30"| |
| | + | |WSECS|time in seconds to wake up before any movement and wait in village strategy. Should be less than RSECS * 2; default is "50"| |
| | |RELEASE|"false" if you want to leave any enemy troops in Gaul traps, "true" if you want to release them as soon as possible to allow traps to rebuild; default is "false"| | | |RELEASE|"false" if you want to leave any enemy troops in Gaul traps, "true" if you want to release them as soon as possible to allow traps to rebuild; default is "false"| |
| | |TARGETNAME |The name of the target village | | | |TARGETNAME |The name of the target village | |
| | <dodge enabled="true" x="0" y="0" recall="20" wait="30" /> | | <dodge enabled="true" x="0" y="0" recall="20" wait="30" /> |
| | <troops type="Phalanx" allowLess="true" min="1" randomise="false" enabled="true">1000</troops> | | <troops type="Phalanx" allowLess="true" min="1" randomise="false" enabled="true">1000</troops> |
| - | <time type="start" maxLateMinutes="5" movement="reinforce" coords="(0|0)" village="" desc="desc" format="dd/MM/yyyy HH:mm:ss">01/04/2010 20:30:00</time> | + | <time type="start" maxLateMinutes="5" movement="reinforce" coords="(0|0)" village="" desc="desc" |
| - | <time type="arrive" movement="reinforce" coords="(0|0)" village="" desc="desc" format="dd/MM/yyyy HH:mm:ss">01/04/2010 21:25:00</time> | + | format="dd/MM/yyyy HH:mm:ss">01/04/2010 20:30:00</time> |
| | + | <time type="arrive" movement="reinforce" coords="(0|0)" village="" desc="desc" |
| | + | format="dd/MM/yyyy HH:mm:ss">01/04/2010 21:25:00</time> |
| | </strategy> | | </strategy> |
| | </code> | | </code> |