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
(Seems to cover all tokens.)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{migrated article}}
+
{{Quality|Fine}}
{{Quality|Unrated}}
 
 
{{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 found in the [[raws]], and 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 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.
  
 
:* [[Ammo token]]s define ammunition, such as arrows and bolts.
 
:* [[Ammo token]]s define ammunition, such as arrows and bolts.
Line 29: Line 28:
 
:* [[Inorganic material definition token]]s are used to define inorganic materials, similar to material definition tokens.
 
:* [[Inorganic material definition token]]s are used to define inorganic materials, similar to material definition tokens.
 
:* [[Plant token]]s define plants.
 
:* [[Plant token]]s define plants.
:* [[Position token]]s define positions in entities.
+
:* [[Position token]]s define roles/occupations/positions in character entities.
 
:* [[Skill token]]s reference skills.
 
:* [[Skill token]]s reference skills.
:* [[Syndrome token]]s define syndromes.
+
:* [[Syndrome token]]s define syndromes (ie conditions, diseases, bonuses and maluses).
 
:* [[Tissue definition token]]s define tissues.
 
:* [[Tissue definition token]]s define tissues.
 
:* [[Tool token]]s define tools, similar to weapon tokens.
 
:* [[Tool token]]s define tools, similar to weapon tokens.
Line 38: Line 37:
 
:* [[Weapon token]]s define weapons.
 
:* [[Weapon token]]s define weapons.
 
:* [[World token]]s are used in custom world generation.
 
:* [[World token]]s are used in custom world generation.
 +
:* [[Music token]]s These are the triggers for the default music effects.
 +
:* [[Sound token]]s These are the triggers for the default sound effects.
  
 
Also note [[reactions]], which are a little more complicated than simple tokens.
 
Also note [[reactions]], which are a little more complicated than simple tokens.
 
This [http://www.bay12games.com/forum/index.php?board=13.0 forum] is the official DF subforum dedicated to discussions about modding.
 
  
 
== See also ==
 
== See also ==
{{catbox|DF2014:Tokens}}
+
{{catbox|Tokens}}
  
 
* [[Raw file]]
 
* [[Raw file]]

Latest revision as of 13:54, 22 February 2024

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 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 modified, allowing users to create (and distribute) new content.

Also note reactions, which are a little more complicated than simple tokens.

See also[edit]