= Speed ups = == Command based application == When using commands such as ''[[Create]]'', ''[[Upgrade]]'', ''[[Demo]]'', ''DemoSite'' and ''StartResearch'' you can add an additional parameter '''"/speedup"''' 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. ||'''Speedup Types''' || ||consume.2.a || ||consume.2.b || ||consume.2.b.1 || ||consume.2.c || ||consume.2.c.1 || ||consume.2.d || ||"Beginner Guidelines" || ||"Primary Guidelines" || ||"Intermediate Guidelines" || ||"Senior Guidelines" || ||"Master Guidelines" || ||"Ultimate Guidelines" || ||coins || In addition to this parameter you can also use '''/nowait'''. This parameter tells the bot not to wait on the line to finish the execution of the command before continuing to the next line. === Examples of using the /speedup and /nowait parameters. === . {{{ 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. }}} ---- == Alternate application == ||'''Name:''' ||'''Usage:''' ||'''Desctiption:''' ||'''Example''' || ||buildingspeedup ||buildingspeedup {Speed Up Name} ||Speed up the current building with the speed up input. ||buildingspeedup Senior Guidelines || ||researchspeedup ||researchspeedup {Speed Up Name} ||Speed up the current research with the speed up input. ||researchspeedup coins || === Examples of using the buildingspeedup and researchspeedup functions. === . {{{ // 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" }}} ---- ScriptCity