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 definition 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|Exceptional|21:18, 30 March 2011 (UTC)}}{{av}}
+
* ITEM_WEAPON
'''Item definition tokens''' are used in item definitions in the raws.
+
* ITEM_TOY
 +
* ITEM_INSTRUMENT
 +
* ITEM_TRAPCOMP
 +
* ITEM_ARMOR
 +
* ITEM_AMMO
 +
* ITEM_SIEGEAMMO
 +
* ITEM_GLOVES
 +
* ITEM_SHOES
 +
* ITEM_SHIELD
 +
* ITEM_HELM
 +
* ITEM_PANTS
 +
* ITEM_FOOD
  
Item types:
+
Weapons
* ITEM_WEAPON - [[Weapon token]]
+
* ADJECTIVE
* ITEM_TOY - see below
+
* DAMAGE
* ITEM_INSTRUMENT - see below
+
* WEIGHT
* ITEM_TRAPCOMP - [[Trap component token]]
+
* STICK_CHANCE
* ITEM_ARMOR - [[Armor token]]
+
* SKILL
* ITEM_AMMO - [[Ammo token]]
+
* RANGED
* ITEM_SIEGEAMMO - see below
+
* CRIT_BOOST
* ITEM_GLOVES - [[Gloves token]]
+
* TWO_HANDED
* ITEM_SHOES - [[Shoes token]]
+
* MINIMUM_SIZE
* ITEM_SHIELD - [[Shield token]]
+
* CAN_STONE
* ITEM_HELM - [[Helm token]]
+
* MATERIAL_SIZE
* ITEM_PANTS - [[Pants token]]
 
* ITEM_FOOD - see below
 
  
==Toy and Instrument Tokens==
+
Toys, Instruments
{| {{prettytable}}
+
* HARD_MAT - In stock raws, is on everything but instruments and puzzleboxes.
|- bgcolor="#ddd"
 
! Token
 
! Arguments
 
! Description
 
  
|-
+
Trap Components
| HARD_MAT
+
* [Most weapon ones seem to apply]
|
+
* HITS - Number of times it hits?
| Presumably prevents the item from being made from cloth, silk, or leather, present on everything but puzzleboxes and drums. Appears to work backwards for [[strange mood]]s.
+
* IS_SCREW - Presumably, can be installed into a screw pump.
 +
* IS_SPIKE - Presumably, can be mounted as an upright spike trap.
  
|-
+
Armor
| NAME
+
* SOFT
| singular:plural
+
* HARD
| What this item will be called ingame.
+
* BARRED
 +
* SCALED
 +
* SHAPED
 +
* LAYER_SIZE
 +
* LAYER_PERMIT
 +
* LAYER
 +
* OVER
 +
* UNDER
 +
* COVER
 +
* COVERAGE
 +
* PREPLURAL
 +
* MATERIAL_PLACEHOLDER
 +
* VALUE
 +
* ARMORLEVEL
 +
* UBSTEP
 +
* MAX
 +
* LBSTEP
 +
* METAL_ARMOR_LEVELS
 +
* MAINBLOCK
 +
* SECONDBLOCK
  
|}
+
Ammo; Siege Ammo
 +
* CLASS - what kind of weapon it can be used in
  
==Siege Ammo Tokens==
+
Not quite armor? Gloves/Shoes/Shield/Helm/Pants
{| {{prettytable}}
+
The way these are arranged in the exe is a bit confusing, but it's likely they are valid for only some types of armor. It's not clear which they are valid for, other than by seeing what they're used in the stock raws.
|- bgcolor="#ddd"
+
* BLOCKPOWER
! Token
+
* UPSTEP
! Arguments
+
* BLOCKCHANCE
! Description
+
* CHAIN_METAL
  
|-
+
Food
| CLASS
+
* LEVEL
|
 
| Specifies what type of siege engine uses this ammunition. Currently, only BALLISTA is permitted.
 
 
 
|-
 
| NAME
 
| singular:plural
 
| What this item will be called ingame.
 
 
 
|}
 
 
 
==Food Tokens==
 
{| {{prettytable}}
 
|- bgcolor="#ddd"
 
! Token
 
! Arguments
 
! Description
 
 
 
|-
 
| LEVEL
 
|
 
| Specifies the number of ingredients are used in this type of prepared meal - 2 for Easy, 3 for Fine, 4 for Lavish.
 
 
 
|-
 
| NAME
 
| singular:plural
 
| What this item will be called ingame.
 
|}
 
 
 
{{Category|Modding}}
 
{{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)