How do you add a class to a creature variation? Just typing in [CREATURE_CLASS:...] Doesn't apply that class to all creatures with the variation, I just get an error code.
I'm trying to fix an issue caused by using classes to define what animals an entity can domesticate. If I added the class to an animal with giant and sentient forms, say, a fox, the civ ends up 'domesticating' giant foxes and fox men as well.
Its a problem with 'Giant' and 'Man' forms of these creatures copying over all the tags (tokens) from the base creature, and then applying a specific creature variation to add/remove/convert some of those tags. The problem you are having is that the creature variations don't account for your new CREATURE_CLASS token. We can fix that.
In the RAW file c_variation_default, we need to slightly modify the following three entries:
- CREATURE_VARIATION:ANIMAL_PERSON
- CREATURE_VARIATION:ANIMAL_PERSON_LEGLESS
- CREATURE_VARIATION:GIANT
It might seem that we could add another CV_REMOVE_TAG entry to these variations, using it to remove the CREATURE_CLASS tag, but that would remove all of the creature classes from the variant forms, and we don't want that (it could screw up some of the interactions and syndromes in the game, such as poisons). Instead, probably the safest method would be to use a CV_CONVERT_TAG entry to alter the creature class.
All you need to do is add another CV_CONVERT_TAG series to each of those entries using your custom creature class as the argument. For example, if your creature class is
[CREATURE_CLASS:ASHTHETIEFLING]
Then we could add the following to each of those creature variation entries listed above:
[CV_CONVERT_TAG]
[CVCT_MASTER:CREATURE_CLASS]
[CVCT_TARGET:ASHTHETIEFLING]
[CVCT_REPLACEMENT:ASHTHETIEFLING_NEW]
Doing this would change the creature class from the one you specified for domestication, to a new creature class of your choosing. The new coverted creature class could we one that already exists, or a completely new one if you like.
_____
If you don't want to mess with having the variations possessing a converted creature class, and want to remove the custom creature class from the variations entirely, I think this can be done using the conditional remove tag token, CV_REMOVE_CTAG. I've personally never used it but I think I know how it works. I would want to experiment myself first or have someone more experienced weigh in on it before giving you suggestions on how to use first, though.