<?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>LoadGoals</title><revhistory><revision><revnumber>7</revnumber><date>2013-08-07 17:58:28</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>6</revnumber><date>2012-12-04 18:46:04</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>5</revnumber><date>2012-12-04 18:45:35</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>4</revnumber><date>2012-10-24 01:13:22</date><authorinitials>Romulus</authorinitials></revision><revision><revnumber>3</revnumber><date>2012-10-21 15:40:39</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>2</revnumber><date>2012-10-01 19:50:31</date><authorinitials>Inanna</authorinitials></revision><revision><revnumber>1</revnumber><date>2012-10-01 19:14:16</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>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><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/LoadGoals/wiki/ScriptControlStructures#">ScriptControlStructures</ulink> <ulink url="http://guide.neatportal.com/wiki/LoadGoals/wiki/ScriptCity#">ScriptCity</ulink> </para></article>