• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Grave461

Captain
84 Badges
Nov 7, 2014
421
400
  • Victoria 3 Sign Up
  • Crusader Kings III
  • Stellaris: Nemesis
  • Crusader Kings II
  • Hearts of Iron IV: Colonel
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Imperator: Rome
  • Victoria 2
  • Victoria: Revolutions
  • Tyranny: Gold Edition
  • Cities: Skylines
  • Europa Universalis IV: Res Publica
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Wealth of Nations
  • Stellaris: Megacorp
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sword of Islam
  • Victoria 2: A House Divided
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
How can I completely block matrilineal marriage if Agnatic Succession is enabled? I tried adding law_set_allow_matrilineal_marriage = no to the law, but doing that came up with an error in Validator. So I tried adding matrilineal_marriages = no to Feudal Governments, with the hope that it would default matrilineal marriages to "no" for feudal government types, thereby requiring any succession law that is *not* agnatic succession to be enabled in order to allow matrilineal marriages. But, that didn't work, either.

I noticed all the succession laws have law_set_allow_matrilineal_marriage = yes with the notable exception of Agnatic succession. I'm sure there has to be a way to do it, but so far I'm not finding the right solution.

Any suggestions?

TL;DR: I want to have matrilineal marriages disabled *only* for agnatic succession law; all other succession laws can have it, per vanilla.
 
Last edited:
Try adding law_set_allow_matrilineal_marriage to the effect clause of the laws.

Ok, I think I got it working now. Turns out I used the incorrect tag in common/governments. Instead of using matrilineal_marriages = no (like is found in common/religions), I needed to use allows_matrilineal_marriage = no. This prevented agnatic succession from using matrilineal marriage. Then I switched my succession law to agnatic-cognatic, and then I was allowed to use matrilineal marriage.

I'm pretty sure law_set_allow_matrilineal_marriage in common/laws will only accept a "yes" boolean value, because switching it to "no" doesn't seem to prevent matrilineal marriages.
 
Ok, I think I got it working now. Turns out I used the incorrect tag in common/governments. Instead of using matrilineal_marriages = no (like is found in common/religions), I needed to use allows_matrilineal_marriage = no. This prevented agnatic succession from using matrilineal marriage. Then I switched my succession law to agnatic-cognatic, and then I was allowed to use matrilineal marriage.

I'm pretty sure law_set_allow_matrilineal_marriage in common/laws will only accept a "yes" boolean value, because switching it to "no" doesn't seem to prevent matrilineal marriages.

That last part might be a bug. It's used in 00_features.txt (though it's the old 3.0 command, which was changed in 3.1). It should support it.