- 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.
Difference between revisions of "40d:Material token"
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{av}} | + | {{quality|Exceptional|21:18, 30 March 2011 (UTC)}}{{av}} |
− | :''You may be looking for | + | :''You may be looking for [[Matgloss token]]s.'' |
− | |||
− | {| {{prettytable}} | + | These tokens are types of materials, used to specify for example what material an item is made of. Unless noted otherwise, the material subtype should be NO_MATGLOSS or NO_RACEGLOSS. |
+ | |||
+ | {| {{prettytable}} class="sortable" | ||
|- bgcolor="#ddd" | |- bgcolor="#ddd" | ||
! # | ! # | ||
Line 9: | Line 10: | ||
! Information | ! Information | ||
|- | |- | ||
− | | 0 || WOOD || Subtypes come from MATGLOSS_WOOD | + | | 0 || WOOD || [[Wood]] - Subtypes come from MATGLOSS_WOOD, or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE) |
|- | |- | ||
− | | 1 || STONE || Subtypes come from MATGLOSS_STONE | + | | 1 || STONE || [[Stone]] - Subtypes come from MATGLOSS_STONE, USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE), or USE_LAVA_STONE |
|- | |- | ||
− | | 2 || METAL || Subtypes come from MATGLOSS_METAL | + | | 2 || METAL || [[Metal]] - Subtypes come from MATGLOSS_METAL, or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE) |
|- | |- | ||
− | | 3 || BONE || Subtypes come from CREATURE | + | | 3 || BONE || [[Bone]] - Subtypes come from CREATURE |
|- | |- | ||
− | | 4 || IVORY || | + | | 4 || IVORY || [[Ivory]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 5 || HORN || | + | | 5 || HORN || [[Horn]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 6 || AMBER || | + | | 6 || AMBER || [[Amber]] |
|- | |- | ||
− | | 7 || CORAL || | + | | 7 || CORAL || [[Coral]] |
|- | |- | ||
− | | 8 || PEARL || | + | | 8 || PEARL || [[Pearl]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 9 || SHELL || | + | | 9 || SHELL || [[Shell]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 10 || LEATHER || Subtypes come from CREATURE | + | | 10 || LEATHER || [[Leather]] - Subtypes come from CREATURE. Used internally for creature extracts and cheeses (and not-yet-implemented creature drinks). |
|- | |- | ||
− | | 11 || SILK || Subtypes come from CREATURE | + | | 11 || SILK || [[Silk]] - Subtypes come from CREATURE |
|- | |- | ||
− | | 12 || PLANT || Subtypes come from MATGLOSS_PLANT | + | | 12 || PLANT || Plant - Subtypes come from MATGLOSS_PLANT; or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE). Used internally for plant extracts (and not-yet-implement plant cheeses). |
|- | |- | ||
− | | 13 || GLASS_GREEN || | + | | 13 || GLASS_GREEN || [[Green glass]] |
|- | |- | ||
− | | 14 || GLASS_CLEAR || | + | | 14 || GLASS_CLEAR || [[Clear glass]] |
|- | |- | ||
− | | 15 || GLASS_CRYSTAL || | + | | 15 || GLASS_CRYSTAL || [[Crystal glass]] |
|- | |- | ||
− | | 16 || SAND || | + | | 16 || SAND || Sand - Not actually used, was a holdover from older versions. |
|- | |- | ||
− | | 17 || WATER || | + | | 17 || WATER || [[Water]] (used for water buckets and ice boulders) |
|- | |- | ||
− | | 18 || COAL || Subtype is | + | | 18 || COAL || [[Coal]] - Subtype is COKE, CHARCOAL, or NO_MATGLOSS. |
|- | |- | ||
− | | 19 || POTASH || | + | | 19 || POTASH || [[Potash]] |
|- | |- | ||
− | | 20 || ASH || | + | | 20 || ASH || [[Ash]] |
|- | |- | ||
− | | 21 || PEARLASH || | + | | 21 || PEARLASH ||[[Pearlash]] |
|- | |- | ||
− | | 22 || LYE || | + | | 22 || LYE || [[Lye]] |
|- | |- | ||
− | | 23 || RENDERED_FAT || | + | | 23 || RENDERED_FAT || [[Tallow]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 24 || SOAP_ANIMAL || | + | | 24 || SOAP_ANIMAL || [[Soap]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 25 || FAT || | + | | 25 || FAT || [[Fat]] - Should accept subtype from CREATURE, but does not due to a bug. |
|- | |- | ||
− | | 26 || MUD || | + | | 26 || MUD || [[Mud]] |
|- | |- | ||
− | | 27 || VOMIT || | + | | 27 || VOMIT || [[Vomit]] |
|- | |- | ||
− | | 28 || BLOOD_NONSPECIFIC || | + | | 28 || BLOOD_NONSPECIFIC || Generic [[blood]] - subtype is any combination of the letters 'R', 'G', 'B', 'C', 'M', 'Y', 'W', and '0' to indicate the blood's color (red, green, blue, cyan, magenta, yellow Pus, white Ichor, black Goo). |
|- | |- | ||
− | | 29 || SLIME || | + | | 29 || SLIME || Green [[slime]] |
|- | |- | ||
− | | 30 || SALT || | + | | 30 || SALT || [[Salt]] |
|- | |- | ||
− | | 31 || BLOOD_SPECIFIC || Subtypes come from CREATURE | + | | 31 || BLOOD_SPECIFIC || Creature [[blood]] - Subtypes come from CREATURE |
|- | |- | ||
− | | 32 || PLANT_ALCOHOL || Subtypes come from MATGLOSS_PLANT | + | | 32 || PLANT_ALCOHOL || Plant [[alcohol]] - Subtypes come from MATGLOSS_PLANT. |
|- | |- | ||
− | | 33 || FILTH_B || | + | | 33 || FILTH_B || [[Filth]] (brown, solid) |
|- | |- | ||
− | | 34 || FILTH_Y || | + | | 34 || FILTH_Y || [[Filth]] (yellow, liquid) |
|- | |- | ||
− | | 35 || UNKNOWN_SUBSTANCE || | + | | 35 || UNKNOWN_SUBSTANCE || [[Unknown substance]] (white, liquid) |
|- | |- | ||
− | | 36 || GRIME || | + | | 36 || GRIME || [[Grime]] |
|} | |} | ||
− | + | When making items of type WOOD, the material ''must'' be WOOD. Similarly, items of type SKIN_TANNED must be made of LEATHER. | |
− | When making reactions that use the | + | When making reactions that use the REMAINS, MEAT, FISH, FISH_RAW, VERMIN, PET, SKIN_RAW, BONES, or SHELL item tokens, use the name of the appropriate creature from creature_xxx.txt as the material and NO_MATGLOSS for the subtype. |
− | When making reactions that use the | + | When making reactions that use the PLANT, SEEDS, or LEAVES [[item token]]s, use the name of the appropriate plant from matgloss_plant.txt as the material and NO_MATGLOSS for the subtype. |
− | When making reactions that use the | + | When making reactions that use the EXTRACT or CHEESE item tokens, use either CREATURE or PLANT as the material and a creature ID or plant ID as the subtype, respectively. |
{{Category|Modding}} | {{Category|Modding}} | ||
{{Category|Tokens}} | {{Category|Tokens}} |
Latest revision as of 01:58, 15 August 2021
This article is about an older version of DF. |
- You may be looking for Matgloss tokens.
These tokens are types of materials, used to specify for example what material an item is made of. Unless noted otherwise, the material subtype should be NO_MATGLOSS or NO_RACEGLOSS.
# | Token | Information |
---|---|---|
0 | WOOD | Wood - Subtypes come from MATGLOSS_WOOD, or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE) |
1 | STONE | Stone - Subtypes come from MATGLOSS_STONE, USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE), or USE_LAVA_STONE |
2 | METAL | Metal - Subtypes come from MATGLOSS_METAL, or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE) |
3 | BONE | Bone - Subtypes come from CREATURE |
4 | IVORY | Ivory - Should accept subtype from CREATURE, but does not due to a bug. |
5 | HORN | Horn - Should accept subtype from CREATURE, but does not due to a bug. |
6 | AMBER | Amber |
7 | CORAL | Coral |
8 | PEARL | Pearl - Should accept subtype from CREATURE, but does not due to a bug. |
9 | SHELL | Shell - Should accept subtype from CREATURE, but does not due to a bug. |
10 | LEATHER | Leather - Subtypes come from CREATURE. Used internally for creature extracts and cheeses (and not-yet-implemented creature drinks). |
11 | SILK | Silk - Subtypes come from CREATURE |
12 | PLANT | Plant - Subtypes come from MATGLOSS_PLANT; or USE_RACEGLOSS within creature raws (e.g. ITEMCORPSE). Used internally for plant extracts (and not-yet-implement plant cheeses). |
13 | GLASS_GREEN | Green glass |
14 | GLASS_CLEAR | Clear glass |
15 | GLASS_CRYSTAL | Crystal glass |
16 | SAND | Sand - Not actually used, was a holdover from older versions. |
17 | WATER | Water (used for water buckets and ice boulders) |
18 | COAL | Coal - Subtype is COKE, CHARCOAL, or NO_MATGLOSS. |
19 | POTASH | Potash |
20 | ASH | Ash |
21 | PEARLASH | Pearlash |
22 | LYE | Lye |
23 | RENDERED_FAT | Tallow - Should accept subtype from CREATURE, but does not due to a bug. |
24 | SOAP_ANIMAL | Soap - Should accept subtype from CREATURE, but does not due to a bug. |
25 | FAT | Fat - Should accept subtype from CREATURE, but does not due to a bug. |
26 | MUD | Mud |
27 | VOMIT | Vomit |
28 | BLOOD_NONSPECIFIC | Generic blood - subtype is any combination of the letters 'R', 'G', 'B', 'C', 'M', 'Y', 'W', and '0' to indicate the blood's color (red, green, blue, cyan, magenta, yellow Pus, white Ichor, black Goo). |
29 | SLIME | Green slime |
30 | SALT | Salt |
31 | BLOOD_SPECIFIC | Creature blood - Subtypes come from CREATURE |
32 | PLANT_ALCOHOL | Plant alcohol - Subtypes come from MATGLOSS_PLANT. |
33 | FILTH_B | Filth (brown, solid) |
34 | FILTH_Y | Filth (yellow, liquid) |
35 | UNKNOWN_SUBSTANCE | Unknown substance (white, liquid) |
36 | GRIME | Grime |
When making items of type WOOD, the material must be WOOD. Similarly, items of type SKIN_TANNED must be made of LEATHER.
When making reactions that use the REMAINS, MEAT, FISH, FISH_RAW, VERMIN, PET, SKIN_RAW, BONES, or SHELL item tokens, use the name of the appropriate creature from creature_xxx.txt as the material and NO_MATGLOSS for the subtype.
When making reactions that use the PLANT, SEEDS, or LEAVES item tokens, use the name of the appropriate plant from matgloss_plant.txt as the material and NO_MATGLOSS for the subtype.
When making reactions that use the EXTRACT or CHEESE item tokens, use either CREATURE or PLANT as the material and a creature ID or plant ID as the subtype, respectively.