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.

Editing 40d:Item token

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

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

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)