Guide to Safely Transforming Creatures in Worldgen

Transforming Creatures


Color- a color as defined in the dwarf fortress descriptor_color_standard.txt file and associated files

Color set- the total amount of potential colors a given body part can have. All the skin colors a human has constitutes a color set

Color slot- a single instance of a color in a color set. BLUE:1:BLUE:1:BLUE:1 is three color slots, even if they are all filled with the same color.

A creature can be safely transformed into a new creature if one of these conditions is met

Method One:

The transformed end result has no color sets in the creature file, and coloration is instead described in the description itself. Like werewolves and night trolls for example. A human, for example, has a color set for eyes, skin, and hair. If those are not present on the transformed creature, there will be no issue.

Method Two:

The transformed end result has the same color sets and color slots within those sets as the creature to be transformed. For example, you could safely transform a human into a giant during worldgen because a human and a giant have the same amount of potential eye, hair, and skin colors and number of color slots/sets. You would have to add graying and white hair to the giant though, or remove graying from humans, since that counts towards the total amount of sets.

Method Three:

The transformed end result has different colors but the same amount of color slots in each set. For example, if you took a giant, changed their potential skin colors from this


to this


a human could safely become one in worldgen, their skin changing to one of the three new colors, because the number of color slots for the skin of both creatures is the same. If you did this:


and tried to transform a human into a giant with the above color set, the game would crash.

Method Four:

The transformed creature has a greater amount of color slots in a set than the creature it transformed into. For example, if we took the above red/yellow/green-skinned giant and added this:


All humans transformed into giants would have red, yellow, or green skin, because those color slots are the ones equivalent to the color slot of the human creature, while purple is not. However, all natural-born giants would have purple skin because of how I tweaked the ratio to increase the odds of being born purple, and if you added another color past purple, no human would transform into a giant of that color either, but natural born giants could also be born with it.

Method Five:

The transformed creature has less color sets than the original, but the remaining sets still have a matching amount of slots. For example, lets take our colorful giants, and make them eyeless, and then delete the color set pertaining to eye coloration. A human could safely transform into one of these giants so long as the skin and hair still followed the rules described above. If the eye color set was kept but the amount of color slots were reduced, the game would crash, but eliminating all references to eye coloration does not cause a crash, and the same applies to any transformation of a creature into one with less color sets than the original. You could make a hairless, eyeless giant, with both color sets pertaining to those body parts removed, and so long as the remaining skin color set of the giant had an equivalent or greater amount of color slots as the human skin color set, it would be safe.

Method Six:

The transformed creature has different body parts, but the shares the amount of color slots between both sets. Let's say we then decided to take our colorful giants and replace their hair with feathers, and then replaced the hair color set with feathers so it looked like this:










A human turning into a feather-haired, colorful, eyeless giant would be fine, because as you can see, the amount of color slots for the feathers matches up with the amount of hair color slots humans have. Note how you also have to include graying hair if the original creature has it, but you can make it not appear by increasing the amount of years it takes to show up. Realistically no feathered giant should have gray or white feathers in-game because it would take too long.

Other Notes:

You cannot transform a creature into another creature that has more color sets. If we gave our colorful, eye-having, feather-haired giants a layer of scales over their skin, and defined the color of the scales as we do with skin, then a human transforming into one would crash the game. However, a scaled, feather-haired, skin-having, eye-having giant being transformed into a human would not crash the game, because a creature with more color sets can safely transform into a creature with less color sets, provided the color slots of the remaining sets are equal to or greater than the color slots of the original sets.

A creature can transform ONLY ONCE. If you make interactions so a human turns into an ogre who can turn into a giant, then it is impossible for that ogre to then become a giant. You can actually make a creature transform multiple times in worldgen, but this can cause really weird stuff to happen like descriptions being wrong and while I haven't seen it cause a crash it scares me and I don't want to mess with it.

Though I am not entirely certain of this, I believe the color sets must match up when transformation happens. If you were to transform a human into another human, then for both creatures the first set must have the same number of slots as the other creatures first set, and the second to the second, and so on. So if you make a new creature, like a three-eyed, red-skinned feather-haired demigod that humans can transform into, then if you make his skin the first color set, it must have as many slots as the HAIR of humans, since that is the first color set humans have, and so on. The first color set of a creature must match the first color set as the transformation end result creature, the second to the second, and so on. Not matching tissue to tissue.

While the creature another creature is intended to transform into must match the above rules, they don't need to apply to our offspring. If we used the three-eyed demigod example and made it so humans could transform into them, then you can make it so that there is a third, sexless caste of demigod which has only one skin color slot, one feather color slot, and one eye color slot, and two transformed-from-human demigods could reproduce and create this caste with no trouble, which could then reproduce with others of its species, either transformed or born naturally.


More Dwarf Fortress guilds