v0.34:Creature variation token

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

Creature variations are used to create creatures which are derived from another already-existing creature without having to duplicate every single token. They are defined as CREATURE_VARIATION objects, and the default variations are defined in c_variation_default.txt

Token Arguments Description
  • token (plus any additional parameters)
Adds a new token to the creature's variant.
  • token
Alias for CV_NEW_TAG
  • token
Removes a token from the creature's variant.
CV_CONVERT_TAG Begins altering tokens within the creature's variant using the CVCT_MASTER, CVCT_TARGET, and CVCT_REPLACEMENT tokens below. If a variation template contains multiple CV_CONVERT_TAG blocks for the same CVCT_MASTER, the replacements will be applied in reverse order.
  • token
Specifies the token that will be modified.
  • value
Locates the specified parameter within the token specified by CVCT_MASTER.
  • value
Replaces the parameter specified by CVCT_TARGET within the token specified by CVCT_MASTER. If no replacement is specified, the target will simply be removed.