Crusader Kings III

Crusader Kings III

[deprecated] Nicelander's Blood Mage
Nicelander  [developer] Feb 10, 2022 @ 12:33am
Trait Inherit Chance
Removed table as now it works the same as the in game trait inheritance system
Last edited by Nicelander; Mar 2, 2022 @ 12:19pm
< >
Showing 1-11 of 11 comments
Altogolik Feb 12, 2022 @ 8:49pm 
add pls this mod in paradoxplaza. i cant play in steam
Nicelander  [developer] Feb 13, 2022 @ 11:14am 
Originally posted by Altogolik:
add pls this mod in paradoxplaza. i cant play in steam

I'll upload it to paradoxplaza as soon as I'm back on Tuesday! 😁
Last edited by Nicelander; Feb 13, 2022 @ 11:54am
Nicelander  [developer] Feb 16, 2022 @ 12:12pm 
Last edited by Nicelander; Feb 17, 2022 @ 3:32am
Reianor Feb 21, 2022 @ 2:35am 
Would you mind explaining how this is supposed to work?
Because it apparently doesn't work how I expected it to work.

If I understand the vanilla mechanics correctly then inheritance should go down a tier and “try again” each time it fails all the way till even t1 fails.
But if that's the case then a child of a blood mage should be guaranteed to be a blood mage no matter what, since at T1 the inheritance chance is 100% even if just one parent has it.
And while for males there's the whole “Who's your daddy?” question, for females that should be impossible.
Yet I've seen an adept-tier female give birth to a traitless kid.

P.S. Speaking of being traitless. Would you mind making a once-per-game decision to get a t1 trait? I generally don't play custom characters (mostly because that cuts them off from history such as their house or any ongoing wars, but also because they are OP) and most existing ones start with heirs, so I sit there traitless till 3rd gen.
Nicelander  [developer] Feb 21, 2022 @ 11:04am 
So I'm now a bit confused how it all works. I set the chance to pass on the blood mage initiate trait to be 100. However, when playing a female character with the trait, it still only passed on to 3 out of 5 children. Perhaps it needs to be higher to be guaranteed. I'll do some digging and see what I can find out, but the paradox documentation make it sound like it should work.
Nicelander  [developer] Feb 21, 2022 @ 11:05am 
@Reianor

For getting the trait, other than in a custom character, you have 2 options.

1. Get the witch trait, then you have a major decision to become one lowing the witch trait
2. Find someone with any blood mage trait. Become friends, lovers or soulmates. You can then right click them and ask theþ to grant you the power
Last edited by Nicelander; Feb 21, 2022 @ 11:05am
Reianor Feb 21, 2022 @ 10:08pm 
Thanks, didn't know that.
I get the secret all the time but for the trait itself I'd need it to get exposed and that's not so common in early game.
Oh well, time to go befriend some blood mages. I think I may even have one befriended already, just didn't notice that I could ask.

Good luck figuring the inheritance out. If you do figure it out I'd still like to know how it works.
The in-game UI makes it look like it's all standardized and simple, but it's not (it also lies).
And while the wiki explains a lot more, it still leaves you with more questions than answers.

The main one is – is there a standardized system that all traits have to tie into or is it left mostly to mod authors discretion?

Does inactive inheritance work for mod traits?
How do the blood legacy and the reinforce bloodline modifiers work?
Do they work for modded traits or don't they or is it at author's discretion?
Is it a flat +30% or is it +30% of what's a already there? (10% to 40% or 10% to 13%)

GAH! I hate playing without knowing the rules...

Btw, I think I recall an inheritance related mod having some issues when 1.5 came out. IIRC it was “inherit pure blood” mod. It makes it so that pure blood actually has a 100% inheritance chance if both parents have it, and when 1.5 came out that stopped being the case. Unless I misread or misremembered something.
Nicelander  [developer] Feb 23, 2022 @ 12:53am 
So digging around in the game's source files, I found this code snippet. Perhaps it may be of interest and answer some of the questions :)

https://pastebin.com/cw6EBsR3
Last edited by Nicelander; Feb 23, 2022 @ 12:55am
Nicelander  [developer] Feb 23, 2022 @ 1:00am 
I looked into the mod you sent, the way they did it was making the inherit chance for their trait really high, like thousands of % rather than 100

I'm going to try playing around with the numbers, putting them higher than 100.

There's also the option to add an event on_child_birth, that would allow me to force a child of a blood mage to get a Blood Mage trait. Problem there it's not clear if it happens before or after the vanilla inheritance mechanics come in

Example.
1. If it happens after, then no problem :)
2. If it happens before trait inheritance mechanics come in, it will break them. If the child has been forced to get a Blood_mage_1 trait, then they can't get a higher one
Nicelander  [developer] Feb 23, 2022 @ 1:01am 
This is how the first rank of the blood mage trait is setup in case you're curious

blood_mage_1 = { # Initiate
index = 331
group = blood_mage
level = 1
ruler_designer_cost = 100

# trait type
fame = yes
good = yes
genetic = yes

# genetic
birth = 1
random_creation = 1
inherit_chance = 100
both_parent_has_trait_inherit_chance = 100

# benefits
monthly_learning_lifestyle_xp_gain_mult = 0.05
learning_per_stress_level = 2
years_of_fertility = 5
life_expectancy = 5

# description
desc = trait_blood_mage_desc

# AI behaviour
ai_rationality = 100
}
Reianor Feb 23, 2022 @ 8:46am 
Yeah, I read that already.
It's what the wiki page is based on.
Unfortunately it's not the code itself, but rather a list of constants and thus a lot is left to guesswork.

I was hoping there'd be actual documentation somewhere, but that was too much to hope for, since if that was the case then the wiki would have also had that info 10 times over by now.

The obvious guess is that those are multipliers in which case 100% inheritance from one parent would need a base of 400 and 100% from 2 parents a base of 125.
But if that doesn't work. Then I don't know what the hell would.

Now there's a different thing that's bugging me.
Why are you using one trait and not a pair of them?
I mean one for potential and one for the actual skill.
Also the interaction that gives the trait is throwing my strategic thinking for a loop.
It would seem that the best way of maintaining a strong blood mage “bloodline” is to actually avoid it's genetic inheritance and just transfer it via interaction.
You do want inheritance in your house (for the coven upgrades) but for your line of rulers you'd be saving a lot of time and devotion this way.

This is why I think it'd be better to split the trait 2-ways. With potential passing by inheritance and skill passing by events or interactions there wouldn't be this kind of weirdness.
< >
Showing 1-11 of 11 comments
Per page: 1530 50