v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Editing v0.31:Building token
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.31"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{quality|Fine| | + | {{quality|Fine|16:29, 20 February 2011 (UTC)}}These tokens control the functionality of custom buildings. |
− | + | All custom buildings are defined as objects of type BUILDING_WORKSHOP or BUILDING_FURNACE. | |
− | |||
− | All custom buildings are defined as objects of type BUILDING_WORKSHOP or BUILDING_FURNACE | ||
− | |||
− | |||
− | |||
− | |||
{| {{prettytable}} | {| {{prettytable}} | ||
Line 23: | Line 17: | ||
| NAME_COLOR | | NAME_COLOR | ||
| fg:bg:bright | | fg:bg:bright | ||
− | | The color of the building's name when {{K|q}}uerying it | + | | The color of the building's name when {{K|q}}uerying it. |
|- | |- | ||
| DIM | | DIM | ||
| width:height | | width:height | ||
− | | The size of the custom building, in number of tiles | + | | The size of the custom building, in number of tiles. |
|- | |- | ||
| WORK_LOCATION | | WORK_LOCATION | ||
| x:y | | x:y | ||
− | | The tile | + | | The tile in which dwarves will stand when they are performing tasks. Upper-left is 1:1. |
|- | |- | ||
| BUILD_LABOR | | BUILD_LABOR | ||
− | | | + | | labor token |
− | | The labor required to | + | | The labor required to build the custom building. |
|- | |- | ||
Line 50: | Line 44: | ||
* row | * row | ||
* tiles... | * tiles... | ||
− | | Specifies whether or not each workshop tile blocks movement. The first parameter is the row (1 = top), and each subsequent parameter is a 0 | + | | Specifies whether or not each workshop tile blocks movement. The first parameter is the row (1 = top), and each subsequent parameter is a 0 or 1 for each column (1 = left). |
|- | |- | ||
Line 58: | Line 52: | ||
* row | * row | ||
* tiles... | * tiles... | ||
− | | Specifies the characters used to represent the custom building. The first parameter is the building stage, varying from 0 (awaiting construction) to | + | | Specifies the characters used to represent the custom building. The first parameter is the building stage, varying either from 0 to 3 (0 = awaiting construction, 1 = partially constructed, 2 = nearly constructed, 3 = completed) or from 0 to 1 (0 = awaiting construction, 1 = completed, similar to simple buildings like the {{L|quern}}), the 2nd parameter is the row number, and each subsequent parameter is a character number (or literal character enclosed in 'quotes'). |
|- | |- | ||
Line 72: | Line 66: | ||
| | | | ||
* quantity | * quantity | ||
− | * | + | * {{L|item token}} (with subtype) |
− | * | + | * {{L|material token}} |
| Specifies one of the objects necessary to construct the custom building. Each BUILD_ITEM can be followed by zero or more modifiers. | | Specifies one of the objects necessary to construct the custom building. Each BUILD_ITEM can be followed by zero or more modifiers. | ||
Line 79: | Line 73: | ||
| NEEDS_MAGMA | | NEEDS_MAGMA | ||
| | | | ||
− | | Specifies that one of the building's tiles (other than the WORK_LOCATION) must be hanging over | + | | Specifies that one of the building's tiles (other than the WORK_LOCATION) must be hanging over {{L|magma}} in order for the building to function. |
|} | |} | ||
==Item Modifiers== | ==Item Modifiers== | ||
− | Building items have many of the same modifiers as | + | Building items have many of the same modifiers as {{L|Reactions#Modifiers|reagents}} in custom reactions. |
{| {{prettytable}} | {| {{prettytable}} | ||
Line 89: | Line 83: | ||
! Token | ! Token | ||
! Meaning | ! Meaning | ||
− | |||
− | |||
− | |||
|- | |- | ||
| [HAS_MATERIAL_REACTION_PRODUCT:X] | | [HAS_MATERIAL_REACTION_PRODUCT:X] | ||
Line 100: | Line 91: | ||
|- | |- | ||
| [CONTAINS_LYE] | | [CONTAINS_LYE] | ||
− | | | + | | If the item is a container, it must contain LYE. |
|- | |- | ||
| [POTASHABLE] | | [POTASHABLE] | ||
− | | | + | | The item must be able to be turned into potash - thus, it must be either ASH or LYE. |
|- | |- | ||
| [NOT_WEB] | | [NOT_WEB] | ||
− | | | + | | States that the material cannot be a web (For only plant/adamantine thread?). |
|- | |- | ||
| [WEB_ONLY] | | [WEB_ONLY] | ||
− | | | + | | States that the material has to be a web (For only silk thread?). |
|- | |- | ||
| [EMPTY] | | [EMPTY] | ||
Line 115: | Line 106: | ||
|- | |- | ||
| [NOT_CONTAIN_BARREL_ITEM] | | [NOT_CONTAIN_BARREL_ITEM] | ||
− | | If the item is a | + | | If the item is a Barrel, it must not contain an item that has to reside in a barrel. A building which is built from a barrel should probably have both this and [EMPTY]. |
|- | |- | ||
| [BAG] | | [BAG] | ||
− | | Item | + | | Item has to be a bag. Intended to be used with an item type of BOX, to prevent chests, coffers, and other containers from being used instead. |
|- | |- | ||
| [GLASS_MATERIAL] | | [GLASS_MATERIAL] | ||
− | | Item | + | | Item is made of one of the 3 types of glass. |
|- | |- | ||
| [BUILDMAT] | | [BUILDMAT] | ||
− | | Item | + | | Item is a general building component - BAR, BLOCKS, BOULDER, or WOOD. |
|- | |- | ||
| [FIRE_BUILD_SAFE] | | [FIRE_BUILD_SAFE] | ||
− | | Item | + | | Item must be considered fire safe - ie. not wood, and not coal. |
|- | |- | ||
| [MAGMA_BUILD_SAFE] | | [MAGMA_BUILD_SAFE] | ||
− | | Item | + | | Item must have a melting point greater than the temperature of Magma. |
|- | |- | ||
| [CAN_USE_ARTIFACT] | | [CAN_USE_ARTIFACT] | ||
Line 136: | Line 127: | ||
|- | |- | ||
| [WORTHLESS_STONE_ONLY] | | [WORTHLESS_STONE_ONLY] | ||
− | | Item | + | | Item is not made of an economic stone. |
|- | |- | ||
| [ANY_PLANT_MATERIAL] | | [ANY_PLANT_MATERIAL] | ||
− | | Item material must | + | | Item material must have any of the [STRUCTURAL_PLANT_MAT], [SEED_MAT], or [LEAF_MAT] tokens.{{verify}} |
|- | |- | ||
| [ANY_SILK_MATERIAL] | | [ANY_SILK_MATERIAL] | ||
Line 157: | Line 148: | ||
|- | |- | ||
| [ANY_STRAND_TISSUE] | | [ANY_STRAND_TISSUE] | ||
− | | | + | | Unknown |
|- | |- | ||
| [ANY_SHELL_MATERIAL] | | [ANY_SHELL_MATERIAL] | ||
Line 172: | Line 163: | ||
|- | |- | ||
| [USE_BODY_COMPONENT] | | [USE_BODY_COMPONENT] | ||
− | | Item must | + | | Item material must come off a creature's body. |
|- | |- | ||
| [NO_EDGE_ALLOWED] | | [NO_EDGE_ALLOWED] | ||
− | | Item must not have | + | | Item must not have been sharpened |
|- | |- | ||
| [NOT_ENGRAVED] | | [NOT_ENGRAVED] | ||
− | | | + | | ? |
|- | |- | ||
− | | [METAL_ORE | + | | [METAL_ORE] |
− | | Item material must be | + | | Item material must be a metal ore. |
|- | |- | ||
− | | [MIN_DIMENSION | + | | [MIN_DIMENSION] |
− | | | + | | ? |
|- | |- | ||
| [HAS_TOOL_USE:X] | | [HAS_TOOL_USE:X] | ||
− | | Item must be a | + | | Item must be a {{L|tool}} with the specific TOOL_USE value. The item type must be TOOL:NONE for this to make any sense. |
|} | |} | ||
{{Category|Modding}} | {{Category|Modding}} | ||
{{Category|Tokens}} | {{Category|Tokens}} |