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.

Difference between revisions of "v0.34:Material token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Formatting, cleaning up, etc.)
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.
+
 
** INORGANIC and COAL take subtypes, as noted below.
+
* INORGANIC:'''NAME''' specifies a custom inorganic material, such as stone or metal. Example: INORGANIC:IRON
* 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]], but can be modded to be other things.
** 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.
 
** STONE and METAL are aliases for INORGANIC.
* CREATURE_MAT:'''CREATURE_ID''':'''MATERIAL_NAME''' specifies a material associated with a specific creature.
+
 
 +
* CREATURE_MAT:'''CREATURE_ID''':'''MATERIAL_NAME''' specifies a material associated with a specific creature. Example: CREATURE_MAT:DWARF:SKIN
 
** LOCAL_CREATURE_MAT:'''MATERIAL_NAME''' can be used within a creature definition to refer to a material belonging to that same 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.
+
 
 +
* PLANT_MAT:'''PLANT_ID''':'''MATERIAL_NAME''' specifies a material associated with a specific plant. An example: PLANT_MAT:MUSHROOM_HELMET_PLUMP:STRUCTURAL
 
** LOCAL_PLANT_MAT:'''MATERIAL_NAME''' can be used within a plant definition to refer to a material belonging to that same 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.
 
* 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.
 +
 +
* COAL:'''CHARCOAL/COKE/NO_MATGLOSS''' specifies a material that can be used as fuel--charcoal, coke, and "refined coal", respectively.
 +
 +
* '''MATERIAL''':NONE specifies one of the hardcoded materials listed below.
  
 
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 currently does not work correctly{{bug|4973}}.
 
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 currently does not work correctly{{bug|4973}}.

Revision as of 01:06, 9 November 2012

This article is about an older version of DF.
You may be looking for Material definition token.

Material tokens are used to refer to various types of materials in a wide variety of places. They can take the following forms:

  • INORGANIC:NAME specifies a custom inorganic material, such as stone or metal. Example: INORGANIC:IRON
    • The material name can be substituted with USE_LAVA_STONE to automatically select the inorganic material having [LAVA], which is normally obsidian, but can be modded to be other things.
    • STONE and METAL are aliases for INORGANIC.
  • CREATURE_MAT:CREATURE_ID:MATERIAL_NAME specifies a material associated with a specific creature. Example: CREATURE_MAT:DWARF:SKIN
    • 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. An example: PLANT_MAT:MUSHROOM_HELMET_PLUMP:STRUCTURAL
    • 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.
  • COAL:CHARCOAL/COKE/NO_MATGLOSS specifies a material that can be used as fuel--charcoal, coke, and "refined coal", respectively.
  • MATERIAL:NONE specifies one of the hardcoded materials listed below.

Several types of items expect a creature ID and caste ID (e.g. ANT:SOLDIER) in place of the material token. This currently does not work correctlyBug:4973.

# Token Information
0 INORGANIC Magma when specified with subtype NONE or NO_MATGLOSS, otherwise a user-defined inorganic material.
1 AMBER Amber
2 CORAL Coral
3 GLASS_GREEN Green glass
4 GLASS_CLEAR Clear glass
5 GLASS_CRYSTAL Crystal glass
6 WATER Water, when placed in buckets or when mining out ice.
7 COAL Coal - subtype is either COKE or CHARCOAL (or NO_MATGLOSS to match either).
8 POTASH Potash
9 ASH Ash
10 PEARLASH Pearlash
11 LYE Lye
12 MUD Mud
13 VOMIT Vomit
14 SALT Salt
15 FILTH_B Filth (brown, solid)
16 FILTH_Y Filth (yellow, liquid)
17 UNKNOWN_SUBSTANCE Unknown substance (white, liquid)
18 GRIME Grime