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 40d:Body 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 "40d"). 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|21:17, 30 March 2011 (UTC)}}{{av}}
+
{{av}}
 
{{Category|Modding}}
 
{{Category|Modding}}
  
 
'''Body tokens''' are one of the fundamental parts of creatures, and determine their bodily structure.  There are two major types of body tokens: ''body templates'' (BODY) and ''body parts'' (BP).
 
'''Body tokens''' are one of the fundamental parts of creatures, and determine their bodily structure.  There are two major types of body tokens: ''body templates'' (BODY) and ''body parts'' (BP).
  
A creature uses the [[creature token#B|BODY creature token]] to list all of the body templates it includes.  Each part listed in each template is then included in the creature.  In other words: a creature lists the ''body templates'' it is made of.  Each ''body template'' contains a set of ''body parts''.  Each ''body part'' specifies which other body part it is attached to.
+
A creature uses the [[creature tokens#B|BODY creature token]] to list all of the body templates it includes.  Each part listed in each template is then included in the creature.  In other words: a creature lists the ''body templates'' it is made of.  Each ''body template'' contains a set of ''body parts''.  Each ''body part'' specifies which other body part it is attached to.
  
 
Body parts can connect specifically to another body part, or generally to any body part of a certain category.  These connections are handled by the CON and CONTYPE body part tokens respectively.
 
Body parts can connect specifically to another body part, or generally to any body part of a certain category.  These connections are handled by the CON and CONTYPE body part tokens respectively.
  
Body parts can be renamed with a ''[[bodygloss]]'', allowing someone to reuse an existing template instead of defining a similar template with only the names of the body parts changed.
+
Body parts can be renamed with a ''{{L|bodygloss}}'', allowing someone to reuse an existing template instead of defining a similar template with only the names of the body parts changed.
  
 
== Convention ==
 
== Convention ==
Line 63: Line 63:
 
! Arguments
 
! Arguments
 
! Description
 
! Description
 +
 +
|-
 +
| APERTURE
 +
|
 +
| An opening in the body. Cannot be destroyed  except by destroying the part is attached to.
  
 
|-
 
|-
Line 68: Line 73:
 
|
 
|
 
* id
 
* id
* name
+
| The internal object ID of the body part.  Unlike many other tokens in the game, the id of the BP does not need to be unique throughout all of the raw object files, though it does need to be unique within the BODY it is in.
| The internal object ID of the body part.  Unlike many other tokens in the game, the id of the BP does not need to be unique throughout all of the raw object files, though it does need to be unique within the BODY it is in, as well as within the set of body templates used by any given creature.
 
  
 
|-
 
|-
| UPPERBODY
+
| BREATHE
 
|  
 
|  
| The body part is the "core" of the creature; when the upperbody body part is destroyed, the creature is blown apart.
+
| The body part is necessary to breathe.  If the body part is destroyed, the creature can suffocate unless it has the NOBREATHE token. The NOBREATHE token also causes the part to heal normally.
A creature doesn't die until an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these
 
can't be killed*. UPPERBODYs aren't redundant, once one is destroyed the creature dies.  Body parts with [CONTYPE:UPPERBODY] will be connected to these.
 
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
 
  
 
|-
 
|-
| LOWERBODY
+
| CIRCULATION
|
+
|  
| The body part is another part of the "core" of the creature.  When the lowerbody body part is destroyed, the creature is bisected.  A creature doesn't die until an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these can't be killed*.  LOWERBODYs aren't redundant, once one is destroyed the creature dies.  Body parts with [CONTYPE:LOWERBODY] will be connected to these.
+
| If this body part is destroyed, the creature will bleed to death?
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
 
 
 
|-
 
| HEAD
 
|
 
| Vital bodypart. If severed, creature dies.  A creature doesn't die until an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these can't be killed*.  HEADs aren't redundant, once one is destroyed the creature dies.  Body parts with [CONTYPE:HEAD] will be connected to these.
 
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
 
  
 
|-
 
|-
Line 101: Line 95:
 
|
 
|
 
* type
 
* type
| The body part ''token type'' to which this body part attaches - valid values are UPPERBODY, LOWERBODY, HEAD, GRASP, and STANCE. Note that if the creature has more than one body part with that token type each of them will get its own additional body part attached.  For example, if a creature has two upper bodies (two torsos) and a lower body, the CONTYPE:UPPERBODY means that the two upper torsos are connected to the lower torso by default.  This tag is optional.  Interesting effects can be created by leaving unconnected body parts.
+
| The body part ''token type'' to which this body part attaches. Note that if the creature has more than one body part with that token type each of them will get its own additional body part attached.  For example, if a creature has two upper bodies (two torsos) and a lower body, the CONTYPE:UPPER_BODY means that the two upper torsos are connected to the lower torso by default.  This tag is optional.  Interesting effects can be created by leaving unconnected body parts.
 +
 
 +
|-
 +
| DIGIT
 +
|
 +
| Is a finger/toe.  Unknown effect.  DIGITs '''may''' only be damaged when their connected body part is damaged, they do not appear to be valid targets for damage otherwise.
 +
 
 +
|-
 +
| EMBEDDED
 +
|
 +
| The body part is embedded into the body -- it is external and can be gouged out. This does not make a part invisible.
  
 
|-
 
|-
| LIMB
+
| FLIER
|
+
|  
| The body part is usable for [[wrestling]] (i.e. can grab, lock, choke, etc.).
+
| The body part is necessary for the creature to fly, and damage to the body part will ground the creature.
  
 
|-
 
|-
| THROAT
+
| GRASP
 
|  
 
|  
| Can be strangled with [[wrestling]] to cause winding, unconsciousness, and eventual death. Strangely, even creatures with the NOBREATHE token can be rendered unconscious (but not dead) by strangulation.
+
| The body part can be used to hold items (if the creature has the EQUIPS token) or {{L|wrestling|wrestle}}.
  
 
|-
 
|-
| JOINT
+
| GUTS
 
|  
 
|  
| Can be broken by [[wrestling]].
+
| To be thought of like intestines. Can be disemboweled, causing a slow painful death from heavy bleeding.
  
 
|-
 
|-
| SKELETON
+
| HEAD
 
|
 
|
| Prevents game code from removing this bodypart when the creature is converted to skeletal undead.
+
| Vital bodypart. If severed, creature dies.  A creature doesn't die until an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these can't be killed*.  HEADs aren't redundant, once one is destroyed the creature dies.
 +
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
  
 
|-
 
|-
| THOUGHT
+
| HEAR
 
|  
 
|  
| Necessary for the creature to thinkWithout a working brain, the creature dies unless it has the NOTHOUGHT Creature Token. Also seems to apply the effects of NERVOUS.
+
| Unknown effectPresumably allows the creature to listen. Also makes earrings equippable.
  
 
|-
 
|-
| NERVOUS
+
| INTERNAL
 
|  
 
|  
| Causes pain when destroyed and appears to stop a part from healing over time. However, it will heal normally if creature is NOTHOUGHT. Other effects?
+
| The body part is an internal organ and is not visible until injured. In 40d, it appears that the [SMALL] tag is what actually makes organs invisible, and that non-SMALL internal organs are visible even before being damaged.
  
 
|-
 
|-
| GRASP
+
| JOINT
 
|  
 
|  
| The body part can be used to hold items (if the creature has the EQUIPS token) or [[wrestling|wrestle]]. Body parts with [CONTYPE:GRASP] will be connected to these.
+
| Can be broken by {{L|wrestling}} (possibly falling damage in a future version).
  
 
|-
 
|-
| FLIER
+
| LEFT
 
|  
 
|  
| The body part is necessary for the creature to fly, and damage to the body part will ground the creature.
+
| The body part is on the left side of the creature and is thus vulnerable to attacks from the left side.
 +
 
 +
|-
 +
| LIMB
 +
|
 +
| The body part is usable for {{L|wrestling}} (i.e. can grab, lock, choke, etc).
  
 
|-
 
|-
| STANCE
+
| LOWERBODY
 
|
 
|
| The body part is used to keep the creature standing; injury to the body part will cause the creature to collapse. It also makes the body part act like a foot, and can be problematic as the body part can be armored by a bootSTANCE body parts that are unconnected to the root (have no CON tag) do not count towards keeping the creature standing (NOTE: if '''any''' [STANCE] body parts are unconnected to root, the creature may fall over. Further testing required).  Body parts with [CONTYPE:STANCE] will be connected to these.
+
| The body part is another part of the "core" of the creature. When the lowerbody body part is destroyed, the creature is bisectedA creature doesn't die untill an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these can't be killed*.  LOWERBODYs aren't redundant, once one is destroyed the creature dies.
 +
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
  
 
|-
 
|-
| SIGHT
+
| MOUTH
 
|
 
|
| Allows creatures to see; creatures without this tag on any part of their bodies cannot see for the purposes of aiming missile weapons (though apparently can find and kill mad adventurers fairly well with melee attacks).  May need more testing.
+
| Unknown effect. Does not allow creature to eat.  Often tied to a creature's attacks, so this may be the primary use of the tag.
  
 
|-
 
|-
| HEAR
+
| NERVOUS
 
|  
 
|  
| Unknown effect. Presumably allows the creature to listen. Also makes earrings equippable.
+
| Causes pain when destroyed and appears to stop a part from healing over time. However, it will heal normally if creature is NOTHOUGHT. Other effects?
  
 
|-
 
|-
| SMELL
+
| RIGHT
 
|  
 
|  
| Unknown effect.  Presumably allows creature to smell.
+
| The body part is on the right side of the creature and is thus vulnerable to attacks from the right side.
  
 
|-
 
|-
| EMBEDDED
+
| SIGHT
|  
+
|
| The body part is embedded into the body -- it is external and can be gouged out. This does not make a part invisible.
+
| Allows creatures to see; creatures without this tag on any part of their bodies cannot see for the purposes of aiming missile weapons (though apparently can find and kill mad adventurers fairly well with melee attacks). May need more testing.
  
 
|-
 
|-
| APERTURE
+
| SKELETON
|  
+
|
| An opening in the body. Cannot be destroyed  except by destroying the part is attached to.
+
| Prevents game code from removing this bodypart when the creature is converted to skeletal undead.
  
 
|-
 
|-
Line 179: Line 190:
  
 
|-
 
|-
| INTERNAL
+
| SMELL
 
|  
 
|  
| The body part is an internal organ and is not visible until injuredIn 40d, it appears that the [SMALL] tag is what actually makes organs invisible, and that non-SMALL internal organs are visible even before being damaged.
+
| Unknown effectPresumably allows creature to smell.
  
 
|-
 
|-
| BREATHE
+
| STANCE
|  
+
|
| The body part is necessary to breathe. If the body part is destroyed, the creature can suffocate unless it has the NOBREATHE token. The NOBREATHE token also causes the part to heal normally.
+
| The body part is used to keep the creature standing; injury to the body part will cause the creature to collapse. It also makes the body part act like a foot, and can be problematic as the body part can be armored by a boot.  STANCE body parts that are unconnected to the root (have no CON tag) do not count towards keeping the creature standing (NOTE: if '''any''' [STANCE] body parts are unconnected to root, the creature may fall over.  Further testing required).
  
 
|-
 
|-
| CIRCULATION
+
| THOUGHT
 
|  
 
|  
| If this body part is destroyed, the creature will bleed to death?
+
| Necessary for the creature to think.  Without a working brain, the creature dies unless it has the NOTHOUGHT Creature Token. Also seems to apply the effects of NERVOUS.
  
 
|-
 
|-
| GUTS
+
| THROAT
 
|  
 
|  
| To be thought of like intestines. Can be disemboweled, causing a slow painful death from heavy bleeding.
+
| Can be strangled with {{L|wrestling}} to cause winding, unconsciousness, and eventual death. Strangely, even creatures with the NOBREATHE token can be rendered unconscious (but not dead) by strangulation.
  
 
|-
 
|-
| RIGHT
+
| UPPERBODY
 
|  
 
|  
| The body part is on the right side of the creature and is thus vulnerable to attacks from the right side.
+
| The body part is the "core" of the creature; when the upperbody body part is destroyed, the creature is blown apart.
 
+
A creature doesn't die untill an UPPERBODY, HEAD, or LOWERBODY is destroyed, so a creature without one or all of these
|-
+
can't be killed*.  UPPERBODYs aren't redundant, once one is destroyed the creature dies.
| LEFT
+
*most creatures can also be killed indirectly by suffocation or blood loss. (or brain damage?).
|
 
| The body part is on the left side of the creature and is thus vulnerable to attacks from the left side.
 
  
 
|-
 
|-
| DIGIT
 
|
 
| Is a finger/toe.  Unknown effect.  DIGITs '''may''' only be damaged when their connected body part is damaged, they do not appear to be valid targets for damage otherwise.
 
 
|-
 
| MOUTH
 
|
 
| Unknown effect. Does not allow creature to eat.  Often tied to a creature's attacks, so this may be the primary use of the tag.
 
 
|}
 
|}
  
 
==Body Part Types==
 
==Body Part Types==
  
Legal token types for use with the Attack Token "BYTYPE" argument:
+
Legal token types for use with the Attack Token "BYTYPE" argument or for the Body Token "CONTYPE" argument:
  
 
* APERTURE
 
* APERTURE

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)