update docs for zone
							parent
							
								
									feed91d098
								
							
						
					
					
						commit
						46c3862a08
					
				| @ -1,130 +1,158 @@ | |||||||
| zone | zone | ||||||
| ==== | ==== | ||||||
| Helps a bit with managing activity zones (pens, pastures and pits) and cages. | Tags: | ||||||
| 
 |  | ||||||
| :dfhack-keybind:`zone` | :dfhack-keybind:`zone` | ||||||
| 
 | 
 | ||||||
| Options: | Manage activity zones, cages, and the animals therein. | ||||||
| 
 | 
 | ||||||
| :set:         Set zone or cage under cursor as default for future assigns. | Usage: | ||||||
| :assign:      Assign unit(s) to the pen or pit marked with the 'set' command. | 
 | ||||||
|               If no filters are set a unit must be selected in the in-game ui. | ``enable zone`` | ||||||
|               Can also be followed by a valid zone id which will be set |    Add helpful filters to the pen/pasture sidebar menu (e.g. show only caged | ||||||
|               instead. |    grazers). | ||||||
| :unassign:    Unassign selected creature from it's zone. | ``zone set`` | ||||||
| :nick:        Mass-assign nicknames, must be followed by the name you want |    Set zone or cage under cursor as default for future ``assign`` or ``tocages`` | ||||||
|               to set. |    commands. | ||||||
| :remnick:     Mass-remove nicknames. | ``zone assign [<zone id>] [<filter>]`` | ||||||
| :enumnick:    Assign enumerated nicknames (e.g. "Hen 1", "Hen 2"...). Must be |    Assign unit(s) to the zone with the given ID, or to the most recent pen or | ||||||
|               followed by the prefix to use in nicknames. |    pit marked with the ``set`` command. If no filters are set, then a unit must | ||||||
| :tocages:     Assign unit(s) to cages inside a pasture. |    be selected in the in-game ui. | ||||||
| :uinfo:       Print info about unit(s). If no filters are set a unit must | ``zone unassign [<filter>]`` | ||||||
|               be selected in the in-game ui. |     Unassign selected creature from its zone. | ||||||
| :zinfo:       Print info about zone(s). If no filters are set zones under | ``zone nick <nickname> [<filter>]`` | ||||||
|               the cursor are listed. |     Assign the given nickname to the selected animal or the animals matched by | ||||||
| :verbose:     Print some more info. |     the given filter. | ||||||
| :filters:     Print list of valid filter options. | ``zone remnick [<filter>]`` | ||||||
| :examples:    Print some usage examples. |     Remove nicknames from the selected animal or the animals matched by the | ||||||
| :not:         Negates the next filter keyword. |     given filter. | ||||||
| 
 | ``zone enumnick <nickname prefix> [<filter>]`` | ||||||
| Filters: |     Assign enumerated nicknames (e.g. "Hen 1", "Hen 2"...). | ||||||
| 
 | ``zone tocages [<filter>]`` | ||||||
| :all:           Process all units (to be used with additional filters). |     Assign unit(s) to cages that have been built inside the pasture selected | ||||||
| :count:         Must be followed by a number. Process only n units (to be used |     with the ``set`` command. | ||||||
|                 with additional filters). | ``zone uinfo [<filter>]`` | ||||||
| :unassigned:    Not assigned to zone, chain or built cage. |     Print info about unit(s). If no filters are set, then a unit must be | ||||||
| :minage:        Minimum age. Must be followed by number. |     selected in the in-game ui. | ||||||
| :maxage:        Maximum age. Must be followed by number. | ``zone zinfo`` | ||||||
| :race:          Must be followed by a race RAW ID (e.g. BIRD_TURKEY, ALPACA, |     Print info about the zone(s) and any buildings under the cursor. | ||||||
|                 etc). Negatable. | 
 | ||||||
| :caged:         In a built cage. Negatable. | Examples | ||||||
| :own:           From own civilization. Negatable. | -------- | ||||||
| :merchant:      Is a merchant / belongs to a merchant. Should only be used for | 
 | ||||||
