Automation - ihsoft/TimberbornMods GitHub Wiki
Overview
This mod allows assigning a set of rules on the buildings and objects. The rules execute logic "If This Then That" (a.k.a. IFTTT). Each rule has a condition to check and an action to execute if the condition evaluates to "true". The automation engine allows creating any conditions and any actions. The system can easily be extended with extra conditions and actions as needed.
To keep the UI simple, a selection tool is implemented that applies a set of rules (a template) on the selected objects. It keeps UI simple, but limits the available options. However, you can adjust the templates or create your own variants via the ToolSpecification
files.
Currently supported rules
Dynamite drill down
Template that automatically detonates a dynamite and places a new one at the same place. It can be handy when doing massive terraforming.
Pause/resume buildings based on the current weather season
It's especially useful for the water pumps.
Set floodgate heights based on the current weather season
Any height can be configured, but the current templates set only covers the basic cases.
Storage emptying
If the output stock goes above the defined threshold, then the building is turned into the "emptying mode". In this mode, all the available workers, including the ones from the idle buildings, will rush to help moving the good out of the building. This way it's possible to achieve 100% efficiency at the water pump.