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