DF2014:Descriptor pattern token

From Dwarf Fortress Wiki
Jump to navigation Jump to search
This article is about the current version of DF.

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.
Modding
Tokens AmmoArmorBiomeBuildingBodyBody detail planBodyglossCreatureCreature variationDescriptor colorDescriptor patternDescriptor shapeEntityItemItem definitionInstrumentInteractionLaborLanguageMaterialMaterial definitionInorganic material definitionPlantPositionSkillSyndromeTissue definitionToolTrap componentUnit typeWeaponWorld