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 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.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
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}} | + | {{Quality|Superior}}{{av}} |
− | {{av | ||
− | |||
− | Item tokens are the first part in defining the target item in | + | Item tokens are the first part in defining the target item in reactions, containing the item type and subtype. They determine the most basic form of item, and made more specific by [[material token]]s. Most item tokens do not have a subtype; for these, either NO_SUBTYPE or NONE '''must''' be specified. |
− | 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. | + | 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}}. |
− | Actually defining an item in | + | Actually defining an item in item raws is done with [[item definition token]]s. |
− | + | ==Standard Item Tokens== | |
− | |||
− | |||
− | ==Standard | ||
{| {{prettytable}} class="sortable" | {| {{prettytable}} class="sortable" | ||
Line 18: | Line 13: | ||
! # !! Token !! Subtype !! Description | ! # !! Token !! Subtype !! Description | ||
|- | |- | ||
− | | 0 | | + | | 0 || BAR || NONE || [[Bar]]s, such as [[metal]], [[fuel]], or [[soap]]. |
|- | |- | ||
− | | 1 | | + | | 1 || SMALLGEM || NONE || Cut [[gem]]stones usable in [[jeweler's workshop]] |
|- | |- | ||
− | | 2 | | + | | 2 || BLOCKS || NONE || [[Block]]s of any kind. |
|- | |- | ||
− | | 3 | | + | | 3 || ROUGH || NONE || Rough [[gem]]stones or raw [[glass]]. |
|- | |- | ||
− | | 4 | | + | | 4 || BOULDER / STONE || NONE || Raw mined [[stone]]. |
|- | |- | ||
− | | 5 | | + | | 5 || WOOD || NONE || Wooden [[log]]s. |
|- | |- | ||
− | | 6 | | + | | 6 || DOOR || NONE || [[Door]]s. |
|- | |- | ||
− | | 7 | | + | | 7 || FLOODGATE || NONE || [[Floodgate]]s. |
|- | |- | ||
− | | 8 | | + | | 8 || BED || NONE || [[Bed]]s. |
|- | |- | ||
− | | 9 | | + | | 9 || CHAIR || NONE || [[Chair]]s and thrones. |
|- | |- | ||
− | | 10 | | + | | 10 || CHAIN || NONE || [[Chain]]s and [[rope]]s. |
|- | |- | ||
− | | 11 | | + | | 11 || FLASK || NONE || [[Flask]]s. |
|- | |- | ||
− | | 12 | | + | | 12 || GOBLET || NONE || [[Goblet]]s. |
|- | |- | ||
− | | 13 | | + | | 13 || INSTRUMENT || item_instrument.txt || Musical [[instrument]]s. |
|- | |- | ||
− | | 14 | | + | | 14 || TOY || item_toy.txt || [[Toy]]s. |
|- | |- | ||
− | | 15 | | + | | 15 || WINDOW || NONE || Glass [[window]]s. |
|- | |- | ||
− | | 16 | | + | | 16 || CAGE || NONE || [[Cage]]s. |
|- | |- | ||
− | | 17 | | + | | 17 || BARREL || NONE || [[Barrel]]s. |
|- | |- | ||
− | | 18 | | + | | 18 || BUCKET || NONE || [[Bucket]]s. |
|- | |- | ||
− | | 19 | | + | | 19 || ANIMALTRAP || NONE || [[Animal trap]]s. |
|- | |- | ||
− | | 20 | | + | | 20 || TABLE || NONE || [[Table]]s. |
|- | |- | ||
− | | 21 | | + | | 21 || COFFIN || NONE || [[Coffin]]s. |
|- | |- | ||
− | | 22 | | + | | 22 || STATUE || NONE || [[Statue]]s. |
|- | |- | ||
− | | 23 | | + | | 23 || CORPSE || NONE || [[Corpse]]s. Does not have a material that can be specified for reactions, but GET_MATERIAL_FROM_REAGENT will return the "dominant" material. |
|- | |- | ||
− | | 24 | | + | | 24 || WEAPON || item_weapon.txt || [[Weapon]]s. |
|- | |- | ||
− | | 25 | | + | | 25 || ARMOR || item_armor.txt || [[Armor]] and clothing worn on the upper body. |
|- | |- | ||
− | | 26 | | + | | 26 || SHOES || item_shoes.txt || Armor and clothing worn on the feet. |
|- | |- | ||
− | | 27 | | + | | 27 || SHIELD || item_shield.txt || [[Shield]]s and bucklers. |
|- | |- | ||
− | | 28 | | + | | 28 || HELM || item_helm.txt || Armor and clothing worn on the head. |
|- | |- | ||
− | | 29 | | + | | 29 || GLOVES || item_gloves.txt || Armor and clothing worn on the hands. |
|- | |- | ||
− | | 30 | | + | | 30 || BOX || NONE || [[Container|Chest]]s (wood), coffers (stone), boxes (glass, default), and bags (cloth or leather). |
|- | |- | ||
− | | 31 || | + | | 31 || BIN || NONE || [[Bin]]s. |
|- | |- | ||
− | | 32 || | + | | 32 || ARMORSTAND || NONE || [[Armor stand]]s. |
|- | |- | ||
− | | 33 || | + | | 33 || WEAPONRACK || NONE || [[Weapon rack]]s. |
|- | |- | ||
− | | 34 || | + | | 34 || CABINET || NONE || [[Cabinet]]s. |
|- | |- | ||
− | | 35 || | + | | 35 || FIGURINE || NONE || [[Figurine]]s. |
|- | |- | ||
− | | 36 || | + | | 36 || AMULET || NONE || [[Jewelry|Amulet]]s. |
|- | |- | ||
− | | 37 || | + | | 37 || SCEPTER || NONE || [[Finished_goods#Crafts|Scepter]]s. |
|- | |- | ||
− | | 38 || | + | | 38 || AMMO || item_ammo.txt || [[Ammunition]] for hand-held weapons. |
|- | |- | ||
− | | 39 || | + | | 39 || CROWN || NONE || [[Jewelry|Crown]]s. |
|- | |- | ||
− | | 40 || | + | | 40 || RING || NONE || [[Jewelry|Ring]]s. |
|- | |- | ||
− | | 41 || | + | | 41 || EARRING || NONE || [[Jewelry|Earring]]s. |
|- | |- | ||
− | | 42 || | + | | 42 || BRACELET || NONE || [[Jewelry|Bracelet]]s. |
|- | |- | ||
− | | 43 || | + | | 43 || GEM || NONE || Large [[gem]]s. |
|- | |- | ||
− | | 44 || | + | | 44 || ANVIL || NONE || [[Anvil]]s. |
|- | |- | ||
− | | 45 || | + | | 45 || CORPSEPIECE || NONE || [[Body part]]s. Does not have a material that can be specified for reactions, but GET_MATERIAL_FROM_REAGENT will return the "dominant" material. |
|- | |- | ||
− | | 46 || | + | | 46 || REMAINS || NONE || Dead [[vermin]] bodies. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 47 || | + | | 47 || MEAT || NONE || Butchered [[meat]]. |
|- | |- | ||
− | | 48 || | + | | 48 || FISH || NONE || Prepared [[fish]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 49 || | + | | 49 || FISH_RAW || NONE || Unprepared [[fish]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 50 || | + | | 50 || VERMIN || NONE || Live [[vermin]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 51 || | + | | 51 || PET || NONE || Tame [[vermin]]. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 52 || | + | | 52 || SEEDS || NONE || [[Seed]]s from plants. |
|- | |- | ||
− | | 53 || | + | | 53 || PLANT || NONE || [[Plant]]s. |
|- | |- | ||
− | | 54 || | + | | 54 || SKIN_TANNED || NONE || [[Leather]]. |
|- | |- | ||
− | | 55 || | + | | 55 || PLANT_GROWTH || growth name || Plant growths. Subtype is specified by the plant itself. (see [[Plant token]]) |
|- | |- | ||
− | | 56 || | + | | 56 || THREAD || NONE || [[Thread]] gathered from webs or made at the [[farmer's workshop]]. |
|- | |- | ||
− | | 57 || | + | | 57 || CLOTH || NONE || [[Cloth]] made at the [[loom]]. |
|- | |- | ||
− | | 58 || | + | | 58 || TOTEM || NONE || Skull [[totem]]s. |
|- | |- | ||
− | | 59 || | + | | 59 || PANTS || item_pants.txt || Armor and clothing worn on the legs. |
|- | |- | ||
− | | 60 || | + | | 60 || BACKPACK || NONE || [[Backpack]]s. |
|- | |- | ||
− | | 61 || | + | | 61 || QUIVER || NONE || [[Quiver]]s. |
|- | |- | ||
− | | 62 || | + | | 62 || CATAPULTPARTS || NONE || [[Catapult]] parts. |
|- | |- | ||
− | | 63 || | + | | 63 || BALLISTAPARTS || NONE || [[Ballista]] parts. |
|- | |- | ||
− | | 64 || | + | | 64 || SIEGEAMMO || item_siegeammo.txt || Siege engine ammunition. |
|- | |- | ||
− | | 65 || | + | | 65 || BALLISTAARROWHEAD || NONE || Ballista arrow heads. |
|- | |- | ||
− | | 66 || | + | | 66 || TRAPPARTS || NONE || [[Mechanism]]s. |
|- | |- | ||
− | | 67 || | + | | 67 || TRAPCOMP || item_trapcomp.txt || [[Trap component]]s. |
|- | |- | ||
− | | 68 || | + | | 68 || DRINK || NONE || [[Alcohol]]ic drinks. |
|- | |- | ||
− | | 69 || | + | | 69 || POWDER_MISC || NONE || Powders such as [[flour]], [[gypsum plaster]], [[dye]], or [[sand]]. |
|- | |- | ||
− | | 70 || | + | | 70 || CHEESE || NONE || Pieces of [[cheese]]. |
|- | |- | ||
− | | 71 || | + | | 71 || FOOD || item_food.txt || [[Prepared meal]]s. |
|- | |- | ||
− | | 72 || | + | | 72 || LIQUID_MISC || NONE || Liquids such as [[water]], [[lye]], and extracts. |
|- | |- | ||
− | | 73 || | + | | 73 || COIN || NONE || [[Coin]]s. |
|- | |- | ||
− | | 74 || | + | | 74 || GLOB || NONE || [[Fat]], [[tallow]], pastes/pressed objects, and small bits of molten rock/metal. |
|- | |- | ||
− | | 75 || | + | | 75 || ROCK || NONE || Small rocks (usually [[Knapper|sharpened]] and/or [[Thrower|thrown]] in [[adventurer mode]]). |
|- | |- | ||
− | | 76 || | + | | 76 || PIPE_SECTION || NONE || [[Pipe section]]s. |
|- | |- | ||
− | | 77 || | + | | 77 || HATCH_COVER || NONE || [[Hatch cover]]s. |
|- | |- | ||
− | | 78 || | + | | 78 || GRATE || NONE || [[Grate]]s. |
|- | |- | ||
− | | 79 || | + | | 79 || QUERN || NONE || [[Quern]]s. |
|- | |- | ||
− | | 80 || | + | | 80 || MILLSTONE || NONE || [[Millstone]]s. |
|- | |- | ||
− | | 81 || | + | | 81 || SPLINT || NONE || [[Splint]]s. |
|- | |- | ||
− | | 82 || | + | | 82 || CRUTCH || NONE || [[Crutch]]es. |
|- | |- | ||
− | | 83 || | + | | 83 || TRACTION_BENCH || NONE || [[Traction bench]]es. |
|- | |- | ||
− | | 84 || | + | | 84 || ORTHOPEDIC_CAST || NONE || [[Cast]]s. |
|- | |- | ||
− | | 85 || | + | | 85 || TOOL || item_tool.txt || [[Tool]]s. |
|- | |- | ||
− | | 86 || | + | | 86 || SLAB || NONE || [[Slab]]s. |
|- | |- | ||
− | | 87 || | + | | 87 || EGG || NONE || [[Egg]]s. Material is CREATURE_ID:CASTE. |
|- | |- | ||
− | | 88 | | + | | 88 || BOOK || NONE || [[Book]]s. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | ==Special | + | ==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]]). | In several specific locations, the values below can be substituted for the item type and subtype (and be followed directly by the [[material token]]). | ||
Line 215: | Line 204: | ||
|- | |- | ||
− | + | | ANY_CRAFT | |
| NONE | | NONE | ||
| [[Reaction]] [REAGENT] | | [[Reaction]] [REAGENT] | ||
Line 221: | Line 210: | ||
|- | |- | ||
− | + | | ANY_RAW_MATERIAL | |
| NONE | | NONE | ||
| [[Reaction]] [REAGENT] | | [[Reaction]] [REAGENT] | ||
Line 227: | Line 216: | ||
|- | |- | ||
− | + | | CRAFTS | |
| NONE | | NONE | ||
| [[Reaction]] [PRODUCT] | | [[Reaction]] [PRODUCT] | ||
− | | Produces 1-3 items of | + | | Produces 1-3 items of type FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, or BRACELET. |
|} | |} | ||
− | ==Related | + | ==Related Tokens== |
These tokens are not Item Tokens at all, but can take the place of them in some circumstances. | These tokens are not Item Tokens at all, but can take the place of them in some circumstances. | ||
Line 245: | Line 234: | ||
! Description | ! Description | ||
− | |- | + | |- |
− | + | | METAL_ORE | |
| Metal | | Metal | ||
| [[Reaction]] [REAGENT] | | [[Reaction]] [REAGENT] | ||
Line 253: | Line 242: | ||
|} | |} | ||
− | ==See | + | ==See Also== |
*[[Material token]] | *[[Material token]] | ||
*[[Reactions]] | *[[Reactions]] | ||
Line 259: | Line 248: | ||
{{Category|Tokens}} | {{Category|Tokens}} | ||
{{Category|Modding}} | {{Category|Modding}} | ||
− |