From NEAT Portal Wiki
Jump to: navigation, search
(Valley Production Bonus)
(SafeValleyFarm)
 
(67 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
==ValleyMin==
 +
 +
{| class="wikitable"
 +
! style="text-align:left;" | Usage:
 +
| config valleymin:[level]
 +
|-
 +
! style="text-align:left;" | Example:
 +
|
 +
<font size="2" face="courier" color="#0000FF">config </font><font size="2" face="courier" color="#6699CC">valleymin</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">1</font>
 +
|}
 +
 +
This goal tells the bot the minimum level of valley you wish it to acquire for resource production. It must be used alongside [[Valley_Goals#Valley|config valley]] as a maximum. The bot will acquire the highest level valleys it can find first up to the maximum setting, and then acquire lower and lower ones until all slots are filled, or valleymin is reached.
 +
 +
<br>
 +
 
==Valley==
 
==Valley==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
| config valley:[switch]
+
| config valley:[level]
|-
 
! scope="row" | Example:
 
| config valley:10
 
 
|-
 
|-
! scope="row" | Switch:
+
! style="text-align:left;" | Example:
| 0 Disable Valley capture<br>
+
|
1 Capture level 1 valleys<br>
+
<font size="2" face="courier" color="#0000FF">config </font><font size="2" face="courier" color="#6699CC">valley</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">10</font>
2 Capture level 2 valleys<br>
 
3 Capture level 3 valleys<br>
 
4 Capture level 4 valleys<br>
 
5 Capture level 5 valleys<br>
 
6 Capture level 6 valleys<br>
 
7 Capture level 7 valleys<br>
 
8 Capture level 8 valleys<br>
 
9 Capture level 9 valleys<br>
 
10 Capture level 10 valleys
 
 
|}
 
|}
  
This goal tells the bot to capture valleys for increased resource production in your cities. The bot will automatically know to capture forests for cities with a higher production of lumber, hills for cities with a higher production of iron, and lakes for cities with a higher production of food. You will benefit more from valleys (more than 200k per hour production bonus) in a pure resource city of all lumber or all iron, rather than mixed fields with partial lumber and iron.  
+
This goal tells the bot to capture valleys for increased resource production in your cities. The bot will automatically know to capture forests for cities with a higher production of lumber, hills for cities with a higher production of iron, deserts for cities with a higher production of stone, and lakes for cities with a higher production of food. You will benefit more from valleys (more than 200k per hour production bonus) in a pure resource city of all lumber or all iron, rather than mixed fields with partial lumber and iron.  
 +
 
 +
If [[Valley_Goals#ValleyMin|config valleymin]] is present, the bot will use this config valley setting as the maximum level valley to obtain. Anytime a valley becomes available of a higher level (up to this maximum), the bot will drop the lowest level valley to upgrade to the higher one, until all valleys are of this level.
 +
 
 +
The bot will use any available hero for valley acquisition, unless specified otherwise in [[Hero_Goals#Valleyheroes|valleyheroes]].
 +
 
 +
<br>
  
 
===Valley Production Bonus===
 
===Valley Production Bonus===
Line 28: Line 37:
 
The following is a table listing the benefits given for each valley type and level.
 
The following is a table listing the benefits given for each valley type and level.
  
{| style="width: 50%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | || Grass<br>Food || Swamp<br>Food || Lake<br>Food || Hill<br>Iron || Desert<br>Stone || Forest<br>Lumber
+
! style="text-align:left;" | || Grass<br>Food || Swamp<br>Food || Lake<br>Food || Hill<br>Iron || Desert<br>Stone || Forest<br>Lumber
 
|-
 
|-
 
| lvl 1 || 3% || 5% || 8% || 5% || 5% || 5%
 
| lvl 1 || 3% || 5% || 8% || 5% || 5% || 5%
Line 49: Line 58:
 
| lvl 9 || 11% || 21% || 33% || 21% || 21% || 21%
 
| lvl 9 || 11% || 21% || 33% || 21% || 21% || 21%
 
|-
 
|-
| lvl 10 || 12% || 23% || 36% || 23% || 23% || 23
+
| lvl 10 || 12% || 23% || 36% || 23% || 23% || 23%
 
|}
 
|}
 +
 +
<br>
  
 
==Valleytroops ==
 
==Valleytroops ==
  
||~ Usage: || valleytroops level troops_to_send||
+
{| class="wikitable"
||~ Example: || valleytroops 1 s:5000<br>
+
! style="text-align:left;" | Usage:
valleytroops 2 s:5000<br>
+
| valleytroops [/type:string] [/level:#] [level#] troop-string
valleytroops 3 s:5000<br>
+
|-
valleytroops 4 s:10000<br>
+
! style="text-align:left;" | Example:
valleytroops 5 s:10000<br>
+
|  
valleytroops 6 s:50000<br>
+
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">1 </font><font size="2" face="courier" color="red">s:5000</font><br>
valleytroops 7 s:50000<br>
+
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">2 </font><font size="2" face="courier" color="red">s:5000</font><br>
valleytroops 8 s:100000<br>
+
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">3 </font><font size="2" face="courier" color="red">s:5000</font><br>
valleytroops 9 a:12800,sw:1,p:1,s:1,w:40000<br>
+
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">4 </font><font size="2" face="courier" color="red">s:10000</font><br>
valleytroops 10 a:19990,sw:1,p:1,s:1,w:60000||
+
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">5 </font><font size="2" face="courier" color="red">s:10000</font><br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">6 </font><font size="2" face="courier" color="red">s:50000</font><br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">7 </font><font size="2" face="courier" color="red">s:50000</font><br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">8 </font><font size="2" face="courier" color="red">s:100000</font><br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">9 </font><font size="2" face="courier" color="red">a:12800,sw:1,p:1,s:1,w:40000<br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="#A43900">10 </font><font size="2" face="courier" color="red">a:19990,sw:1,p:1,s:1,w:60000<br>
 +
<font size="2" face="courier" color="#0000FF">valleytroops </font><font size="2" face="courier" color="red">/level:10 /type:forest </font><font size="2" face="courier" color="#6699CC">s</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">100000</font>
 +
|-
 +
! style="text-align:left;" | Switch:
 +
|  
 +
<font size="2" face="courier" color="#000000">/</font><font size="2" face="courier" color="#6699CC">level</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">#</font><br>
 +
<font size="2" face="courier" color="#000000">/</font><font size="2" face="courier" color="#6699CC">type</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">valley_type</font><br>
 +
|-
 +
! style="text-align:left;" | Valley Types:
 +
|
 +
<font size="2" face="courier" color="#A43900">forest </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">fo</font><br>
 +
<font size="2" face="courier" color="#A43900">desert </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">d</font><br>
 +
<font size="2" face="courier" color="#A43900">hill </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">h</font><br>
 +
<font size="2" face="courier" color="#A43900">swamp </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">s</font><br>
 +
<font size="2" face="courier" color="#A43900">grassland </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">g</font><br>
 +
<font size="2" face="courier" color="#A43900">lake </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">l</font><br>
 +
<font size="2" face="courier" color="#A43900">flat </font><font size="2" face="courier" color="#000000">or</font> <font size="2" face="courier" color="#A43900">fl</font><br>
 +
|}
 +
 
 +
If you wish to change the default troops sent to each valley and flat while capturing valleys for resources, building npcs, or medal farming, you can specify the troops using this directive. If any level is omitted, the bot will use the default. In the above examples, the bot would use 5k scouts to attack level 1-3 valleys & flats, 10k scouts to attack level 4-5 valleys & flats, 50k scouts to attack level 6-7 valleys & flats, 100k scouts to attack level 8 valleys & flats, 12.8k archers/1 sword+pike+scout/40k warriors to attack level 9 valleys & flats, and 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats.
 +
 
 +
Optional switches for level and valley type may be added to override other valleytroop goals, or defaults. In the last two lines of examples above, the bot is instructed to use 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats, but if the level 10 valley is a forest, it will instead use 100k scouts. An option like this could, for instance, allow you to setup the bot to do your medal hunting with safer and slower troops, while grabbing the forests it needs for resource production with faster scouts.
 +
 
 +
===Default Valley Troops===
 +
 
 +
The default troops used to capture valleys, capture flats for npc building, etc.:
  
If you wish to change the default troops sent to each valley and flat while capturing valleys for resources, building npcs, or medal farming, you can specify the troops using this directive. If any level is omitted, the bot will use the default. In the above example, the bot would use 5k scouts to attack level 1-3 valleys & flats, 10k scouts to attack level 4-5 valleys & flats, 50k scouts to attack level 6-7 valleys & flats, 100k scouts to attack level 8 valleys & flats, 12.8k archers/1 sword+pike+scout/40k warriors to attack level 9 valleys & flats, and 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats.
+
{| class="wikitable"
 +
! style="text-align:left;" | || Warriors || Scout || Pikemen || Swordsmen || Cavalry || Archers
 +
|-
 +
| lvl 1 || 0 || 0 || 0 || 0 || 0 || 50
 +
|-
 +
| lvl 2 || 0 || 0 || 0 || 0 || 0 || 100
 +
|-
 +
| lvl 3 || 0 || 0 || 0 || 0 || 0 || 200
 +
|-
 +
| lvl 4 || 1200 || 1 || 1 || 1 || 0 || 400
 +
|-
 +
| lvl 5 || 2400 || 1 || 1 || 1 || 1 || 800
 +
|-
 +
| lvl 6 || 4800 || 1 || 1 || 1 || 1 || 1600
 +
|-
 +
| lvl 7 || 9600 || 1 || 1 || 1 || 1 || 3200
 +
|-
 +
| lvl 8 || 19200 || 1 || 1 || 1 || 1 || 6400
 +
|-
 +
| lvl 9 || 38400 || 1 || 1 || 1 || 1 || 12800
 +
|-
 +
| lvl 10 || 60000 || 1 || 1 || 1 || 1 || 19990
 +
|}
  
The default troops used to capture valleys, capture flats to build npcs, and medal farm is as follows:
+
<br>
  
||~ ||~ Warriors ||~ Scout ||~ Pikemen ||~ Swordsmen ||~ Archers||
+
The default troops used to medal hunt and valley farm:
||~ lvl 1 || 0 || 0 || 0 || 0 || 50||  
+
 
||~ lvl 2 || 0 || 0 || 0 || 0 || 100||  
+
{| class="wikitable"
||~ lvl 3 || 0 || 0 || 0 || 0 || 200||  
+
! style="text-align:left;" | || Warriors || Scout || Pikemen || Swordsmen || Cavalry || Archers || Ballista
||~ lvl 4 || 1200 || 1 || 1 || 1 || 400||  
+
|-
||~ lvl 5 || 2400 || 1 || 1 || 1 || 800||  
+
| lvl 1 || 0 || 0 || 0 || 0 || 0 || 50 || 0
||~ lvl 6 || 4800 || 1 || 1 || 1 || 1600||  
+
|-
||~ lvl 7 || 9600 || 1 || 1 || 1 || 3200||  
+
| lvl 2 || 0 || 0 || 0 || 0 || 0 || 100 || 0
||~ lvl 8 || 19200 || 1 || 1 || 1 || 6400||  
+
|-
||~ lvl 9 || 38400 || 1 || 1 || 1 || 12800||  
+
| lvl 3 || 0 || 0 || 0 || 0 || 0 || 200 || 0
||~ lvl 10 || 60000 || 1 || 1 || 1 || 19990||  
+
|-
 +
| lvl 4 || 1 || 1 || 1 || 1 || 0 || 400 || 0
 +
|-
 +
| lvl 5 || 1 || 1 || 1 || 1 || 1 || 1000 || 0
 +
|-
 +
| lvl 6 || 1 || 1 || 1 || 1 || 1 || 2000 || 0
 +
|-
 +
| lvl 7 || 1 || 1 || 1 || 1 || 1 || 5000 || 0
 +
|-
 +
| lvl 8 || 1 || 1 || 1 || 1 || 1 || 10000 || 1
 +
|-
 +
| lvl 9 || 1 || 1 || 1 || 1 || 1 || 20000 || 1000
 +
|-
 +
| lvl 10 || 1 || 1 || 1 || 1 || 1 || 25000 || 2000
 +
|}
 +
 
 +
<br>
  
 
==Valleylimit==
 
==Valleylimit==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| valleylimit min_troops
 
| valleylimit min_troops
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| valleylimit w:100k,a:50k
+
|
 +
<font size="2" face="courier" color="#0000FF">valleylimit </font><font size="2" face="courier" color="#6699CC">w</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">100k</font><font size="2" face="courier" color="#000000">,</font><font size="2" face="courier" color="#6699CC">a</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">50k
 
|}
 
|}
  
 
This directive works the same as npc10limit, only for attacking valleys. This tells the bot the minimum number of troops it must have in the city before it will attack another valley. In the example above, the bot must have 50k archers and 100k warriors before it will resume valley or medal farming.
 
This directive works the same as npc10limit, only for attacking valleys. This tells the bot the minimum number of troops it must have in the city before it will attack another valley. In the example above, the bot must have 50k archers and 100k warriors before it will resume valley or medal farming.
 +
 +
<br>
  
 
==Hunting==
 
==Hunting==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| config hunting:[switch]
 
| config hunting:[switch]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| ##0000FF|config## ##6699CC|hunting####000000|:####DF6020|5##  
+
|
 +
<font size="2" face="courier" color="#0000FF">config </font><font size="2" face="courier" color="#6699CC">hunting</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">5</font>
 +
|-
 +
! style="text-align:left;" | Switch:
 +
|  
 +
<font size="2" face="courier" color="#A43900">0</font> Do not hunt for medals<br>
 +
<font size="2" face="courier" color="#A43900">1</font> Hunt for medals in level 2 to 3 valleys<br>
 +
<font size="2" face="courier" color="#A43900">2</font> Hunt for medals in level 4 to 6 valleys<br>
 +
<font size="2" face="courier" color="#A43900">3</font> Hunt for medals in level 7 to 9 valleys<br>
 +
<font size="2" face="courier" color="#A43900">4</font> Hunt for medals in level 9 & 10 valleys<br>
 +
<font size="2" face="courier" color="#A43900">5</font> Hunt for medals in level 10 valleys only<br>
 +
<font size="2" face="courier" color="#A43900">6</font> Hunt for medals in level 6 valleys<br>
 +
<font size="2" face="courier" color="#A43900">7</font> Hunt for medals in level 7 valleys<br>
 +
<font size="2" face="courier" color="#A43900">8</font> Hunt for medals in level 8 valleys<br>
 +
<font size="2" face="courier" color="#A43900">9</font> Hunt for medals in level 9 valleys<br>
 +
<font size="2" face="courier" color="#A43900">10</font> Hunt for medals in level 10 valleys
 
|}
 
|}
||~ Switch: || 0 Do not hunt for medals<br>
 
1 Hunt for medals in level 1 to 3 valleys<br>
 
2 Hunt for medals in level 4 to 6 valleys<br>
 
3 Hunt for medals in level 7 & 8 valleys<br>
 
4 Hunt for medals in level 9 & 10 valleys<br>
 
5 Hunt for medals in level 10 valleys only||
 
  
By enabling this goal, the bot is instructed to farm the appropriate levels of valleys for medals. The bot will abandon 1 or more of your valleys to free up slots to hunt with. The bot hunts for medals via the catch & release method - capturing a valley and abandoning it before the next attack lands. The bot will use the specified valleytroops for medal hunting, or the default if not set. The nearest valley of the right level that is within the maximum miles for medal farming as set in [[[ggeneral | distancepolicy]]] will be used, unless specified otherwise with huntingpos or huntingtype.
+
By enabling this goal, the bot is instructed to farm the appropriate levels of valleys for medals. The bot will abandon 1 or more of your valleys to free up slots to hunt with. The bot hunts for medals via the catch & release method - capturing a valley and abandoning it before the next attack lands. The bot will use the specified valleytroops for medal hunting, or the default if not set. The nearest valley of the right level that is within the maximum miles for medal farming as set in [[General_Goals#Distancepolicy|distancepolicy]] will be used, unless specified otherwise with huntingpos or huntingtype.
 +
 
 +
The bot will use any available hero for hunting, unless specified otherwise in [[Hero_Goals#Valleyheroes|valleyheroes]].
 +
 
 +
<br>
  
 
==Huntingpos ==
 
==Huntingpos ==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| huntingpos coords
 
| huntingpos coords
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| huntingpos 111,222
+
|
 +
<font size="2" face="courier" color="#0000FF">huntingpos </font><font size="2" face="courier" color="#A43900">111,222</font>
 
|}
 
|}
  
 
Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to medal hunt only at the specified coordinates.
 
Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to medal hunt only at the specified coordinates.
 +
 +
<br>
  
 
==Huntingtype==
 
==Huntingtype==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| huntingtype valley_type
 
| huntingtype valley_type
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| huntingtype desert
+
|
 +
<font size="2" face="courier" color="#0000FF">huntingtype </font><font size="2" face="courier" color="#A43900">desert</font>
 +
|-
 +
! style="text-align:left;" | Valley Types:
 +
|
 +
<font size="2" face="courier" color="#A43900">forest</font><br>
 +
<font size="2" face="courier" color="#A43900">hill</font><br>
 +
<font size="2" face="courier" color="#A43900">desert</font><br>
 +
<font size="2" face="courier" color="#A43900">lake</font><br>
 +
<font size="2" face="courier" color="#A43900">swamp</font><br>
 +
<font size="2" face="courier" color="#A43900">grassland</font><br>
 +
<font size="2" face="courier" color="#A43900">flat</font>
 
|}
 
|}
||~ Valley Types: || forest<br>
 
hill<br>
 
desert<br>
 
lake<br>
 
swamp<br>
 
grasslands||
 
  
Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to restrict it's medal hunting to only valleys of this type. In the example above, the bot will only attempt to hunt for medals in deserts found within the number of miles specified in [[[ggeneral | distancepolicy]]].
+
Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to restrict it's medal hunting to only valleys of this type. In the example above, the bot will only attempt to hunt for medals in deserts found within the number of miles specified in [[General_Goals#Distancepolicy|distancepolicy]].
 +
 
 +
<br>
  
 
==ValleyFarming==
 
==ValleyFarming==
  
||~ Usage: || config valleyfarming:[level]<br>
+
{| class="wikitable"
valleyfarming forest_miles desert_miles hill_miles swamp_miles grassland_miles lake_miles||
+
! style="text-align:left;" | Usage:
||~ Example: || config valleyfarming:10<br>
+
| config valleyfarming:[level]<br>
valleyfarming 5 0 5 0 0 0||
+
valleyfarming forest_miles desert_miles hill_miles swamp_miles grassland_miles lake_miles
 +
|-
 +
! style="text-align:left;" | Example:
 +
|  
 +
<font size="2" face="courier" color="#0000FF">config </font><font size="2" face="courier" color="#6699CC">valleyfarming</font><font size="2" face="courier" color="#000000">:</font><font size="2" face="courier" color="#A43900">10</font><br>
 +
<font size="2" face="courier" color="#0000FF">valleyfarming </font><font size="2" face="courier" color="#A43900">5 0 5 0 0 0</font>
 +
|}
  
 
Enabling valley farming will tell the bot you want it to continually attack nearby valleys for extra resources. In the above example, config valleyfarming:10 tells the bot to farm level 10 valleys, and valleyfarming 5 0 5 0 0 0 tells the bot that you want it to farm up to 5 miles for forests and hills, but not farm any of the other types.
 
Enabling valley farming will tell the bot you want it to continually attack nearby valleys for extra resources. In the above example, config valleyfarming:10 tells the bot to farm level 10 valleys, and valleyfarming 5 0 5 0 0 0 tells the bot that you want it to farm up to 5 miles for forests and hills, but not farm any of the other types.
  
 
If you enable config valleyfarming, but do not specify the types of valleys to farm, the bot will farm valleys of the same resource type as the city, eg: the bot will farm forests if your city is mostly lumber.
 
If you enable config valleyfarming, but do not specify the types of valleys to farm, the bot will farm valleys of the same resource type as the city, eg: the bot will farm forests if your city is mostly lumber.
 +
 +
The bot will use any available hero for valleyfarming, unless specified otherwise in [[Hero_Goals#Valleyheroes|valleyheroes]].
 +
 +
<br>
  
 
==SafeValleyFarm==
 
==SafeValleyFarm==
  
{| style="width: 25%; text-align:center" border="1"
+
{| class="wikitable"
! scope="row" | Usage:
+
! style="text-align:left;" | Usage:
 
| safevalleyfarm level[,level,level]
 
| safevalleyfarm level[,level,level]
 
|-
 
|-
! scope="row" | Example:
+
! style="text-align:left;" | Example:
| safevalleyfarm 9,10
+
|
 +
<font size="2" face="courier" color="#0000FF">safevalleyfarm </font><font size="2" face="courier" color="#A43900">9</font><font size="2" face="courier" color="#000000">,</font><font size="2" face="courier" color="#A43900">10</font>
 
|}
 
|}
  
This directive will tell the bot to attempt to find and farm for resources and medals within valleys of the specified level that it can safely hit for zero losses. The bot will first scout all valleys of the right levels within it's valley capturing radius as specified in [[[ggeneral | distancepolicy]]]. It is recommend to keep the number of miles to around 10 or less for this, otherwise the bot will spend all it's time scouting instead of actually attacking. When it finds valleys it's able to hit, it stores their coordinates for future attacking.
+
This directive will tell the bot to attempt to find and farm for resources and medals within valleys of the specified level that it can safely hit for zero losses. The bot will first scout all valleys of the right levels within it's valley capturing radius as specified in [[General_Goals#Distancepolicy|distancepolicy]]. It is recommend to keep the number of miles to around 10 or less for this, otherwise the bot will spend all it's time scouting instead of actually attacking. When it finds valleys it's able to hit, it stores their coordinates for future attacking.
 +
 
 +
The bot will use any available hero for safevalleyfarming, unless specified otherwise in [[Hero_Goals#Valleyheroes|valleyheroes]].
  
//The following rules are applied for safe farming://
+
'''The following rules are applied for safe farming:'''
 
* with a valley that has only archers on it, 1 scout and as many cavs as there are archers on the valley are sent.
 
* with a valley that has only archers on it, 1 scout and as many cavs as there are archers on the valley are sent.
 
* with a valley that has no cavs and no archers, only archers are sent with a quantity based on the valley level.
 
* with a valley that has no cavs and no archers, only archers are sent with a quantity based on the valley level.
* with a valley that has cavs and no archers but up to 2 layers, archers with a quantity based on the valley level, accompanied with 1 balista, 10 pike and 10 swordsmen are sent.
+
* with a valley that has cavs and no archers but up to 2 layers, archers with a quantity based on the valley level, accompanied with 1 balista, 1 pike and 1 swordsmen are sent.
 +
 
 +
'''The following quantites of archers for each valley level are used:'''<br>
  
//The following quantites of archers for each valley level are used://
 
 
1: 50 - 2: 100 - 3: 200 - 4: 500 - 5: 1000 - 6: 2000 - 7: 4000 - 8: 8000 - 9: 15000 - 10: 25000
 
1: 50 - 2: 100 - 3: 200 - 4: 500 - 5: 1000 - 6: 2000 - 7: 4000 - 8: 8000 - 9: 15000 - 10: 25000
  
Line 177: Line 296:
 
Saving goals with the same list of valley levels will not disrupt valley farming operations. If however you change the valley levels, the list of valleys to farm is reset and scouting will have to be performed again. To stop farming simply comment or remove the safevalleyfarm goal. On every reconnection, the list of valleys 10 miles around your main is evaluated to see if a valley level has changed. If this is the case, safe farming is returned to a clear state and scouting restarts with a fresh list of valleys.
 
Saving goals with the same list of valley levels will not disrupt valley farming operations. If however you change the valley levels, the list of valleys to farm is reset and scouting will have to be performed again. To stop farming simply comment or remove the safevalleyfarm goal. On every reconnection, the list of valleys 10 miles around your main is evaluated to see if a valley level has changed. If this is the case, safe farming is returned to a clear state and scouting restarts with a fresh list of valleys.
  
//Limitations://
+
'''Limitations:'''
* Safe valley farming cannot be used at the same time as config valley, valleyfarming or hunting and will not perform any operations.
+
* Safe valley farming cannot be used at the same time as config hunting and will not perform any operations.
 
* There is currently no way to select what type of valleys you want to farm, only the levels.
 
* There is currently no way to select what type of valleys you want to farm, only the levels.
 
* There is currently no way to specify what troops to use to attack a valley.
 
* There is currently no way to specify what troops to use to attack a valley.
 
* Make sure you hold all your valleys before activating safe valley farming. You do not want to capture valleys with safe valley farming.
 
* Make sure you hold all your valleys before activating safe valley farming. You do not want to capture valleys with safe valley farming.
* There is still a small chance that an attack on a valley sent before maintenance hits the wrong level of valley after maintenance yielding losses. There is code to try and recall if the valley levels, but it can run only if the hit would occur while Y.A.E.B. is connected.
+
* There is still a small chance that an attack on a valley sent before maintenance hits the wrong level of valley after maintenance yielding losses. There is code to try and recall if the valley levels, but it can run only if the hit would occur while the bot is connected.
 +
 
 +
<br>
 +
 
 +
<br>
 +
 
 +
<br>
 +
 
 +
<br>
 +
 
 +
<br>
 +
 
 +
<br>
 +
 
 +
<br>

Latest revision as of 04:48, 16 August 2012

ValleyMin

Usage: config valleymin:[level]
Example:

config valleymin:1

This goal tells the bot the minimum level of valley you wish it to acquire for resource production. It must be used alongside config valley as a maximum. The bot will acquire the highest level valleys it can find first up to the maximum setting, and then acquire lower and lower ones until all slots are filled, or valleymin is reached.


Valley

Usage: config valley:[level]
Example:

config valley:10

This goal tells the bot to capture valleys for increased resource production in your cities. The bot will automatically know to capture forests for cities with a higher production of lumber, hills for cities with a higher production of iron, deserts for cities with a higher production of stone, and lakes for cities with a higher production of food. You will benefit more from valleys (more than 200k per hour production bonus) in a pure resource city of all lumber or all iron, rather than mixed fields with partial lumber and iron.

If config valleymin is present, the bot will use this config valley setting as the maximum level valley to obtain. Anytime a valley becomes available of a higher level (up to this maximum), the bot will drop the lowest level valley to upgrade to the higher one, until all valleys are of this level.

The bot will use any available hero for valley acquisition, unless specified otherwise in valleyheroes.


Valley Production Bonus

The following is a table listing the benefits given for each valley type and level.

Grass
Food
Swamp
Food
Lake
Food
Hill
Iron
Desert
Stone
Forest
Lumber
lvl 1 3% 5% 8% 5% 5% 5%
lvl 2 4% 7% 11% 7% 7% 7%
lvl 3 5% 9% 14% 9% 9% 9%
lvl 4 6% 11% 17% 11% 11% 11%
lvl 5 7% 13% 21% 13% 13% 13%
lvl 6 8% 15% 24% 15% 15% 15%
lvl 7 9% 17% 27% 17% 17% 17%
lvl 8 10% 19% 30% 19% 19% 19%
lvl 9 11% 21% 33% 21% 21% 21%
lvl 10 12% 23% 36% 23% 23% 23%


Valleytroops

Usage: valleytroops [/type:string] [/level:#] [level#] troop-string
Example:

valleytroops 1 s:5000
valleytroops 2 s:5000
valleytroops 3 s:5000
valleytroops 4 s:10000
valleytroops 5 s:10000
valleytroops 6 s:50000
valleytroops 7 s:50000
valleytroops 8 s:100000
valleytroops 9 a:12800,sw:1,p:1,s:1,w:40000
valleytroops 10 a:19990,sw:1,p:1,s:1,w:60000
valleytroops /level:10 /type:forest s:100000

Switch:

/level:#
/type:valley_type

Valley Types:

forest or fo
desert or d
hill or h
swamp or s
grassland or g
lake or l
flat or fl

If you wish to change the default troops sent to each valley and flat while capturing valleys for resources, building npcs, or medal farming, you can specify the troops using this directive. If any level is omitted, the bot will use the default. In the above examples, the bot would use 5k scouts to attack level 1-3 valleys & flats, 10k scouts to attack level 4-5 valleys & flats, 50k scouts to attack level 6-7 valleys & flats, 100k scouts to attack level 8 valleys & flats, 12.8k archers/1 sword+pike+scout/40k warriors to attack level 9 valleys & flats, and 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats.

Optional switches for level and valley type may be added to override other valleytroop goals, or defaults. In the last two lines of examples above, the bot is instructed to use 19990 archers/1 sword+pike+scout/60k warriors to attack level 10 valleys & flats, but if the level 10 valley is a forest, it will instead use 100k scouts. An option like this could, for instance, allow you to setup the bot to do your medal hunting with safer and slower troops, while grabbing the forests it needs for resource production with faster scouts.

Default Valley Troops

The default troops used to capture valleys, capture flats for npc building, etc.:

Warriors Scout Pikemen Swordsmen Cavalry Archers
lvl 1 0 0 0 0 0 50
lvl 2 0 0 0 0 0 100
lvl 3 0 0 0 0 0 200
lvl 4 1200 1 1 1 0 400
lvl 5 2400 1 1 1 1 800
lvl 6 4800 1 1 1 1 1600
lvl 7 9600 1 1 1 1 3200
lvl 8 19200 1 1 1 1 6400
lvl 9 38400 1 1 1 1 12800
lvl 10 60000 1 1 1 1 19990


The default troops used to medal hunt and valley farm:

Warriors Scout Pikemen Swordsmen Cavalry Archers Ballista
lvl 1 0 0 0 0 0 50 0
lvl 2 0 0 0 0 0 100 0
lvl 3 0 0 0 0 0 200 0
lvl 4 1 1 1 1 0 400 0
lvl 5 1 1 1 1 1 1000 0
lvl 6 1 1 1 1 1 2000 0
lvl 7 1 1 1 1 1 5000 0
lvl 8 1 1 1 1 1 10000 1
lvl 9 1 1 1 1 1 20000 1000
lvl 10 1 1 1 1 1 25000 2000


Valleylimit

Usage: valleylimit min_troops
Example:

valleylimit w:100k,a:50k

This directive works the same as npc10limit, only for attacking valleys. This tells the bot the minimum number of troops it must have in the city before it will attack another valley. In the example above, the bot must have 50k archers and 100k warriors before it will resume valley or medal farming.


Hunting

Usage: config hunting:[switch]
Example:

config hunting:5

Switch:

0 Do not hunt for medals
1 Hunt for medals in level 2 to 3 valleys
2 Hunt for medals in level 4 to 6 valleys
3 Hunt for medals in level 7 to 9 valleys
4 Hunt for medals in level 9 & 10 valleys
5 Hunt for medals in level 10 valleys only
6 Hunt for medals in level 6 valleys
7 Hunt for medals in level 7 valleys
8 Hunt for medals in level 8 valleys
9 Hunt for medals in level 9 valleys
10 Hunt for medals in level 10 valleys

By enabling this goal, the bot is instructed to farm the appropriate levels of valleys for medals. The bot will abandon 1 or more of your valleys to free up slots to hunt with. The bot hunts for medals via the catch & release method - capturing a valley and abandoning it before the next attack lands. The bot will use the specified valleytroops for medal hunting, or the default if not set. The nearest valley of the right level that is within the maximum miles for medal farming as set in distancepolicy will be used, unless specified otherwise with huntingpos or huntingtype.

The bot will use any available hero for hunting, unless specified otherwise in valleyheroes.


Huntingpos

Usage: huntingpos coords
Example:

huntingpos 111,222

Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to medal hunt only at the specified coordinates.


Huntingtype

Usage: huntingtype valley_type
Example:

huntingtype desert

Valley Types:

forest
hill
desert
lake
swamp
grassland
flat

Instead of allowing the bot to farm medals at the nearest valley of the level specified in config hunting, this goal will tell the bot to restrict it's medal hunting to only valleys of this type. In the example above, the bot will only attempt to hunt for medals in deserts found within the number of miles specified in distancepolicy.


ValleyFarming

Usage: config valleyfarming:[level]

valleyfarming forest_miles desert_miles hill_miles swamp_miles grassland_miles lake_miles

Example:

config valleyfarming:10
valleyfarming 5 0 5 0 0 0

Enabling valley farming will tell the bot you want it to continually attack nearby valleys for extra resources. In the above example, config valleyfarming:10 tells the bot to farm level 10 valleys, and valleyfarming 5 0 5 0 0 0 tells the bot that you want it to farm up to 5 miles for forests and hills, but not farm any of the other types.

If you enable config valleyfarming, but do not specify the types of valleys to farm, the bot will farm valleys of the same resource type as the city, eg: the bot will farm forests if your city is mostly lumber.

The bot will use any available hero for valleyfarming, unless specified otherwise in valleyheroes.


SafeValleyFarm

Usage: safevalleyfarm level[,level,level]
Example:

safevalleyfarm 9,10

This directive will tell the bot to attempt to find and farm for resources and medals within valleys of the specified level that it can safely hit for zero losses. The bot will first scout all valleys of the right levels within it's valley capturing radius as specified in distancepolicy. It is recommend to keep the number of miles to around 10 or less for this, otherwise the bot will spend all it's time scouting instead of actually attacking. When it finds valleys it's able to hit, it stores their coordinates for future attacking.

The bot will use any available hero for safevalleyfarming, unless specified otherwise in valleyheroes.

The following rules are applied for safe farming:

  • with a valley that has only archers on it, 1 scout and as many cavs as there are archers on the valley are sent.
  • with a valley that has no cavs and no archers, only archers are sent with a quantity based on the valley level.
  • with a valley that has cavs and no archers but up to 2 layers, archers with a quantity based on the valley level, accompanied with 1 balista, 1 pike and 1 swordsmen are sent.

The following quantites of archers for each valley level are used:

1: 50 - 2: 100 - 3: 200 - 4: 500 - 5: 1000 - 6: 2000 - 7: 4000 - 8: 8000 - 9: 15000 - 10: 25000

Valleys get farmed at most once per hour, so it is possible that not all found valleys will be farmed due to closer valleys being ready to hit again.

Saving goals with the same list of valley levels will not disrupt valley farming operations. If however you change the valley levels, the list of valleys to farm is reset and scouting will have to be performed again. To stop farming simply comment or remove the safevalleyfarm goal. On every reconnection, the list of valleys 10 miles around your main is evaluated to see if a valley level has changed. If this is the case, safe farming is returned to a clear state and scouting restarts with a fresh list of valleys.

Limitations:

  • Safe valley farming cannot be used at the same time as config hunting and will not perform any operations.
  • There is currently no way to select what type of valleys you want to farm, only the levels.
  • There is currently no way to specify what troops to use to attack a valley.
  • Make sure you hold all your valleys before activating safe valley farming. You do not want to capture valleys with safe valley farming.
  • There is still a small chance that an attack on a valley sent before maintenance hits the wrong level of valley after maintenance yielding losses. There is code to try and recall if the valley levels, but it can run only if the hit would occur while the bot is connected.