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.31:Material definition token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Added the UNDIGGABLE token added in 31.14.)
Line 28: Line 28:
 
|
 
|
 
*state
 
*state
*name
+
*valueame
 
| The name of the material as displayed in-game.
 
| The name of the material as displayed in-game.
 
[STATE_NAME:ALL_SOLID:stone]
 
[STATE_NAME:ALL_SOLID:stone]
Line 43: Line 43:
 
|
 
|
 
*state
 
*state
*name/adjective
+
*valueame/adjective
 
| Sets both STATE_NAME and STATE_ADJ at the same time.
 
| Sets both STATE_NAME and STATE_ADJ at the same time.
  
Line 140: Line 140:
 
| MOLAR_MASS
 
| MOLAR_MASS
 
|
 
|
*n
+
*value
 
| Supposedly not used.
 
| Supposedly not used.
  
Line 146: Line 146:
 
| IMPACT_YIELD
 
| IMPACT_YIELD
 
|
 
|
*n
+
*value
 
| Used for blunt-force combat.
 
| Used for blunt-force combat.
  
Line 152: Line 152:
 
| IMPACT_FRACTURE
 
| IMPACT_FRACTURE
 
|
 
|
*n
+
*value
 
| Used for blunt-force combat.
 
| Used for blunt-force combat.
  
Line 158: Line 158:
 
| IMPACT_STRAIN_AT_YIELD or IMPACT_ELASTICITY
 
| IMPACT_STRAIN_AT_YIELD or IMPACT_ELASTICITY
 
|
 
|
*n
+
*value
 
| Used for blunt-force combat.
 
| Used for blunt-force combat.
  
Line 164: Line 164:
 
| COMPRESSIVE_YIELD
 
| COMPRESSIVE_YIELD
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 170: Line 170:
 
| COMPRESSIVE_FRACTURE
 
| COMPRESSIVE_FRACTURE
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 176: Line 176:
 
| COMPRESSIVE_STRAIN_AT_YIELD or COMPRESSIVE_ELASTICITY
 
| COMPRESSIVE_STRAIN_AT_YIELD or COMPRESSIVE_ELASTICITY
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 182: Line 182:
 
| TENSILE_YIELD
 
| TENSILE_YIELD
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 188: Line 188:
 
| TENSILE_FRACTURE
 
| TENSILE_FRACTURE
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 194: Line 194:
 
| TENSILE_STRAIN_AT_YIELD or TENSILE_ELASTICITY
 
| TENSILE_STRAIN_AT_YIELD or TENSILE_ELASTICITY
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 200: Line 200:
 
| TORSION_YIELD
 
| TORSION_YIELD
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 206: Line 206:
 
| TORSION_FRACTURE
 
| TORSION_FRACTURE
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 212: Line 212:
 
| TORSION_STRAIN_AT_YIELD or TORSION_ELASTICITY
 
| TORSION_STRAIN_AT_YIELD or TORSION_ELASTICITY
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 218: Line 218:
 
| SHEAR_YIELD
 
| SHEAR_YIELD
 
|
 
|
*n
+
*value
 
| Used for cutting calculations.
 
| Used for cutting calculations.
  
Line 224: Line 224:
 
| SHEAR_FRACTURE
 
| SHEAR_FRACTURE
 
|
 
|
*n
+
*value
 
| Used for cutting calculations.
 
| Used for cutting calculations.
  
Line 230: Line 230:
 
| SHEAR_STRAIN_AT_YIELD or SHEAR_ELASTICITY
 
| SHEAR_STRAIN_AT_YIELD or SHEAR_ELASTICITY
 
|
 
|
*n
+
*value
 
| Used for cutting calculations.
 
| Used for cutting calculations.
  
Line 236: Line 236:
 
| BENDING_YIELD
 
| BENDING_YIELD
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 242: Line 242:
 
| BENDING_FRACTURE
 
| BENDING_FRACTURE
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 248: Line 248:
 
| BENDING_STRAIN_AT_YIELD or BENDING_ELASTICITY
 
| BENDING_STRAIN_AT_YIELD or BENDING_ELASTICITY
 
|
 
|
*n
+
*value
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
 
