<?xml version="1.0" encoding="utf-8"?>
<s1 title="Speedups"><p></p>
<s2 id="Speed ups" title="Speed ups">
<p></p>
<s3 id="Command based application" title="Command based application">
<p>When using commands such as <em><jump href="/wiki/Create">Create</jump></em>, <em><jump href="/wiki/Upgrade">Upgrade</jump></em>, <em><jump href="/wiki/Demo">Demo</jump></em>, <em><jump href="/wiki/DemoSite">DemoSite</jump></em> and <em><jump href="/wiki/StartResearch">StartResearch</jump></em> you can add an additional parameter <strong>&quot;/speedup&quot;</strong> to allow the bot to use a speedup for the task. The /speedup command requires a speedup be specified. The speed up types are listed below. </p>
<table><tr><td><p><strong>Speedup Types</strong> </p>
</td></tr><tr><td><p>consume.2.a </p>
</td></tr><tr><td><p>consume.2.b </p>
</td></tr><tr><td><p>consume.2.b.1 </p>
</td></tr><tr><td><p>consume.2.c </p>
</td></tr><tr><td><p>consume.2.c.1 </p>
</td></tr><tr><td><p>consume.2.d </p>
</td></tr><tr><td><p>&quot;Beginner Guidelines&quot; </p>
</td></tr><tr><td><p>&quot;Primary Guidelines&quot; </p>
</td></tr><tr><td><p>&quot;Intermediate Guidelines&quot; </p>
</td></tr><tr><td><p>&quot;Senior Guidelines&quot; </p>
</td></tr><tr><td><p>&quot;Master Guidelines&quot; </p>
</td></tr><tr><td><p>&quot;Ultimate Guidelines&quot; </p>
</td></tr><tr><td><p>coins </p>
</td></tr></table><p>In addition to this parameter you can also use <strong>/nowait</strong>. This parameter tells the bot not to wait on the line to finish the execution of the command before continuing to the next line. </p>
<p></p>
<s4 id="Examples of using the /speedup and /nowait parameters." title="Examples of using the /speedup and /nowait parameters.">
<ul><li><source><![CDATA[upgrade /speedup=coins barrack  // Instantly upgrades a barrack using coins.
upgrade cottage /speedup="Beginner Guidelines"  // quotes are needed when using names with spaces.
upgrade cottage /speedup=consume.2.a    // same as above, but using the item ID instead of its name.
upgrade /speedup="Ultimate Guidelines,coins" barrack    // upgrade barrack by first applying Ultimate Guidelines and then finish using coins.
demo forge /nowait /speedup="Primary Guidelines,Beginner Guidelines" // nowait is added to this one so it will not wait on this line to complete the demo. ]]></source></li>
</ul>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> </p>
<p></p>
</s4>
</s3>
<s3 id="Alternate application" title="Alternate application">
<table><tr><td><p><strong>Name:</strong> </p>
</td><td><p><strong>Usage:</strong> </p>
</td><td><p><strong>Desctiption:</strong> </p>
</td><td><p><strong>Example</strong> </p>
</td></tr><tr><td><p>buildingspeedup </p>
</td><td><p>buildingspeedup {Speed Up Name} </p>
</td><td><p>Speed up the current building with the speed up input. </p>
</td><td><p>buildingspeedup Senior Guidelines </p>
</td></tr><tr><td><p>researchspeedup </p>
</td><td><p>researchspeedup {Speed Up Name} </p>
</td><td><p>Speed up the current research with the speed up input. </p>
</td><td><p>researchspeedup coins </p>
</td></tr></table><p></p>
<s4 id="Examples of using the buildingspeedup and researchspeedup functions." title="Examples of using the buildingspeedup and researchspeedup functions.">
<ul><li><source><![CDATA[// use Senior Guidelines, if it is needed.
r = city.getActiveResearch()
if r && TimeDiff(r.endTime)/1000 >= 8*3600 researchspeedup Senior Guidelines

// use coins to speed up research.
r = city.getActiveResearch()
if r researchspeedup coins

// use Senior Guidelines, if it is needed.
active = city.getActiveBuilding()
if active && TimeDiff(active.endTime)/1000 >= 8*3600 buildingspeedup Senior Guidelines

// use coins to speed up construction.
active = city.getActiveBuilding()
if active buildingspeedup coins

// apply "Beginner Guidelines" speed up to the building at position 20, if it is under construction and has at least 10 minutes left until finish.
pos = 20
b = city.getBuildingByPosId(pos)
if b && b.status != 0 && TimeDiff(b.endTime)/1000 >= 10*60 execute "buildingspeedup @{pos} Beginner Guidelines"]]></source></li>
</ul>
<p></p>

<br/>------------------------------------------------------------------------------<br/>
<p> <jump href="/wiki/ScriptCity">ScriptCity</jump> </p>
</s4></s3></s2></s1>