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:Weapon token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
 
(20 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{AV}}
+
{{quality|Exceptional|19:42, 24 August 2010 (UTC)}}{{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 6: Line 7:
 
! Arguments
 
! Arguments
 
! Description
 
! Description
 
|-
 
| ITEM_WEAPON
 
|
 
*name
 
| Token used to refer to the weapon. <font color="red">Required</font>.
 
  
 
|-
 
|-
Line 21: Line 16:
  
 
|-
 
|-
| SIZE
+
| ADJECTIVE
 +
|
 +
*adjective
 +
| Adjective of the weapon, e.g. the "large" in "large copper dagger".
 +
 
 +
|-
 +
| SIZE / WEIGHT
 
|  
 
|  
 
*size
 
*size
| Size/weight of weapon (in grams (Verify)). <font color="red">Required</font>.
+
| Volume of weapon in mL or cubic cm. Defaults to 100.
  
 
|-
 
|-
| SKILL
+
| SHOOT_FORCE
 
|  
 
|  
*Skill token
+
*value
| The skill to determine effectiveness in melee with this weapon. <font color="red">Required</font>.
+
| The amount of force used when firing projectiles - velocity is presumably determined by the projectile's mass. Defaults to 0.
  
 
|-
 
|-
| RANGED
+
| SHOOT_MAXVEL
 
|  
 
|  
*Skill token
+
*value
*Ammo item token
+
| The maximum speed a fired projectile can have.
| Makes this a ranged weapon that uses the specified ammo. The specified skill determines accuracy in ranged combat.
 
  
 
|-
 
|-
| SHOOT_FORCE
+
| SKILL
 
|  
 
|  
*value
+
*[[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.
  
 
|-
 
|-
| SHOOT_MAXVAL
+
| RANGED
 
|  
 
|  
*value
+
*[[Skill token]]
|
+
*Ammo class
 +
| Makes this a ranged weapon that uses the specified ammo. The specified skill determines accuracy in ranged combat.
  
 
|-
 
|-
Line 55: Line 56:
 
|  
 
|  
 
*size
 
*size
| Creatures under this size must use the weapon two-handed. <font color="red">Required</font>.
+
| Creatures under this size (in cm^3) must use the weapon two-handed. Defaults to 50000.
  
 
|-
 
|-
Line 61: Line 62:
 
|  
 
|  
 
*size
 
*size
| Minimum body size to use the weapon at all (multigrasp required until TWO_HANDED value) <font color="red">Required</font>.
+
| 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.
  
 
|-
 
|-
Line 67: Line 78:
 
|  
 
|  
 
*value
 
*value
| number of bars needed for forging <font color="red">Required</font>.
+
| Number of bar units needed for forging. Due to a bug, this does not actually work properly. <font color="red">Required</font>.
  
 
|-
 
|-
Line 79: Line 90:
 
*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. <font color="red">Required</font>.
+
| 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>.
  
|-
 
| TRAINING
 
|
 
| Marks this weapon as suited to sparring.
 
 
|}
 
|}
  
 
{{Category|Modding}}
 
{{Category|Modding}}
 
{{Category|Tokens}}
 
{{Category|Tokens}}

Latest revision as of 15:23, 25 July 2012

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. Skill of AXE will allow it to be used to chop down trees.
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. obsidian) plus a wood log.
TRAINING Restricts this weapon to being made of wood.
MATERIAL_SIZE
  • value
Number of bar units needed for forging. Due to a bug, this does not actually work properly. 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.