|                 pitting, not for stealing animals (slaughter should work). | Before any ``assign`` or ``tocages`` examples can be used, you must first move | ||||||
| :war:           Trained war creature. Negatable. | the cursor over a pen/pasture or pit zone and run ``zone set`` to select the | ||||||
| :hunting:       Trained hunting creature. Negatable. | zone. | ||||||
| :tamed:         Creature is tame. Negatable. | 
 | ||||||
| :trained:       Creature is trained. Finds war/hunting creatures as well as | ``zone assign all own ALPACA minage 3 maxage 10`` | ||||||
|                 creatures who have a training level greater than 'domesticated'. |     Assign all of your alpacas who are between 3 and 10 years old to the | ||||||
|                 If you want to specifically search for war/hunting creatures use |     selected pasture. | ||||||
|                 'war' or 'hunting' Negatable. | ``zone assign all own caged grazer nick ineedgrass`` | ||||||
| :trainablewar:  Creature can be trained for war (and is not already trained for |     Assign all of your grazers who are sitting in cages on stockpiles (e.g. | ||||||
|                 war/hunt). Negatable. |     after buying them from merchants) to the selected pasture and give them the | ||||||
| :trainablehunt: Creature can be trained for hunting (and is not already trained |     nickname 'ineedgrass'. | ||||||
|                 for war/hunt). Negatable. | ``zone assign all own not grazer not race CAT`` | ||||||
| :male:          Creature is male. Negatable. |     Assign all of your animals who are not grazers (excluding cats) to the | ||||||
| :female:        Creature is female. Negatable. |     selected pasture. | ||||||
| :egglayer:      Race lays eggs. Negatable. |     "  zone assign all own milkable not grazer\n" | ||||||
| :grazer:        Race is a grazer. Negatable. | ``zone assign all own female milkable not grazer`` | ||||||
| :milkable:      Race is milkable. Negatable. |     Assign all of your non-grazing milkable creatures to the selected pasture or | ||||||
|  |     cage. | ||||||
|  | ``zone assign all own race DWARF maxage 2`` | ||||||
|  |     Throw all useless kids into a pit :) They'll be fine I'm sure. | ||||||
|  | ``zone nick donttouchme`` | ||||||
|  |     Nicknames all units in the current default zone or cage to 'donttouchme'. | ||||||
|  |     This is especially useful for protecting a group of animals assigned to a | ||||||
|  |     pasture or cage from being "processed" by `autobutcher`. | ||||||
|  | ``zone tocages count 50 own tame male not grazer`` | ||||||
|  |     Stuff up to 50 of your tame male animals who are not grazers into cages | ||||||
|  |     built on the current default zone. | ||||||
|  | 
 | ||||||
|  | Filters | ||||||
|  | ------- | ||||||
|  | 
 | ||||||
|  | :all:            Process all units. | ||||||
|  | :count <n>:      Process only up to n units. | ||||||
|  | :unassigned:     Not assigned to zone, chain or built cage. | ||||||
|  | :minage <years>: Minimum age. Must be followed by number. | ||||||
|  | :maxage <years>: Maximum age. Must be followed by number. | ||||||
|  | :not:            Negates the next filter keyword. All of the keywords documented | ||||||
|  |                  below are negatable. | ||||||
|  | :race:           Must be followed by a race RAW ID (e.g. BIRD_TURKEY, ALPACA, | ||||||
|  |                  etc). | ||||||
|  | :caged:          In a built cage. | ||||||
|  | :own:            From own civilization. You'll usually want to include this | ||||||
|  |                  filter. | ||||||
|  | :war:            Trained war creature. | ||||||
|  | :hunting:        Trained hunting creature. | ||||||
|  | :tamed:          Creature is tame. | ||||||
|  | :trained:        Creature is trained. Finds war/hunting creatures as well as | ||||||
|  |                  creatures who have a training level greater than 'domesticated'. | ||||||
|  |                  If you want to specifically search for war/hunting creatures | ||||||
|  |                  use ``war`` or ``hunting``. | ||||||
|  | :trainablewar:   Creature can be trained for war (and is not already trained for | ||||||
|  |                  war/hunt). | ||||||
|  | :trainablehunt:  Creature can be trained for hunting (and is not already trained | ||||||
|  |                  for war/hunt). | ||||||
|  | :male:           Creature is male. | ||||||
|  | :female:         Creature is female. | ||||||
|  | :egglayer:       Race lays eggs. If you want units who actually lay eggs, also | ||||||
|  |                  specify ``female``. | ||||||
|  | :grazer:         Race is a grazer. | ||||||
|  | :milkable:       Race is milkable. If you want units who actually can be milked, | ||||||
|  |                  also specify ``female``. | ||||||
|  | :merchant:       Is a merchant / belongs to a merchant. Should only be used for | ||||||
|  |                  pitting or slaughtering, not for stealing animals. | ||||||
| 
 | 
 | ||||||
