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 v0.31:Weapon 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 "v0.31"). 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|19:42, 24 August 2010 (UTC)}}{{av}}
+
{{AV}}
 
+
{{Quality|Tattered|08:43, 18 June 2010 (UTC)}}
These tokens can only be placed within an ITEM_WEAPON object definition, most do not function in armor objects.
 
 
{| {{prettytable}}
 
{| {{prettytable}}
 
|- bgcolor="#999999"
 
|- bgcolor="#999999"
Line 9: Line 8:
  
 
|-
 
|-
| NAME
+
| ITEM_WEAPON
|  
+
| <name>
*singular
+
| unique ID of the weapon
*plural
 
| Name of the weapon. <font color="red">Required</font>.
 
  
 
|-
 
|-
| ADJECTIVE
+
| NAME
|  
+
| singular:plurarl
*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
+
| SIZE
|  
+
| value
*value
+
| size/weight of weapon
| The maximum speed a fired projectile can have.
 
  
 
|-
 
|-
 
| SKILL
 
| SKILL
|  
+
| any skill
*[[Skill token]]
+
|
| The skill to determine effectiveness in melee with this weapon. Defaults to MACE. Skill of AXE will allow it to be used to chop down trees.
 
 
 
|-
 
| RANGED
 
|
 
*[[Skill token]]
 
*Ammo class
 
| Makes this a ranged weapon that uses the specified ammo. The specified skill determines accuracy in ranged combat.
 
  
 
|-
 
|-
 
| TWO_HANDED
 
| TWO_HANDED
|  
+
| value
*size
+
| bodysize needed for one handed usage
| Creatures under this size (in cm^3) must use the weapon two-handed. Defaults to 50000.
 
  
 
|-
 
|-
 
| MINIMUM_SIZE
 
| MINIMUM_SIZE
|  
+
| value
*size
+
| minimum bodysize to use the weapon at all (multigrasp until TWO_HANDED value)
| 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. [[obsidian]]) plus a wood log.
 
 
 
|-
 
| TRAINING
 
|
 
| Restricts this weapon to being made of wood.
 
  
 
|-
 
|-
 
| MATERIAL_SIZE
 
| MATERIAL_SIZE
|  
+
| value
*value
+
| number of bars needed for forging
| Number of bar units needed for forging. Due to a bug, this does not actually work properly. <font color="red">Required</font>.
 
  
 
|-
 
|-
 
| ATTACK
 
| ATTACK
 
|  
 
|  
*attacktype:BLUNT or EDGE
+
attacktype:BLUNT or EDGE<br>
*contact_area:value
+
contact_area:value<br>
*penetration_size:value
+
penetration_size:value<br>
*verb2nd:string
+
verb2nd:string<br>
*verb3rd:string
+
verb3rd:string<br>
*noun:string
+
noun:string<br>
*velocity_multiplier:value
+
velocity_multiplyer: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>.
+
|  
 
 
 
|}
 
|}
  
 
{{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)