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.

v0.31:Weapon token

From Dwarf Fortress Wiki
Revision as of 03:27, 20 November 2011 by Quietust (talk | contribs)
Jump to navigation Jump to search
This article is about an older version of DF.

These tokens can only be placed within an ITEM_WEAPON object definition, most do not function in armor objects.

Token Arguments Description
NAME
  • singular
  • plural
Name of the weapon. Required.
ADJECTIVE
  • adjective
Adjective of the weapon, e.g. the "large" in "large copper dagger".
SIZE / WEIGHT
  • size
Volume of weapon in mL or cubic cm. Defaults to 100.
SHOOT_FORCE
  • value
The amount of force used when firing projectiles - velocity is presumably determined by the projectile's mass. Defaults to 0.
SHOOT_MAXVEL
  • value
The maximum speed a fired projectile can have.
SKILL The skill to determine effectiveness in melee with this weapon. Defaults to MACE.
RANGED Makes this 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 weapon two-handed. Defaults to 50000.
MINIMUM_SIZE
  • size
Minimum body size (in cm^3) to use the weapon at all (multigrasp required until TWO_HANDED value). Defaults to 40000.
CAN_STONE Allows this weapon to be made from sharp stones (i.e. Template:L) plus a wood log.
TRAINING Restricts this weapon to being made of wood.
MATERIAL_SIZE
  • value
Number of bar units needed for forging, as well as the amount gained from melting. No weapons currently have a correct MATERIAL_SIZE by defaultv0.31.12. Required.
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.