<?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>GatePolicy</title><revhistory><revision><revnumber>5</revnumber><date>2013-07-04 19:39:38</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>4</revnumber><date>2013-05-30 14:29:52</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2013-05-30 14:29:37</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-09-15 22:34:39</date><authorinitials>Susannah</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-08-26 02:05:54</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><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/GatePolicy/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><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/GatePolicy/wiki/CategoryAllGoals#">CategoryAllGoals</ulink> <ulink url="http://guide.neatportal.com/wiki/GatePolicy/wiki/CategoryCombatGoals#">CategoryCombatGoals</ulink> </para></article>