Crusader Kings III

Crusader Kings III

Medieval Matriarchs
Apparent bug - powerful vassal requirement for unreformed or tribal gender equality decision
Formed Norway as Harald Fairhair, met the fame and devotion requirements and saved the piety to call for gender equality. Harald is still unreformed Asatru, all powerful vassals are the same, but the condition "All or all but one of your powerful vassals follow your faith" still shows as unsatisfied.

I found the relevant code; copied here for convenience.

is_valid = { prestige_level >= 4 piety_level >= 4 piety >= 1000 exists = cp:councillor_court_chaplain custom_description = { text = mm_no_hof_unreformed_or_tribal_gender_equality_decisison_requirement trigger_if = { limit = { any_vassal = { is_powerful_vassal = yes faith = root.faith } } any_vassal = { count <= 1 is_powerful_vassal = yes faith = root.faith } } } }

If I'm reading this right, the "limit" block is true if the number of powerful vassals who share my faith is one or more, and the condition afterward is true if the number of powerful vassals who share my faith is zero or one. Which is the opposite of what the text says.

To test the condition that the text describes -- no more than one powerful vassal of a different faith -- I'd try something like this:

trigger_if = { limit = { any_vassal = { is_powerful_vassal = yes } } any_vassal = { count <= 1 is_powerful_vassal = yes NOT = { faith = root.faith } } }

Removing the faith requirement from the "limit" block so the test is visible and evaluated if any powerful vassal exists, and flipping the second block to count powerful vassals who do not share the ruler's faith.

With those changes, the decision is available on my existing Harald save where it wasn't working before. Worth testing a little more to make sure it doesn't become available when it's not supposed to, but we're on the right track.
Last edited by undercoveryankee; 22 Jan, 2021 @ 9:01am
< >
Showing 1-2 of 2 comments
fhqwhgads  [developer] 22 Jan, 2021 @ 7:53pm 
Yeah, I think that's it and I just make a little mistake coding that line. I'll see if I can't get an update pushed out for that in a day or two.
fhqwhgads  [developer] 25 Jan, 2021 @ 1:50pm 
This should be fixed now. Thanks for the heads-up.
< >
Showing 1-2 of 2 comments
Per page: 1530 50