<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>CategoryCombatGoals</title><revhistory><revision><revnumber>4</revnumber><date>2012-10-22 01:18:59</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-09-26 23:36:03</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-08-26 03:47:07</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-08-21 02:29:01</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>The goals in this section pertain to anything combat related for your city, primarily the defense of it. </para><para><orderedlist><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/AttackGap">AttackGap</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefenseCooldown">DefenseCooldown</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefensePolicy">DefensePolicy</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Embassy">Embassy</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Gate">Gate</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/GatePolicy">GatePolicy</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Hiding">Hiding</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/MonitorArmy">MonitorArmy</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarRules">WarRules</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarTown">WarTown</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarTownPolicy">WarTownPolicy</ulink></listitem></orderedlist><!--The macro FullSearchCached caused an error and should be blacklisted. It returned the data '

' which caused the docbook-formatter to choke. Please file a bug.--> </para><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/AttackGap">AttackGap</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config attackgap:[seconds]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config attackgap:3 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>config attackgap:6 </para></entry></row></tbody></tgroup></informaltable><para>This goal allows you to instruct the bot how many seconds in between attacking waves constitutes a separate attack for purposes of evasion. </para><para>With the example above, the bot will consider all attacks at least 3 seconds apart as separate attacks, and try to evade each of them. If the time between is less, it will evade them together only once. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefenseCooldown">DefenseCooldown</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config defensecooldown:[minutes]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config defensecooldown:10 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>config defensecooldown:30 </para></entry></row></tbody></tgroup></informaltable><para>This goal allows you to instruct how long after an attack hits you - or is recalled - for the bot to consider you still &quot;under attack&quot;.  </para><para>Junk attacks will not trigger defensecooldown to start.  </para><para>The bot uses the defensecooldown period for a number of things, one is to keep the embassy open when using <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Embassy#">config Embassy:2</ulink>. Another is for the <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefensePolicy#">DefensePolicy</ulink> goal's switches such as autotruce or autospeech.  </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefensePolicy">DefensePolicy</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage: </para></entry><entry colsep="1" rowsep="1"><para>defensepolicy [/switches] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>defensepolicy /junktroop:500 /usespeech:5 /usetruce:2 /usewarhorn:1 /usecorselet:1 /usepenicillin:0 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>defensepolicy /junktroop:1000 /usewarhorn:0 /usecorselet:0 /usepenicillin:0 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Switch: </para></entry><entry colsep="1" rowsep="1"><para>/junktroop:[quantity]</para><para>/usecorselet:[0/1]  /useultracorselet:[0/1]</para><para>/usewarhorn:[0/1]  /useivoryhorn:[0/1]</para><para>/usepenicillin:[0/1]</para><para>/usetruce:[loyalty]</para><para>/usespeech:[loyalty] </para></entry></row></tbody></tgroup></informaltable><para>This policy allows the player to control various defensive capabilities of the bot. Additional options will be added to this command in future revisions. </para><para>The /junktroop switch allows the player to set the number of troops under which an attack is considered junk. A junk attack will not trigger the attack warning, gatepolicy, hiding, defensepolicy, or other defensive measures. </para><para>The /usespeech and /usetruce switches allow the player to designate the use of truce agreements or speech texts at the specified loyalty. </para><para>The /usepenicillin, /usewarhorn, and /usecorselet switches allow the player to have the bot automatically apply these items when under attack. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Embassy">Embassy</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config embassy:[value]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config embassy:1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>config embassy:1 </para></entry></row></tbody></tgroup></informaltable><para>This goal allows you to instruct the bot how you want your embassy box checked. 1 will keep the embassy always open, 0 will keep the embassy always closed, and 2 will open the embassy only during an attack and shortly after an attack based on the <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/DefenseCooldown#">DefenseCooldown</ulink> setting.  </para><para>Default is '1' for always open. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Gate">Gate</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config gate:[minutes]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config gate:1</para><para>config gate:0.1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>config gate:0 </para></entry></row></tbody></tgroup></informaltable><para>With this option activated the bot will open and close the gates depending on the type of attack waves approaching the city. Town defense is quite complex; the bot can defend your city when it is strong, weak, or extremely weak. In general, if you have 300,000 archers the bot will allow scout bombs to hit; below 100,000 archers, the bot will close the gate when attacked but will open the gate to deal with small loyalty attacks. When used along with <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/GatePolicy#">GatePolicy</ulink>, you can instruct the bot what types of attacks to open for, and what to close for. </para><para>In the 1st example above, the bot would open or close gates 1 minute before an incoming attack. In the 2nd example, the bot would open or close gates 0.1 minute, or 6 seconds, before an incoming attack. </para><para>Note that the bot will automatically take into account the &quot;Server time difference&quot; shown at login. This is the time difference between your computer's clock and evony's clock.  </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/GatePolicy">GatePolicy</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>gatepolicy &lt;no attack&gt; &lt;regular attack&gt; &lt;scout bomb&gt; &lt;mixed attack&gt; &lt;maintenance&gt;</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>gatepolicy 2 1 2 0 1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>gatepolicy 0 0 0 0 0 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Switch:</para></entry><entry colsep="1" rowsep="1"><para>0 - Bot's Choice</para><para>1 - Open Gate</para><para>2 - Close Gate </para></entry></row></tbody></tgroup></informaltable><para>This policy sets the actions to be taken by your bot in controlling the gate when your city is under attack. In order for gatepolicy to operate, you must also use config <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Gate#">Gate</ulink>. The bot can respond by deciding on its own if it should be opening/closing, or by always opening, or by always closing the gates for each type of scenario: no attack, regular attack, scout bomb, mixed attack, and maintenance with this policy.  </para><para>In the example above, with no incoming attacks the bot will always keep gates closed; with regular incoming attacks it will always keep gates open; with an incoming scout bomb it will always close gates; with a mixed attack it will decide on its own whether to open or close; and for maintenance it will always open gates. </para><para>It is important to note that <emphasis role="strong">regular attack</emphasis> means any attack that is not a scout bomb, and <emphasis role="strong">mixed attack</emphasis> means specifically both scout bombs and regular attacks landing within the same response period. Mixed attack does not mean mixed troops like a mech hit and a tradefire and a cav smack at the same time. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/Hiding">Hiding</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config hiding:[minutes]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config hiding:0.5 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default:</para></entry><entry colsep="1" rowsep="1"><para>config hiding:0 (off) </para></entry></row></tbody></tgroup></informaltable><para>When enabled, the hiding goal will attempt to hide resources and excess troops when under attack by moving a rainbow and resources. This will ensure you have sufficient resources and troops to continue defending. This goal is very useful when your city is still weak; if there are more troops/layers in your city than open rally spots can accommodate, then the rainbow hiding may not be effective. </para><para>The bot <emphasis role="strong">requires an available hero</emphasis> in the town to send the evasion attack for the rainbow. It will not demote the mayor for this purpose. If all heroes are out farming or the rally spots are all full, hiding will fail. Therefore, you should use <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/HomeHeroes#">HomeHeroes</ulink> or <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/KeepAttHome#">KeepAttHome</ulink> with this goal. </para><para>In the example above, the bot will attempt to hide troops and resources 30 seconds prior to the attack landing. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/MonitorArmy">MonitorArmy</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>N/A</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>N/A </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>N/A </para></entry></row></tbody></tgroup></informaltable><para>This goal doesn't do anything. It's kinda like an urban legend. It never worked, not on Neat or YAEB. Some knucklehead added the goal name so that it wouldn't error but never made it do anything. I have this entry in the wiki only because people ask why it's not working or where they can find info on it <inlinemediaobject><imageobject><imagedata depth="15" fileref="http://guide.neatportal.com/moin_static/explorer/img/smile.png" width="15"/></imageobject><textobject><phrase>:)</phrase></textobject></inlinemediaobject> Sorry! </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarRules">WarRules</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config warrules:[minutes]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config warrules:1 </para></entry></row></tbody></tgroup></informaltable><para>Activating this goal will send a message in alliance chat to your alliance giving them minimal information regarding an incoming attack on your city. </para><para>When the first non-junk attack is sent, the bot will send the message to alliance chat. It will send updates with changes in attacks or new attacks every X minutes as specified in the goal. If no new attacks are added, or current attacks are not changed, then it will only send a reminder every X*5 minutes as specified in the goal. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarTown">WarTown</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>config wartown:[switch]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>config wartown:1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Switch: </para></entry><entry colsep="1" rowsep="1"><para>0 = off</para><para>1 = on (traininghero can move in/out) </para><para> 2 = on (traininghero remains in city) </para></entry></row></tbody></tgroup></informaltable><para>With this goal enabled, the bot will lock down most troop movements in preparation of war. No npc farming runs, <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/KeepResource#">KeepResource</ulink>, <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/SendResource#">SendResource</ulink>, <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/KeepTroop#">KeepTroop</ulink>, or <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/SendTroop#">SendTroop</ulink> goals will be performed with this enabled. </para><para>When this goal is set to 1, the <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/TrainingHero#">TrainingHero</ulink> may move freely into and out of the city. When this goal is set to 2, the <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/TrainingHero#">TrainingHero</ulink> will remain in the city if/when it lands there. </para><para> If you want to easily recall all your marching armies after setting this goal, you can run the &quot;recallall&quot; script command from the city. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarTownPolicy">WarTownPolicy</ulink></title><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage:</para></entry><entry colsep="1" rowsep="1"><para>wartownpolicy start_time end_time [start_time end_time start_time end_time]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example:</para></entry><entry colsep="1" rowsep="1"><para>wartownpolicy 06:00 12:00 </para></entry></row></tbody></tgroup></informaltable><para>This policy will tell the bot to cease attacks on npcs, valleys, etc., and keep all resource and troop transport missions home in preparation of war at a set schedule. In the example above, the bot would halt all farming attacks and troop/resource transport missions from 6 to 12, and perform as normal the rest of the time. You can add multiple start and end times to this policy, e.g., wartownpolicy 06:00 12:00 5:00 23:00. This policy may be wise to use in conjunction with <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/SchedulePolicy#">SchedulePolicy</ulink> so that you can ensure your farm runs are completed and home (and therefore troops healed) before the bot shuts down at a set schedule. </para><para>Note: This policy has no effect unless <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/WarTown#">config wartown:1 or config wartown:2</ulink> is set. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/CategoryCombatGoals/wiki/CategoryGoals#">CategoryGoals</ulink> </para></section></article>