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:Material 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 3: | Line 3: | ||
Material tokens are used to refer to various types of materials in a wide variety of places. They can take the following forms: | Material tokens are used to refer to various types of materials in a wide variety of places. They can take the following forms: | ||
− | + | * '''BUILTIN''' (no subtype) specifies one of the hardcoded materials listed below. | |
− | + | ** COAL takes a subtype, as noted below. | |
− | + | * INORGANIC:'''NAME''' specifies a custom inorganic material, such as stone or metal. The material name can be substituted with USE_LAVA_STONE to automatically select the inorganic material having [[Inorganic material definition token|[LAVA]]], which is normally [[obsidian]]. | |
− | + | ** STONE and METAL are aliases for INORGANIC. | |
− | + | * CREATURE_MAT:'''CREATURE_ID''':'''MATERIAL_NAME''' specifies a material associated with a specific creature. | |
− | + | ** LOCAL_CREATURE_MAT:'''MATERIAL_NAME''' can be used within a creature definition to refer to a material belonging to that same creature. | |
− | + | * PLANT_MAT:'''PLANT_ID''':'''MATERIAL_NAME''' specifies a material associated with a specific plant. | |
− | + | ** LOCAL_PLANT_MAT:'''MATERIAL_NAME''' can be used within a plant definition to refer to a material belonging to that same plant. | |
− | + | * GET_MATERIAL_FROM_REAGENT:'''REAGENT_ID''':'''REACTION_PRODUCT_ID''' specifies a material related to a reagent's material within a [[reaction]]. REAGENT_ID must match a [REAGENT], and REACTION_PRODUCT_ID must either match a [MATERIAL_REACTION_PRODUCT] belonging to the reagent's material or be equal to "NONE" to use the reagent's material itself. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Several types of [[Item token|items]] expect a creature ID and caste ID (e.g. [[Ant|ANT:SOLDIER]]) in place of the material token. This does not work correctly. | Several types of [[Item token|items]] expect a creature ID and caste ID (e.g. [[Ant|ANT:SOLDIER]]) in place of the material token. This does not work correctly. | ||
Line 83: | Line 35: | ||
| 6 || WATER || [[Water]], when placed in [[bucket]]s or when mining out [[ice]]. | | 6 || WATER || [[Water]], when placed in [[bucket]]s or when mining out [[ice]]. | ||
|- | |- | ||
− | | 7 || COAL || [[Coal]] - subtype is either COKE or CHARCOAL | + | | 7 || COAL || [[Coal]] - subtype is either COKE or CHARCOAL. |
|- | |- | ||
| 8 || POTASH || [[Potash]] | | 8 || POTASH || [[Potash]] |