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 5: Line 5:
 
All custom buildings are defined as objects of type BUILDING_WORKSHOP or BUILDING_FURNACE; workshops show up in the {{K|b}}-{{K|w}} menu, while furnaces show up in the {{K|b}}-{{K|e}} menu.
 
All custom buildings are defined as objects of type BUILDING_WORKSHOP or BUILDING_FURNACE; workshops show up in the {{K|b}}-{{K|w}} menu, while furnaces show up in the {{K|b}}-{{K|e}} menu.
  
You also must add any new custom buildings to the [[Entity token|civilization]] that you want to use it.
+
You also must add any new custom buildings to the civilization that you want to use it.
  
 
Additionally, furnaces must be designed by an [[architect]] before being constructed (and will gain [[quality]] accordingly), though they will always use the labor(s) specified in the building definition rather than ones based on the materials being used.
 
Additionally, furnaces must be designed by an [[architect]] before being constructed (and will gain [[quality]] accordingly), though they will always use the labor(s) specified in the building definition rather than ones based on the materials being used.
Line 23: Line 23:
 
| NAME_COLOR
 
| NAME_COLOR
 
| fg:bg:bright
 
| fg:bg:bright
| The color of the building's name when {{K|q}}uerying it. Seemingly ignored for furnaces, which are hardcoded to 4:0:1.
+
| 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. Defaults to 3:3. Maximum possible size is 31x31.
+
| The size of the custom building, in number of tiles.
  
 
|-
 
|-
 
| WORK_LOCATION
 
| WORK_LOCATION
 
| x:y
 
| x:y
| The tile (1:1 for upper-left) in which dwarves will stand when they are performing tasks. Defaults to 3:3 (bottom-right).
+
| The tile in which dwarves will stand when they are performing tasks. Upper-left is 1:1.
  
 
|-
 
|-
Line 58: Line 58:
 
* 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 N (completed) where N is between 1 and 3, the 2nd parameter is the row number, and each subsequent parameter is a character number (or literal character enclosed in 'quotes').
+
| 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 [[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 72:
 
|
 
|
 
* quantity
 
* quantity
* [[item token]]
+
* [[item token]] (with subtype)
 
* [[material token]]
 
* [[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 100: Line 100:
 
|-
 
|-
 
| [CONTAINS_LYE]
 
| [CONTAINS_LYE]
| Item must be a BARREL or TOOL which contains at least one item of type LIQUID_MISC made of LYE.
+
| If the item is a container, it must contain LYE.
 
|-
 
|-
 
| [POTASHABLE]
 
| [POTASHABLE]
Line 106: Line 106:
 
|-
 
|-
 
| [NOT_WEB]
 
| [NOT_WEB]
| Item must be collected (to distinguish silk thread from webs). Only makes sense for items of type THREAD.
+
| States that the item must have been collected (to distinguish silk thread from webs).
 
|-
 
|-
 
| [WEB_ONLY]
 
| [WEB_ONLY]
| Item must be undisturbed (to distinguish silk thread from webs). Only makes sense for items of type THREAD.
+
| States that the item must be undisturbed (to distinguish silk thread from webs).
 
|-
 
|-
 
| [EMPTY]
 
| [EMPTY]
Line 115: Line 115:
 
|-
 
|-
 
| [NOT_CONTAIN_BARREL_ITEM]
 
| [NOT_CONTAIN_BARREL_ITEM]
| If the item is a container, it must not contain [[lye]] or [[milk]]. Not necessary if specifying [EMPTY].
+
| 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]
Line 121: Line 121:
 
|-
 
|-
 
| [GLASS_MATERIAL]  
 
| [GLASS_MATERIAL]  
| Item material must have the [IS_GLASS] token. All 3 types of [[glass]] have this token hardcoded.
+
| Item material must have the [IS_GLASS] token. All 3 types of glass have this token hardcoded.
 
|-
 
|-
 
| [BUILDMAT]
 
| [BUILDMAT]
| Item must be a general [[building material]] - BAR, BLOCKS, BOULDER, or WOOD.
+
| Item is a general building component - BAR, BLOCKS, BOULDER, or WOOD.
 
|-
 
|-
 
| [FIRE_BUILD_SAFE]
 
| [FIRE_BUILD_SAFE]
| Item material must be stable at temperatures below 11000. Currently broken - requires material's IGNITE_POINT to be set to "NONE". Only works with items of type BAR, BLOCKS, BOULDER, WOOD, and ANVIL - all others are considered unsafe.
+
| Item's material must be stable at temperatures below 11000. Currently broken - requires material's IGNITE_POINT to be set to "NONE". Only works with items of type BAR, BLOCKS, BOULDER, WOOD, and ANVIL - all others are rejected.
 
|-
 
|-
 
| [MAGMA_BUILD_SAFE]
 
| [MAGMA_BUILD_SAFE]
| Item material must be stable at temperatures below 12000. Currently broken - requires material's IGNITE_POINT to be set to "NONE". Only works with items of type BAR, BLOCKS, BOULDER, WOOD, and ANVIL - all others are considered unsafe.
+
| Item's material must be stable at temperatures below 12000. Currently broken - requires material's IGNITE_POINT to be set to "NONE". Only works with items of type BAR, BLOCKS, BOULDER, WOOD, and ANVIL - all others are rejected.
 
|-
 
|-
 
| [CAN_USE_ARTIFACT]
 
| [CAN_USE_ARTIFACT]
Line 136: Line 136:
 
|-
 
|-
 
| [WORTHLESS_STONE_ONLY]
 
| [WORTHLESS_STONE_ONLY]
| Item material must be non-[[economic]].
+
| Item material must be non-economic.
 
|-
 
|-
 
| [ANY_PLANT_MATERIAL]  
 
| [ANY_PLANT_MATERIAL]  
Line 172: Line 172:
 
|-
 
|-
 
| [USE_BODY_COMPONENT]
 
| [USE_BODY_COMPONENT]
| Item must be a body part (CORPSE or CORPSEPIECE).
+
| Item material must be a body part.
 
|-
 
|-
 
| [NO_EDGE_ALLOWED]
 
| [NO_EDGE_ALLOWED]
| Item must not have an edge - excludes sharp stones (produced using knapping) and most types of weapon/ammo.
+
| Item must not have been sharpened.
 
|-
 
|-
 
| [NOT_ENGRAVED]
 
| [NOT_ENGRAVED]
Line 184: Line 184:
 
|-
 
|-
 
| [MIN_DIMENSION:X]
 
| [MIN_DIMENSION:X]
| Item's dimension must be at least this large. The item type must be BAR, POWDER_MISC, LIQUID_MISC, DRINK, THREAD, or CLOTH for this to work.
+
| ?
 
|-
 
|-
 
| [HAS_TOOL_USE:X]
 
| [HAS_TOOL_USE:X]

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: