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 "40d:Item token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Changed quality rating from "Exceptional" to "Superior" using the rating script)
 
(41 intermediate revisions by 17 users not shown)
Line 1: Line 1:
These are to be used with certain [[Creature Tokens]] (such as ITEMCORPSE) as well as in [[Reactions]].
+
{{Quality|Superior|01:25, 8 July 2013 (UTC)}}
 
+
{{av}}
 +
:''You may be looking for [[Item definition token]].''
 +
These are to be used with certain [[Creature token]] (such as ITEMCORPSE) as well as in [[Reactions]].
  
 
An item is described by four tokens, as such:
 
An item is described by four tokens, as such:
  
 
  [<whatever is asking for the token>:TYPE:SUBTYPE:MATERIAL:MATGLOSS]
 
  [<whatever is asking for the token>:TYPE:SUBTYPE:MATERIAL:MATGLOSS]
 +
 +
Nearly all items are made of a [[Material token|material]], though several types expect either a creature ID or a plant ID instead.
  
 
==Item type tokens==
 
==Item type tokens==
  
{| border="0" cellpadding="2" width="55%"
+
{| {{prettytable}} class="sortable"
! width="20%" | Token
+
|- bgcolor="#ddd"
! width="80%" | Description
+
! # !! Token !! Description
 +
|-
 +
| 0 || BAR || [[Bar]]s, such as [[metal]], [[fuel]], or [[soap]].
 +
|-
 +
| 1 || SMALLGEM || Cut [[gem]]stones usable in [[jeweler's workshop]]
 
|-
 
|-
| SMALLGEM || Cut gemstones usable in jeweler's workshop
+
| 2 || BLOCKS || [[Block]]s of any kind.
 
|-
 
|-
| BLOCKS || Blocks of any kind.  No known subtypes.
+
| 3 || ROUGH || Rough [[gem]]stones or raw [[glass]].
 
|-
 
|-
| ROUGH || Raw gemstones.  No known subtypes.
+
| 4 || STONE || Raw mined [[stone]].
 
|-
 
|-
| STONE || Raw mined stone. No known subtypes.
+
| 5 || WOOD || Wooden [[log]]s. Material must be WOOD.
 
|-
 
|-
| WOOD || Wooden logs.  No known subtypes.
+
| 6 || DOOR || [[Door]]s.
 
|-
 
|-
| DOOR || Doors.  No known subtypes.
+
| 7 || FLOODGATE || [[Floodgate]]s.
 
|-
 
|-
| FLOODGATE || Floodgates.  No known subtypes.
+
| 8 || BED || [[Bed]]s.
 
|-
 
|-
| BED || Beds.  No known subtypes.
+
| 9 || CHAIR || [[Chair]]s and thrones.
 
|-
 
|-
| CHAIR || Chairs and thrones.  No known subtypes.
+
| 10 || CHAIN || [[Chain]]s and [[rope]]s.
 
|-
 
|-
| CHAIN || Chains and ropes.  No known subtypes.
+
| 11 || FLASK || [[Flask]]s.
 
|-
 
|-
| FLASK || Flasks.  No known subtypes.
+
| 12 || GOBLET || [[Goblet]]s.
 
|-
 
|-
| GOBLET || GobletsNo known subtypes.
+
| 13 || INSTRUMENT || Musical [[instrument]]sSubtypes come from item_instrument.txt
 
|-
 
|-
| INSTRUMENT || Musical instruments.  Subtypes come from item_instrument.
+
| 14 || TOY || [[Toy]]s.  Subtypes come from item_toy.txt
 
|-
 
|-
| TOY || Toys.  Subtypes come from item_toy.
+
| 15 || WINDOW || Glass [[window]]s.
 
|-
 
|-
| WINDOW || Windows.  No known subtypes.
+
| 16 || CAGE || [[Cage]]s.
 
|-
 
|-
| CAGE || Cages.  No known subtypes.
+
| 17 || BARREL || [[Barrel]]s.
 
|-
 
|-
| BARREL || Barrels.  No known subtypes.
+
| 18 || BUCKET || [[Bucket]]s.
 
|-
 
|-
| BUCKET || Buckets.  No known subtypes.
+
| 19 || ANIMALTRAP || [[Animal trap]]s.
 
|-
 
|-
| ANIMALTRAP || Traps for animals.  No known subtypes.
+
| 20 || TABLE || [[Table]]s.
 
|-
 
|-
| TABLE || Tables.  No known subtypes.
+
| 21 || COFFIN || [[Coffin]]s.
 
|-
 
|-
| COFFIN || Coffins and caskets.  No known subtypes.
+
| 22 || STATUE || [[Statue]]s.
 
|-
 
|-
| STATUE || Statues. No known subtypes.
+
| 23 || CORPSE || [[Corpse]]s. Has no material.
 
|-
 
|-
| CORPSE || Dead thingsNo known subtypes.
+
| 24 || WEAPON || [[Weapon]]sSubtypes come from item_weapon.txt
 
|-
 
|-
| WEAPON || Weapons.  Subtypes come from item_weapon.
+
| 25 || ARMOR || [[Armor]] and clothing worn on the upper body.  Subtypes come from item_armor.txt
 
|-
 
|-
| ARMOR || Armor and clothing worn on the upper body.  Subtypes come from item_armor.
+
| 26 || SHOES || Armor and clothing worn on the feet.  Subtypes come from item_shoes.txt
 
|-
 
|-
| SHOES || Armor and clothing worn on the feet.  Subtypes come from item_shoes.
+
| 27 || SHIELD || [[Shield]]s and bucklers.  Subtypes come from item_shield.txt
 
|-
 
|-
| SHIELD || Shields and bucklers.  Subtypes come from item_shield.
+
| 28 || HELM || Armor and clothing worn on the head.  Subtypes come from item_helm.txt
 
|-
 
|-
| HELM || Armor and clothing worn on the head.  Subtypes come from item_helm.
+
| 29 || GLOVES || Armor and clothing worn on the hands.  Subtypes come from item_gloves.txt
 
|-
 
|-
| GLOVES || Armor and clothing worn on the hands.  Subtypes come from item_gloves.
+
| 30 || BOX || [[Container|Chest]]s (wood), coffers (stone), boxes (glass), and bags (cloth or leather).
 
|-
 
|-
| BOX || Chests, coffers, and boxes.  No known subtypes.
+
| 31 || BIN || [[Bin]]s.
 
|-
 
|-
| BIN || Bins.  No known subtypes.
+
| 32 || ARMORSTAND || [[Armor stand]]s.
 
|-
 
|-
| SAND || Sand.  No known subtypes.
+
| 33 || WEAPONRACK || [[Weapon rack]]s.
 
|-
 
|-
| ARMORSTAND || Armor stands.  No known subtypes.
+
| 34 || CABINET || [[Cabinet]]s.
 
|-
 
|-
| WEAPONRACK || Weapon racks.  No known subtypes.
+
| 35 || FIGURINE || [[Idol]]s.
 
|-
 
|-
| CABINET || Cabinets.  No known subtypes.
+
| 36 || AMULET || [[Amulet]]s.
 
|-
 
|-
| FIGURINE || Idols.  No known subtypes.
+
| 37 || SCEPTER || [[Scepter]]s.
 
|-
 
|-
| AMULET || AmuletsNo known subtypes.
+
| 38 || AMMO || [[Ammunition]] for hand-held weaponsSubtypes come from item_ammo.txt
 
|-
 
|-
| SCEPTER || Scepters.  No known subtypes.
+
| 39 || CROWN || [[Crown]]s.
 
|-
 
|-
| AMMO || Ammunition for hand-held weapons.  Subtypes come from item_ammo.
+
| 40 || RING || [[Ring]]s.
 
|-
 
|-
| CROWN || Crowns.  No known subtypes.
+
| 41 || EARRING || [[Earring]]s.
 
|-
 
|-
| RING || Rings.  No known subtypes.
+
| 42 || BRACELET || [[Bracelet]]s.
 
|-
 
|-
| EARRING || Earrings.  No known subtypes.
+
| 43 || GEM || Large [[gem]]s.
 
|-
 
|-
| BRACELET || Bracelets.  No known subtypes.
+
| 44 || ANVIL || [[Anvil]]s.
 
|-
 
|-
| GEM || Large gems. No known subtypes.
+
| 45 || CORPSEPIECE || [[Body part]]s. Has no material.
 
|-
 
|-
| ANVIL || Anvils. No known subtypes.
+
| 46 || REMAINS || Dead [[vermin]] bodies and large creature [[chunk]]s. Material is a creature ID.
 
|-
 
|-
| CORPSEPIECE || Body parts. No known subtypes.
+
| 47 || MEAT || Butchered [[meat]]. Material is a creature ID.
 
|-
 
|-
| REMAINS || Dead vermin bodies. No known subtypes.
+
| 48 || FISH || Prepared [[fish]]. Material is a creature ID.
 
|-
 
|-
| MEAT || Butchered meat.
+
| 49 || FISH_RAW || Unprepared [[fish]]. Material is a creature ID.
 
|-
 
|-
| FISH || Prepared fish.
+
| 50 || VERMIN || Live [[vermin]]. Material is a creature ID.
 
|-
 
|-
| FISH_RAW || Unprepared fish.
+
| 51 || PET || Tame [[vermin]]. Material is a creature ID.
 
|-
 
|-
| VERMIN || Small pseudo-creatures.
+
| 52 || SEEDS || [[Seed]]s from plants. Material is a plant ID.
 
|-
 
|-
| PET || Tame vermin.
+
| 53 || PLANT || [[Plant]]s. Material is a plant ID.
 
|-
 
|-
| SEEDS || Seeds from plants.
+
| 54 || SKIN_RAW || Untanned [[skin]]s. Material is a creature ID.
 
|-
 
|-
| PLANT || Plants.
+
| 55 || SKIN_TANNED || [[Leather]]. Material must be LEATHER.
 
|-
 
|-
| SKIN_RAW || Untanned skins. No known subtypes.
+
| 56 || BONES || [[Bone]]s from creatures. Material is a creature ID.
 
|-
 
|-
| SKIN_TANNED || Tanned skins. No known subtypes.
+
| 57 || SHELL || [[Shell]]s from creatures that have them. Material is a creature ID.
 
|-
 
|-
| BONES || Bones from creatures. No known subtypes.
+
| 58 || LEAVES || Leaves, usually from [[quarry bush]]es. Material is a plant ID.
 
|-
 
|-
| SHELL || Shells from creatures that have them.  No known subtypes.
+
| 59 || THREAD || [[Thread]] gathered from webs or made at the [[farmer's workshop]].
 
|-
 
|-
| LEAVES || Leaves from certain plants after processing.
+
| 60 || CLOTH || [[Cloth]] made at the [[loom]].
 
|-
 
|-
| THREAD || Thread gathered from webs or made at the farmer's workshop.  No known subtypes.
+
| 61 || TOTEM || Skull [[totem]]s.
 
|-
 
|-
| CLOTH || Cloth made at the loom. No known subtypes.
+
| 62 || SKULL || [[Skull]]s of dead creatures. Does not work correctly - raws are parsed as a standard material+matgloss, but the item interprets the material as a creature ID. See [[40d Talk:Item token#Skulls|talk]] for more information.
 
|-
 
|-
| TOTEM || TotemsNo known subtypes.
+
| 63 || PANTS || Armor and clothing worn on the legsSubtypes come from item_pants.txt
 
|-
 
|-
| SKULL || Skulls of dead critters.
+
| 64 || BACKPACK || [[Backpack]]s.
 
|-
 
|-
| PANTS || Armor and clothing worn on the legs.  Subtypes come from item_pants.
+
| 65 || QUIVER || [[Quiver]]s.
 
|-
 
|-
| BACKPACK || Backpacks.  No known subtypes.
+
| 66 || CATAPULTPARTS || [[Catapult]] parts.
 
|-
 
|-
| QUIVER || Quivers.  No known subtypes.
+
| 67 || BALLISTAPARTS || [[Ballista]] parts.
 
|-
 
|-
| CATAPULTPARTS || Catapult partsNo known subtypes.
+
| 68 || SIEGEAMMO || Siege engine ammunitionSubtypes come from item_siegeammo.txt
 
|-
 
|-
| BALLISTAPARTS || Ballista parts.  No known subtypes.
+
| 69 || BALLISTAARROWHEAD || Ballista arrow heads.
 
|-
 
|-
| SIEGEAMMO || Siege ammo.  Subtypes come from item_siegeammo.
+
| 70 || TRAPPARTS || [[Mechanism]]s.
 
|-
 
|-
| BALLISTARROWHEAD || Arrow heads for ballista boltsNo known subtypes.
+
| 71 || TRAPCOMP || [[Trap component]]sSubtypes come from item_trapcomp.txt
 
|-
 
|-
| TRAPPARTS || Mechanisms. No known subtypes.
+
| 72 || EXTRACT || [[Extract]]s from certain plants and creatures. Material is either CREATURE or PLANT, and matgloss is a creature ID or plant ID.
 
|-
 
|-
| TRAPCOMP || Weapons for traps only.  Subtypes come from item_trapcomp.
+
| 73 || POTION || ???
 
|-
 
|-
| EXTRACT || Extracts from certain plants and creatures.
+
| 74 || DRINK || [[Alcohol]]ic drinks.
 
|-
 
|-
| POTION || ???
+
| 75 || POWDER_MISC || Powders such as [[flour]], [[dye]], [[sand]], or [[bone meal]].
 
|-
 
|-
| DRINK || Liquids from brewed plants. No known subtypes.
+
| 76 || CHEESE || Pieces of [[cheese]]. Material is either CREATURE or PLANT, and matgloss is a creature ID or plant ID.
 
|-
 
|-
| POWDER_MISC || Powders (such as flour) from milled plants.
+
| 77 || FOOD || [[Prepared meal]]s. Subtypes come from item_food.txt
 
|-
 
|-
| CHEESE || Cheeses.
+
| 78 || LIQUID_MISC || Liquids such as [[water]] and [[lye]].
 
|-
 
|-
| FOOD || Prepared food.
+
| 79 || COIN || [[Coin]]s.
 
|-
 
|-
| LIQUID_MISC || ???
+
| 80 || GLOB || [[Fat]], [[tallow]], and small bits of molten rock/metal. Also works with blood, vomit, mud, filth, salt, grime and unknown substance.
 
|-
 
|-
| COIN || Coins.  No known subtypes.
+
| 81 || ROCK || Small rocks (usually [[Thrower|thrown]] in [[adventurer mode]]).
 
|-
 
|-
| GLOB || Fats, tallows and small bits of molten rock.
+
| 82 || PIPE_SECTION || [[Pipe section]]s.
 
|-
 
|-
| ROCK || Pebbles.  No known subtypes.
+
| 83 || HATCH_COVER || [[Hatch cover]]s.
 
|-
 
|-
| PIPE_SECTION || Lengths of pipe. No known subtypes.
+
| 84 || GRATE || [[Grate]]s.
 +
|-
 +
| 85 || QUERN || [[Quern]]s.
 +
|-
 +
| 86 || MILLSTONE || [[Millstone]]s.
 
|}
 
|}
  
 
==Item subtype tokens==
 
==Item subtype tokens==
  
{| border="0" cellpadding="2" width="55%"
+
Most item types have no subtypes. "NONE" or "NO_SUBTYPE" (the raws use NO_SUBTYPE, saving an embark profile uses NONE) is used for the subtype position for these. For items that do have subtypes, the subtypes are defined from the raws for that item type as noted above.
! width="20%" | Token
 
! width="80%" | Description
 
|-
 
| NO_SUBTYPE || No specific subtype
 
|}
 
 
 
==Material tokens==
 
 
 
The material tokens have been moved to the new [[Matgloss tokens]] page.
 
 
 
  
[[Category:Modding]]
+
{{Category|Modding}}
[[Category:Tokens]]
+
{{Category|Tokens}}

Latest revision as of 01:25, 8 July 2013

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

These are to be used with certain Creature token (such as ITEMCORPSE) as well as in Reactions.

An item is described by four tokens, as such:

[<whatever is asking for the token>:TYPE:SUBTYPE:MATERIAL:MATGLOSS]

Nearly all items are made of a material, though several types expect either a creature ID or a plant ID instead.

Item type tokens[edit]

# 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 or raw glass.
4 STONE Raw mined stone.
5 WOOD Wooden logs. Material must be WOOD.
6 DOOR Doors.
7 FLOODGATE Floodgates.
8 BED Beds.
9 CHAIR Chairs and thrones.
10 CHAIN Chains and ropes.
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. Has no 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 Idols.
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. Has no material.
46 REMAINS Dead vermin bodies and large creature chunks. Material is a creature ID.
47 MEAT Butchered meat. Material is a creature ID.
48 FISH Prepared fish. Material is a creature ID.
49 FISH_RAW Unprepared fish. Material is a creature ID.
50 VERMIN Live vermin. Material is a creature ID.
51 PET Tame vermin. Material is a creature ID.
52 SEEDS Seeds from plants. Material is a plant ID.
53 PLANT Plants. Material is a plant ID.
54 SKIN_RAW Untanned skins. Material is a creature ID.
55 SKIN_TANNED Leather. Material must be LEATHER.
56 BONES Bones from creatures. Material is a creature ID.
57 SHELL Shells from creatures that have them. Material is a creature ID.
58 LEAVES Leaves, usually from quarry bushes. Material is a plant ID.
59 THREAD Thread gathered from webs or made at the farmer's workshop.
60 CLOTH Cloth made at the loom.
61 TOTEM Skull totems.
62 SKULL Skulls of dead creatures. Does not work correctly - raws are parsed as a standard material+matgloss, but the item interprets the material as a creature ID. See talk for more information.
63 PANTS Armor and clothing worn on the legs. Subtypes come from item_pants.txt
64 BACKPACK Backpacks.
65 QUIVER Quivers.
66 CATAPULTPARTS Catapult parts.
67 BALLISTAPARTS Ballista parts.
68 SIEGEAMMO Siege engine ammunition. Subtypes come from item_siegeammo.txt
69 BALLISTAARROWHEAD Ballista arrow heads.
70 TRAPPARTS Mechanisms.
71 TRAPCOMP Trap components. Subtypes come from item_trapcomp.txt
72 EXTRACT Extracts from certain plants and creatures. Material is either CREATURE or PLANT, and matgloss is a creature ID or plant ID.
73 POTION ???
74 DRINK Alcoholic drinks.
75 POWDER_MISC Powders such as flour, dye, sand, or bone meal.
76 CHEESE Pieces of cheese. Material is either CREATURE or PLANT, and matgloss is a creature ID or plant ID.
77 FOOD Prepared meals. Subtypes come from item_food.txt
78 LIQUID_MISC Liquids such as water and lye.
79 COIN Coins.
80 GLOB Fat, tallow, and small bits of molten rock/metal. Also works with blood, vomit, mud, filth, salt, grime and unknown substance.
81 ROCK Small rocks (usually thrown in adventurer mode).
82 PIPE_SECTION Pipe sections.
83 HATCH_COVER Hatch covers.
84 GRATE Grates.
85 QUERN Querns.
86 MILLSTONE Millstones.

Item subtype tokens[edit]

Most item types have no subtypes. "NONE" or "NO_SUBTYPE" (the raws use NO_SUBTYPE, saving an embark profile uses NONE) is used for the subtype position for these. For items that do have subtypes, the subtypes are defined from the raws for that item type as noted above.