[MOD] Jure uxuris, AI divorce, AI betrothal, released.
Original Post:
RELEASE v1.031
It is 2.0.1 compatible.
View attachment MBGOTW v1.031.rar - Vanilla compatible with SOA.
View attachment MB-PB.rar - Compatibility patch for the latest Project Balance. This is just an 00_on_actions.txt file that should be dropped into the above base mod. If you don't do this, the mod won't work correctly (people won't get what they're supposed to, after deaths and divorces).
This was tested exhaustively with the last patch and it seemed to be working perfectly. I did my best to test it on patch 2.0 and SOA since getting it within the last 24 hours. I released it tonight because people have been so patient. Please let me know if anything is screwed up.
Features:
Briefly,
-You can exercise the right of jure uxoris on your wife. You first must be deemed to be the 'dominant' partner in the relationship, which is determined by a personality matrix (brave vs craven, gregarious vs shy, ambitious vs not ambitious, diligent vs slothful, proud vs humble), and some other factors. Both being ambitious will cancel out, grey_eminence wives cannot be usurped. Some wives, with high enough martial and intrigue cannot be easily usurped.
-Having agnatic succession makes this MUCH easier (the succession that gives penalties with female dynastic members). Succession laws that favor females make it impossible.
-You will have to contend with her family, dynasty, devoted councillors (80 opinion+) or lover to do so, and depending on the circumstances, may either have multiple avenues to success, or none. She may give in right off the bat if there is no one that gives a damn about her, or sees a very small chance for success.
-A wife's lover may try to kill you. And if he kills you, he may try to marry her against her will...Both dynasties will hate him. This can happen to you as well, if an AI husband tries to usurp you, and you rely on your ambitious/evil/crazy lover to handle it.
-Your wife may very well take her lands back, if you are indisposed somehow (such as captured in battle) and she dislikes you. Or she may not. If you have a son by her, she's less apt to for example. Or is suffering any kind of condition. Or is simply content, etc.
-If you divorce your wife, or grant her lands to others that aren't her son, she will take them back automatically and you won't be able to exercise jure uxoris again, until the next generation. Cheater.
-If you die without having a living son by her, she will take her lands back.
-If she dies without having had a son by you, her heir will take the lands back.
-Put in, then took out an event chain that would let either crazy wives, or PC wives try to take matters into their own hand. May put it back in, in an altered form, later on. I thought it trivialized the fact that in order to be successful, female rulers needed strong social networks or kinship groups, historically.
- Wives of lower tier than their husband will be vassalized. A good reason to marry, say, a powerful duchess already in your own realm, besides the fact that your son will inherit, is to keep her from marrying another...
- PC wives will always be left with a county, unless their husband has no land, and you have only one province. I thought it setback enough that he would take the highest tier.
-Both husband and wife must be either in or out of Byzantium, or both in, or both outside of the HRE. Byzantium will shortly be getting its own unique treatment. The CK2 engine simply doesn't let us model the HRE at the moment, but both in or both out, makes it the least bit stupid (for example, in game, there's no concept of 'homage', such as Edward, doing homage to Philip for Normandy etc, and the concept is even more convoluted inside the HRE.)
- A husband must be either the same culture_group of his wife's capital, OR his wife's dynasty. If he shares the same realm as his wife's culture (say, English and Occitan) or neighbors his wife's culture, it will work. And if he is either ambitious or gregarious. Otherwise, he simply won't have the kind of rapport, or local support that is necessary to be truly successful (but his son by her will be accepted).
*AI BETROTHAL*
- AI will arrange betrothals, if possible, and if capable enough, with nubile young ladies with...large, tracts of land.
-They will prefer to betroth themselves, but depending, may betroth a son or brother, etc, if it means keeping that land. May need a little more work - didn't have as much time to really push the limits on this and then test it, given the patch just hit.
- This was necessary for game balance, so that AI won't let players snatch up heiresses from them, willy nilly.
- Currently, the AI only takes advantage of young vassal heiresses.
*AI DIVORCE*
- AI wives will divorce husbands that they either dislike immensely, or who tried to exercise jure uxoris on them and failed humiliatingly.
- Wives with a living son by their husbands will not be able to divorce (sorry ladies), and they must also be landed. In this age, it was only females with substantial power bases, that were able to successfully seek divorces (such as Eleanor of Aquitaine).
- This is the likelihood of divorce from most to least: humiliated husband failed to usurp wife, husband is lower tier and wife has a lover, husband is lower tier, husband is higher tier and wife has a lover, husband is higher tier.
- Wives will not seek divorces from husbands if they have even a +1 opinion of them. Wives without lovers will need to be at -100 opinion to divorce a higher tier husband. All involved take a piety and prestige hit.
- This was necessary for game balance, to encourage you to not be a complete bastard to your wife.
COMING SOON:
- Edward II-esque event chain
- Romanos Diogenes/Empress Zoe-esque event chain, where the widow of a Byzantine Emperor may end up handing the throne over to either a dashing military commander, or the epileptic brother of a eunuch councilor.
- Some stuff with monks and nuns
COMING EVENTUALLY:
- A Lion in Winter-esque event chain, dealing with dynastic squabbles. Sons vs fathers, sons vs mothers, mothers vs daughters, brothers vs brothers, brothers vs sisters, etc.
- Muslim dynastic civil wars
- Evil Regent event chain.
FAQ:
Q) Why is it called MBGOTW?
A) I was being silly. Someday I'll change it.
Q) Is this going to break anything?
A) It...shouldn't. It's potentially compatible with any mod in existence once the on_action is updated (which is simple). Although, there are a few traits that might pop up (at the end of one event chain, namely, the potential of getting a scarred, veteran, skilled fighter in your service) that rely on mods with those traits, such as PB-VIET. But if you don't have those traits, it'll just be a random soldier as normal. And I referenced VIET's congenital traits in a few places, cause I like them so much, but not in a major mod-busting way. But if you don't have VIET's congenital traits, I highly recommend getting them.
Q) Isn't this like, totally unbalanced?
A) No.
Q) Seriously. Won't the game be a cakewalk, if I'm like, marrying and usurping bitches left and right!?
B) No. I went to a considerable amount of trouble to close potential loopholes or abuses. There is an extreme variety of factors that go into whether exercising jure uxoris is even possible, let alone likely. I'd say that it is more difficult to plan for and take advantage of, than it is to wage a war of conquest...especially since the AI will act to secure their own interests (via betrothals and divorces, when important landed women are involved). If it becomes available as an option, and you successfully overcome the challenges to make it a fact, then I would consider it a truly special bit of providence, and vaguely equivalent to say, getting the Personal Union event in EUIII (the one that had a chance to merge realms), if much more detailed. Not to mention, your possession of any lands is merely temporary, unless you have a son by her. Her other heirs (even her original liege) will be waiting in the wings to take it back otherwise. She might also turn the tables on you. If everything works out perfect, and you get a heir on a nubile, available duchess, and you rule her lands with an iron fist until you both die of old age and your son takes over, that should be considered a highlight of your game.
Q) TL-DNR.
A) Fine! Simply put, I think this mechanic is more balanced and realistic, than most other mechanics currently in the game.
Q) That's a pretty high opinion of yourself. I bet it's bugged as shit.
A) I've got to get to the next question.
Q) Won't this possibly lead to situations that are perhaps, not unbalanced, but highly implausible?
A) Only insofar as the setup, of dynasties, laws or character traits is implausible to begin with. I vaguely recall vanilla Matilda having horribly wrong traits, and a great many historical personages are randomly generated. Some places, such as in Ireland or Scotland, have 1 or 2 random dudes that stand in for what was hundreds of potential male tanists in their tribe. Unsurprisingly, quite often, Ireland ends up full of female heiresses (perhaps a case in itself for a tanistry mod). Point being, the more historical the setup, the more historical the outcome will be with this mod. If someone can show me conclusively otherwise, and a poor trait/law/dynasty setup isn't to blame for it, I will immediately adjust it.
Q) Anything else I should know?
A) Yes. I tested the first version of this mod on my own much bigger project that I'm working on, which has the defines and other decisions/events modded for the AI to place vastly more importance on prestige when marrying, and to wait a few years to land a good marriage. In vanilla CK, men are compelled by sanity-cracking obsession to enjoy monogamous marital bliss every second of their lives, and should their wife drop dead, they lurch about in an anguished, lustful daze, keening with unholy need, until they find the first portly, gaptoothed wench of a milk maid to make their duchess, provided she immediately consents to marry them. In the Ck2 universe, it is a hideous aberration, for a man to spend even a single moment of his life, from 16 to 66, without knowing the exquisite bliss of marriage. No doubt it is punishable by death for a man to not marry before he is thirty, within vanilla CK2. If the real world followed CK2 logic, the Karlings would still be around, and somewhere there'd be the great-great-great-great-x10 grandson of Richard the Lionheart.
So yes, CK2 is stupid in that regard (and highly implausible). Someday, I'll release a mod for it, when I have enough ready to justify taking over the defines (and rendering it incompatible with virtually every other mod in existence). But anyone would be well served by going into their defines, and experimenting with the value the AI places on prestige. It's half the battle
Q) Can I use or modify any part of this for my own mod?
A) By all means. Just give me a shout out in the credits.
TIPS AND TRICKS
- Go into defines.lua, look for MARRIAGE_AI_PRESTIGE_VALUE and set it from 1.0 to 2.0. The higher it is, the more the AI will value prestige (such as rank and tier differences) when making marriages. Currently, the AI does not value prestige at all, leading to marrying lowborns.
- Look for MARRIAGE_TIER_DIFF_PRESTIGE_MULT and set it somewhere between 100-200.
- 1.5 and 100 seems to work well enough, until next release (v1.5), when matrilineally married lowborns will be a thing of the past.
- Let marriages come to you. Go with what's natural in the game. Things will feel much more right. Aggressively using assassination to set up the perfect storm of inheritances and jure uxoris can be fun when it works, but the mod is designed to not have any situation be a slam dunk, so it could also elicit frustration and save scumming, which is less fun in the end (for me anyways).
- AI Betrothals are a bit borked. It will be fixed next release (which will be v1.5).
Original Post:
I am working on a mod, which is designed to bring a little more realism to medieval dynasty politics. I'd like to gauge potential interest for it, get opinions, and see if I'm missing anything important or game-breaking. I call it 'MB-GOTW'. The M stands for 'Move'. Try and guess what the rest stands for!
Basic Concept: If a woman has no eligible male relatives of her own dynasty, and she somehow comes into possession of a title...Her husband can usurp it from her, so as to take over as the 'primary' ruler, by whose stats the health of the realm is determined.
Something else I'm keen on figuring out, is that when there is no eligible heir, and a man dies, to have his Queen take over. This isn't possible by messing with succession laws. It has to be an event or a decision, that can somehow reliably fire just before a ruler's death, if his spouse is adept enough. Infirm or incapable rulers, are easy. But those that die through other means, without becoming infirm or incapable first, (without heirs of their dynasty remaining) are harder to figure out.
In that case, a Byzantine Emperor might die, his Empress would inherit the throne, and then she might marry someone, who subsequently usurps the Empire. Of course, in game, AI Romanos Diogenes would never marry 39 year old Eudoxia for being too old to have kids, no matter that the Empire was a dowry. So some kind of decision will be needed for that. Sadly, out of everything CK2 lets us mod, AI weight on marriage decisions remains almost entirely hardcoded, outside prestige.
This was how it worked throughout history, more or less, absent a few cases, like Queen Thamar or the wily Matilda, where they retained power. In that case, I think, spouses who are Grey Eminences, Ambitious, Brave, or have much higher stats than their husbands, will be able to resist.
I've been thinking about it a little while, and it actually shouldn't be too hard at all, or very complicated. It's more a matter of desire and getting the triggers right. In fact, I'm even wondering if someone else has already done something like this. If so...let me know!
Basic Concept: If a woman has no eligible male relatives of her own dynasty, and she somehow comes into possession of a title...Her husband can usurp it from her, so as to take over as the 'primary' ruler, by whose stats the health of the realm is determined.
Something else I'm keen on figuring out, is that when there is no eligible heir, and a man dies, to have his Queen take over. This isn't possible by messing with succession laws. It has to be an event or a decision, that can somehow reliably fire just before a ruler's death, if his spouse is adept enough. Infirm or incapable rulers, are easy. But those that die through other means, without becoming infirm or incapable first, (without heirs of their dynasty remaining) are harder to figure out.
In that case, a Byzantine Emperor might die, his Empress would inherit the throne, and then she might marry someone, who subsequently usurps the Empire. Of course, in game, AI Romanos Diogenes would never marry 39 year old Eudoxia for being too old to have kids, no matter that the Empire was a dowry. So some kind of decision will be needed for that. Sadly, out of everything CK2 lets us mod, AI weight on marriage decisions remains almost entirely hardcoded, outside prestige.
This was how it worked throughout history, more or less, absent a few cases, like Queen Thamar or the wily Matilda, where they retained power. In that case, I think, spouses who are Grey Eminences, Ambitious, Brave, or have much higher stats than their husbands, will be able to resist.
I've been thinking about it a little while, and it actually shouldn't be too hard at all, or very complicated. It's more a matter of desire and getting the triggers right. In fact, I'm even wondering if someone else has already done something like this. If so...let me know!
It is 2.0.1 compatible.
View attachment MBGOTW v1.031.rar - Vanilla compatible with SOA.
View attachment MB-PB.rar - Compatibility patch for the latest Project Balance. This is just an 00_on_actions.txt file that should be dropped into the above base mod. If you don't do this, the mod won't work correctly (people won't get what they're supposed to, after deaths and divorces).
This was tested exhaustively with the last patch and it seemed to be working perfectly. I did my best to test it on patch 2.0 and SOA since getting it within the last 24 hours. I released it tonight because people have been so patient. Please let me know if anything is screwed up.
Features:
Briefly,
-You can exercise the right of jure uxoris on your wife. You first must be deemed to be the 'dominant' partner in the relationship, which is determined by a personality matrix (brave vs craven, gregarious vs shy, ambitious vs not ambitious, diligent vs slothful, proud vs humble), and some other factors. Both being ambitious will cancel out, grey_eminence wives cannot be usurped. Some wives, with high enough martial and intrigue cannot be easily usurped.
-Having agnatic succession makes this MUCH easier (the succession that gives penalties with female dynastic members). Succession laws that favor females make it impossible.
-You will have to contend with her family, dynasty, devoted councillors (80 opinion+) or lover to do so, and depending on the circumstances, may either have multiple avenues to success, or none. She may give in right off the bat if there is no one that gives a damn about her, or sees a very small chance for success.
-A wife's lover may try to kill you. And if he kills you, he may try to marry her against her will...Both dynasties will hate him. This can happen to you as well, if an AI husband tries to usurp you, and you rely on your ambitious/evil/crazy lover to handle it.
-Your wife may very well take her lands back, if you are indisposed somehow (such as captured in battle) and she dislikes you. Or she may not. If you have a son by her, she's less apt to for example. Or is suffering any kind of condition. Or is simply content, etc.
-If you divorce your wife, or grant her lands to others that aren't her son, she will take them back automatically and you won't be able to exercise jure uxoris again, until the next generation. Cheater.
-If you die without having a living son by her, she will take her lands back.
-If she dies without having had a son by you, her heir will take the lands back.
-Put in, then took out an event chain that would let either crazy wives, or PC wives try to take matters into their own hand. May put it back in, in an altered form, later on. I thought it trivialized the fact that in order to be successful, female rulers needed strong social networks or kinship groups, historically.
- Wives of lower tier than their husband will be vassalized. A good reason to marry, say, a powerful duchess already in your own realm, besides the fact that your son will inherit, is to keep her from marrying another...
- PC wives will always be left with a county, unless their husband has no land, and you have only one province. I thought it setback enough that he would take the highest tier.
-Both husband and wife must be either in or out of Byzantium, or both in, or both outside of the HRE. Byzantium will shortly be getting its own unique treatment. The CK2 engine simply doesn't let us model the HRE at the moment, but both in or both out, makes it the least bit stupid (for example, in game, there's no concept of 'homage', such as Edward, doing homage to Philip for Normandy etc, and the concept is even more convoluted inside the HRE.)
- A husband must be either the same culture_group of his wife's capital, OR his wife's dynasty. If he shares the same realm as his wife's culture (say, English and Occitan) or neighbors his wife's culture, it will work. And if he is either ambitious or gregarious. Otherwise, he simply won't have the kind of rapport, or local support that is necessary to be truly successful (but his son by her will be accepted).
*AI BETROTHAL*
- AI will arrange betrothals, if possible, and if capable enough, with nubile young ladies with...large, tracts of land.
-They will prefer to betroth themselves, but depending, may betroth a son or brother, etc, if it means keeping that land. May need a little more work - didn't have as much time to really push the limits on this and then test it, given the patch just hit.
- This was necessary for game balance, so that AI won't let players snatch up heiresses from them, willy nilly.
- Currently, the AI only takes advantage of young vassal heiresses.
*AI DIVORCE*
- AI wives will divorce husbands that they either dislike immensely, or who tried to exercise jure uxoris on them and failed humiliatingly.
- Wives with a living son by their husbands will not be able to divorce (sorry ladies), and they must also be landed. In this age, it was only females with substantial power bases, that were able to successfully seek divorces (such as Eleanor of Aquitaine).
- This is the likelihood of divorce from most to least: humiliated husband failed to usurp wife, husband is lower tier and wife has a lover, husband is lower tier, husband is higher tier and wife has a lover, husband is higher tier.
- Wives will not seek divorces from husbands if they have even a +1 opinion of them. Wives without lovers will need to be at -100 opinion to divorce a higher tier husband. All involved take a piety and prestige hit.
- This was necessary for game balance, to encourage you to not be a complete bastard to your wife.
COMING SOON:
- Edward II-esque event chain
- Romanos Diogenes/Empress Zoe-esque event chain, where the widow of a Byzantine Emperor may end up handing the throne over to either a dashing military commander, or the epileptic brother of a eunuch councilor.
- Some stuff with monks and nuns
COMING EVENTUALLY:
- A Lion in Winter-esque event chain, dealing with dynastic squabbles. Sons vs fathers, sons vs mothers, mothers vs daughters, brothers vs brothers, brothers vs sisters, etc.
- Muslim dynastic civil wars
- Evil Regent event chain.
FAQ:
Q) Why is it called MBGOTW?
A) I was being silly. Someday I'll change it.
Q) Is this going to break anything?
A) It...shouldn't. It's potentially compatible with any mod in existence once the on_action is updated (which is simple). Although, there are a few traits that might pop up (at the end of one event chain, namely, the potential of getting a scarred, veteran, skilled fighter in your service) that rely on mods with those traits, such as PB-VIET. But if you don't have those traits, it'll just be a random soldier as normal. And I referenced VIET's congenital traits in a few places, cause I like them so much, but not in a major mod-busting way. But if you don't have VIET's congenital traits, I highly recommend getting them.
Q) Isn't this like, totally unbalanced?
A) No.
Q) Seriously. Won't the game be a cakewalk, if I'm like, marrying and usurping bitches left and right!?
B) No. I went to a considerable amount of trouble to close potential loopholes or abuses. There is an extreme variety of factors that go into whether exercising jure uxoris is even possible, let alone likely. I'd say that it is more difficult to plan for and take advantage of, than it is to wage a war of conquest...especially since the AI will act to secure their own interests (via betrothals and divorces, when important landed women are involved). If it becomes available as an option, and you successfully overcome the challenges to make it a fact, then I would consider it a truly special bit of providence, and vaguely equivalent to say, getting the Personal Union event in EUIII (the one that had a chance to merge realms), if much more detailed. Not to mention, your possession of any lands is merely temporary, unless you have a son by her. Her other heirs (even her original liege) will be waiting in the wings to take it back otherwise. She might also turn the tables on you. If everything works out perfect, and you get a heir on a nubile, available duchess, and you rule her lands with an iron fist until you both die of old age and your son takes over, that should be considered a highlight of your game.
Q) TL-DNR.
A) Fine! Simply put, I think this mechanic is more balanced and realistic, than most other mechanics currently in the game.
Q) That's a pretty high opinion of yourself. I bet it's bugged as shit.
A) I've got to get to the next question.
Q) Won't this possibly lead to situations that are perhaps, not unbalanced, but highly implausible?
A) Only insofar as the setup, of dynasties, laws or character traits is implausible to begin with. I vaguely recall vanilla Matilda having horribly wrong traits, and a great many historical personages are randomly generated. Some places, such as in Ireland or Scotland, have 1 or 2 random dudes that stand in for what was hundreds of potential male tanists in their tribe. Unsurprisingly, quite often, Ireland ends up full of female heiresses (perhaps a case in itself for a tanistry mod). Point being, the more historical the setup, the more historical the outcome will be with this mod. If someone can show me conclusively otherwise, and a poor trait/law/dynasty setup isn't to blame for it, I will immediately adjust it.
Q) Anything else I should know?
A) Yes. I tested the first version of this mod on my own much bigger project that I'm working on, which has the defines and other decisions/events modded for the AI to place vastly more importance on prestige when marrying, and to wait a few years to land a good marriage. In vanilla CK, men are compelled by sanity-cracking obsession to enjoy monogamous marital bliss every second of their lives, and should their wife drop dead, they lurch about in an anguished, lustful daze, keening with unholy need, until they find the first portly, gaptoothed wench of a milk maid to make their duchess, provided she immediately consents to marry them. In the Ck2 universe, it is a hideous aberration, for a man to spend even a single moment of his life, from 16 to 66, without knowing the exquisite bliss of marriage. No doubt it is punishable by death for a man to not marry before he is thirty, within vanilla CK2. If the real world followed CK2 logic, the Karlings would still be around, and somewhere there'd be the great-great-great-great-x10 grandson of Richard the Lionheart.
So yes, CK2 is stupid in that regard (and highly implausible). Someday, I'll release a mod for it, when I have enough ready to justify taking over the defines (and rendering it incompatible with virtually every other mod in existence). But anyone would be well served by going into their defines, and experimenting with the value the AI places on prestige. It's half the battle
Q) Can I use or modify any part of this for my own mod?
A) By all means. Just give me a shout out in the credits.
TIPS AND TRICKS
- Go into defines.lua, look for MARRIAGE_AI_PRESTIGE_VALUE and set it from 1.0 to 2.0. The higher it is, the more the AI will value prestige (such as rank and tier differences) when making marriages. Currently, the AI does not value prestige at all, leading to marrying lowborns.
- Look for MARRIAGE_TIER_DIFF_PRESTIGE_MULT and set it somewhere between 100-200.
- 1.5 and 100 seems to work well enough, until next release (v1.5), when matrilineally married lowborns will be a thing of the past.
- Let marriages come to you. Go with what's natural in the game. Things will feel much more right. Aggressively using assassination to set up the perfect storm of inheritances and jure uxoris can be fun when it works, but the mod is designed to not have any situation be a slam dunk, so it could also elicit frustration and save scumming, which is less fun in the end (for me anyways).
- AI Betrothals are a bit borked. It will be fixed next release (which will be v1.5).
Last edited:
- 1
- 1