2022-07-10 00:01:46 -06:00
|
|
|
createitem
|
|
|
|
==========
|
2022-07-22 17:42:36 -06:00
|
|
|
|
2022-08-09 23:37:24 -06:00
|
|
|
.. dfhack-tool::
|
|
|
|
:summary: Create arbitrary items.
|
2023-03-24 23:34:09 -06:00
|
|
|
:tags: unavailable adventure fort armok items
|
2022-08-09 23:37:24 -06:00
|
|
|
|
|
|
|
You can create new items of any type and made of any material. A unit must be
|
|
|
|
selected in-game to use this command. By default, items created are spawned at
|
|
|
|
the feet of the selected unit.
|
2022-07-22 17:42:36 -06:00
|
|
|
|
|
|
|
Specify the item and material information as you would indicate them in custom
|
|
|
|
reaction raws, with the following differences:
|
2022-07-10 00:01:46 -06:00
|
|
|
|
|
|
|
* Separate the item and material with a space rather than a colon
|
|
|
|
* If the item has no subtype, the ``:NONE`` can be omitted
|
2022-07-22 17:42:36 -06:00
|
|
|
* If the item is ``REMAINS``, ``FISH``, ``FISH_RAW``, ``VERMIN``, ``PET``, or
|
|
|
|
``EGG``, then specify a ``CREATURE:CASTE`` pair instead of a material token.
|
2022-07-10 00:01:46 -06:00
|
|
|
* If the item is a ``PLANT_GROWTH``, specify a ``PLANT_ID:GROWTH_ID`` pair
|
|
|
|
instead of a material token.
|
|
|
|
|
|
|
|
Corpses, body parts, and prepared meals cannot be created using this tool.
|
|
|
|
|
2022-08-17 23:42:02 -06:00
|
|
|
Usage
|
|
|
|
-----
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem <item> <material> [<count>]``
|
2022-07-22 17:42:36 -06:00
|
|
|
Create <count> copies (default is 1) of the specified item made out of the
|
|
|
|
specified material.
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem inspect``
|
2022-07-22 17:42:36 -06:00
|
|
|
Obtain the item and material tokens of an existing item. Its output can be
|
|
|
|
used directly as arguments to ``createitem`` to create new matching items
|
|
|
|
(as long as the item type is supported).
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem floor|item|building``
|
2022-07-22 17:42:36 -06:00
|
|
|
Subsequently created items will be placed on the floor beneath the selected
|
|
|
|
unit's, inside the selected item, or as part of the selected building.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-22 17:42:36 -06:00
|
|
|
.. note::
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-22 17:42:36 -06:00
|
|
|
``createitem building`` is good for loading traps, but if you use it with
|
|
|
|
workshops, you will have to deconstruct the workshop to access the item.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
Examples
|
|
|
|
--------
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem GLOVES:ITEM_GLOVES_GAUNTLETS INORGANIC:STEEL 2``
|
2022-07-22 17:42:36 -06:00
|
|
|
Create 2 pairs of steel gauntlets (that is, 2 left gauntlets and 2 right
|
|
|
|
gauntlets).
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem WOOD PLANT_MAT:TOWER_CAP:WOOD 100``
|
2022-07-22 17:42:36 -06:00
|
|
|
Create 100 tower-cap logs.
|
2022-07-23 17:03:40 -06:00
|
|
|
``createitem PLANT_GROWTH BILBERRY:FRUIT``
|
2022-07-22 17:42:36 -06:00
|
|
|
Create a single bilberry.
|
2022-07-10 00:01:46 -06:00
|
|
|
|
2022-07-22 17:42:36 -06:00
|
|
|
For more examples, :wiki:`the wiki <Utility:DFHack/createitem>`.
|