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 "23a:Item token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(add ID numbers - interestingly, there are 2 gaps (which show up in z-stocks as empty "Items" categories))
m (Changed quality rating from "Exceptional" to "Superior" using the rating script)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{quality|Exceptional|20:21, 12 August 2010 (UTC)}}{{av}}
+
{{Quality|Superior|01:25, 8 July 2013 (UTC)}}
These are to be used with certain {{L|Creature token}}s (such as ITEMCORPSE).
+
{{av}}
 +
These are to be used with certain [[Creature token]]s (namely, ITEMCORPSE).
  
An item is described by four [[tokens]], as such:
+
An item is described by four [[token]]s, as such:
  
 
  [<whatever is asking for the token>:TYPE:SUBTYPE:MATERIAL:MATGLOSS]
 
  [<whatever is asking for the token>:TYPE:SUBTYPE:MATERIAL:MATGLOSS]
 +
 +
All items are made of a [[Material token|material]]. Several types expect a creature ID or plant ID, so trying to create them will not work correctly - the material you specify will be interpreted as a creature ID or plant ID, so the first 49 creatures/plants can be selected by using the corresponding material.
  
 
==Item type tokens==
 
==Item type tokens==
Line 12: Line 15:
 
! # !! Token !! Description
 
! # !! Token !! Description
 
|-
 
|-
| 0 || BAR || Both metal and non-metal bars.
+
| 0 || BAR || [[Bar]]s, such as [[metal]], [[fuel]], or [[soap]].
 
|-
 
