Crusader Kings II

Crusader Kings II

Improved Genetics (OLD VERSION)
Crimson7  [developer] Oct 23, 2018 @ 6:02am
Notes on Balance
While making this mod, I tried to find a balance between implementing a deep and satisfying gene system and keeping traits as common as they are in vanilla. One way this was achieved was by creating a new tier for the 4 primary trait groups (intelligence, strength, attractiveness, and height.) The lowest tier in these groups is merely a mild buff, the other tiers are kept around as rare as they were in vanilla. The numbers I've used were selectively chosen to make sure traits don't become too common. For example, in the intelligence group:

Geniuses should be 0.6% of the population (rarer than vanilla)
Quick should be 2.4% of the population (more common than vanilla)
Bright should be 7% of the population

You should see more traits, but the majority will be low tier traits with smaller impact.

Overall, the chances of a child inheriting a trait in this mod are higher than vanilla - where a large percentage of congenital traits were birth mutations.

In vanilla a genius parent and a non-genius parent have a 15% chance to pass the genius trait down.

Here its not anywhere near as simple. A genius parent either has six alleles (AABBCC) or 5 (AABBCc or some variant of that.) The non-genius parent could have any allele pattern - though most likely 2-4 alleles. If she has 3, then you can get either 3,4,5 or 6 alleles for your kids. And in each case, there is a different genotype to phenotype conversion. If you have 6 alleles you are almost guaranteed to get genius, quick, or bright. If you have 5 you are less likely but still a good chance. For 4 alleles it's rare and for 3 they won't get the traits.

Notice the implications of that! A character could have aabbcc but NOT be an imbecile. The best way to check if someone's genes are good is not be looking at their traits, but the traits in their family!
< >
Showing 1-15 of 21 comments
Blue Nov 15, 2018 @ 4:27pm 
If I add a trait via command, does it change the character genetics?
Crimson7  [developer] Nov 15, 2018 @ 5:09pm 
Originally posted by Blue:
If I add a trait via command, does it change the character genetics?

No.. only in one case.

The genes are generated after your first character after startup has his/her first child. So if you add traits THEN it will change the genetics.

But otherwise no.

I'm adding a decision to wipe your characters genetics in the next update though.
Blue Nov 17, 2018 @ 11:09am 
Ty for the answer.
Had a character console added genius and attractive (fair) at game start, but half of my offspring had ugly feautures and/or congenital defects... (My wife too had genius and attractive...) And none of my offsprings had genius or quick (had 7 offsprings).
Last edited by Blue; Nov 17, 2018 @ 11:10am
Blue Nov 17, 2018 @ 11:11am 
(Cant you add conditions to check if the character has already genius/fair and other genetic traits and give those when the genetics event fire?) Edit: Checked the event and you already have those. Ok I understood why you cant change genetics with console command addittions.

Had the first question because this Mod wont work with "Ruler Designer unlocked!".
Last edited by Blue; Nov 17, 2018 @ 11:21am
Crimson7  [developer] Nov 17, 2018 @ 11:27am 
"Ty for the answer.
Had a character console added genius and attractive (fair) at game start, but half of my offspring had ugly feautures and/or congenital defects... (My wife too had genius and attractive...) And none of my offsprings had genius or quick (had 7 offsprings)."

Lets see. If you are a genius you have either 5 dominant alleles or 6. Most likely 5. Lets say you both have 5 (worst case scenario.) Then you have a worse case scenario of 25% chance of child being 6, 50% chance of being 5 alleles, 25% chance of 4 dominant alleles. If 6, you have 30% chance of getting genius and 50% chance of getting quick. If 5, thats 5% and 20% respectiely. If 4, it's 2% chance to get quick.

So you have a 10% chance of passing on genius, and a 26% chance of getting quick. These are additive (you can't get both.) So 36% chance of getting quick or genius.

If you had 7 children, the chance of not getting either genius or quick for any of them is about 4%. You had a similar chance (slightly higher since attractive isnt as good as genius) of not getting attractive. Say, around 7%. So the fact no child got any of those traits is 0.28%. Add that to the fact that we are considering the worst case scenario (that both parents have 5 alleles instead of 6) and it's even lower.

So you just got tremendously unlucky it seems.
Crimson7  [developer] Nov 17, 2018 @ 11:27am 
You can always use charinfo and observe the flags to see whats going on.

As for congenital birth defects, the latest update has reduced the chances of getting those quite a bit.
Last edited by Crimson7; Nov 17, 2018 @ 11:28am
Blue Nov 18, 2018 @ 11:39am 
they were all console added feautures... So it kicks on your explanation, that adding traits by console wont change their genetics. One or two of them got quick/bright though
Crimson7  [developer] Nov 18, 2018 @ 2:52pm 
Ah okay Blue. I misunderstood.
Blue Nov 19, 2018 @ 8:17am 
Had an idea, not sure if you want to implement. Add "gifted" +3 all, reduce "quick" to +2 all.

Also, short and tiny is not a problem for woman is it? Is it possible to add conditions for woman?
Crimson7  [developer] Nov 19, 2018 @ 9:02am 
Hi Blue, I feel like 6 traits is sufficient for the intelligence group.

You are right that short and tiny shouldn't give sexual attraction nerfs to women. I would like to do that, but unfortunately there is no easy built in command for adjusting traits according to the sex so... I would have to put in a lot of work to implement something like that. I'm not even sure if I could. Its up to Paradox to provide us with modding tools that will allows us to do something like that.
Blue Nov 19, 2018 @ 11:51am 
Have you tried:
"potential = {
is_female = no/yes
}"
It is used on 02_traits file. I bet you can add a lot of other conditions combinations...
Crimson7  [developer] Nov 19, 2018 @ 12:24pm 
Well, that would only make it so that females cant inherit short or tiny. Which makes no sense. You want to remove the negative sexual appeal but only for females, which can't really be done. I could have separate traits for women, like tall female, tall male etc. But that's a lot of work.

And its outside the scope of the mod anyway. Like you look at a trait like strong in vanilla. That gives you bonus sexual appeal, but in muscular women aren't exactly thought of as more attractive. So its an issue that exists in the base game too.
Blue Nov 19, 2018 @ 4:55pm 
create 2 of the same trait, one only for male the other only for female > Add both when genes active (or put a conditional for male and female). Would it work?
Crimson7  [developer] Nov 19, 2018 @ 5:17pm 
Yeah as I said, its possible. Just a lot of work.
Orange1861 Nov 23, 2018 @ 8:17pm 
How does this work with the ruler designer where the character has no parents to pull genetic info from?
< >
Showing 1-15 of 21 comments
Per page: 1530 50