dfhack/docs/plugins/autohauler.rst

56 lines
2.3 KiB
ReStructuredText

autohauler
==========
2022-07-20 00:11:02 -06:00
Tags:
:dfhack-keybind:`autohauler`
2022-07-22 01:05:53 -06:00
:index:`Automatically manage hauling labors.
<autohauler; Automatically manage hauling labors.>` Similar to `autolabor`, but
instead of managing all labors, ``autohauler`` only addresses hauling labors,
leaving the assignment of skilled labors entirely up to you. You can use the
in-game `manipulator` UI or an external tool like Dwarf Therapist to do so.
2022-07-18 15:33:24 -06:00
Idle dwarves who are not on active military duty will be assigned the hauling
labors; everyone else (including those currently hauling) will have the hauling
labors removed. This is to encourage every dwarf to do their assigned skilled
labors whenever possible, but resort to hauling when those jobs are not
available. This also implies that the user will have a very tight skill
assignment, with most skilled labors only being assigned to just a few dwarves
and almost every non-military dwarf having at least one skilled labor assigned.
2022-07-18 15:33:24 -06:00
Autohauler allows a skill to be used as a flag to exempt a dwarf from
``autohauler``'s effects. By default, this is the unused ALCHEMIST labor, but it
can be changed by the user.
Usage:
``enable autohauler``
2022-07-18 15:53:06 -06:00
Start managing hauling labors. This is normally all you need to do.
Autohauler works well on default settings.
``autohauler status``
2022-07-18 15:33:24 -06:00
Show autohauler status and status of fort dwarves.
``autohauler <labor> haulers``
2022-07-18 15:33:24 -06:00
Set whether a particular labor should be assigned to haulers.
``autohauler <labor> allow|forbid``
2022-07-18 15:33:24 -06:00
Set whether a particular labor should mark a dwarf as exempt from hauling.
By default, only the ``ALCHEMIST`` labor is set to ``forbid``.
``autohauler reset-all|<labor> reset``
2022-07-18 15:33:24 -06:00
Reset a particular labor (or all labors) to their default
haulers/allow/forbid state.
``autohauler list``
2022-07-18 15:33:24 -06:00
Show the active configuration for all labors.
``autohauler frameskip <number>``
2022-07-18 15:33:24 -06:00
Set the number of frames between runs of autohauler.
``autohauler debug``
2022-07-18 15:33:24 -06:00
In the next cycle, output the state of every dwarf.
2022-07-20 00:11:02 -06:00
Examples
--------
2022-07-18 17:20:43 -06:00
``autohauler HAUL_STONE haulers``
2022-07-18 15:33:24 -06:00
Set stone hauling as a hauling labor (this is already the default).
``autohauler RECOVER_WOUNDED allow``
2022-07-18 15:33:24 -06:00
Allow the "Recover wounded" labor to be manually assigned by the player. By
default it is automatically given to haulers.
``autohauler MINE forbid``
2022-07-18 15:33:24 -06:00
Don't assign hauling labors to dwarves with the Mining labor enabled.