dfhack/docs/plugins/autofarm.rst

37 lines
1.1 KiB
ReStructuredText

autofarm
========
.. dfhack-tool::
:summary: Automatically manage farm crop selection.
2022-08-12 00:34:37 -06:00
:tags: fort auto plants
Periodically scan your plant stocks and assign crops to your farm plots based on
which plant stocks are low (as long as you have the appropriate seeds). The
target threshold for each crop type is configurable.
Usage:
``enable autofarm``
2022-07-18 14:49:51 -06:00
Enable the plugin and start managing crop assignment.
``autofarm runonce``
2022-07-18 14:49:51 -06:00
Updates all farm plots once, without enabling the plugin.
``autofarm status``
2022-07-18 14:49:51 -06:00
Prints status information, including any defined thresholds.
``autofarm default <number>``
2022-07-18 14:49:51 -06:00
Sets the default threshold.
``autofarm threshold <number> <type> [<type> ...]``
2022-07-18 14:49:51 -06:00
Sets thresholds of individual plant types.
You can find the identifiers for the crop types in your world by running the
following command::
lua "for _,plant in ipairs(df.global.world.raws.plants.all) do if plant.flags.SEED then print(plant.id) end end"
2022-07-20 00:11:02 -06:00
Examples
--------
2022-07-18 14:49:51 -06:00
``autofarm default 30``
2022-07-18 14:49:51 -06:00
Set the default threshold to 30.
``autofarm threshold 150 MUSHROOM_HELMET_PLUMP GRASS_TAIL_PIG``
2022-07-18 14:49:51 -06:00
Set the threshold for Plump Helmets and Pig Tails to 150