| Usage with single units | Usage with single units | ||||||
| ----------------------- | ----------------------- | ||||||
| One convenient way to use the zone tool is to bind the command 'zone assign' to | One convenient way to use the zone tool is to bind the commands ``zone assign`` | ||||||
| a hotkey, maybe also the command 'zone set'. Place the in-game cursor over | and ``zone set`` to hotkeys. Place the in-game cursor over a pen/pasture or pit | ||||||
| a pen/pasture or pit, use 'zone set' to mark it. Then you can select units | and use the ``zone set`` hotkey to mark it. Then you can select units on the map | ||||||
| on the map (in 'v' or 'k' mode), in the unit list or from inside cages | (in 'v' or 'k' mode), in the unit list or from inside cages and use the | ||||||
| and use 'zone assign' to assign them to their new home. Allows pitting your | ``zone assign`` hotkey to assign them to their new home. Allows pitting your own | ||||||
| own dwarves, by the way. | dwarves, by the way. | ||||||
| 
 | 
 | ||||||
| Usage with filters | Matching with filters | ||||||
| ------------------ | --------------------- | ||||||
| All filters can be used together with the 'assign' command. | All filters can be used together with the ``assign`` and ``tocages`` commands. | ||||||
| 
 | 
 | ||||||
| Restrictions: It's not possible to assign units who are inside built cages | Note that it's not possible to reassign units who are inside built cages or | ||||||
| or chained because in most cases that won't be desirable anyways. | chained, though this likely won't matter because if you have gone to the trouble | ||||||
| It's not possible to cage owned pets because in that case the owner | of creating a zoo or chaining a creature, you probably wouldn't want them | ||||||
|  | reassigned anyways. Also, ``zone`` will avoid caging owned pets because the owner | ||||||
| uncages them after a while which results in infinite hauling back and forth. | uncages them after a while which results in infinite hauling back and forth. | ||||||
| 
 | 
 | ||||||
| Usually you should always use the filter 'own' (which implies tame) unless you | Most filters should include an ``own`` element (which implies ``tame``) unless | ||||||
| want to use the zone tool for pitting hostiles. 'own' ignores own dwarves unless | you want to use ``zone assign`` for pitting hostiles. The ``own`` filter ignores | ||||||
| you specify 'race DWARF' (so it's safe to use 'assign all own' to one big | dwarves unless you explicitly specify ``race DWARF`` (so it's safe to use | ||||||
| pasture if you want to have all your animals at the same place). 'egglayer' and | ``assign all own`` to one big pasture if you want to have all your animals in | ||||||
| 'milkable' should be used together with 'female' unless you have a mod with | the same place). | ||||||
| egg-laying male elves who give milk or whatever. Merchants and their animals are |  | ||||||
| ignored unless you specify 'merchant' (pitting them should be no problem, |  | ||||||
| but stealing and pasturing their animals is not a good idea since currently they |  | ||||||
| are not properly added to your own stocks; slaughtering them should work). |  | ||||||
| 
 | 
 | ||||||
