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:Item token"
Jump to navigation
Jump to search
(note here too) |
(Fixing links within namespace (1321/2808)) |
||
Line 1: | Line 1: | ||
{{av}}{{Quality|Fine}} | {{av}}{{Quality|Fine}} | ||
− | Item tokens are the first part in defining the target item in reactions, containing the ITEM_TOKEN and ITEM_SUBTYPE. They determine the most basic form of item, and made more specific by | + | Item tokens are the first part in defining the target item in reactions, containing the ITEM_TOKEN and ITEM_SUBTYPE. They determine the most basic form of item, and made more specific by [[material token]]s. Most item tokens use NO_SUBTYPE or NONE for subtype unless explicitly stated otherwise. |
− | Nearly all items are made of a | + | Nearly all items are made of a [[Material token|material]], though several types expect a creature ID and caste ID (e.g. [[Ant|ANT:SOLDIER]]) instead. This currently does not work correctly{{bug|4973}}. |
==Standard Item Tokens== | ==Standard Item Tokens== | ||
Line 11: | Line 11: | ||
! # !! Token !! Description | ! # !! Token !! Description | ||
|- | |- | ||
− | | 0 || BAR || | + | | 0 || BAR || [[Bar]]s, such as metal, fuel, or soap. |
|- | |- | ||
− | | 1 || SMALLGEM || Cut | + | | 1 || SMALLGEM || Cut [[gem]]stones usable in jeweler's workshop |
|- | |- | ||
− | | 2 || BLOCKS || | + | | 2 || BLOCKS || [[Block]]s of any kind. |
|- | |- | ||
− | | 3 || ROUGH || Rough | + | | 3 || ROUGH || Rough [[gem]]stones. |
|- | |- | ||
− | | 4 || BOULDER / STONE || Raw mined | + | | 4 || BOULDER / STONE || Raw mined [[stone]]. |
|- | |- | ||
− | | 5 || WOOD || Wooden | + | | 5 || WOOD || Wooden [[log]]s. |
|- | |- | ||
− | | 6 || DOOR || | + | | 6 || DOOR || [[Door]]s. |
|- | |- | ||
− | | 7 || FLOODGATE || | + | | 7 || FLOODGATE || [[Floodgate]]s. |
|- | |- | ||
− | | 8 || BED || | + | | 8 || BED || [[Bed]]s. |
|- | |- | ||
− | | 9 || CHAIR || | + | | 9 || CHAIR || [[Chair]]s and thrones. |
|- | |- | ||
− | | 10 || CHAIN || | + | | 10 || CHAIN || [[Restraint]]s. |
|- | |- | ||
− | | 11 || FLASK || | + | | 11 || FLASK || [[Flask]]s. |
|- | |- | ||
− | | 12 || GOBLET || | + | | 12 || GOBLET || [[Goblet]]s. |
|- | |- | ||
− | | 13 || INSTRUMENT || Musical | + | | 13 || INSTRUMENT || Musical [[instrument]]s. Subtypes come from item_instrument.txt |
|- | |- | ||
− | | 14 || TOY || | + | | 14 || TOY || [[Toy]]s. Subtypes come from item_toy.txt |
|- | |- | ||
− | | 15 || WINDOW || Glass | + | | 15 || WINDOW || Glass [[window]]s. |
|- | |- | ||
− | | 16 || CAGE || | + | | 16 || CAGE || [[Cage]]s. |
|- | |- | ||
− | | 17 || BARREL || | + | | 17 || BARREL || [[Barrel]]s. |
|- | |- | ||
− | | 18 || BUCKET || | + | | 18 || BUCKET || [[Bucket]]s. |
|- | |- | ||
− | | 19 || ANIMALTRAP || | + | | 19 || ANIMALTRAP || [[Animal trap]]s. |
|- | |- | ||
− | | 20 || TABLE || | + | | 20 || TABLE || [[Table]]s. |
|- | |- | ||
− | | 21 || COFFIN || | + | | 21 || COFFIN || [[Coffin]]s. |
|- | |- | ||
− | | 22 || STATUE || | + | | 22 || STATUE || [[Statue]]s. |
|- | |- | ||
− | | 23 || CORPSE || | + | | 23 || CORPSE || [[Corpse]]s. Does not have a material. |
|- | |- | ||
− | | 24 || WEAPON || | + | | 24 || WEAPON || [[Weapon]]s. Subtypes come from item_weapon.txt |
|- | |- | ||
− | | 25 || ARMOR || | + | | 25 || ARMOR || [[Armor]] and clothing worn on the upper body. Subtypes come from item_armor.txt |
|- | |- | ||
| 26 || SHOES || Armor and clothing worn on the feet. Subtypes come from item_shoes.txt | | 26 || SHOES || Armor and clothing worn on the feet. Subtypes come from item_shoes.txt | ||
|- | |- | ||
− | | 27 || SHIELD || | + | | 27 || SHIELD || [[Shield]]s and bucklers. Subtypes come from item_shield.txt |
|- | |- | ||
| 28 || HELM || Armor and clothing worn on the head. Subtypes come from item_helm.txt | | 28 || HELM || Armor and clothing worn on the head. Subtypes come from item_helm.txt | ||
Line 71: | Line 71: | ||
| 29 || GLOVES || Armor and clothing worn on the hands. Subtypes come from item_gloves.txt | | 29 || GLOVES || Armor and clothing worn on the hands. Subtypes come from item_gloves.txt | ||
|- | |- | ||
− | | 30 || BOX || | + | | 30 || BOX || [[Container|Chest]]s (wood), coffers (stone), boxes (glass), and bags (cloth or leather). |
|- | |- | ||
− | | 31 || BIN || | + | | 31 || BIN || [[Bin]]s. |
|- | |- | ||
− | | 32 || ARMORSTAND || | + | | 32 || ARMORSTAND || [[Armor stand]]s. |
|- | |- | ||
− | | 33 || WEAPONRACK || | + | | 33 || WEAPONRACK || [[Weapon rack]]s. |
|- | |- | ||
− | | 34 || CABINET || | + | | 34 || CABINET || [[Cabinet]]s. |
|- | |- | ||
− | | 35 || FIGURINE || | + | | 35 || FIGURINE || [[Figurine]]s. |
|- | |- | ||
− | | 36 || AMULET || | + | | 36 || AMULET || [[Amulet]]s. |
|- | |- | ||
− | | 37 || SCEPTER || | + | | 37 || SCEPTER || [[Scepter]]s. |
|- | |- | ||
− | | 38 || AMMO || | + | | 38 || AMMO || [[Ammunition]] for hand-held weapons. Subtypes come from item_ammo.txt |
|- | |- | ||
− | | 39 || CROWN || | + | | 39 || CROWN || [[Crown]]s. |
|- | |- | ||
− | | 40 || RING || | + | | 40 || RING || [[Ring]]s. |
|- | |- | ||
− | | 41 || EARRING || | + | | 41 || EARRING || [[Earring]]s. |
|- | |- | ||
− | | 42 || BRACELET || | + | | 42 || BRACELET || [[Bracelet]]s. |
|- | |- | ||
− | | 43 || GEM || Large | + | | 43 || GEM || Large [[gem]]s. |
|- | |- | ||
− | | 44 || ANVIL || | + | | 44 || ANVIL || [[Anvil]]s. |
|- | |- | ||
− | | 45 || CORPSEPIECE || | + | | 45 || CORPSEPIECE || [[Body part]]s. Does not have a material. |
|- | |- | ||
− | | 46 || REMAINS || Dead | + | | 46 || REMAINS || Dead [[vermin]] bodies. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 47 || MEAT || Butchered | + | | 47 || MEAT || Butchered [[meat]]. |
|- | |- | ||
− | | 48 || FISH || Prepared | + | | 48 || FISH || Prepared [[fish]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
| 49 || FISH_RAW || Unprepared fish. Material is CREATURE_ID:CASTE. | | 49 || FISH_RAW || Unprepared fish. Material is CREATURE_ID:CASTE. | ||
|- | |- | ||
− | | 50 || VERMIN || Live | + | | 50 || VERMIN || Live [[vermin]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
| 51 || PET || Tame vermin. Material is CREATURE_ID:CASTE. | | 51 || PET || Tame vermin. Material is CREATURE_ID:CASTE. | ||
|- | |- | ||
− | | 52 || SEEDS || | + | | 52 || SEEDS || [[Seed]]s from plants. |
|- | |- | ||
− | | 53 || PLANT || | + | | 53 || PLANT || [[Plant]]s. |
|- | |- | ||
− | | 54 || SKIN_TANNED || | + | | 54 || SKIN_TANNED || [[Leather|Tanned skins]]. |
|- | |- | ||
− | | 55 || LEAVES || Leaves, usually from | + | | 55 || LEAVES || Leaves, usually from [[quarry bush]]es. |
|- | |- | ||
− | | 56 || THREAD || | + | | 56 || THREAD || [[Thread]] gathered from webs or made at the [[farmer's workshop]]. |
|- | |- | ||
− | | 57 || CLOTH || | + | | 57 || CLOTH || [[Cloth]] made at the [[loom]]. |
|- | |- | ||
− | | 58 || TOTEM || Skull | + | | 58 || TOTEM || Skull [[totem]]s. |
|- | |- | ||
| 59 || PANTS || Armor and clothing worn on the legs. Subtypes come from item_pants.txt | | 59 || PANTS || Armor and clothing worn on the legs. Subtypes come from item_pants.txt | ||
|- | |- | ||
− | | 60 || BACKPACK || | + | | 60 || BACKPACK || [[Backpack]]s. |
|- | |- | ||
− | | 61 || QUIVER || | + | | 61 || QUIVER || [[Quiver]]s. |
|- | |- | ||
− | | 62 || CATAPULTPARTS || | + | | 62 || CATAPULTPARTS || [[Catapult]] parts. |
|- | |- | ||
− | | 63 || BALLISTAPARTS || | + | | 63 || BALLISTAPARTS || [[Ballista]] parts. |
|- | |- | ||
| 64 || SIEGEAMMO || Siege engine ammunition. Subtypes come from item_siegeammo.txt | | 64 || SIEGEAMMO || Siege engine ammunition. Subtypes come from item_siegeammo.txt | ||
Line 143: | Line 143: | ||
| 65 || BALLISTAARROWHEAD || Ballista arrow heads. | | 65 || BALLISTAARROWHEAD || Ballista arrow heads. | ||
|- | |- | ||
− | | 66 || TRAPPARTS || | + | | 66 || TRAPPARTS || [[Mechanisms]]. |
|- | |- | ||
− | | 67 || TRAPCOMP || | + | | 67 || TRAPCOMP || [[Trap component]]s. Subtypes come from item_trapcomp.txt |
|- | |- | ||
− | | 68 || DRINK || | + | | 68 || DRINK || [[Alcohol]]ic drinks. |
|- | |- | ||
− | | 69 || POWDER_MISC || Powders such as | + | | 69 || POWDER_MISC || Powders such as [[flour]], [[gypsum plaster]], [[dye]], or [[sand]]. |
|- | |- | ||
− | | 70 || CHEESE || Pieces of | + | | 70 || CHEESE || Pieces of [[cheese]]. |
|- | |- | ||
− | | 71 || FOOD || | + | | 71 || FOOD || [[Prepared meal]]s. Subtypes come from item_food.txt |
|- | |- | ||
− | | 72 || LIQUID_MISC || Liquids such as | + | | 72 || LIQUID_MISC || Liquids such as [[water]], [[lye]], and extracts. |
|- | |- | ||
− | | 73 || COIN || | + | | 73 || COIN || [[Coin]]s. |
|- | |- | ||
− | | 74 || GLOB || | + | | 74 || GLOB || [[Fat]], [[tallow]], pastes/pressed objects, and small bits of molten rock/metal. |
|- | |- | ||
− | | 75 || ROCK || Small rocks (usually | + | | 75 || ROCK || Small rocks (usually [[Knapper|sharpened]] and/or [[Thrower|thrown]] in [[adventurer mode]]) |
|- | |- | ||
− | | 76 || PIPE_SECTION || | + | | 76 || PIPE_SECTION || [[Pipe section]]s. |
|- | |- | ||
− | | 77 || HATCH_COVER || | + | | 77 || HATCH_COVER || [[Hatch cover]]s. |
|- | |- | ||
− | | 78 || GRATE || | + | | 78 || GRATE || [[Grate]]s. |
|- | |- | ||
− | | 79 || QUERN || | + | | 79 || QUERN || [[Quern]]s. |
|- | |- | ||
− | | 80 || MILLSTONE || | + | | 80 || MILLSTONE || [[Millstone]]s. |
|- | |- | ||
− | | 81 || SPLINT || | + | | 81 || SPLINT || [[Splint]]s. |
|- | |- | ||
− | | 82 || CRUTCH || | + | | 82 || CRUTCH || [[Crutch]]es. |
|- | |- | ||
− | | 83 || TRACTION_BENCH || | + | | 83 || TRACTION_BENCH || [[Traction bench]]es. |
|- | |- | ||
− | | 84 || ORTHOPEDIC_CAST || | + | | 84 || ORTHOPEDIC_CAST || [[Cast]]s. |
|- | |- | ||
− | | 85 || TOOL || | + | | 85 || TOOL || [[Tool]]s. Subtypes come from item_tool.txt |
|- | |- | ||
− | | 86 || SLAB || | + | | 86 || SLAB || [[Slab]]s. |
|- | |- | ||
− | | 87 || EGG || | + | | 87 || EGG || [[Egg]]s. Material is CREATURE_ID:CASTE. |
|} | |} | ||
==Limited/Special Use Item Tokens== | ==Limited/Special Use Item Tokens== | ||
− | In several specific locations, the values below can be substituted for the item type and subtype (and be followed directly by the | + | In several specific locations, the values below can be substituted for the item type and subtype (and be followed directly by the [[material token]]). |
{| {{prettytable}} | {| {{prettytable}} | ||
Line 202: | Line 202: | ||
| ANY_CRAFT | | ANY_CRAFT | ||
| NONE | | NONE | ||
− | | | + | | [[Reaction]] [REAGENT] |
| Matches FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. | | Matches FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. | ||
Line 208: | Line 208: | ||
| ANY_RAW_MATERIAL | | ANY_RAW_MATERIAL | ||
| NONE | | NONE | ||
− | | | + | | [[Reaction]] [REAGENT] |
| Matches POWDER_MISC, BAR, BOULDER, or GLOB. | | Matches POWDER_MISC, BAR, BOULDER, or GLOB. | ||
Line 214: | Line 214: | ||
| CRAFTS | | CRAFTS | ||
| NONE | | NONE | ||
− | | | + | | [[Reaction]] [PRODUCT] |
| Produces 1-3 items of type FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. | | Produces 1-3 items of type FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. | ||
Line 233: | Line 233: | ||
| METAL_ORE | | METAL_ORE | ||
| Metal | | Metal | ||
− | | | + | | [[Reaction]] [REAGENT] |
| This functions a bit differently from the other tokens. It Seems to call for a stone/boulder (only????) of a material with a [METAL_ORE:<Metal>:<percentage>] token for the metal specified. This token is therefore more specific and seems to fill the role of both the item token and the material token in a reaction reagent. Found in the "(use ore)" versions of smelter reactions. | | This functions a bit differently from the other tokens. It Seems to call for a stone/boulder (only????) of a material with a [METAL_ORE:<Metal>:<percentage>] token for the metal specified. This token is therefore more specific and seems to fill the role of both the item token and the material token in a reaction reagent. Found in the "(use ore)" versions of smelter reactions. | ||
Line 239: | Line 239: | ||
==See Also== | ==See Also== | ||
− | * | + | *[[Material token]] |
− | * | + | *[[Reactions]] |
{{Category|Tokens}} | {{Category|Tokens}} | ||
{{Category|Modding}} | {{Category|Modding}} |
Revision as of 17:01, 8 December 2011
This article is about an older version of DF. |
Item tokens are the first part in defining the target item in reactions, containing the ITEM_TOKEN and ITEM_SUBTYPE. They determine the most basic form of item, and made more specific by material tokens. Most item tokens use NO_SUBTYPE or NONE for subtype unless explicitly stated otherwise.
Nearly all items are made of a material, though several types expect a creature ID and caste ID (e.g. ANT:SOLDIER) instead. This currently does not work correctlyBug:4973.
Standard Item Tokens
# | Token | Description |
---|---|---|
0 | BAR | Bars, such as metal, fuel, or soap. |
1 | SMALLGEM | Cut gemstones usable in jeweler's workshop |
2 | BLOCKS | Blocks of any kind. |
3 | ROUGH | Rough gemstones. |
4 | BOULDER / STONE | Raw mined stone. |
5 | WOOD | Wooden logs. |
6 | DOOR | Doors. |
7 | FLOODGATE | Floodgates. |
8 | BED | Beds. |
9 | CHAIR | Chairs and thrones. |
10 | CHAIN | Restraints. |
11 | FLASK | Flasks. |
12 | GOBLET | Goblets. |
13 | INSTRUMENT | Musical instruments. Subtypes come from item_instrument.txt |
14 | TOY | Toys. Subtypes come from item_toy.txt |
15 | WINDOW | Glass windows. |
16 | CAGE | Cages. |
17 | BARREL | Barrels. |
18 | BUCKET | Buckets. |
19 | ANIMALTRAP | Animal traps. |
20 | TABLE | Tables. |
21 | COFFIN | Coffins. |
22 | STATUE | Statues. |
23 | CORPSE | Corpses. Does not have a material. |
24 | WEAPON | Weapons. Subtypes come from item_weapon.txt |
25 | ARMOR | Armor and clothing worn on the upper body. Subtypes come from item_armor.txt |
26 | SHOES | Armor and clothing worn on the feet. Subtypes come from item_shoes.txt |
27 | SHIELD | Shields and bucklers. Subtypes come from item_shield.txt |
28 | HELM | Armor and clothing worn on the head. Subtypes come from item_helm.txt |
29 | GLOVES | Armor and clothing worn on the hands. Subtypes come from item_gloves.txt |
30 | BOX | Chests (wood), coffers (stone), boxes (glass), and bags (cloth or leather). |
31 | BIN | Bins. |
32 | ARMORSTAND | Armor stands. |
33 | WEAPONRACK | Weapon racks. |
34 | CABINET | Cabinets. |
35 | FIGURINE | Figurines. |
36 | AMULET | Amulets. |
37 | SCEPTER | Scepters. |
38 | AMMO | Ammunition for hand-held weapons. Subtypes come from item_ammo.txt |
39 | CROWN | Crowns. |
40 | RING | Rings. |
41 | EARRING | Earrings. |
42 | BRACELET | Bracelets. |
43 | GEM | Large gems. |
44 | ANVIL | Anvils. |
45 | CORPSEPIECE | Body parts. Does not have a material. |
46 | REMAINS | Dead vermin bodies. Material is CREATURE_ID:CASTE. |
47 | MEAT | Butchered meat. |
48 | FISH | Prepared fish. Material is CREATURE_ID:CASTE. |
49 | FISH_RAW | Unprepared fish. Material is CREATURE_ID:CASTE. |
50 | VERMIN | Live vermin. Material is CREATURE_ID:CASTE. |
51 | PET | Tame vermin. Material is CREATURE_ID:CASTE. |
52 | SEEDS | Seeds from plants. |
53 | PLANT | Plants. |
54 | SKIN_TANNED | Tanned skins. |
55 | LEAVES | Leaves, usually from quarry bushes. |
56 | THREAD | Thread gathered from webs or made at the farmer's workshop. |
57 | CLOTH | Cloth made at the loom. |
58 | TOTEM | Skull totems. |
59 | PANTS | Armor and clothing worn on the legs. Subtypes come from item_pants.txt |
60 | BACKPACK | Backpacks. |
61 | QUIVER | Quivers. |
62 | CATAPULTPARTS | Catapult parts. |
63 | BALLISTAPARTS | Ballista parts. |
64 | SIEGEAMMO | Siege engine ammunition. Subtypes come from item_siegeammo.txt |
65 | BALLISTAARROWHEAD | Ballista arrow heads. |
66 | TRAPPARTS | Mechanisms. |
67 | TRAPCOMP | Trap components. Subtypes come from item_trapcomp.txt |
68 | DRINK | Alcoholic drinks. |
69 | POWDER_MISC | Powders such as flour, gypsum plaster, dye, or sand. |
70 | CHEESE | Pieces of cheese. |
71 | FOOD | Prepared meals. Subtypes come from item_food.txt |
72 | LIQUID_MISC | Liquids such as water, lye, and extracts. |
73 | COIN | Coins. |
74 | GLOB | Fat, tallow, pastes/pressed objects, and small bits of molten rock/metal. |
75 | ROCK | Small rocks (usually sharpened and/or thrown in adventurer mode) |
76 | PIPE_SECTION | Pipe sections. |
77 | HATCH_COVER | Hatch covers. |
78 | GRATE | Grates. |
79 | QUERN | Querns. |
80 | MILLSTONE | Millstones. |
81 | SPLINT | Splints. |
82 | CRUTCH | Crutches. |
83 | TRACTION_BENCH | Traction benches. |
84 | ORTHOPEDIC_CAST | Casts. |
85 | TOOL | Tools. Subtypes come from item_tool.txt |
86 | SLAB | Slabs. |
87 | EGG | Eggs. Material is CREATURE_ID:CASTE. |
Limited/Special Use Item Tokens
In several specific locations, the values below can be substituted for the item type and subtype (and be followed directly by the material token).
Token | Subtypes | Valid Uses | Description |
---|---|---|---|
ANY_CRAFT | NONE | Reaction [REAGENT] | Matches FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. |
ANY_RAW_MATERIAL | NONE | Reaction [REAGENT] | Matches POWDER_MISC, BAR, BOULDER, or GLOB. |
CRAFTS | NONE | Reaction [PRODUCT] | Produces 1-3 items of type FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. |
Related Tokens
These tokens are not Item Tokens at all, but can take the place of them in some circumstances.
Token | Subtypes | Valid Uses | Description |
---|---|---|---|
METAL_ORE | Metal | Reaction [REAGENT] | This functions a bit differently from the other tokens. It Seems to call for a stone/boulder (only????) of a material with a [METAL_ORE:<Metal>:<percentage>] token for the metal specified. This token is therefore more specific and seems to fill the role of both the item token and the material token in a reaction reagent. Found in the "(use ore)" versions of smelter reactions. |