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

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Rewrote for style and clarity; testing suggests agility1000!=10 ticks/move, left open;added egg hatch time for consistency with hives)
Line 5: Line 5:
  
 
== Breakdown ==
 
== Breakdown ==
Time is measured in unnamed units, which are often colloquially referred to as "Time Units." Time units are equal to different lengths of day, depending on the mode.
+
Time is measured in unnamed units, which are commonly referred to as "time units" or "ticks." Time units are equal to different lengths of time, depending on the game mode.
  
In fortress mode, a time unit is equal to 1.2 In-game minutes. There are 1200 time units in a day, 28 days in a month, and 336 days in a year. A year in fortress contains 403200 time units. In adventurer mode, a time unit is exactly 1 In-game second. Thus, adventurer mode is 72 times slower than fortress mode.
+
In fortress mode, there are 1200 time units in a day; in adventurer mode, there are 86400 time units in a day. Thus, an adventurer is capable of moving, fighting, and interacting 72 times as fast a dwarf in adventurer mode. Assuming 24 hours per day, 60 minutes per hour, and 60 seconds per minute, this means that a time unit lasts 1 second in adventurer mode and 1.2 minutes in fortress mode. Regardless of mode, there are 28 days in a month and 12 months in a year.
The conversion between Time units and seconds in Fortress mode, it's not precise, but it's been calculated that a time unit is about 0.01s(with an average of 100 fps), so a day in the game is equal to about 12s, a month to about 340s (5.7 mins) and a year to about 4032s (67.2 mins).
 
  
The average human (with 1000 agility attribute) takes 10 time units, regardless of mode, to move one square. The average dwarf (with 900 agility) takes around 11. {{L|trap|Menacing spikes}} take 40 time units to raise/lower. Other delayed mechanical actions (like {{L|bridge}}s, {{L|floodgate}}s, and resetting {{L|pressure plate}}s) take 100 time units each.
+
In fortress mode, there are 403200 time units every year.  At 100 fps, it would take just over an hour to play through one year.
 +
 
 +
The amount of time it takes a creature to move, fight, or interact is directly proportional to the inverse of its [[speed]] and proportional, through an unknown function, to its [[agility]]. Typical travel times for dwarves are 10-12 time units per orthogonal tile traveled.  Triggered devices can be affected by delays of up to 100 time units; see [[lever]].
  
 
== Syndromes ==
 
== Syndromes ==
Line 16: Line 17:
  
 
== Plants ==
 
== Plants ==
Plants use a tag called GROWDUR. The GROWDUR value is generally set to 300 or 500, which is actually 30000 T.U. or 50000 T.U. 1 growdur = 100 time units.
+
Plants use a tag called GROWDUR. The GROWDUR value is generally set to 300 or 500, which is actually 30000 time units or 50000 time units. One growdur is equal to 100 time units.
  
 
== Hives ==
 
== Hives ==
 
{{L|Vermin}} in {{L|hive}}s which produce items  (namely {{L|bee}}s which produce {{L|honey}}) have the HIVE_PRODUCT {{L|creature token}}, whose second parameter is the number of time units it takes for a hive to produce the product.
 
{{L|Vermin}} in {{L|hive}}s which produce items  (namely {{L|bee}}s which produce {{L|honey}}) have the HIVE_PRODUCT {{L|creature token}}, whose second parameter is the number of time units it takes for a hive to produce the product.
  
== Fortress Mode and Adventurer Mode ==
+
== Eggs ==
Days pass more quickly in Fortress Mode than Adventurer Mode, specifically, 72 times more quickly. It takes an average dwarf around 13.2 minutes to take a single step in Fortress Mode. In Adventurer Mode, the same dwarf would only take 11 seconds.
+
The {{L|Creature token|EGG_SIZE}} creature token determines how long eggs will take to hatch.
 +
 
 +
== Lifespan and Development ==
 +
 
 +
See {{L|Age}}.
  
 
== Clocks ==
 
== Clocks ==
  
 
Based on the fact that {{L|pressure plate}}s take 100 steps to reset, some people have built various time-keeping devices to do various things around the fort, like flooding a trap once a month, or just for fun.
 
Based on the fact that {{L|pressure plate}}s take 100 steps to reset, some people have built various time-keeping devices to do various things around the fort, like flooding a trap once a month, or just for fun.

Revision as of 21:16, 15 August 2011

This article is about an older version of DF.

Time in Dwarf Fortress can be a somewhat complicated subject, but learning the ins and outs of the system is essential for modders and can be of great use to players, as time tracks everything from syndromes to crop growth.


Breakdown

Time is measured in unnamed units, which are commonly referred to as "time units" or "ticks." Time units are equal to different lengths of time, depending on the game mode.

In fortress mode, there are 1200 time units in a day; in adventurer mode, there are 86400 time units in a day. Thus, an adventurer is capable of moving, fighting, and interacting 72 times as fast a dwarf in adventurer mode. Assuming 24 hours per day, 60 minutes per hour, and 60 seconds per minute, this means that a time unit lasts 1 second in adventurer mode and 1.2 minutes in fortress mode. Regardless of mode, there are 28 days in a month and 12 months in a year.

In fortress mode, there are 403200 time units every year. At 100 fps, it would take just over an hour to play through one year.

The amount of time it takes a creature to move, fight, or interact is directly proportional to the inverse of its speed and proportional, through an unknown function, to its agility. Typical travel times for dwarves are 10-12 time units per orthogonal tile traveled. Triggered devices can be affected by delays of up to 100 time units; see lever.

Syndromes

Syndromes use time units. A syndrome that lists its effect as starting at "5" means that for all but the fastest characters, you will begin feeling the effects as soon as you take a step. "50" means 50 time units (or about five steps), and "500" reliably suggests that you'll be able to stagger all the way back to the hospital before your brain pours out of your ears.

Plants

Plants use a tag called GROWDUR. The GROWDUR value is generally set to 300 or 500, which is actually 30000 time units or 50000 time units. One growdur is equal to 100 time units.

Hives

Template:L in Template:Ls which produce items (namely Template:Ls which produce Template:L) have the HIVE_PRODUCT Template:L, whose second parameter is the number of time units it takes for a hive to produce the product.

Eggs

The Template:L creature token determines how long eggs will take to hatch.

Lifespan and Development

See Template:L.

Clocks

Based on the fact that Template:Ls take 100 steps to reset, some people have built various time-keeping devices to do various things around the fort, like flooding a trap once a month, or just for fun.