- 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.
Difference between revisions of "Bodygloss"
LethosorBot (talk | contribs) m (LethosorBot moved page DF2014:Bodygloss to Bodygloss: Migrating v50 page (311/4618) (content)) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Quality|Superior | + | {{Quality|Superior}} |
{{av}} | {{av}} | ||
{{Modding}} | {{Modding}} | ||
Line 9: | Line 9: | ||
Note that this is a simple string replacement for all body parts—replacing "ear" will also replace the middle of "h'''ear'''t". | Note that this is a simple string replacement for all body parts—replacing "ear" will also replace the middle of "h'''ear'''t". | ||
− | 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: | + | 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 words ''singular'' and ''plural'' in any body part will be replaced with the words ''replacement'' and ''replacements'', respectively. | ||
The default list of bodyglosses included in unmodded ''Dwarf Fortress'' is as follows, as taken from body_default.txt: | The default list of bodyglosses included in unmodded ''Dwarf Fortress'' is as follows, as taken from body_default.txt: |
Latest revision as of 16:11, 2 April 2024
v50.14 · v0.47.05 This article is about the current version of DF.Note that some content may still need to be updated. |
Modding |
---|
Tokens |
Audio · Biome · Graphics · Interaction · Mod info · Plant · Speech · Sphere · Syndrome · World |
Body tokens |
Body · Body detail plan · Bodygloss · Tissue |
Creature tokens |
Creature · Creature mannerism · Personality · Creature variation · Procedural graphics layer |
Descriptor tokens |
Descriptor color · Color · Descriptor pattern · Descriptor shape |
Entity tokens |
Entity · Ethic · Language · Value · Position |
Job tokens |
Building · Labor · Reaction · Skill · Unit type |
Item tokens |
Item type · Item definition · Ammo · Armor · Instrument · Tool · Trap component · Weapon |
Material tokens |
Material type · Material definition · Inorganic material definition |
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:singular:replacement:plural:replacements]
Note that this is a simple string replacement for all body parts—replacing "ear" will also replace the middle of "heart".
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 words singular and plural in any body part will be replaced with the words replacement and replacements, respectively.
The default list of bodyglosses included in unmodded Dwarf Fortress is as follows, as taken from body_default.txt:
[BODYGLOSS:PAW:foot:paw:feet:paws] [BODYGLOSS:MAW:mouth:maw:mouths:maws] [BODYGLOSS:CLAW_HAND:hand:claw:hands:claws] [BODYGLOSS:CLAW_FOOT:foot:claw:feet:claws] [BODYGLOSS:HOOF:foot:hoof:feet:hooves] [BODYGLOSS:TRUNK:body:trunk:bodies:trunks] [BODYGLOSS:BRANCH_ARM:arm:branch:arms:branches] [BODYGLOSS:LEG_STUMP:leg:stump:legs:stumps] [BODYGLOSS:ROOTS_FOOT:foot:roots:feet:roots] [BODYGLOSS:INSECT_UPPERBODY:upper body:thorax:upper bodies:thoraxes] [BODYGLOSS:INSECT_LOWERBODY:lower body:abdomen:lower bodies:abdomens]
The following bodyglosses are used exclusively by randomly-generated creatures - titans, forgotten beasts, and demons:
[BODYGLOSS:RCP_GLOSS_HOOF:foot:hoof:feet:hooves] [BODYGLOSS:RCP_GLOSS_PAW:foot:paw:feet:paws]