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:Age"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(clearer without the double negation)
(major improvements)
Line 1: Line 1:
{{quality|Fine|23:16, 16 May 2012 (UTC)}}{{av}}
+
{{quality|Masterwork|02:07, 28 June 2013 (UTC)}}{{av}}
  
:''This article deals with the age of a [[creature]]. For world generation "ages", see [[Calendar#Ages|Calendar]].''
+
:''This article is about [[creature]] age. For world generation "ages", see [[Calendar#Ages]].''
  
'''Age''' represents how long a [[creature]] supposedly has existed (including before year 0). All creatures have an age, but in fortress mode, only your own [[dwarf|dwarves]] will have their ages observable.
+
'''Age''' is a [[creature]] attribute describing how long the creature has been alive, including creatures born before the beginning of time in terms of [[world generation]] (year zero). Age determines the life stage of creatures and, until it is fully grown, is the most important element of the creature's body [[size]]. All creatures have an age associated with them, but in fortress mode only your own [[dwarf|dwarves]] will have observable ages in the [[thoughts and preferences]] screen. The age of a creature is probably a floating value (to account for growth throughout the year), but is displayed in the game as an integer that is ticked up every time it reaches a birthday.
  
Age determines the life stages of creatures and their average body sizes over the years. For example, when your [[dwarf|dwarves]] have a [[children|baby]] it will remain a baby from age 0 to 1, then become a [[children|child]]. Once it reaches age 12, it becomes a full-fledged dwarven adult. This is also true for most of the animals in your fortress. Many pets like [[cat]]s, [[cow]]s, [[sheep]] and [[horse]]s will be in their respective child states for 1 year after birth before becoming an adult, but if you manage to capture, tame, and breed [[elephant]]s<sup><small>1</small></sup>, they will be children for 10 years after birth.
+
== Effects ==
 +
The age of a creature has an important effect on its overall [[size]], as most creatures are not born adults. The starkest example of this in the game is the case of the [[dragon]], which is born 6,000 cm<sup>3</sup> in size and takes a thousand years to mature to full adulthood at 25,000,000 cm<sup>3</sup>. However, the vast majority of the non-sapient creatures your dwarves encounter take only a year to mature to adulthood; [[elephant]]s and [[giraffe]]s are a notable exception, as their young take ten years to mature. All non-sapient creatures that have not yet reached adulthood have a "baby" moniker attached to their species name. The life cycle of [[dwarves]] is slightly more complicated: juveniles ages zero to one are considered babes, and must be carried about by their mothers; between the ages of one to twelve are they are considered [[children]], and can perform some limited tasks; and once they reach 12 years of age, they are considered adults. The process is the same for other [[creature#civilized|civilized]] races, [[animal people]], and [[minotaur]]s.  
  
The size of a creature is also dependent on age (as well as basic genetics). [[Dragon]]s are an extreme example, requiring a thousand years to reach their full size which is not much smaller than an adult [[giant sperm whale]].
+
Another aspect that is controlled by age is lifespan. Most organic creatures will eventually die of old age (including fortuitous fortress dwarves), but a few, such as [[elf|elves]], [[goblin]]s, and some unintelligent and unnatural creatures, will live until killed. [[Megabeast]]s, the [[undead]], [[night creature]]s, and the procedurally generated [[forgotten beast]]s and [[titan]]s are similarly immortal. Immigrants may sometimes show up with incorrect ages (future birthdates) {{Bug|3945}} or incorrect life stages (4 month old children) {{Bug|3752}}.  This normally does not cause a problem, and life stages get rechecked every birthday. Note that only an intelligent civilized creature vulnerable to death by expiration will seek [[necromancer|necromancy]], which means goblins and elves never become practitioners of the dark arts.
  
Another aspect that is controlled by age is lifespan. Many creatures, like dwarves and [[human]]s, can eventually die of old age, but others such as [[elf|elves]], [[goblin]]s, and some unintelligent or unnatural creatures, will live until killed.
+
== Mechanics ==
 
+
The mechanics of aging are defined within creatures' [[raw file]]s, and can easily be modified by those looking to make changes to their game.
These attributes are defined in the [[raw file|raws]]: life stage through the use of the <tt>[BABY:#]</tt> and <tt>[CHILD:#]</tt> tags and old age death through the use of <tt>[MAXAGE:#:#]</tt>. <tt>[BABY:#]</tt> defines at what year the given creature grows from a baby into a child and <tt>[CHILD:#]</tt> defines at what year it will grow from a child to an adult. The first number given in <tt>[MAXAGE:#:#]</tt> is the minimum age the creature will live to barring death from some other source, while the second number is the absolute maximum age of the creature; if this tag is not present at all, the creature will not die of old age.
+
*<tt>[CHILD:#]</tt>: Age at which children become adults. 1 for most creatures, 10 for a few others ([[giraffe]], [[elephant]]) 12 for sapient creatures, 1000 for [[dragon]]s.
 
+
*<tt>[BABY:#]</tt>: For sapient creatures, age at which babies become [[children]]. Always set to 1.
Immigrants may sometimes show up with incorrect ages (future birthdates) {{Bug|3945}} or incorrect life stages (4 month old children) {{Bug|3752}}. This normally does not cause a problem, and life stages get rechecked every birthday.
+
*<tt>[BODY_SIZE:#:#:#]</tt>: Controls the body size of the creature, typically two or more are used to constrain its growth pattern. The tag is interpreted either by age (the first parameter being is the year) or by consecutive order (the second parameter being the order number, which in conjunction with the <tt>[CHILD]</tt> tag is interpreted as a target for a fractional part of the creature's childhood), with the other, non-controlling parameter being left at zero. The third number is its size in cm<sup>3</sup>. So for instance, for dragons:
 
+
:<tt>[BODY_SIZE:0:0:6000]<br>[BODY_SIZE:1000:0:25000000]</tt>
Only an intelligent civilized creature vulnerable to death by expiration will seek [[necromancer|necromancy]].
+
:For [[deer]]:
 
+
:<tt>[CHILD:1]<br>[BODY_SIZE:0:0:14000]<br>[BODY_SIZE:1:0:70000]<br>[BODY_SIZE:2:0:140000]</tt>
<sup><small>1</small></sup> <small>Tame elephants are currently bugged, and will nearly inevitably die of starvation because they can't eat enough grass in time.{{Bug|4113}}</small>
+
*<tt>[MAXAGE:#:#]</tt>: The first number given is the minimum natural lifespan of a creature, while the second is the maximum. The distribution of deaths from natural causes in between the two values is unknown, but likely linear; interestingly, receiving even the most severe of non-lethal [[wound]]s has no effect on a creature's lifespan. If this tag is not present at all, the creature is biologically immortal.

Revision as of 02:07, 28 June 2013

This article is about an older version of DF.
This article is about creature age. For world generation "ages", see Calendar#Ages.

Age is a creature attribute describing how long the creature has been alive, including creatures born before the beginning of time in terms of world generation (year zero). Age determines the life stage of creatures and, until it is fully grown, is the most important element of the creature's body size. All creatures have an age associated with them, but in fortress mode only your own dwarves will have observable ages in the thoughts and preferences screen. The age of a creature is probably a floating value (to account for growth throughout the year), but is displayed in the game as an integer that is ticked up every time it reaches a birthday.

Effects

The age of a creature has an important effect on its overall size, as most creatures are not born adults. The starkest example of this in the game is the case of the dragon, which is born 6,000 cm3 in size and takes a thousand years to mature to full adulthood at 25,000,000 cm3. However, the vast majority of the non-sapient creatures your dwarves encounter take only a year to mature to adulthood; elephants and giraffes are a notable exception, as their young take ten years to mature. All non-sapient creatures that have not yet reached adulthood have a "baby" moniker attached to their species name. The life cycle of dwarves is slightly more complicated: juveniles ages zero to one are considered babes, and must be carried about by their mothers; between the ages of one to twelve are they are considered children, and can perform some limited tasks; and once they reach 12 years of age, they are considered adults. The process is the same for other civilized races, animal people, and minotaurs.

Another aspect that is controlled by age is lifespan. Most organic creatures will eventually die of old age (including fortuitous fortress dwarves), but a few, such as elves, goblins, and some unintelligent and unnatural creatures, will live until killed. Megabeasts, the undead, night creatures, and the procedurally generated forgotten beasts and titans are similarly immortal. Immigrants may sometimes show up with incorrect ages (future birthdates) Bug:3945 or incorrect life stages (4 month old children) Bug:3752. This normally does not cause a problem, and life stages get rechecked every birthday. Note that only an intelligent civilized creature vulnerable to death by expiration will seek necromancy, which means goblins and elves never become practitioners of the dark arts.

Mechanics

The mechanics of aging are defined within creatures' raw files, and can easily be modified by those looking to make changes to their game.

  • [CHILD:#]: Age at which children become adults. 1 for most creatures, 10 for a few others (giraffe, elephant) 12 for sapient creatures, 1000 for dragons.
  • [BABY:#]: For sapient creatures, age at which babies become children. Always set to 1.
  • [BODY_SIZE:#:#:#]: Controls the body size of the creature, typically two or more are used to constrain its growth pattern. The tag is interpreted either by age (the first parameter being is the year) or by consecutive order (the second parameter being the order number, which in conjunction with the [CHILD] tag is interpreted as a target for a fractional part of the creature's childhood), with the other, non-controlling parameter being left at zero. The third number is its size in cm3. So for instance, for dragons:
[BODY_SIZE:0:0:6000]
[BODY_SIZE:1000:0:25000000]
For deer:
[CHILD:1]
[BODY_SIZE:0:0:14000]
[BODY_SIZE:1:0:70000]
[BODY_SIZE:2:0:140000]
  • [MAXAGE:#:#]: The first number given is the minimum natural lifespan of a creature, while the second is the maximum. The distribution of deaths from natural causes in between the two values is unknown, but likely linear; interestingly, receiving even the most severe of non-lethal wounds has no effect on a creature's lifespan. If this tag is not present at all, the creature is biologically immortal.