|-
| 1 || SMALLGEM || Cut gemstones usable in jeweler's workshop
+
| 1 || SMALLGEM || Cut [[gem]]stones usable in [[jeweler's workshop]]
 
|-
 
|-
| 2 || BLOCKS || Blocks of any kind.
+
| 2 || BLOCKS || [[Block]]s of any kind.
 
|-
 
|-
| 3 || ORE || Mined ore, including coal.
+
| 3 || ORE || Mined [[ore]], including [[bituminous coal]].
 
|-
 
|-
| 4 || ROUGH || Rough gemstones.
+
| 4 || ROUGH || Rough [[gem]]stones or raw [[glass]].
 
|-
 
|-
| 5 || STONE || Raw mined stone.
+
| 5 || STONE || Raw mined [[stone]].
 
|-
 
|-
| 6 || WOOD || Wooden logs.
+
| 6 || WOOD || Wooden [[log]]s. Material must be WOOD.
 
|-
 
|-
| 7 || DOOR || Doors.
+
| 7 || DOOR || [[Door]]s.
 
|-
 
|-
| 8 || FLOODGATE || Floodgates.
+
| 8 || FLOODGATE || [[Floodgate]]s.
 
|-
 
|-
| 9 || BED || Beds.
+
| 9 || BED || [[Bed]]s.
 
|-
 
|-
| 10 || CHAIR || Chairs and thrones.
+
| 10 || CHAIR || [[Chair]]s and thrones.
 
|-
 
|-
| 11 || CHAIN || Chains and ropes.
+
| 11 || CHAIN || [[Chain]]s and [[rope]]s.
 
|-
 
|-
| 12 || FLASK || Flasks.
+
| 12 || FLASK || [[Flask]]s.
 
|-
 
|-
| 13 || GOBLET || Goblets, cups (wooden), and mugs (rock).
+
| 13 || GOBLET || [[Goblet]]s.
 
|-
 
|-
| 14 || INSTRUMENT || Musical instruments.  Subtypes come from item_instrument.
+
| 14 || INSTRUMENT || Musical [[instrument]]s.  Subtypes come from item_instrument.txt
 
|-
 
|-
| 15 || TOY || Toys.  Subtypes come from item_toy.
+
| 15 || TOY || [[Toy]]s.  Subtypes come from item_toy.txt
 
|-
 
|-
| 16 || WINDOW || Windows.
+
| 16 || WINDOW || Glass [[window]]s.
 
|-
 
|-
| 17 || CAGE || Cages.
+
| 17 || CAGE || [[Cage]]s.
 
|-
 
|-
| 18 || BARREL || Barrels.
+
| 18 || BARREL || [[Barrel]]s.
 
|-
 
|-
| 19 || BUCKET || Buckets.
+
| 19 || BUCKET || [[Bucket]]s.
 
|-
 
|-
| 20 || ANIMALTRAP || Traps for animals.
+
| 20 || ANIMALTRAP || [[Animal trap]]s.
 
|-
 
|-
| 21 || TABLE || Tables.
+
| 21 || TABLE || [[Table]]s.
 
|-
 
|-
| 22 || COFFIN || Coffins and caskets.
+
| 22 || COFFIN || [[Coffin]]s.
 
|-
 
|-
| 23 || STATUE || Statues.
+
| 23 || STATUE || [[Statue]]s.
 
|-
 
|-
| 24 || CORPSE || Dead things.
+
| 24 || CORPSE || [[Corpse]]s. Has no material.
 
|-
 
|-
| 25 || WEAPON || Weapons.  Subtypes come from item_weapon.
+
| 25 || WEAPON || [[Weapon]]s.  Subtypes come from item_weapon.txt
 
|-
 
|-
| 26 || ARMOR || Armor and clothing worn on the upper body.  Subtypes come from item_armor.
+
| 26 || ARMOR || [[Armor]] and clothing worn on the upper body.  Subtypes come from item_armor.txt
 
|-
 
|-
| 27 || SHOES || Armor and clothing worn on the feet.  Subtypes come from item_shoes.
+
| 27 || SHOES || Armor and clothing worn on the feet.  Subtypes come from item_shoes.txt
 
|-
 
|-
| 28 || SHIELD || Shields and bucklers.  Subtypes come from item_shield.
+
| 28 || SHIELD || [[Shield]]s and bucklers.  Subtypes come from item_shield.txt
 
|-
 
|-
| 29 || HELM || Armor and clothing worn on the head.  Subtypes come from item_helm.
+
| 29 || HELM || Armor and clothing worn on the head.  Subtypes come from item_helm.txt
 
|-
 
|-
| 30 || GLOVES || Clothing worn on the hands.  Subtypes come from item_gloves.
+
| 30 || GLOVES || Armor and clothing worn on the hands.  Subtypes come from item_gloves.txt
 
|-
 
|-
| 31 || BOX || Chests (wood), coffers (stone), boxes (glass), and bags (cloth or leather).
+
| 31 || BOX || [[Container|Chest]]s (wood), coffers (stone), boxes (glass), and bags (cloth or leather).
 
|-
 
|-
| 32 || BIN || Bins.
+
| 32 || BIN || [[Bin]]s.
 
|-
 
|-
| 33 || SAND || Sand.
+
| 33 || SAND || [[Sand]]. Has no material - always made of SAND:NONE.
 
|-
 
|-
| 34 || ARMORSTAND || Armor stands.
+
| 34 || ARMORSTAND || [[Armor stand]]s.
 
|-
 
|-
| 35 || WEAPONRACK || Weapon racks.
+
| 35 || WEAPONRACK || [[Weapon rack]]s.
 
|-
 
|-
| 36 || CABINET || Cabinets.
+
| 36 || CABINET || [[Cabinet]]s.
 
|-
 
|-
| 37 || FIGURINE || Idols.
+
| 37 || FIGURINE || [[Idol]]s.
 
|-
 
|-
| 38 || AMULET || Amulets.
+
| 38 || AMULET || [[Amulet]]s.
 
|-
 
|-
| 39 || SCEPTER || Scepters.
+
| 39 || SCEPTER || [[Scepter]]s.
 
|-
 
|-
| 40 || AMMO || Ammunition for hand-held weapons.  Subtypes come from item_ammo.
+
| 40 || AMMO || [[Ammunition]] for hand-held weapons.  Subtypes come from item_ammo.txt
 
|-
 
|-
| 41 || CROWN || Crowns.
+
| 41 || CROWN || [[Crown]]s.
 
|-
 
|-
| 42 || RING || Rings.
+
| 42 || RING || [[Ring]]s.
 
|-
 
|-
| 43 || EARRING || Earrings.
+
| 43 || EARRING || [[Earring]]s.
 
|-
 
|-
| 44 || BRACELET || Bracelets.
+
| 44 || BRACELET || [[Bracelet]]s.
 
|-
 
|-
| 45 || GEM || Large gems.
+
| 45 || GEM || Large [[gem]]s.
 
|-
 
|-
| 46 || ANVIL || Anvils.
+
| 46 || ANVIL || [[Anvil]]s.
 
|-
 
|-
| 47 || CORPSEPIECE || Body parts.
+
| 47 || CORPSEPIECE || [[Body part]]s. Has no material.
 
|-
 
|-
| 48 || REMAINS || Dead vermin bodies. Material is a creature ID.
+
| 48 || REMAINS || Dead [[vermin]] bodies and large creature [[chunk]]s. Material is a creature ID.
 
|-
 
|-
| 49 || MEAT || Butchered meat. Material is a creature ID.
+
| 49 || MEAT || Butchered [[meat]]. Material is a creature ID.
 
|-
 
|-
| 50 || FISH || Prepared fish. Material is a creature ID.
+
| 50 || FISH || Prepared [[fish]]. Material is a creature ID.
 
|-
 
|-
| 51 || FISH_RAW || Unprepared fish. Material is a creature ID.
+
| 51 || FISH_RAW || Unprepared [[fish]]. Material is a creature ID.
 
|-
 
|-
| 52 || VERMIN || Small pseudo-creatures. Material is a creature ID.
+
| 52 || VERMIN || Live [[vermin]]. Material is a creature ID.
 
|-
 
|-
| 53 || PET || Tame vermin. Material is a creature ID.
+
| 53 || PET || Tame [[vermin]]. Material is a creature ID.
 
|-
 
|-
| 54 || SEEDS || Seeds from plants.
+
| 54 || SEEDS || [[Seed]]s from plants. Material is a plant ID.
 
|-
 
|-
| 55 || PLANT || Plants. Material is a plant ID.
+
| 55 || PLANT || [[Plant]]s. Material is a plant ID.
 
|-
 
|-
| 56 || SKIN_RAW || Untanned skins.
+
| 56 || SKIN_RAW || Untanned [[skin]]s. Material is a creature ID.
 
|-
 
|-
| 57 || SKIN_TANNED || Tanned skins.
+
| 57 || SKIN_TANNED || [[Leather]]. Material must be LEATHER.
 
|-
 
|-
| 58 || BONES || Bones from creatures. Material is a creature ID.
+
| 58 || BONES || [[Bone]]s from creatures. Material is a creature ID.
 
|-
 
|-
| 59 || SHELL || Shells from creatures that have them. Material is a creature ID.
+
| 59 || SHELL || [[Shell]]s from creatures that have them. Material is a creature ID.
 
|-
 
|-
| 60 || LEAVES || Leaves from certain plants after processing.
+
| 60 || LEAVES || Leaves, usually from [[quarry bush]]es. Material is a plant ID.
 
|-
 
|-
| 61 || THREAD || Thread gathered from webs or made at the farmer's workshop.
+
| 61 || THREAD || [[Thread]] gathered from webs or made at the [[farmer's workshop]].
 
|-
 
|-
| 62 || CLOTH || Cloth made at the loom.
+
| 62 || CLOTH || [[Cloth]] made at the [[loom]].
 
|-
 
|-
| 63 || TOTEM || Totems.
+
| 63 || TOTEM || Skull [[totem]]s.
 
|-
 
|-
| 64 || SKULL || Skulls of dead critters. Possibly broken, neither BONE material or creature IDs seem to work.
+
| 64 || SKULL || [[Skull]]s of dead creatures. Material is seemingly a creature ID.
 
|-
 
|-
| 65 || ----- ||
+
| 65 || <s>SHIRT</s> || No longer exists - merged into ARMOR in version 0.22.107.21a.
 
|-
 
|-
| 66 || PANTS || Armor and clothing worn on the legs.  Subtypes come from item_pants.
+
| 66 || PANTS || Armor and clothing worn on the legs.  Subtypes come from item_pants.txt
 
|-
 
|-
| 67 || ----- ||
+
| 67 || <s>CLOAK</s> || No longer exists - merged into ARMOR in version 0.22.107.21a.
 
|-
 
|-
| 68 || BACKPACK || Backpacks.
+
| 68 || BACKPACK || [[Backpack]]s.
 
|-
 
|-
| 69 || QUIVER || Quivers.
+
| 69 || QUIVER || [[Quiver]]s.
 
|-
 
|-
| 70 || CATAPULTPARTS || Catapult parts.
+
| 70 || CATAPULTPARTS || [[Catapult]] parts.
 
|-
 
|-
| 71 || BALLISTAPARTS || Ballista parts.
+
| 71 || BALLISTAPARTS || [[Ballista]] parts.
 
|-
 
|-
| 72 || SIEGEAMMO || Siege ammo.  Subtypes come from item_siegeammo.
+
| 72 || SIEGEAMMO || Siege engine ammunition.  Subtypes come from item_siegeammo.txt
 
|-
 
|-
| 73 || BALLISTAARROWHEAD || Arrow heads for ballista bolts.
+
| 73 || BALLISTAARROWHEAD || Ballista arrow heads.
 
|-
 
|-
| 74 || TRAPPARTS || Mechanisms.
+
| 74 || TRAPPARTS || [[Mechanism]]s.
 
|-
 
|-
| 75 || TRAPCOMP || Weapons for traps only.  Subtypes come from item_trapcomp.
+
| 75 || TRAPCOMP || [[Trap component]]s.  Subtypes come from item_trapcomp.txt
 
|-
 
|-
| 76 || EXTRACT || Extracts from certain plants and creatures.
+
| 76 || EXTRACT || [[Extract]]s from certain plants and creatures.
 
|-
 
|-
| 77 || POTION || ???
+
| 77 || POTION || Unknown.
 
|-
 
|-
| 78 || DRINK || Liquids from brewed plants.
+
| 78 || DRINK || [[Alcohol]]ic drinks.
 
|-
 
|-
| 79 || POWDER_ORGANIC || Powders (such as flour or dye) from milled plants.
+
| 79 || POWDER_ORGANIC || Powders (such as [[flour]] or [[dye]]) from milled plants.
 
|-
 
|-
| 80 || CHEESE || Cheeses.
+
| 80 || CHEESE || Pieces of [[cheese]].
 
|-
 
|-
| 81 || FOOD || Prepared food.
+
| 81 || FOOD || [[Prepared meal]]s. Subtypes come from item_food.txt
 
|-
 
|-
| 82 || LIQUID_MISC || Miscellaneous liquids such as lye.
+
| 82 || LIQUID_MISC || Liquids such as [[water]] and [[lye]].
 
|-
 
|-
| 83 || COIN || Coins.
+
| 83 || COIN || [[Coin]]s.
 
|-
 
|-
| 84 || GLOB || Fats, tallows and small bits of molten rock/metal. Also works with blood, vomit, mud, and slime.
+
| 84 || GLOB || [[Fat]], [[tallow]], and small bits of molten rock/metal. Also works with blood, vomit, mud, and slime.
 
|-
 
|-
| 85 || ROCK || Pebbles (more useful in {{L|Thrower|adventure mode}}.)
+
| 85 || ROCK || Small rocks (usually [[Thrower|thrown]] in [[adventurer mode]]).
 
|}
 
|}
  
Line 191: Line 194:
 
==Material tokens==
 
==Material tokens==
  
The material tokens can be found at the {{L|Material token}}s page.
+
The material tokens can be found at the [[Material token]]s 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.

These are to be used with certain Creature tokens (namely, ITEMCORPSE).

An item is described by four tokens, as such:

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

All items are made of a material. Several types expect a creature ID or plant ID, so trying to create them will not work correctly - the material you specify will be interpreted as a creature ID or plant ID, so the first 49 creatures/plants can be selected by using the corresponding material.

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 ORE Mined ore, including bituminous coal.
4 ROUGH Rough gemstones or raw glass.
5 STONE Raw mined stone.
6 WOOD Wooden logs. Material must be WOOD.
7 DOOR Doors.
8 FLOODGATE Floodgates.
9 BED Beds.
10 CHAIR Chairs and thrones.
11 CHAIN Chains and ropes.
12 FLASK Flasks.
13 GOBLET Goblets.
14 INSTRUMENT Musical instruments. Subtypes come from item_instrument.txt
15 TOY Toys. Subtypes come from item_toy.txt
16 WINDOW Glass windows.
17 CAGE Cages.
18 BARREL Barrels.
19 BUCKET Buckets.
20 ANIMALTRAP Animal traps.
21 TABLE Tables.
22 COFFIN Coffins.
23 STATUE Statues.
24 CORPSE Corpses. Has no material.
25 WEAPON Weapons. Subtypes come from item_weapon.txt
26 ARMOR Armor and clothing worn on the upper body. Subtypes come from item_armor.txt
27 SHOES Armor and clothing worn on the feet. Subtypes come from item_shoes.txt
28 SHIELD Shields and bucklers. Subtypes come from item_shield.txt
29 HELM Armor and clothing worn on the head. Subtypes come from item_helm.txt
30 GLOVES Armor and clothing worn on the hands. Subtypes come from item_gloves.txt
31 BOX Chests (wood), coffers (stone), boxes (glass), and bags (cloth or leather).
32 BIN Bins.
33 SAND Sand. Has no material - always made of SAND:NONE.
34 ARMORSTAND Armor stands.
35 WEAPONRACK Weapon racks.
36 CABINET Cabinets.
37 FIGURINE Idols.
38 AMULET Amulets.
39 SCEPTER Scepters.
40 AMMO Ammunition for hand-held weapons. Subtypes come from item_ammo.txt
41 CROWN Crowns.
42 RING Rings.
43 EARRING Earrings.
44 BRACELET Bracelets.
45 GEM Large gems.
46 ANVIL Anvils.
47 CORPSEPIECE Body parts. Has no material.
48 REMAINS Dead vermin bodies and large creature chunks. Material is a creature ID.
49 MEAT Butchered meat. Material is a creature ID.
50 FISH Prepared fish. Material is a creature ID.
51 FISH_RAW Unprepared fish. Material is a creature ID.
52 VERMIN Live vermin. Material is a creature ID.
53 PET Tame vermin. Material is a creature ID.
54 SEEDS Seeds from plants. Material is a plant ID.
55 PLANT Plants. Material is a plant ID.
56 SKIN_RAW Untanned skins. Material is a creature ID.
57 SKIN_TANNED Leather. Material must be LEATHER.
58 BONES Bones from creatures. Material is a creature ID.
59 SHELL Shells from creatures that have them. Material is a creature ID.
60 LEAVES Leaves, usually from quarry bushes. Material is a plant ID.
61 THREAD Thread gathered from webs or made at the farmer's workshop.
62 CLOTH Cloth made at the loom.
63 TOTEM Skull totems.
64 SKULL Skulls of dead creatures. Material is seemingly a creature ID.
65 SHIRT No longer exists - merged into ARMOR in version 0.22.107.21a.
66 PANTS Armor and clothing worn on the legs. Subtypes come from item_pants.txt
67 CLOAK No longer exists - merged into ARMOR in version 0.22.107.21a.
68 BACKPACK Backpacks.
69 QUIVER Quivers.
70 CATAPULTPARTS Catapult parts.
71 BALLISTAPARTS Ballista parts.
72 SIEGEAMMO Siege engine ammunition. Subtypes come from item_siegeammo.txt
73 BALLISTAARROWHEAD Ballista arrow heads.
74 TRAPPARTS Mechanisms.
75 TRAPCOMP Trap components. Subtypes come from item_trapcomp.txt
76 EXTRACT Extracts from certain plants and creatures.
77 POTION Unknown.
78 DRINK Alcoholic drinks.
79 POWDER_ORGANIC Powders (such as flour or dye) from milled plants.
80 CHEESE Pieces of cheese.
81 FOOD Prepared meals. Subtypes come from item_food.txt
82 LIQUID_MISC Liquids such as water and lye.
83 COIN Coins.
84 GLOB Fat, tallow, and small bits of molten rock/metal. Also works with blood, vomit, mud, and slime.
85 ROCK Small rocks (usually thrown in adventurer mode).

Item subtype tokens[edit]

Most item types have no subtypes. "NO_SUBTYPE" 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.

Material tokens[edit]

The material tokens can be found at the Material tokens page.