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
m (gaffe)
(Speech files added to token list, they are referenced by tokens and have a number of tokens to reference)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Quality|Superior|17:08, 20 April 2018 (UTC)}}
+
{{Quality|Fine}}
 
{{av}}
 
{{av}}
{{catbox|DF2014:Tokens}}
+
{{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.
+
:* [[Audio]] tokens define audio metadata and the triggers to play music and sound.
:* [[Armor token]]s define armor.
+
:* [[Biome token]]s reference [[biome|environments]] for creatures, plants and [[civilization|entities]].
:* [[Biome token]]s define environments for creatures, plants and entities (entities being civilisations).
 
 
:* [[Building token]]s define buildings.
 
:* [[Building token]]s define buildings.
 
:* [[Body token]]s determine bodily structure and materials.
 
:* [[Body token]]s determine bodily structure and materials.
 +
:** [[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.
:* [[Bodygloss]] tokens perform a single-word substitution of a creature's body parts.
 
 
:* [[Creature token]]s determine the properties of creatures.
 
:* [[Creature token]]s determine the properties of creatures.
:* [[Creature variation token]]s are used to create creatures derived from other already-existing creatures, without duplicating every single token.
+
:* [[Creature variation token]]s are used to modify creatures.
 
:* [[Descriptor color token]]s define colors used in text-based descriptions. Not to be confused with [[color scheme]]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 pattern token]]s define color patterns.
 
:* [[Descriptor shape token]]s define [[shape]]s.
 
:* [[Descriptor shape token]]s define [[shape]]s.
 
:* [[Entity token]]s define entities, or [[civilization]]s.
 
:* [[Entity token]]s define entities, or [[civilization]]s.
:* [[Item token]]s define the most basic form of items (made specific by material tokens). Item tokens are mainly used in [[reactions]].
+
:** [[Position token]]s define [[noble]] titles and administrative positions in entities.
:* [[Item definition token]]s are used for actual definitions of items.
+
:* [[Graphics token]]s define tile-based [[graphics]].
:* [[Instrument token]]s define instruments.
+
:* [[Item token]]s reference the most basic form of items (made specific by material tokens). Item tokens are mainly used in [[reactions]].
 +
:* [[Item definition token]]s are used to define various types of item.
 +
:** [[Ammo token]]s define ammunition, such as arrows and bolts.
 +
:** [[Armor token]]s define armor.
 +
:** [[Instrument token]]s define instruments.
 +
:** [[Trap component token]]s define weapons used in traps.
 +
:** [[Tool token]]s define tools, similar to weapon tokens.
 +
:** [[Weapon token]]s define weapons.
 
:* [[Interaction token]]s define interactions.
 
:* [[Interaction token]]s define interactions.
:* [[Labor token]]s define labors.
+
:* [[Labor token]]s reference labors.
 
:* [[Language token]]s define a language's vocabulary. Since fictional languages in ''Dwarf Fortress'' are currently only used in names, language tokens do not define grammar.
 
:* [[Language token]]s define a language's vocabulary. Since fictional languages in ''Dwarf Fortress'' are currently only used in names, language tokens do not define grammar.
 
:* [[Material token]]s are used to refer to materials, similar to item tokens.
 
:* [[Material token]]s are used to refer to materials, similar to item tokens.
:* [[Material definition token]]s are used to define materials, similar to item definition tokens.
+
:* [[Material definition token]]s are used to define materials that appear in a number of object types.
:* [[Inorganic material definition token]]s are used to define inorganic materials, similar to material definition tokens.
+
:** [[Inorganic material definition token]]s are specific to defining inorganic materials.
 
:* [[Plant token]]s define plants.
 
:* [[Plant token]]s define plants.
:* [[Position token]]s define positions in entities.
+
:* [[Reaction]] tokens define crafting recipes.
 
:* [[Skill token]]s reference skills.
 
:* [[Skill token]]s reference skills.
:* [[Syndrome token]]s define syndromes.
+
:* [[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.
:* [[Tool token]]s define tools, similar to weapon tokens.
+
:* [[Unit type token]]s reference by tilesets and entities, for purposes of professions and the like.
:* [[Trap component token]]s define traps.
+
:* [[World token]]s are used in [[advanced world generation]].
:* [[Unit type token]]s are referred to by tilesets and entities, for purposes of nobility and the like.
 
:* [[Weapon token]]s define weapons.
 
:* [[World token]]s are used in custom world generation.
 
  
Also note [[reactions]], which are a little more complicated than simple tokens.
+
Also note the ``[LOG_CURRENT_ENTRY]`` token, available for all object types. For information regarding use, see [[Modding#Modifying the vanilla objects]].
  
This [http://www.bay12games.com/forum/index.php?board=13.0 forum] is the official DF subforum dedicated to discussions about modding.
+
== See also ==
 
+
{{catbox|Tokens}}
'''See Also:'''
 
  
 
* [[Raw file]]
 
* [[Raw file]]
 
* [[Modding]]
 
* [[Modding]]
* [[Dipscript]]
+
* [[Lua scripting]]
* [[Speech file]]
 
  
{{Modding navbox}}
 
 
[[category:Modding]]
 
[[category:Modding]]
 
[[ru:Token]]
 
[[ru:Token]]

Latest revision as of 00:57, 7 March 2025

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 the [LOG_CURRENT_ENTRY] token, available for all object types. For information regarding use, see Modding#Modifying the vanilla objects.

See also[edit]

CancelHideAbout

Rating Token