<?xml version="1.0" encoding="utf-8"?>
<s1 title="KeepResources"><table><strong class="highlight"><![CDATA[]]></strong><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Usage: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>keepresource destination_coord res_to_keep [quantity if specified] </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Example: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>keepresource 111,222 f:1b 50m<br/>
keepresource OtherCity w:20m,i:20m 5m<br/>
keepresource 111,222 f:250m </p>
</td></tr><tr><td><strong class="highlight"><![CDATA[]]></strong><p>Default: </p>
</td><td><strong class="highlight"><![CDATA[]]></strong><p>none </p>
</td></tr></table><p>This goal will allow you to keep a specified amount of resources, and send all extra to another location. For cities on the same account, you can use the city name, coordinates, or &quot;any&quot; for the destination. For cities on another account, you must use coordinates for the destination. </p>
<p>In the 1st example above, the bot will keep 1 billion food in this city, and if it acquires over that, it will send the extra to 111,222 in increments of at least 50 million. </p>
<p>In the 2nd example above, the bot will keep 20 million lumber and 20 million iron, and send all extra to OtherCity in increments of at least 5 million. </p>
<p>Keepresource uses transports to send with by default. You can specify other troop types to send with. If specifying a troop type, the minimum batch MUST be included.<br/>
For example: <em>keepresources 111,222 w:20m 5m cavalry</em> </p>
<p>When not specifying a troop type other than transports, the last number (minimum batch) is optional. The bot will send as much over the &quot;kept&quot; amount as it has resources and transports available to, as long as it&apos;s at least the minimum batch specified. If no batch is specified, the bot sends any amount available over the &quot;kept&quot; amount (3rd example above). </p>
<p>By default the bot will only allow 1 mission per destination at a time in the rally. This means if you&apos;re sending to or returning from city A, then another send to city A will not happen until that one lands and returns. You can override this using the /slots switch. For example: </p>
<ul><li><source><![CDATA[keepresources /slots=3 111,222 w:20m 5m
keepresources 111,222 w:20m 5m /slots:2]]></source></li>
</ul>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/CategoryAllGoals">CategoryAllGoals</jump> <jump href="/wiki/CategoryResourceGoals">CategoryResourceGoals</jump> </p>
</s1>