• 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.

John Jimco

Recruit
24 Badges
Sep 11, 2016
6
0
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Crusader Kings II: Sunset Invasion
Looking for a mod that either lets me control and set up the marriages of every dynasty member in my realm regardless of court location, title, or familial relation (much preferable), or at least a mod that disallows dynasty members from marrying each other. I wouldn't even turn my nose up at a mod that completely disallows female dynasty members outside my court from getting married period.


I enjoy micromanaging my dynasty but vassal kinsmen inevitably ruin everything by inbreeding their lines into extinction for that sweet prestige. Don't just tell me to never land my family, I don't want to do that which is why I'm asking for mods. Please help getting desperate.
 
Marriages are hardcoded and therefore unmoddable (aside from tweaking the defines, which are global and don't allow you to tweak too many things, and adjusting cosanguinity and intermarriage in limited ways in the religion (and government) files). Without tearing out the entire marriage system and rebuilding it from scratch -- much easier said than done -- what you're asking for is impossible, and any replacement system would need to work for the AI (as it not marrying itself and its relatives to someone would break the game), would need to account for various quirks (e.g. how much cosanguinity is allowed for different religions), and, would likely be side-effecty as marriages tie into a lot of things (e.g. alliances, NAPs, and inheritance), and would negatively affect performance to a not insignificant extent (as a lot of "Should X marry?", "Is Y a valid candidate for marriage?", "Is Y good enough to be worth proposing to?", "Is the proposal from X good enough to accept?", and similar checks would need to be made rather frequently).

In short, chances are the mod you're looking for doesn't exist and that any attempt to create it would be a lot of work for something that'd leave a lot to be desired in various regards. The only realistic options for achieving what you want is to use the console or save game editing to set up/remove marriages (and possibly pregnancies) you don't want... or to make sure your dynasty members aren't landed or otherwise outside your control (dealing with any that e.g. get landed through a faction in some fashion: console use, save editing, murder...).
 
I think it could technically be implemented, albeit in a rather limited way. And, as a theoretical exercise, it's interesting to consider how we could twist the engine...
  • Create some new traits:
    • Dynastic marriage broker: Dynasty opinion -100 (for being an overcontrolling weirdo)
    • Full marriage block: cannot_marry = yes and fertility = -100.0
    • Block new marriages (but not concubines/lovers - needed for polygamy): cannot_marry = yes
    • Allow new marriages: Pure housekeeping trait with no effects
  • on_action event (monthly/yearly tick) which organises all of these traits:
    • Marriage broker trait is added to players
    • Full marriage block is added to all characters in the same dynasty as a player who are: unmarried, same religious group as the player, and don't have the "allow" trait
    • New marriage block is added to all characters in the same dynasty as a player who are: married, same religious group as the player, and don't have the "allow" trait
    • Everyone else has unapplicable traits removed
  • New targeted decision:
    • From potential: Characters with the marriage broker trait (and/or ai = no)
    • Potential: Characters with a marriage block trait, and a spare spouse slot, and same religious group as From
    • Thirdparty potential: Characters in From's court with same regious group as From
    • Effect:
      • Creates a marriage (via add_spouse)
      • Adjusts prestige appropriately
      • Moves characters to the correct court
  • Alert, warning about unmarried people who really should be married
    • Eg. Adult landed characters and adult heirs with the marriage-blocking trait.
  • Targeted decision (marriage broker only) which switches AI characters between the relevant marriage-blocking trait and the "allow new marriages" trait, so the selected AI character can manage their own marriages.
  • Comments:
    • Restriction to same religious group is to avoid having to allow for all the intermarriage rules
    • No handling of opinion modifiers for arranging marriages, because they don't seem that important
    • I don't know if add_spouse creates NAPs, but the restriction to characters in the marriage broker's court avoids most of the need to deal with that.
    • For performance, it may be better to replace the single regularly-ticking event for players with several that fire for important life events for all AI (eg. birth, death, conversion). Needs testing, probably.
So that's: 4 traits, 1 on_action event (or maybe several), 2 targeted decisions (one simple, one medium-complexity), and 1 alert (no idea, never done one). A few hours, maybe?

Definitely feasible. But not something I'm interested in at the moment.
 
  • 1
Reactions: