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 "v0.31:Tool token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(material size did nothing for tools in 0.31 - they always took a single bar)
 
Line 8: Line 8:
  
 
|-
 
|-
| NAME
+
| {{text anchor|NAME}}
 
|  
 
|  
 
*singular
 
*singular
 
*plural
 
*plural
| Name of the tool. <font color="red">Required</font>.
+
| Name of the tool. <font color="red">Required.</font>
  
 
|-
 
|-
| HARD_MAT
+
| {{text anchor|HARD_MAT}}
 
|
 
|
| Permits the tool to be made from any "hard" material, such as stone.
+
| Permits the tool to be made from anything with the [ITEMS_HARD] token, such as wood, stone or metal.
  
 
|-
 
|-
| METAL_MAT
+
| {{text anchor|METAL_MAT}}
 
|
 
|
| Permits the tool to be made from any metal.
+
| Permits the tool to be made from anything with the [IS_METAL] token.
  
 
|-
 
|-
| METAL_WEAPON_MAT
+
| {{text anchor|METAL_WEAPON_MAT}}
 
|
 
|
| Permits the tool to be made from any weapons-grade metal.
+
| Permits the tool to be made from any metal with the [ITEMS_WEAPON] token.
  
 
|-
 
|-
| UNIMPROVABLE
+
| {{text anchor|UNIMPROVABLE}}
 
|
 
|
 
| Prevents the tool from being improved.  Used on honeycombs.
 
| Prevents the tool from being improved.  Used on honeycombs.
  
 
|-
 
|-
| VALUE
+
| {{text anchor|VALUE}}
 
|
 
|
 
*num
 
*num
| Defines the item value of the tool. <font color="red">Required</font>.
+
| Defines the item value of the tool. <font color="red">Required.</font>
  
 
|-
 
|-
| TILE
+
| {{text anchor|TILE}}
 
|
 
|
 
*num
 
*num
| Defines the tile used to represent the tool. <font color="red">Required</font>.
+
| Defines the tile used to represent the tool. <font color="red">Required.</font>
  
 
|-
 
|-
| TOOL_USE
+
| {{text anchor|TOOL_USE}}
 
|  
 
|  
 
*tool use, see below
 
*tool use, see below
Line 53: Line 53:
  
 
|-
 
|-
| ADJECTIVE
+
| {{text anchor|ADJECTIVE}}
 
|  
 
|  
 
*adjective
 
*adjective
Line 59: Line 59:
  
 
|-
 
|-
| SIZE / WEIGHT
+
| {{text anchor|SIZE}} // {{text anchor|WEIGHT}}
 
|  
 
|  
 
*size
 
*size
| Volume of tool in mL or cubic centimeters. <font color="red">Required</font>.
+
| Volume of tool in mL or cubic centimeters. <font color="red">Required.</font>
  
 
|-
 
|-
| CONTAINER_CAPACITY
+
| {{text anchor|CONTAINER_CAPACITY}}
 
|
 
|
 
*amount
 
*amount
Line 71: Line 71:
  
 
|-
 
|-
| SHOOT_FORCE
+
| {{text anchor|SHOOT_FORCE}}
 
|  
 
|  
 
*value
 
*value
| <font color="red">Required</font> for weapons.
+
| <font color="red">Required for weapons.</font>
  
 
|-
 
|-
| SHOOT_MAXVEL
+
| {{text anchor|SHOOT_MAXVEL}}
 
|  
 
|  
 
*value
 
*value
| <font color="red">Required</font> for weapons.
+
| <font color="red">Required for weapons.</font>
  
 
|-
 
|-
| SKILL
+
| {{text anchor|SKILL}}
 
|  
 
|  
 
*Skill token
 
*Skill token
| The skill to determine effectiveness in melee with this tool. <font color="red">Required</font> for weapons.
+
| The skill to determine effectiveness in melee with this tool. <font color="red">Required for weapons.</font>
  
 
|-
 
|-
| RANGED
+
| {{text anchor|RANGED}}
 
|  
 
|  
 
*Skill token
 
*Skill token
Line 96: Line 96:
  
 
|-
 
|-
| TWO_HANDED
+
| {{text anchor|TWO_HANDED}}
 
|  
 
|  
 
*size
 
*size
| Creatures under this size (in cm^3) must use the tool two-handed. <font color="red">Required</font> for weapons.
+
| Creatures under this size (in cm^3) must use the tool two-handed. <font color="red">Required for weapons.</font>
  
 
|-
 
|-
| MINIMUM_SIZE
+
| {{text anchor|MINIMUM_SIZE}}
 
|  
 
|  
 
*size
 
*size
| Minimum body size (in cm^3) to use the tool at all (multigrasp required until TWO_HANDED value) <font color="red">Required</font> for weapons.
+
| Minimum body size (in cm^3) to use the tool at all (multigrasp required until TWO_HANDED value) <font color="red">Required for weapons.</font>
  
 
|-
 
|-
| MATERIAL_SIZE
+
| {{text anchor|MATERIAL_SIZE}}
 
|  
 
|  
 
*value
 
*value
| Intended to specify the amount of material used for forging. Does '''not''' work due to a bug.
+
| Intended to specify number of bar units needed for forging. Does '''not''' work due to a bug.
  
 
|-
 
|-
| ATTACK
+
| {{text anchor|ATTACK}}
 
|  
 
|  
 
*attacktype:BLUNT or EDGE
 
*attacktype:BLUNT or EDGE
Line 123: Line 123:
 
*noun:string
 
*noun:string
 
*velocity_multiplier:value
 
*velocity_multiplier:value
| You can have many ATTACK tags and one will be randomly selected for each attack, with EDGE attacks 100 times more common than BLUNT attacks. <font color="red">Required</font> for weapons.
+
| You can have many ATTACK tags and one will be randomly selected for each attack, with EDGE attacks 100 times more common than BLUNT attacks. <font color="red">Required for weapons.</font>
 
|}
 
|}
  
 
Valid tool uses (and the default tools used for these tasks) are as follows:
 
Valid tool uses (and the default tools used for these tasks) are as follows:
* LIQUID_COOKING (cauldron)
+
{| class="wikitable sortable"
* LIQUID_SCOOP (ladle)
+
|- bgcolor="#999999"
* GRIND_POWDER_RECEPTACLE (mortar)
+
! ID
* GRIND_POWDER_GRINDER (pestle)
+
! Token
* MEAT_CARVING (carving knife)
+
! Usage
* MEAT_BONING (boning knife)
+
|-
* MEAT_SLICING (slicing knife)
+
| 0 || LIQUID_COOKING || cauldron || adventure mode decoration / weapon
* MEAT_CLEAVING (meat cleaver)
+
|-
* HOLD_MEAT_FOR_CARVING (carving fork)
+
| 1 || LIQUID_SCOOP || ladle || adventure mode decoration / weapon
* MEAL_CONTAINER (bowl)
+
|-
* NEST_BOX (nest box)
+
| 2 || GRIND_POWDER_RECEPTACLE || mortar || adventure mode decoration / weapon
* LIQUID_CONTAINER (jug)
+
|-
* FOOD_STORAGE (large pot)
+
| 3 || GRIND_POWDER_GRINDER || pestle || adventure mode decoration / weapon
* HIVE (hive)
+
|-
 +
| 4 || MEAT_CARVING || carving knife || adventure mode decoration / weapon
 +
|-
 +
| 5 || MEAT_BONING || boning knife || adventure mode decoration / weapon
 +
|-
 +
| 6 || MEAT_SLICING || slicing knife || adventure mode decoration / weapon
 +
|-
 +
| 7 || MEAT_CLEAVING || meat cleaver || adventure mode decoration / weapon
 +
|-
 +
| 8 || HOLD_MEAT_FOR_CARVING || carving fork || adventure mode decoration / weapon
 +
|-
 +
| 9 || MEAL_CONTAINER || bowl || adventure mode decoration / weapon
 +
|-
 +
| 10 || LIQUID_CONTAINER || [[jug]] || can store honey or oil
 +
|-
 +
| 11 || FOOD_STORAGE || [[large pot]] || can store beer
 +
|-
 +
| 12 || HIVE || [[hive]] || can make honey
 +
|-
 +
| 13 || NEST_BOX || [[nest box]] || for your birds to lay eggs
 +
|}
  
 
{{Category|Modding}}
 
{{Category|Modding}}
 
{{Category|Tokens}}
 
{{Category|Tokens}}

Latest revision as of 01:01, 4 April 2026

This article is about an older version of DF.
Token Arguments Description
 NAME
  • singular
  • plural
Name of the tool. Required.
 HARD_MAT Permits the tool to be made from anything with the [ITEMS_HARD] token, such as wood, stone or metal.
 METAL_MAT Permits the tool to be made from anything with the [IS_METAL] token.
 METAL_WEAPON_MAT Permits the tool to be made from any metal with the [ITEMS_WEAPON] token.
 UNIMPROVABLE Prevents the tool from being improved. Used on honeycombs.
 VALUE
  • num
Defines the item value of the tool. Required.
 TILE
  • num
Defines the tile used to represent the tool. Required.
 TOOL_USE
  • tool use, see below
Defines the task performed using the tool.
 ADJECTIVE
  • adjective
Adjective preceding the material name (e.g. "large copper dagger")
 SIZE //  WEIGHT
  • size
Volume of tool in mL or cubic centimeters. Required.
 CONTAINER_CAPACITY
  • amount
How much the item can contain. Defaults to 0.
 SHOOT_FORCE
  • value
Required for weapons.
 SHOOT_MAXVEL
  • value
Required for weapons.
 SKILL
  • Skill token
The skill to determine effectiveness in melee with this tool. Required for weapons.
 RANGED
  • Skill token
  • Ammo item token
Makes this tool a ranged weapon that uses the specified ammo. The specified skill determines accuracy in ranged combat.
 TWO_HANDED
  • size
Creatures under this size (in cm^3) must use the tool two-handed. Required for weapons.
 MINIMUM_SIZE
  • size
Minimum body size (in cm^3) to use the tool at all (multigrasp required until TWO_HANDED value) Required for weapons.
 MATERIAL_SIZE
  • value
Intended to specify number of bar units needed for forging. Does not work due to a bug.
 ATTACK
  • attacktype:BLUNT or EDGE
  • contact_area:value
  • penetration_size:value
  • verb2nd:string
  • verb3rd:string
  • noun:string
  • velocity_multiplier:value
You can have many ATTACK tags and one will be randomly selected for each attack, with EDGE attacks 100 times more common than BLUNT attacks. Required for weapons.

Valid tool uses (and the default tools used for these tasks) are as follows:

ID Token Usage
0 LIQUID_COOKING cauldron adventure mode decoration / weapon
1 LIQUID_SCOOP ladle adventure mode decoration / weapon
2 GRIND_POWDER_RECEPTACLE mortar adventure mode decoration / weapon
3 GRIND_POWDER_GRINDER pestle adventure mode decoration / weapon
4 MEAT_CARVING carving knife adventure mode decoration / weapon
5 MEAT_BONING boning knife adventure mode decoration / weapon
6 MEAT_SLICING slicing knife adventure mode decoration / weapon
7 MEAT_CLEAVING meat cleaver adventure mode decoration / weapon
8 HOLD_MEAT_FOR_CARVING carving fork adventure mode decoration / weapon
9 MEAL_CONTAINER bowl adventure mode decoration / weapon
10 LIQUID_CONTAINER jug can store honey or oil
11 FOOD_STORAGE large pot can store beer
12 HIVE hive can make honey
13 NEST_BOX nest box for your birds to lay eggs