<?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>ScriptCity</title><revhistory><revision><revnumber>16</revnumber><date>2014-02-10 18:05:00</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>15</revnumber><date>2013-10-07 20:28:09</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>14</revnumber><date>2013-02-28 02:46:44</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>13</revnumber><date>2013-02-28 02:28:29</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>12</revnumber><date>2012-12-23 18:05:38</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>11</revnumber><date>2012-10-24 01:03:08</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>10</revnumber><date>2012-10-24 01:02:39</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>9</revnumber><date>2012-10-24 01:02:07</date><authorinitials>Romulus</authorinitials><revremark>Renamed from 'CategoryCity'.</revremark></revision><revision><revnumber>8</revnumber><date>2012-10-22 01:41:44</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>7</revnumber><date>2012-10-22 01:30:38</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-10-22 01:30:26</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-10-21 03:10:54</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-10-21 03:08:10</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-10-21 02:47:38</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-10-21 02:47:24</date><authorinitials>Inanna</authorinitials><revremark>Renamed from 'CategoryCityScripts'.</revremark></revision><revision><revnumber>1</revnumber><date>2012-09-05 13:15:41</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><para>The script commands in this section pertain to your city. </para><para><orderedlist><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Abandon">Abandon</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/AbandonTown">AbandonTown</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/BuildCity">BuildCity</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/BuildingGoals">BuildingGoals</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelBuildcity">CancelBuildcity</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelBuilding">CancelBuilding</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelFortifications">CancelFortifications</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelResearch">CancelResearch</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CheckResearch">CheckResearch</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Comfort">Comfort</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Config">Config</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Create">Create</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Demo">Demo</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/DemoSite">DemoSite</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/EvacuateTown">EvacuateTown</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Goal">Goal</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Levy">Levy</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/LoadGoals">LoadGoals</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Production">Production</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/RenameCity">RenameCity</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/ResetGoals">ResetGoals</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SetFocus">SetFocus</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SetTaxRate">SetTaxRate</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Speedups">Speedups</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/StartResearch">StartResearch</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TechGoals">TechGoals</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Teleport">Teleport</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Upgrade">Upgrade</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/WallDefense">WallDefense</ulink></listitem><listitem><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/WarTeleport">WarTeleport</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/ScriptCity/wiki/Abandon">Abandon</ulink></title><section><title>Abandon Goal</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 abandon:[switch] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>config abandon:1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>config abandon:0 </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 </para></entry></row></tbody></tgroup></informaltable><para>This goal tells the bot that you are planning to abandon this city. The bot will destroy all troops, wall defenses, and queues in the city and will lower loyalty by levying and adjusting the tax rate upwards. The bot will not perform comforting actions on the city with this goal set. This is useful when you plan to give a city away or abandon it. The bot will not automatically abandon the city once it reaches 0 loyalty. </para><caution><para><emphasis role="strong">WARNING</emphasis> </para><para>You should run <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/EvacuateTown#">EvacuateTown</ulink> in the scripts window before you set this goal! </para><para>Be sure to move out All heroes as well </para></caution></section><section><title>Abandon Script</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>abandon XXX,YYY </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>abandon 111,222 </para></entry></row></tbody></tgroup></informaltable><para>This script tells the bot to abandon the valley at 111,222. </para></section></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/AbandonTown">AbandonTown</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>abandontown city-coords-or-name </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>abandontown 111,222</para><para>abandontown OtherCity </para></entry></row></tbody></tgroup></informaltable><itemizedlist><listitem><para>The city being abandoned can be referred to by name or coordinates. </para></listitem><listitem><para>The bot <emphasis role="strong">does not check</emphasis> for troops or heroes. Any heroes or troops in the town <emphasis role="strong">or traveling</emphasis> from the town will be irreplaceably deleted. </para></listitem><listitem><para>Be sure your escaping troops have arrived at their destination before abandoning any city. </para></listitem></itemizedlist><para>Abandontown should be used with care. It is best to allow the bot to build npcs on its own rather than trying to do them manually with this command, but for whatever purpose you must use this command DOUBLE CHECK that you have entered the correct coordinates or city name to be abandoned. Be sure to run <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/EvacuateTown#">EvacuateTown</ulink> script command previous to using this command if you have troops or resources in the city to be moved. Be sure to allow all evacuations to complete before running this script command. </para><caution><para><emphasis role="strong">WARNING</emphasis> </para><para>There are NO 2nd chances using this command! There is no &quot;Are you sure?&quot; popup if you run this command. If you accidentally delete your level 1200 training hero, we'll feel really bad for you, but you're still screwed. </para></caution></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/BuildCity">BuildCity</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>buildcity xxx,yyy </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>buildcity 111,222 </para></entry></row></tbody></tgroup></informaltable><para>This script is used to build a city at the given coordinates. It will capture the flat for you using your specified <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/ValleyTroops#">ValleyTroops</ulink> in goals, or the defaults. Once the city is built, the bot will build a cottage in it to prevent the bot's npc building functions from abandoning it as a npc. </para><para>To cancel a city build already scheduled, use <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelBuildcity#">CancelBuildcity</ulink>. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/BuildingGoals">BuildingGoals</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>buildinggoals [build.goal.string] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>buildinggoals st:0:0,b:9:12 </para></entry></row></tbody></tgroup></informaltable><para>This command will allow you to add a new <emphasis>build</emphasis> goal directive from the script interface. For more information see the <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Build#">Build</ulink> page. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelBuildcity">CancelBuildcity</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>cancelbuildcity</para><para>cancelbuildcity xxx,yyy </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>cancelbuildcity</para><para>cancelbuildcity 123,456 </para></entry></row></tbody></tgroup></informaltable><para>Used to cancel a previously scheduled city building command created by the <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/BuildCity#">BuildCity</ulink> script. If optional coordinates are given, that particular buildcity queue will be cancelled. If none are given, all cities to be built are cleared from the queue. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelBuilding">CancelBuilding</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>cancelbuilding </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>cancelbuilding </para></entry></row></tbody></tgroup></informaltable><para>Used to cancel the building in progress in the city. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelFortifications">CancelFortifications</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>cancelfortifications [remain count] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>cancelfortifications</para><para>cancelfortifications 2 </para></entry></row></tbody></tgroup></informaltable><para>Used to cancel fortification queues, leaving remain_count batches. If no remain_count is provided, all batches are removed. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CancelResearch">CancelResearch</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>cancelresearch </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>cancelresearch </para></entry></row></tbody></tgroup></informaltable><para>Used to cancel the research in progress in the city. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CheckResearch">CheckResearch</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>checkresearch </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>checkresearch </para></entry></row></tbody></tgroup></informaltable><para>Prints out a list of research techs that can be researched in the city. This list is relative to the city where the command is run, meaning Checkresearch will validate all of the tech and their requirements then make sure that the city meets those requirements. Only the techs that have all of their requirements met will be listed. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Comfort">Comfort</ulink></title><section><title>Comfort Goal</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 comfort:[switch] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>config comfort:1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Default: </para></entry><entry colsep="1" rowsep="1"><para>config comfort: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 </para></entry></row></tbody></tgroup></informaltable><para>Enable the comfort goal and the bot will automagically perform comforting on your city as required. This goal along with config gate:[time], config hiding:[time], config npc:[level] all working together can make your cities virtually impossible to capture. With comforting activated the bot will raise loyalty, reduce grievance, adjust tax rates to prevent riots, and perform miscellaneous comforting actions as specified in comfortpolicy. Comfort can be used by itself or along with comfortpolicy. If you want to use comfortpolicy, this goal is <emphasis role="strong">required</emphasis>. </para></section><section><title>Comfort Script</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>comfort comforttype </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>comfort pray</para><para>comfort 1</para><para>comfort bless</para><para>comfort 4 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Comfort Types: </para></entry><entry colsep="1" rowsep="1"><para>1 - relief</para><para>2 - pray</para><para>3 - bless</para><para>4 - popraise </para></entry></row></tbody></tgroup></informaltable><para>Performs one of the comfort commands in the city that it is run from. </para></section></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Config">Config</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 [directive]:[value] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>config wartown:0 </para></entry></row></tbody></tgroup></informaltable><para>In order to allow control of all the bot functions through the scripting interface, all <emphasis>config</emphasis> switches that can be set in the goals page are accessible in your script. The new settings will be retained until: </para><itemizedlist><listitem><para>they are changed again through a script command </para></listitem><listitem><para>the Set Goals button in the Goals page is selected, or </para></listitem><listitem><para>the bot is restarted. </para></listitem></itemizedlist><para>The changes made to settings through the script interface will only change the values currently in memory. No actual changes are made to the Goals page and all values can be restored to settings on the goals page by selecting <emphasis role="strong">Set Goals</emphasis> with the goals window displayed. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Create">Create</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>create buildingtype [position id] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>create cottage</para><para>create fo</para><para>create barrack</para><para>create a 0</para><para>create embassy 2 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Building Types: </para></entry><entry colsep="1" rowsep="1"><para>academy - a</para><para>barrack - b</para><para>beacon tower - be</para><para>cottage - c</para><para>embassy - e</para><para>feasting hall - fh</para><para>forge - fo</para><para>farm - f</para><para>sawmill - s</para><para>quarry - q</para><para>iron mine - i</para><para>inn - inn</para><para>market - m</para><para>rally spot - r</para><para>relief station - rs</para><para>stable - st</para><para>town hall - t</para><para>wall - w</para><para>warehouse - wh</para><para>workshop - ws </para></entry></row></tbody></tgroup></informaltable><para>Create is used to build a building on an empty space, if there are no spaces to build, the create command will attempt to create a building until there is one and eventually time out. The Create command will automatically speed up the construction process for those buildings that are less than 5 minutes build time. In other words, for those buildings, like a cottage, that can be instantly built, Create will do this. The create command will perform several checks before it creates a building, it will first check to see if another construction is underway and automatically sleep until that construction is done, it also checks for resources, and if none are present, will sleep until they are. </para><para>A specific position ID can be given with create for building, as shown in the 4th and 5th examples above. Use the following numbers for each tile: </para><para><inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/IRtmGbf.png"/></imageobject><textobject><phrase>http://i.imgur.com/IRtmGbf.png</phrase></textobject></inlinemediaobject> <inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/r1Voz7t.png"/></imageobject><textobject><phrase>http://i.imgur.com/r1Voz7t.png</phrase></textobject></inlinemediaobject> </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Demo">Demo</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>demo buildingtype [policy] [@positionId]</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>demo cottage</para><para>demo forge level10</para><para>demo s highestlevel</para><para>demo /dynamite ws</para><para>demo any @15 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Building Types: </para></entry><entry colsep="1" rowsep="1"><para>academy - a</para><para>barrack - b</para><para>beacon tower - be</para><para>cottage - c</para><para>embassy - e</para><para>feasting hall - fh</para><para>forge - fo</para><para>farm - f</para><para>sawmill - s</para><para>quarry - q</para><para>iron mine - i</para><para>inn - inn</para><para>market - m</para><para>rally spot - r</para><para>relief station - rs</para><para>stable - st</para><para>town hall - t</para><para>wall - w</para><para>warehouse - wh</para><para>workshop - ws </para></entry></row></tbody></tgroup></informaltable><para>The demo command will demolish a building by one level at a time. It is important to note that you must specifically order the demolition of a level 10 building, either by using the <emphasis>level10</emphasis> argument or <emphasis>highestlevel 10</emphasis>. As with the <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Upgrade#">Upgrade</ulink> command, Demo will not do anything to a level 10 building otherwise.  </para><para>You may specify the location of a building to demo with @. For example <emphasis>demo b @20</emphasis> would demolish one level of the barrack at position 20 in the city, while <emphasis>demo any @20</emphasis> would demolish one level of any building at position 20. See below for position ids. </para><para>You may also use dynamite with the Demo command. Just add the /dynamite flag to your demo command. For example <emphasis>demo /dynamite fo</emphasis> would use dynamite to completely demolish the forge, while <emphasis>demo /dynamite any @13</emphasis> would use dynamite to completely demolish any building at position 13.  See below for position ids. </para><itemizedlist><listitem override="none"><screen><![CDATA[demo c level10
repeat 5
demo c
repeat 45]]></screen></listitem></itemizedlist><para>The above example will demo 5 cottages to level 9, then proceed by demo'ing these cottages completely to 0. Another way of doing this is using the highest/lowestlevel building arguments, and making sure that your repeat command only repeats enough times to accommodate 5 level 10 cottages. </para><section><title>Building Policies</title><para>Building Policies are for defining arguments of level, in such, these are the building policies that can be used for the label levelX listed in the syntax usage of each construction command. (Currently, there are no options for the create command, it defaults to the first available “lot” to create a building): levelX whereas you input a desired level between 1 and 10 (IE level1; level5) with no space Used with upgrade command Used with demo command </para><para>lowestlevel whereas you input the desired “up to that” level in place of X (optional). This policy selects buildings that are the lowest levels to perform the argued command (IE upgrade cottage !lowestlevel) (must have space) Used with upgrade command Used with demo command </para><para>highestlevel whereas you input the desired “up to that” level in place of X (optional). This policy selects buildings that are the highest levels to perform the argued command (IE demo cottage !highestlevel) (must have space) </para><para>Used with upgrade command Used with demo command </para><para>X Optional augment for policy arguments, it allows to specify a level to be equal to or greater than/less than the desired level to be upgraded or demolished. level level10 will demo to level 9, it will upgrade to level 10 using a mich script </para><para>Level specification now has abbreviations, you can now use hi for highestlevel, lo for lowest level and le for level. </para><para>Using highestlevel or level10 arguments will utilize a mich script when used with the upgrade command. The only way to demolish a level 10 building is to use highestlevel or level10 </para><para>Position IDs are as follows: </para><para><inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/IRtmGbf.png"/></imageobject><textobject><phrase>http://i.imgur.com/IRtmGbf.png</phrase></textobject></inlinemediaobject> <inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/r1Voz7t.png"/></imageobject><textobject><phrase>http://i.imgur.com/r1Voz7t.png</phrase></textobject></inlinemediaobject> </para></section></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/DemoSite">DemoSite</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>demosite [position ID] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>demosite 36</para><para>demosite /dynamite 36 </para></entry></row></tbody></tgroup></informaltable><para>The demosite command allows you to demolish/downgrade 1 level of the building located at a specific position in your city. The level or type of building doesn't matter with demosite, so be careful you don't put in the site id# for a level 10 building you wanted to keep. You may use the /dynamite switch to have the bot use dynamite to completely demolish the building at a specific position rather than just one level of it, as shown in the example above. </para><para>Position IDs are as follows: </para><para><inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/IRtmGbf.png"/></imageobject><textobject><phrase>http://i.imgur.com/IRtmGbf.png</phrase></textobject></inlinemediaobject> <inlinemediaobject><imageobject><imagedata fileref="http://i.imgur.com/r1Voz7t.png"/></imageobject><textobject><phrase>http://i.imgur.com/r1Voz7t.png</phrase></textobject></inlinemediaobject> </para><para>For renovating a newly capped npc, the position IDs are as follows: </para><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Position: </para></entry><entry colsep="1" rowsep="1"><para>Building </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>0 </para></entry><entry colsep="1" rowsep="1"><para>Academy </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>1 </para></entry><entry colsep="1" rowsep="1"><para>Forge </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>2 </para></entry><entry colsep="1" rowsep="1"><para>Embassy </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>3 </para></entry><entry colsep="1" rowsep="1"><para>Feasting Hall </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>4 </para></entry><entry colsep="1" rowsep="1"><para>Market Place </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>5 </para></entry><entry colsep="1" rowsep="1"><para>Beacon Tower </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>6 </para></entry><entry colsep="1" rowsep="1"><para>Stable </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>7 </para></entry><entry colsep="1" rowsep="1"><para>Inn </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>8 </para></entry><entry colsep="1" rowsep="1"><para>Rally Spot </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>9 </para></entry><entry colsep="1" rowsep="1"><para>Relief Station </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>10 </para></entry><entry colsep="1" rowsep="1"><para>Workshop </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>11 </para></entry><entry colsep="1" rowsep="1"><para>Barracks </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>12-31 </para></entry><entry colsep="1" rowsep="1"><para>Cottage </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>1001-1037 </para></entry><entry colsep="1" rowsep="1"><para>Farm </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>1038 </para></entry><entry colsep="1" rowsep="1"><para>Sawmill </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>1039 </para></entry><entry colsep="1" rowsep="1"><para>Quarry </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>1040 </para></entry><entry colsep="1" rowsep="1"><para>Iron Mine </para></entry></row></tbody></tgroup></informaltable></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/EvacuateTown">EvacuateTown</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>evacuatetown coords </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>evacuatetown 111,222 </para></entry></row></tbody></tgroup></informaltable><para>This script command will tell the bot to send all troops and resources that it can carry to the specified coordinates from this city, in order for the town to be abandoned later. The bot will leave all of the heroes in the city. You must move them manually. This script should be run before <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Abandon#">config abandon:1</ulink> is used in goals. </para><para>To cancel the evacuation use EndEvacuate. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Goal">Goal</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>goal [desired goal [parameters]] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>goal config npc:5</para><para>goal research ar:4,ms:5 </para></entry></row></tbody></tgroup></informaltable><para>This command will allow you to execute the script line as a goal. It is optional, in the above example just &quot;config npc:5&quot; as a script line would work to adjust the goal config npc to '5'. Any goal can be executed via a script line without this optional command, but this may be useful when a goal and a script have the same name, and you want it to modify the goal explicitly. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Levy">Levy</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>levy levytype </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>levy 1</para><para>levy food </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Levy Types: </para></entry><entry colsep="1" rowsep="1"><para>1 - gold</para><para>2 - food</para><para>3 - wood</para><para>4 - stone</para><para>5 - iron </para></entry></row></tbody></tgroup></informaltable><para>Performs one of the levy actions in the city. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/LoadGoals">LoadGoals</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>loadgoals [goal set number] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>loadgoals</para><para>loadgoals 3 </para></entry></row></tbody></tgroup></informaltable><para>This script command will allow you to load a set of goals to be ran by the bot. </para><para>An example of a use for this would be in a city used for trebbing. You could tell the bot to load goal set 1, where you have your npc farming and hero movement and such disabled, perform all the treb hits via scripts, and then reload your regular goal set 0 where you have npc farming and such enabled when the treb hits are done. A script doing this could be like so: </para><itemizedlist><listitem override="none"><screen><![CDATA[//Trebbing Session
gosub TrebSession
]]><![CDATA[
label BeginHere
ifgoto ( m_city.cityManager.resource.stone.amount < 5b ) OuttaStone
ifgoto ( m_city.cityManager.fortification.rockfall < 10500 ) Rebuildwall
goto BeginHere
]]><![CDATA[
label Rebuildwall
setmayorbyname Queen
walldefense tre 11k build
sleep 15
goto BeginHere
]]><![CDATA[
label OuttaStone
echo "Getting Low On Stone!"
loadgoals 0
stop
]]><![CDATA[
label TrebSession
loadgoals 1
walldefense tra 50000 demo
walldefense ab 50000 demo
walldefense at 50000 demo
walldefense r 50000 demo
walldefense tre 50000 demo
gosub BeginHere]]></screen></listitem></itemizedlist></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Production">Production</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>production food% wood% stone% iron% </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>production 100 100 100 100 </para></entry></row></tbody></tgroup></informaltable><para>Production functions as both a goal and script of the same name. It sets the desired city production of resources. </para><para>You must use a number between 0 and 100. Troop production may adjust production rates down temporarily if permitted to via the goal config <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TroopsUsePopMax#">TroopsUsePopMax</ulink>. </para><para>If used as a script, it will also set the corresponding goal to the same values, until the next bot restart. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/RenameCity">RenameCity</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>renamecity newname [picture ID 1-4] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>renamecity BottingRulz</para><para> renamecity BottingRulz 3 </para></entry></row></tbody></tgroup></informaltable><para>Change a city's name and (optionally) picture. The picture IDs are as follows: </para><itemizedlist><listitem><para>1 - <inlinemediaobject><imageobject><imagedata fileref="http://imageshack.us/a/img411/2904/citylogo01.png"/></imageobject><textobject><phrase>http://imageshack.us/a/img411/2904/citylogo01.png</phrase></textobject></inlinemediaobject> </para></listitem><listitem><para>2 - <inlinemediaobject><imageobject><imagedata fileref="http://imageshack.us/a/img802/2310/citylogo02.png"/></imageobject><textobject><phrase>http://imageshack.us/a/img802/2310/citylogo02.png</phrase></textobject></inlinemediaobject> </para></listitem><listitem><para>3 - <inlinemediaobject><imageobject><imagedata fileref="http://imageshack.us/a/img209/3374/citylogo03.png"/></imageobject><textobject><phrase>http://imageshack.us/a/img209/3374/citylogo03.png</phrase></textobject></inlinemediaobject> </para></listitem><listitem><para>4 - <inlinemediaobject><imageobject><imagedata fileref="http://imageshack.us/a/img16/9365/citylogo04.png"/></imageobject><textobject><phrase>http://imageshack.us/a/img16/9365/citylogo04.png</phrase></textobject></inlinemediaobject> </para></listitem></itemizedlist></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/ResetGoals">ResetGoals</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>resetgoals </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>resetgoals </para></entry></row></tbody></tgroup></informaltable><para>This command will temporarily reset/disable your goals until the next bot restart. It will: remove all building, tech, &amp; fortification directives; cancel all troop requirements, erase all config statements, erase all variables; set <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/ReportsToKeep#">ReportsToKeep</ulink> &amp; <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/DistancePolicy#">DistancePolicy</ulink> to default values; delete <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/NpcBounds#">NpcBounds</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/NpcHeroes#">NpcHeroes</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/NoLevelHeroes#">NoLevelHeroes</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SpamHeroes#">SpamHeroes</ulink>; remove all <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SendResources#">SendResources</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/KeepResources#">KeepResources</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SendTroops#">SendTroops</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/KeepTroops#">KeepTroops</ulink> directives, set <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/HomeHeroes#">HomeHeroes</ulink> to 1, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TrainingHero#">TrainingHero</ulink> &quot;&quot; 300 -1 -1, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/GatePolicy#">GatePolicy</ulink> 0 0 0 0 0; and reset: <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/DefensePolicy#">DefensePolicy</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/WarehousePolicy#">WarehousePolicy</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/FarmingPolicy#">FarmingPolicy</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/RallyPolicy#">RallyPolicy</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TradePolicy#">TradePolicy</ulink>, <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/ProcessingPolicy#">ProcessingPolicy</ulink>, and <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Hunting#">Hunting</ulink>. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SetFocus">SetFocus</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>setfocus </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>setfocus</para><para>setfocus 5 </para></entry></row></tbody></tgroup></informaltable><para>The bot functions in a linear manner, moving from one city to the next after a given amount of time. This command will cause the bot to immediately focus on the city from which the command is issued for one task cycle. </para><para>Enabling the Task Flow debug option will allow you to see what one task cycle is, and how long it lasts. </para><para>You can optionally give it a number of task cycles to focus on the city for. Be careful running this too much or for too long, as the bot's normal flow of tasks is already designed to be optimal. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/SetTaxRate">SetTaxRate</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>settaxrate % </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>settaxrate 20 </para></entry></row></tbody></tgroup></informaltable><para>Sets the city's tax rate to the number specified. </para><para>Note - this will not change the taxpolicy for the city. If you want the tax rate to be set and stay there, make sure the taxpolicy does not conflict, or just use <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TaxPolicy#">TaxPolicy</ulink> as a script command instead, i.e. - <emphasis>taxpolicy 20 100</emphasis> to change it immediately to 20 and stay there. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/StartResearch">StartResearch</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>startresearch techname or research speed/cost [/nowait] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>startresearch compass</para><para>startresearch quickest</para><para>startresearch construction</para><para>startresearch dearest </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Arguments: </para></entry><entry colsep="1" rowsep="1"><para>quickest</para><para>cheapest</para><para>dearest</para><para>ag - agriculture</para><para>lu - lumbering</para><para>mas - masonry</para><para>mi - mining</para><para>met - metal</para><para>in - info</para><para>ms - militaryscience</para><para>mt - militarytradition</para><para>ir - ironwork</para><para>lo - logistics</para><para>com - compass</para><para>ho - horseback</para><para>ar - archery</para><para>st - stockpile</para><para>med - medicine</para><para>con - construct</para><para>en - engineer</para><para>mac - machinery</para><para>pr - privateer </para></entry></row></tbody></tgroup></informaltable><para>This command will perform a research of the valid tech argument in the city that it is run from. As an option, you can run a <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CheckResearch#">CheckResearch</ulink> command first to see what is available to you, allowing you to tailor the script to techs you are currently not researching. </para><para>an optional &quot;/nowait&quot; arugment can be supplied that prevents the script waiting until the research is finalized. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/TechGoals">TechGoals</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>techgoals [research.goal.string] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>techgoals ar:10,ho:10,mt:9 </para></entry></row></tbody></tgroup></informaltable><para>This command will allow you to add a new <emphasis>research</emphasis> goal directive from the script interface. For more information see the <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Research#">Research</ulink> page. </para><para>This command is deprecated, you can now just use <emphasis>research</emphasis> in scripts to modify the research goals. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Teleport">Teleport</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>teleport [state name or random]</para><para> teleport [coords]   (uses Advanced City Teleport to move to specified coords)</para><para> warteleport [coords]  (uses War Teleporter to move to specific barbarian city coords) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>teleport saxony</para><para> teleport 111,222</para><para> warteleport 123,45 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>States: </para></entry><entry colsep="1" rowsep="1"><para>friesland, saxony, north march, bohemia,</para><para>lower lorraine, franconia, thuringia, moravia,</para><para>upper lorraine, swabia, bavaria, carinthia,</para><para>burgundy, lombardy, tuscany, romagna </para><para> or </para><para> random </para></entry></row></tbody></tgroup></informaltable><para>Randomly teleports your city to the state specified, or a random state if using <emphasis>teleport random</emphasis>. </para><para>If instead you use coordinates, the bot will advance teleport your city to the coordinates specified. When trying to advance teleport, the bot will first use the Pioneer teleports available after server merge if you have them. </para></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/Upgrade">Upgrade</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>upgrade buildingtype levelX </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>upgrade cottage</para><para>upgrade barrack level8</para><para>upgrade farm lowestlevel </para></entry></row></tbody></tgroup></informaltable><para>Upgrades an existing building. </para><para>In order to create a level 10 building, which requires the use of a Michaelangelo Script, you must first have a building currently at level 9, a Script in your items, and you must specify level9 in the upgrade command. </para><para>The script: </para><itemizedlist><listitem override="none"><screen><![CDATA[upgrade iron
repeat]]></screen></listitem></itemizedlist><para>Would only build all your iron mines to level 9 and stop. To create a level 10 building, you must specify: </para><itemizedlist><listitem override="none"><screen><![CDATA[upgrade iron level9]]></screen></listitem></itemizedlist><section><title>Building Policies</title><para>Building Policies are for defining arguments of level, in such, these are the building policies that can be used for the label levelX listed in the syntax usage of each construction command. (Currently, there are no options for the create command, it defaults to the first available “lot” to create a building): levelX whereas you input a desired level between 1 and 10 (IE level1; level5) with no space Used with upgrade command Used with demo command </para><para>lowestlevel whereas you input the desired “up to that” level in place of X (optional). This policy selects buildings that are the lowest levels to perform the argued command (IE upgrade cottage !lowestlevel) (must have space) Used with upgrade command Used with demo command </para><para>highestlevel whereas you input the desired “up to that” level in place of X (optional). This policy selects buildings that are the highest levels to perform the argued command (IE demo cottage !highestlevel) (must have space) </para><para>Used with upgrade command Used with demo command </para><para>X Optional augment for policy arguments, it allows to specify a level to be equal to or greater than/less than the desired level to be upgraded or demolished. level level10 will demo to level 9, it will upgrade to level 10 using a mich script </para><para>Level specification now has abbreviations, you can now use hi for highestlevel, lo for lowest level and le for level. </para><para>Using highestlevel or level10 arguments will utilize a mich script when used with the upgrade command. The only way to demolish a level 10 building is to use highestlevel or level9 </para></section></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/WallDefense">WallDefense</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>walldefense DefType Qty [BuildType] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>walldefense at 1000</para><para>walldefense ab 1000 demo </para></entry></row></tbody></tgroup></informaltable><para>Used to build or demolish wall defenses. </para><para><emphasis>Starting in NeatBot version 3378</emphasis> you can use multiple wall fortifications on a single line for demolish commands. You can also put the 'demo' action before or after the fortification types. These 4 different scripts will all demolish 5000 archer towers, 1000 abatis, and 1000 traps: </para><screen><![CDATA[ walldefense at:5k,ab:1k,tra:1k demo]]></screen><screen><![CDATA[ walldefense demo at:5k,ab:1k,tra:1k]]></screen><screen><![CDATA[ walldefense /demo at:5k,ab:1k,tra:1k]]></screen><screen><![CDATA[ walldefense at 5k demo
 walldefense ab 1k demo
 walldefense tra 1k demo]]></screen><para>You can also use the /keep action to force the bot to demolish all but the kept amount. Only specifically listed fortification types will be affected. For example, this will demolish all but 15,000 archer towers, 1000 abatis, and 1000 traps. Any rolling logs and trebs will not be effected: </para><screen><![CDATA[ walldefense /keep at:15k,ab:1k,tra:1k]]></screen><para>Here are several examples of ways to use the walldefense command in <emphasis>NeatBot versions 3378 and later</emphasis>: </para><screen><![CDATA[ walldefense                 // build 1 trap (compatibility with older versions)
]]><![CDATA[
 walldefense at 100
 walldefense at:100          //same as above
 walldefense build at:100    //same as above
 walldefense /build at:100   //same as above
 walldefense at 100 produce  //same as above (compatibility)
]]><![CDATA[
 walldefense demo            // demolish 1 trap
 walldefense destruct tra 10 // demolish 10 traps (compatibility)
]]><![CDATA[
 walldefense at demo        // demolish 1 archer tower
 walldefense at             // build 1 archer tower (compatibility)
 walldefense at keep        // keep 1 archer tower (demolish all archer towers except one)
]]><![CDATA[
 // demolish 100 traps and 10,000 archers towers
 walldefense demo tra:100,at:10k
 walldefense /demo tra:100,at:10k // same as above
]]><![CDATA[
 // demolish all but 100 traps and 1,000 archers towers (other fortifications are unaffected)
 walldefense keep tra:100,at:1k
 walldefense /keep tra:100,at:1k // same as above
]]><![CDATA[
 // demolish all trebuchets (other fortifications are unaffected)
 walldefense /keep tre:0]]></screen></section><section><title><ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/WarTeleport">WarTeleport</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>warteleport [coords] </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>warteleport 123,456 </para></entry></row></tbody></tgroup></informaltable><para>Teleports your city to the coordinates specified using a war teleporter. You can only use the coordinates of an existing npc. </para><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/ScriptCity/wiki/CategoryCommands#">CategoryCommands</ulink> </para></section></article>