| Most filters can be negated (e.g. 'not grazer' -> race is not a grazer). | The ``egglayer`` and ``milkable`` filters should be used together with | ||||||
|  | ``female`` unless you want the males of the race included. Merchants and their | ||||||
|  | animals are ignored unless you specify ``merchant`` (pitting them should be no | ||||||
|  | problem, but stealing and pasturing their animals is not a good idea since | ||||||
|  | currently they are not properly added to your own stocks; slaughtering them | ||||||
|  | should work). | ||||||
|  | 
 | ||||||
|  | Most filters can be negated (e.g. ``not grazer`` -> race is not a grazer). | ||||||
| 
 | 
 | ||||||
| Mass-renaming | Mass-renaming | ||||||
| ------------- | ------------- | ||||||
| Using the 'nick' command you can set the same nickname for multiple units. | 
 | ||||||
| If used without 'assign', 'all' or 'count' it will rename all units in the | Using the ``nick`` command, you can set the same nickname for multiple units. | ||||||
| current default target zone. Combined with 'assign', 'all' or 'count' (and | If used without ``assign``, ``all``, or ``count``, it will rename all units in | ||||||
| further optional filters) it will rename units matching the filter conditions. | the current default target zone. Combined with ``assign``, ``all``, or ``count`` | ||||||
|  | (and likely further optional filters) it will rename units matching the filter | ||||||
|  | conditions. | ||||||
| 
 | 
 | ||||||
| Cage zones | Cage zones | ||||||
| ---------- | ---------- | ||||||
| Using the 'tocages' command you can assign units to a set of cages, for example |  | ||||||
| a room next to your butcher shop(s). They will be spread evenly among available |  | ||||||
| cages to optimize hauling to and butchering from them. For this to work you need |  | ||||||
| to build cages and then place one pen/pasture activity zone above them, covering |  | ||||||
| all cages you want to use. Then use 'zone set' (like with 'assign') and use |  | ||||||
| 'zone tocages filter1 filter2 ...'. 'tocages' overwrites 'assign' because it |  | ||||||
| would make no sense, but can be used together with 'nick' or 'remnick' and all |  | ||||||
| the usual filters. |  | ||||||
| 
 | 
 | ||||||
| Examples | The ``tocages`` command assigns units to a set of cages, for example a room next | ||||||
| -------- | to your butcher shop(s). Units will be spread evenly among available cages to | ||||||
| ``zone assign all own ALPACA minage 3 maxage 10`` | optimize hauling to and butchering from them. For this to work you need to build | ||||||
|    Assign all own alpacas who are between 3 and 10 years old to the selected | cages and then place one pen/pasture activity zone above them, covering all | ||||||
|    pasture. | cages you want to use. Then use ``zone set`` (like with ``assign``) and run | ||||||
| ``zone assign all own caged grazer nick ineedgrass`` | ``zone tocages <filter>``. ``tocages`` can be used together with ``nick`` or | ||||||
|    Assign all own grazers who are sitting in cages on stockpiles (e.g. after | ``remnick`` to adjust nicknames while assigning to cages. | ||||||
|    buying them from merchants) to the selected pasture and give them |  | ||||||
|    the nickname 'ineedgrass'. |  | ||||||
| ``zone assign all own not grazer not race CAT`` |  | ||||||
|    Assign all own animals who are not grazers, excluding cats. |  | ||||||
| ``zone assign count 5 own female milkable`` |  | ||||||
|    Assign up to 5 own female milkable creatures to the selected pasture. |  | ||||||
| ``zone assign all own race DWARF maxage 2`` |  | ||||||
|    Throw all useless kids into a pit :) |  | ||||||
| ``zone nick donttouchme`` |  | ||||||
|    Nicknames all units in the current default zone or cage to 'donttouchme'. |  | ||||||
|    Mostly intended to be used for special pastures or cages which are not marked |  | ||||||
|    as rooms you want to protect from autobutcher. |  | ||||||
| ``zone tocages count 50 own tame male not grazer`` |  | ||||||
|    Stuff up to 50 owned tame male animals who are not grazers into cages built |  | ||||||
|    on the current default zone. |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue