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.
Editing Bodygloss
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{ | + | {{Migrated_article}} |
− | {{ | + | {{quality|unrated}} |
− | |||
− | A '''bodygloss''' is a | + | A '''bodygloss''' is a token in the raw [[body token]]s and [[creature token]]s 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]'' | 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]'' | ||
Line 9: | Line 8: | ||
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. | 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 | + | The default list of bodyglosses included in the unmodded Dwarf Fortress is as follows, as taken from body_default.txt: |
[BODYGLOSS:PAW:foot:paw:feet:paws] | [BODYGLOSS:PAW:foot:paw:feet:paws] | ||
Line 34: | Line 33: | ||
{{Category|Modding}} | {{Category|Modding}} | ||
{{Category|Tokens}} | {{Category|Tokens}} | ||
− |