| [http://www.bay12forums.com/smf/index.php?topic=30026.msg1007133;topicseen#msg1007133 Supposedly used only during wrestling.]
  
Line 254: Line 254:
 
| MAX_EDGE
 
| MAX_EDGE
 
|
 
|
*n
+
*value
 
| How sharp the material is. Used in cutting calculations. Applying a value of at least 10000 to a stone will allow weapons made from that stone.
 
| How sharp the material is. Used in cutting calculations. Applying a value of at least 10000 to a stone will allow weapons made from that stone.
  
Line 260: Line 260:
 
| ABSORPTION
 
| ABSORPTION
 
|
 
|
*n
+
*value
 
| Supposedly not used.
 
| Supposedly not used.
  
Line 266: Line 266:
 
| ITEMS_HARD
 
| ITEMS_HARD
 
|
 
|
 +
*none
 
|
 
|
  
Line 271: Line 272:
 
| ITEMS_QUERN
 
| ITEMS_QUERN
 
|
 
|
 +
*none
 
|
 
|
  
 
|-
 
|-
 
| ITEMS_WEAPON
 
| ITEMS_WEAPON
|
+
|  
|
+
*none
 +
| {{L|Weapons#Manufactured_weapons|Weapons}} can be made out of this material.
  
 
|-
 
|-
 
| ITEMS_WEAPON_RANGED
 
| ITEMS_WEAPON_RANGED
 
|
 
|
 +
*none
 
|
 
|
  
Line 286: Line 290:
 
| ITEMS_AMMO
 
| ITEMS_AMMO
 
|
 
|
*n
+
*none
 
| {{L|Weapon#Ammunition|Ammunition}} can be made out of this material.
 
| {{L|Weapon#Ammunition|Ammunition}} can be made out of this material.
  
Line 292: Line 296:
 
| ITEMS_DIGGER
 
| ITEMS_DIGGER
 
|
 
|
*n
+
*none
 
| {{L|Weapon#Dwarf-manufactured_weapons|Picks}} can be made out of this material.
 
| {{L|Weapon#Dwarf-manufactured_weapons|Picks}} can be made out of this material.
  
Line 298: Line 302:
 
| ITEMS_ANVIL
 
| ITEMS_ANVIL
 
|
 
|
*n
+
*none
 
| {{L|Anvil|Anvils}} can be made out of this material.
 
| {{L|Anvil|Anvils}} can be made out of this material.
  
Line 304: Line 308:
 
| ITEMS_ARMOR
 
| ITEMS_ARMOR
 
|
 
|
 +
*none
 
|
 
|
  
Line 309: Line 314:
 
| ITEMS_SIEGE_ENGINE
 
| ITEMS_SIEGE_ENGINE
 
|
 
|
 +
*none
 
|
 
|
  
Line 314: Line 320:
 
| ITEMS_BARRED
 
| ITEMS_BARRED
 
|
 
|
 +
*none
 
|
 
|
  
Line 319: Line 326:
 
| ITEMS_SCALED
 
| ITEMS_SCALED
 
|
 
|
 +
*none
 
|
 
|
  
Line 324: Line 332:
 
| ITEMS_LEATHER
 
| ITEMS_LEATHER
 
|
 
|
|
+
*none
 +
| {{L|Leather|Leather}} can be made from this material.
  
 
|-
 
|-
 
| ITEMS_SOFT
 
| ITEMS_SOFT
 
|
 
|
 +
*none
 
|
 
|
  
Line 334: Line 344:
 
| ITEMS_DELICATE
 
| ITEMS_DELICATE
 
|
 
|
 +
*none
 
|
 
|
  
Line 339: Line 350:
 
| ITEMS_METAL
 
| ITEMS_METAL
 
|
 
|
 +
*none
 
|
 
|
  
Line 344: Line 356:
 
| IS_STONE
 
| IS_STONE
 
|
 
|
*n
 
 
| Used to define that said material is stone.
 
| Used to define that said material is stone.
  
Line 350: Line 361:
 
| IS_METAL
 
| IS_METAL
 
|
 
|
*n
 
 
| Used only in the metal template. Not used anywhere else.
 
| Used only in the metal template. Not used anywhere else.
  
Line 639: Line 649:
 
|
 
|
 
*item type
 
*item type
*NONE
+
*valueONE
 
| All instances in the material templates have NONE as the second argument. Possibly subtype?
 
| All instances in the material templates have NONE as the second argument. Possibly subtype?
 
[BUTCHER_SPECIAL:MEAT:NONE]
 
[BUTCHER_SPECIAL:MEAT:NONE]
Line 648: Line 658:
 
|
 
|
 
*prefix
 
*prefix
*name
+
*valueame
 
*adjective?
 
*adjective?
 
| When the creature is butchered, its organs will be named via this token.
 
| When the creature is butchered, its organs will be named via this token.
Line 674: Line 684:
 
| SOAP_LEVEL
 
| SOAP_LEVEL
 
|
 
|
*n
+
*value
 
|
 
|
  

Revision as of 23:21, 28 December 2010

This article is about an older version of DF.

The following tokens can be used in material templates, as well as materials defined in other raw files.

Token Arguments Description
MATERIAL_TEMPLATE
  • id
The name of the material template. Used when defining a template in material template files; the id is used as an argument when calling for material templates elsewhere.
STATE_COLOR
  • state
  • color
The state may be SOLID, LIQUID, GAS, POWDER, SOLID_POWDER, ALL_SOLID, or ALL.

Color comes from descriptor_color_standard.txt and is used to describe the color of the material. [STATE_COLOR:ALL_SOLID:GREY]

STATE_NAME
  • state
  • valueame
The name of the material as displayed in-game.

[STATE_NAME:ALL_SOLID:stone]

STATE_ADJ
  • state
  • adjective
Like STATE_NAME, but used in different situations. Equipment made from the material uses the adjective.
STATE_NAME_ADJ
  • state
  • valueame/adjective
Sets both STATE_NAME and STATE_ADJ at the same time.
DISPLAY_COLOR
  • foreground color
  • background color
  • forground brightness
The on-screen color of the material. Uses a standard 3-digit Template:L. Equivalent to [TILE_COLOR:a:b:c], [BUILD_COLOR:b:a:X] (X = 1 if 'a' equals 'b', 0 otherwise), and [BASIC_COLOR:a:c]
TILE_COLOR
  • foreground color
  • background color
  • forground brightness
The color of unmined tiles containing this material (for stone and soil), as well as Template:Ls in this material.
BUILD_COLOR
  • foreground color
  • background color
  • forground brightness
The color of objects made of this material which use both the foreground and background color: Template:Ls, Template:Ls, Template:Ls, Template:Ls, Template:Ls, and Template:Ls.
BASIC_COLOR
  • color
  • brightness
The color of objects made of this material which use only the foreground color, including workshops, floors and boulders, and smoothed walls.
MATERIAL_VALUE
  • value
Value modifier for the material.
SPEC_HEAT
  • specific heat capacity
See Template:L
IGNITE_POINT
  • temperature
Temperature at which the material will catch fire. May be set to NONE.
MELTING_POINT
  • temperature
Temperature at which the material melts. May be set to NONE.
BOILING_POINT
  • temperature
Temperature at which the material boils. May be set to NONE.
HEATDAM_POINT
  • temperature
Temperature at which the material takes heat damage. May be set to NONE. If the material has an ignite point but no heatdam point it may burn for very long time.[Verify]
COLDDAM_POINT
  • temperature
Temperature at which the material takes cold damage. May be set to NONE.
MAT_FIXED_TEMP
  • temperature
Constant temperature of the material. May be set to NONE.
SOLID_DENSITY
  • density
Affects the weight of the material. Also affects combat calculations; affects blunt-force damage and ability of edged weapons to pierce tissue layers.[Verify]

It is displayed as a 4 or more digit number such as 11340 for lead. 11340 kg·m^3 = 11340

LIQUID_DENSITY
  • density
It works the same as above, except it is for the liquid state.
MOLAR_MASS
  • value
Supposedly not used.
IMPACT_YIELD
  • value
Used for blunt-force combat.
IMPACT_FRACTURE
  • value
Used for blunt-force combat.
IMPACT_STRAIN_AT_YIELD or IMPACT_ELASTICITY
  • value
Used for blunt-force combat.
COMPRESSIVE_YIELD
  • value
Supposedly used only during wrestling.
COMPRESSIVE_FRACTURE
  • value
Supposedly used only during wrestling.
COMPRESSIVE_STRAIN_AT_YIELD or COMPRESSIVE_ELASTICITY
  • value
Supposedly used only during wrestling.
TENSILE_YIELD
  • value
Supposedly used only during wrestling.
TENSILE_FRACTURE
  • value
Supposedly used only during wrestling.
TENSILE_STRAIN_AT_YIELD or TENSILE_ELASTICITY
  • value
Supposedly used only during wrestling.
TORSION_YIELD
  • value
Supposedly used only during wrestling.
TORSION_FRACTURE
  • value
Supposedly used only during wrestling.
TORSION_STRAIN_AT_YIELD or TORSION_ELASTICITY
  • value
Supposedly used only during wrestling.
SHEAR_YIELD
  • value
Used for cutting calculations.
SHEAR_FRACTURE
  • value
Used for cutting calculations.
SHEAR_STRAIN_AT_YIELD or SHEAR_ELASTICITY
  • value
Used for cutting calculations.
BENDING_YIELD
  • value
Supposedly used only during wrestling.
BENDING_FRACTURE
  • value
Supposedly used only during wrestling.
BENDING_STRAIN_AT_YIELD or BENDING_ELASTICITY
  • value
Supposedly used only during wrestling.
MAX_EDGE
  • value
How sharp the material is. Used in cutting calculations. Applying a value of at least 10000 to a stone will allow weapons made from that stone.
ABSORPTION
  • value
Supposedly not used.
ITEMS_HARD
  • none
ITEMS_QUERN
  • none
ITEMS_WEAPON
  • none
Template:L can be made out of this material.
ITEMS_WEAPON_RANGED
  • none
ITEMS_AMMO
  • none
Template:L can be made out of this material.
ITEMS_DIGGER
  • none
Template:L can be made out of this material.
ITEMS_ANVIL
  • none
Template:L can be made out of this material.
ITEMS_ARMOR
  • none
ITEMS_SIEGE_ENGINE
  • none
ITEMS_BARRED
  • none
ITEMS_SCALED
  • none
ITEMS_LEATHER
  • none
Template:L can be made from this material.
ITEMS_SOFT
  • none
ITEMS_DELICATE
  • none
ITEMS_METAL
  • none
IS_STONE Used to define that said material is stone.
IS_METAL Used only in the metal template. Not used anywhere else.
IS_GLASS
IS_GEM
IMPLIES_ANIMAL_KILL Makes the elves angry if you try to trade something made from this material
ALCOHOL_PLANT
ALCOHOL_CREATURE
CHEESE_PLANT
CHEESE_CREATURE
POWDER_MISC_PLANT
POWDER_MISC_CREATURE
STOCKPILE_GLOB
LIQUID_MISC_PLANT
LIQUID_MISC_CREATURE
LIQUID_MISC_OTHER
STRUCTURAL_PLANT_MAT
SEED_MAT
LEAF_MAT
BONE
THREAD_PLANT
TOOTH


PEARL
HORN
SHELL
LEATHER
SILK
WOOD
SOAP
MEAT
GENERATES_MIASMA
ROTS
BLOOD_MAP_DESCRIPTOR
ICHOR_MAP_DESCRIPTOR
GOO_MAP_DESCRIPTOR
SLIME_MAP_DESCRIPTOR
PUS_MAP_DESCRIPTOR
EDIBLE_VERMIN Can be eaten by vermin.
EDIBLE_RAW Can be eaten raw.
EDIBLE_COOKED Can be cooked and then eaten.
CRYSTAL_GLASSABLE Can be used in the production of crystal glass
STONE_NAME Name of stones mined out if material is a stone.
LAVA Causes the material to seal magma pipes, be produced by the magma + water reaction and be used in the construction of Dark Fortresses
OVERWRITE_SOLID
TEMP_DIET_INFO
SLIME
ICHOR
GOO
FILTH
POWDER_DYE
ITEM_SYMBOL
IF_EXISTS_SET_HEATDAM_POINT
  • temperature
IF_EXISTS_SET_COLDDAM_POINT
  • temperature
IF_EXISTS_SET_IGNITE_POINT
  • temperature
IF_EXISTS_SET_MELTING_POINT
  • temperature
IF_EXISTS_SET_BOILING_POINT
  • temperature
IF_EXISTS_SET_MAT_FIXED_TEMP
  • temperature
EXTRACT_STORAGE
BUTCHER_SPECIAL
  • item type
  • valueONE
All instances in the material templates have NONE as the second argument. Possibly subtype?

[BUTCHER_SPECIAL:MEAT:NONE] [BUTCHER_SPECIAL:GLOB:NONE]

MEAT_NAME
  • prefix
  • valueame
  • adjective?
When the creature is butchered, its organs will be named via this token.
REACTION_CLASS *reaction reference Used to classify all items made of the material so that reactions can use them as generic reagents.
MATERIAL_REACTION_PRODUCT
  • reaction reference
  • LOCAL_CREATURE_MAT
  • material
Used with reaction raws to preserve material source from reagent to product. First argument comes from HAS_MATERIAL_REACTION_PRODUCT in reaction raws. Second argument is always LOCAL_CREATURE_MAT in templates but could be others.

[MATERIAL_REACTION_PRODUCT:TAN_MAT:LOCAL_CREATURE_MAT:LEATHER]

HARDENS_WITH_WATER
SOAP_LEVEL
  • value
MULTIPLY_VALUE
  • value
Multiplies the value of the selected material. Seen in local creature materials.
SYNDROME Begins defining a Template:L. Supposedly does not work with templates.[Verify]
UNDIGGABLE Used for a stone that cannot be dug into.