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
(Created page with "{{av}} Tokens used to define descriptor patterns, that may be used instead of descriptor colors. As an example, the descriptor pattern STRIPES_ORANGE_BL...")
 
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)
Line 15: Line 15:
 
| {{tc|red|Required}}
 
| {{tc|red|Required}}
 
| The type of pattern, deciding the description.
 
| The type of pattern, deciding the description.
* SPOTS: Causes a crash if no CP_COLOR is given, otherwise takes any amount.
+
* SPOTS: Causes a crash if no CP_COLOR is given{{bug|11806}}, otherwise takes any amount.
 
* STRIPES: Takes any amount of CP_COLOR tokens.
 
* STRIPES: Takes any amount of CP_COLOR tokens.
 
* MOTTLED: 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 given. If only one or two CP_COLORs is given, the tissue is described as being "transparent".
+
* IRIS_EYE: Only shows the third CP_COLOR given; technically takes any amount. Causes a crash if no CP_COLOR is given{{bug|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 given. If only one 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 given{{bug|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.  
 
An undefined pattern type causes the description to simply not show up.  
  

Revision as of 21:10, 15 November 2021

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

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.