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 "Descriptor pattern token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (used bug template, its usefulness lies in that if the bug is ever fixed it will show on the bugtracker, and correcting the article accordingly will be easy)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Quality|Superior}}
 
{{av}}
 
{{av}}
 +
{{Modding}}
 
Tokens used to define descriptor patterns, that may be used instead of [[Color#Color_tokens|descriptor colors]]. As an example, the descriptor pattern STRIPES_ORANGE_BLACK is what gives tigers their stripes.
 
Tokens used to define descriptor patterns, that may be used instead of [[Color#Color_tokens|descriptor colors]]. As an example, the descriptor pattern STRIPES_ORANGE_BLACK is what gives tigers their stripes.
 +
{{clear}}
  
 
==Tokens==
 
==Tokens==
Line 31: Line 34:
 
{{Category|Modding}}
 
{{Category|Modding}}
 
{{Category|Tokens}}
 
{{Category|Tokens}}
 
 
[[ru:Descriptor pattern token]]
 
[[ru:Descriptor pattern token]]

Latest revision as of 16:12, 2 April 2024

This article is about the current version of DF.
Note that some content may still need to be updated.


Tokens used to define descriptor patterns, that may be used instead of descriptor colors. As an example, the descriptor pattern STRIPES_ORANGE_BLACK is what gives tigers their stripes.

Tokens[edit]

Token Arguments Usage Description
PATTERN SPOTS, STRIPES, MOTTLED, IRIS_EYE or PUPIL_EYE Required The type of pattern, deciding the description.
  • SPOTS: Causes a crash if no CP_COLOR is givenBug:11806, otherwise takes any amount.
  • STRIPES: Takes any amount of CP_COLOR tokens.
  • MOTTLED: Takes any amount of CP_COLOR tokens.
  • IRIS_EYE: Only shows the third CP_COLOR given; technically takes any amount. Causes a crash if no CP_COLOR is givenBug:11806. If only one or two CP_COLORs is given, the tissue is described as being "transparent".
  • PUPIL_EYE: Only shows the second CP_COLOR given; technically takes any amount. Causes a crash if no CP_COLOR is givenBug:11806. If only one CP_COLORs is given, the tissue is described as being "transparent".

An undefined pattern type causes the description to simply not show up.

CP_COLOR color token Required (mostly) A color to be used in the pattern. See PATTERN for how many CP_COLOR tokens are needed, and how they are used. Modded color tokens may be used.