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.34:Weapon token"
Jump to navigation
Jump to search
(text anchor, {{y}}, change header background color) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
These tokens can only be placed within an ITEM_WEAPON object definition, most do not function in armor objects. | These tokens can only be placed within an ITEM_WEAPON object definition, most do not function in armor objects. | ||
{| {{prettytable}} | {| {{prettytable}} | ||
− | |- bgcolor="# | + | |- bgcolor="#ddd" |
! Token | ! Token | ||
! Arguments | ! Arguments | ||
Line 10: | Line 10: | ||
|- | |- | ||
− | | NAME | + | | {{text anchor|NAME}} |
| | | | ||
*singular | *singular | ||
*plural | *plural | ||
| Name of the weapon. <font color="red">Required</font>. | | Name of the weapon. <font color="red">Required</font>. | ||
− | | | + | | {{y}} |
|- | |- | ||
− | | ADJECTIVE | + | | {{text anchor|ADJECTIVE}} |
| | | | ||
*adjective | *adjective | ||
Line 24: | Line 24: | ||
|- | |- | ||
− | | SIZE / WEIGHT | + | | {{text anchor|SIZE}} / {{text anchor|WEIGHT}} |
| | | | ||
*size | *size | ||
Line 30: | Line 30: | ||
|- | |- | ||
− | | SHOOT_FORCE | + | | {{text anchor|SHOOT_FORCE}} |
| | | | ||
*value | *value | ||
Line 36: | Line 36: | ||
|- | |- | ||
− | | SHOOT_MAXVEL | + | | {{text anchor|SHOOT_MAXVEL}} |
| | | | ||
*value | *value | ||
Line 42: | Line 42: | ||
|- | |- | ||
− | | SKILL | + | | {{text anchor|SKILL}} |
| | | | ||
*[[Skill token]] | *[[Skill token]] | ||
Line 48: | Line 48: | ||
|- | |- | ||
− | | RANGED | + | | {{text anchor|RANGED}} |
| | | | ||
*[[Skill token]] | *[[Skill token]] | ||
Line 55: | Line 55: | ||
|- | |- | ||
− | | TWO_HANDED | + | | {{text anchor|TWO_HANDED}} |
| | | | ||
*size | *size | ||
Line 61: | Line 61: | ||
|- | |- | ||
− | | MINIMUM_SIZE | + | | {{text anchor|MINIMUM_SIZE}} |
| | | | ||
*size | *size | ||
Line 67: | Line 67: | ||
|- | |- | ||
− | | CAN_STONE | + | | {{text anchor|CAN_STONE}} |
| | | | ||
− | | Allows the weapon to be made at | + | | Allows the weapon to be made at a [[craftsdwarf's workshop]] from a sharp ([MAX_EDGE:10000] or higher) stone (e.g. [[obsidian]]) plus a wood log. |
|- | |- | ||
− | | TRAINING | + | | {{text anchor|TRAINING}} |
| | | | ||
| Restricts this weapon to being made of wood. | | Restricts this weapon to being made of wood. | ||
|- | |- | ||
− | | MATERIAL_SIZE | + | | {{text anchor|MATERIAL_SIZE}} |
| | | | ||
*value | *value | ||
Line 83: | Line 83: | ||
|- | |- | ||
− | | ATTACK | + | | {{text anchor|ATTACK}} |
| | | | ||
*attacktype:BLUNT or EDGE | *attacktype:BLUNT or EDGE | ||
Line 92: | Line 92: | ||
*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>. | + | | 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. Contact area is usually high for slashing and low for bludgeoning, piercing, and poking. Penetration value tends to be low for slashing and high for stabbing. Penetration is ignored if attack is BLUNT. <font color="red">Required</font>. |
|} | |} |
Latest revision as of 15:21, 18 May 2014
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 | Works in armor |
---|---|---|---|
NAME |
|
Name of the weapon. Required. | Y |
ADJECTIVE |
|
Adjective of the weapon, e.g. the "large" in "large copper dagger". | |
SIZE / WEIGHT |
|
Volume of weapon in mL or cubic cm. Defaults to 100. | |
SHOOT_FORCE |
|
The amount of force used when firing projectiles - velocity is presumably determined by the projectile's mass. Defaults to 0. | |
SHOOT_MAXVEL |
|
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 |
|
Creatures under this size (in cm^3) must use the weapon two-handed. Defaults to 50000. | |
MINIMUM_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 the weapon to be made at a craftsdwarf's workshop from a sharp ([MAX_EDGE:10000] or higher) stone (e.g. obsidian) plus a wood log. | ||
TRAINING | Restricts this weapon to being made of wood. | ||
MATERIAL_SIZE |
|
Number of bar units needed for forging, as well as the amount gained from melting. Required. | |
ATTACK |
|
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. Contact area is usually high for slashing and low for bludgeoning, piercing, and poking. Penetration value tends to be low for slashing and high for stabbing. Penetration is ignored if attack is BLUNT. Required. |