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 "Token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Hierarchical sorting)
m
 
(5 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
{{av}}
 
{{av}}
 
{{Modding}}
 
{{Modding}}
In ''Dwarf Fortress'', a '''token''' is a piece of text that defines the properties of an object.  An "object" could be a material, a type of tissue, an organ, a piece of armor, a creature, a biome, a civilisation, or anything else in the game.  A "property" could be how large something is, what it is made from, its melting temperature, its name, its biome preference (for civilisations) or anything else that makes it unique.  All information associated with the properties of an object in the game is defined using tokens. Tokens are used in the [[raws]], which can be easily [[modding|modified]], allowing users to create (and distribute) new content.
+
In ''Dwarf Fortress'', a '''token''' is a piece of text that defines the properties of an object.  An "object" could be a material, a type of tissue, an organ, a piece of armor, a creature, a biome, a civilization, or anything else in the game; a "property" could be how large something is, what it is made from, its melting temperature, its name, its biome preference (for civilizations) or anything else that makes it unique.  All information associated with the properties of an object in the game is defined using tokens. Tokens are used in the [[raws]], which can be easily [[modding|modified]], allowing users to create (and distribute) new content.
  
 +
:* [[Audio]] tokens define audio metadata, and the triggers to play music and sound.
 
:* [[Biome token]]s reference [[biome|environments]] for creatures, plants and [[civilization|entities]].
 
:* [[Biome token]]s reference [[biome|environments]] for creatures, plants and [[civilization|entities]].
 
:* [[Building token]]s define buildings.
 
:* [[Building token]]s define buildings.
Line 9: Line 10:
 
:** [[Bodygloss]] tokens perform a single-word substitution of a creature's body parts.
 
:** [[Bodygloss]] tokens perform a single-word substitution of a creature's body parts.
 
:* [[Body detail plan token]]s define some details of a body, similar to body tokens.
 
:* [[Body detail plan token]]s define some details of a body, similar to body tokens.
:* [[Creature token]]s determine the properties of creatures.
+
:* [[Creature token]]s determine the properties of creatures, while [[Creature variation token]]s are used to modify creatures.
:* [[Creature variation token]]s are used to modify creatures.
+
:* [[Descriptor color token]]s - not to be confused with [[color scheme]]s - define colors used in text-based descriptions, while [[Descriptor pattern token]]s define color patterns, and [[Descriptor shape token]]s define [[shape]]s.
:* [[Descriptor color token]]s define colors used in text-based descriptions. Not to be confused with [[color scheme]]s.
 
:* [[Descriptor pattern token]]s define color patterns.
 
:* [[Descriptor shape token]]s define [[shape]]s.
 
 
:* [[Entity token]]s define entities, or [[civilization]]s.
 
:* [[Entity token]]s define entities, or [[civilization]]s.
 
:** [[Position token]]s define [[noble]] titles and administrative positions in entities.
 
:** [[Position token]]s define [[noble]] titles and administrative positions in entities.
Line 34: Line 32:
 
:* [[Reaction]] tokens define crafting recipes.
 
:* [[Reaction]] tokens define crafting recipes.
 
:* [[Skill token]]s reference skills.
 
:* [[Skill token]]s reference skills.
:* [[Syndrome token]]s define syndromes (ie conditions, diseases, bonuses and maluses).
+
:* [[Speech file]]s define strings used for certain lines of dialog and book titles.
 +
:* [[Syndrome token]]s define syndromes (ie: conditions, diseases, bonuses and maluses).
 
:* [[Tissue definition token]]s define tissues.
 
:* [[Tissue definition token]]s define tissues.
 
:* [[Unit type token]]s reference by tilesets and entities, for purposes of professions and the like.
 
:* [[Unit type token]]s reference by tilesets and entities, for purposes of professions and the like.
 
:* [[World token]]s are used in [[advanced world generation]].
 
:* [[World token]]s are used in [[advanced world generation]].
:* [[Audio]] tokens define audio metadata and the triggers to play music and sound.
 
  
 
Also note the ``[LOG_CURRENT_ENTRY]`` token, available for all object types. For information regarding use, see [[Modding#Modifying the vanilla objects]].
 
Also note the ``[LOG_CURRENT_ENTRY]`` token, available for all object types. For information regarding use, see [[Modding#Modifying the vanilla objects]].

Latest revision as of 14:02, 20 April 2026

This article is about the current version of DF.
Note that some content may still need to be updated.


In Dwarf Fortress, a token is a piece of text that defines the properties of an object. An "object" could be a material, a type of tissue, an organ, a piece of armor, a creature, a biome, a civilization, or anything else in the game; a "property" could be how large something is, what it is made from, its melting temperature, its name, its biome preference (for civilizations) or anything else that makes it unique. All information associated with the properties of an object in the game is defined using tokens. Tokens are used in the raws, which can be easily modified, allowing users to create (and distribute) new content.

Also note the [LOG_CURRENT_ENTRY] token, available for all object types. For information regarding use, see Modding#Modifying the vanilla objects.

See also[edit]