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 "40d:Bodygloss"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(formatting sucks, but at least it has content now)
Line 1: Line 1:
 
A '''bodygloss''' is a token in the raw [[body tokens]] and [[creature tokens]] which performs a simple word substitution on the creature's body parts.  For instance, if a creature makes use of the "[BODYGLOSS:PAW]" token, then a hypothetical body part called "second right foot" would be renamed "second right paw".
 
A '''bodygloss''' is a token in the raw [[body tokens]] and [[creature tokens]] which performs a simple word substitution on the creature's body parts.  For instance, if a creature makes use of the "[BODYGLOSS:PAW]" token, then a hypothetical body part called "second right foot" would be renamed "second right paw".
  
It is important to distinguish the BODYGLOSS (body token) and BODYGLOSS (creature token) versions.  The body token variant is defined in an "OBJECT:BODY" file and has the following syntax: ''[BODYGLOSS:id:needle:haystack]''
+
It is important to distinguish the body token and creature token versions.  The body token variant is defined anywhere in an "OBJECT:BODY" file and has the following syntax: ''[BODYGLOSS:id:match:replacement]''
  
To make use of this token, the creature token variant is included under a CREATURE token (in an "OBJECT:CREATURE" file) and has the following syntax: ''[BODYGLOSS:id]''
+
To make use of this token, the creature token variant is included beneath a creature definition (in an "OBJECT:CREATURE" file) and has the following syntax: ''[BODYGLOSS:id]''
  
Then, it will perform the word substitution defined by the BODYGLOSS in the body tokens file.
+
Then, it will perform the word substitution defined by the bodygloss in the body tokens file; any occurrence of the word ''match'' in any body part will be replaced with the word ''replacement''.
  
 
The default list of bodyglosses included in the unmodded Dwarf Fortress is as follows, as taken from body_default.txt:
 
The default list of bodyglosses included in the unmodded Dwarf Fortress is as follows, as taken from body_default.txt:

Revision as of 00:27, 1 August 2008

A bodygloss is a token in the raw body tokens and creature tokens which performs a simple word substitution on the creature's body parts. For instance, if a creature makes use of the "[BODYGLOSS:PAW]" token, then a hypothetical body part called "second right foot" would be renamed "second right paw".

It is important to distinguish the body token and creature token versions. The body token variant is defined anywhere in an "OBJECT:BODY" file and has the following syntax: [BODYGLOSS:id:match:replacement]

To make use of this token, the creature token variant is included beneath a creature definition (in an "OBJECT:CREATURE" file) and has the following syntax: [BODYGLOSS:id]

Then, it will perform the word substitution defined by the bodygloss in the body tokens file; any occurrence of the word match in any body part will be replaced with the word replacement.

The default list of bodyglosses included in the unmodded Dwarf Fortress is as follows, as taken from body_default.txt:

[BODYGLOSS:PAW:foot:paw]
[BODYGLOSS:MAW:mouth:maw]
[BODYGLOSS:CLAW_HAND:hand:claw]
[BODYGLOSS:CLAW_FOOT:foot:claw]
[BODYGLOSS:TALON_FOOT:foot:talon]
[BODYGLOSS:HOOF:foot:hoof]
[BODYGLOSS:TRUNK:body:trunk]
[BODYGLOSS:BRANCH_ARM:arm:branch]
[BODYGLOSS:LEG_STUMP:leg:stump]
[BODYGLOSS:ROOTS_FOOT:foot:roots]
[BODYGLOSS:INSECT_UPPERBODY:upper body:thorax]
[BODYGLOSS:INSECT_LOWERBODY:lower body:abdomen]