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
(Moderate formatting-type changes, mainly for consistency)
Line 1: Line 1:
In Dwarf Fortress, a '''token''' is a game code tag that adds information, restrictions or behaviour to a [[creature]], object, [[material]], terrain feature or other part of the game. Tokens are visible in the [[RAW]] .txt files, and can often be [[modding|modified]] to create some interesting results - some useful, some not so much.
+
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 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.
  
Examples of tokens include...
+
:* [[Ammo token]]s define ammunitions, such as arrows and bolts.
 
 
:* [[Ammo token]]s, used for ammo.
 
 
:* [[Armor token]]s define armor.
 
:* [[Armor token]]s define armor.
:* [[Biome token]]s are used in creature, entity and plant definitions for placement.
+
:* [[Biome token]]s define environments for creatures, plants and entities (entities being civilisations).
:* [[Building token]]s define buildings, their tiles, hotkeys, and how they block movement.
+
:* [[Building token]]s define buildings.
:* [[Body token]]s determine bodily structure, both ''body templates'' (BODY) and ''body parts''
+
:* [[Body token]]s determine bodily structure and materials.
:* [[Body detail plan token]] Like the above but for detail.
+
:* [[Body detail plan token]]s define some details of a body, similar to body tokens.
:* [[Bodygloss]] change how body parts appear.
+
:* [[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]] change the properties of creatures.
+
:* [[Creature variation token]]s are used to create creatures which are derived from other already-existing creatures without duplicating every single token.
:* [[Entity token]] defines entities, or [[civilizations]], in entity_*.txt files.
+
:* [[Entity token]]s define entities, or [[civilizations]].
:* [[Item token]]s are used in reactions, creatures and entities to refer to specific items.
+
:* [[Item token]]s define the most basic form of items (made specific by material tokens). Item tokens are mainly used in [[reactions]].
:* [[Item definition token]] is used in item definitions in the raws.
+
:* [[Item definition token]]s are used for actual definitions of items.
:* [[Interaction token]] is used by interactions.
+
:* [[Interaction token]]s define interactions.
 
:* [[Labor token]] define labors.
 
:* [[Labor token]] define labors.
:* [[Language token]] define language.
+
:* [[Language token]]s define a language's vocabulary. Since fictional languages in Dwarf Fortress are only used in names, language tokens do not define grammar.
:* [[Material token]]s are the same as item tokens, but for materials.
+
:* [[Material token]]s are used to refer to materials, similar to item tokens.
:* [[Material definition token]]s are used to define materials, like item definitions.
+
:* [[Material definition token]]s are used to define materials, similar to item definition tokens.
:* [[Plant token]]s define what plants are made of, where they grow, what can be made out of them, etc.
+
:* [[Plant token]]s define plants.
:* [[Profession token]]s are referred to by tilesets and entities for purposes of nobility and the like.
+
:* [[Position token]]s define positions in entities.
:* [[Position token]]s define positions in entity_*.txt files.
+
:* [[Skill token]]s define skills.
:* [[Skill token]]s are referred to by creatures for natural skills and such.
 
 
:* [[Syndrome tokens]] define syndromes.
 
:* [[Syndrome tokens]] define syndromes.
:* [[Tissue definition token]] is used to define tissues.
+
:* [[Tissue definition token]]s define tissues.
:* [[Tool token]] define tools. They're a lot like weapon tokens.  
+
:* [[Tool token]] define tools, similar to weapons tokens.
:* [[Trap component token]]s define traps. A bit like weapon tokens.
+
:* [[Trap component token]]s define traps.
:* [[Weapon token]]s define weapons. They're fairly simple, so it's a good place to start with DF modding.
+
:* [[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.
 
:* [[World token]]s are used in custom world generation.
:* [[Unit type token]]s are used with various entity tokens, as well as in graphical tilesets.
 
  
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.
 
This [http://www.bay12games.com/forum/index.php?board=13.0 forum] is the official DF subforum dedicated to discussions about modding.
Line 41: Line 38:
  
 
'''See Also:'''  
 
'''See Also:'''  
* [[Bodygloss]]
 
 
* [[Raw file]]
 
* [[Raw file]]
 
* [[Modding]]
 
* [[Modding]]
 
[[category:Modding]]
 
[[category:Modding]]

Revision as of 21:10, 7 April 2015

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

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

This forum is the official DF subforum dedicated to discussions about modding.




See Also: