Having found little success letting Muslims and Patriarchs marry matrilineally, I found an interesting workaround to solve this probelm; essentially creating a modified version of the "Legitimize Bastard" decision that lets females add any of their children not of their dynasty, to their dynasty. It's a simple decision that carries no cost, nor any opinion penalties for enacting, as the point is to be a simple workaround to the lack of matrilineal marriages for muslims and patriarchs, rather than anything else. The decision is usable for any female player character towards their children that are not of their dynasty, so it should cover any other cases where this is bound to be a problem.
Installation: Extract Matrilineal Descent.rar to your mod folder typically found in Documents\Paradox Interactive\Crusader Kings II\mod. Remove the Matrilineal Descent folder and .mod file to uninstall
How to use: There's now a new diplomatic interaction that female (non-ai) characters can do towards children they have that are not of their dynasty. It will make the child in question of their dynasty. Normal succession laws and restrictions still apply, so if you want cognatic succession for Muslims and Patriarchs you have to mod that yourself or find a mod that lets you enact those laws (there are a few good ones lying around the forum).
Compatibility: No vanilla files are changed, so this mod should be fully compatible with other mods. If you have troubles downloading or whatever, the relevant code is found below, just make a new .txt file in your decisions folder and copy the following code.
If you want to use this decision or a derivative of it in your mod, feel free, no need to credit or anything, I'm just happy I solved this headache and get to share it around.
Installation: Extract Matrilineal Descent.rar to your mod folder typically found in Documents\Paradox Interactive\Crusader Kings II\mod. Remove the Matrilineal Descent folder and .mod file to uninstall
How to use: There's now a new diplomatic interaction that female (non-ai) characters can do towards children they have that are not of their dynasty. It will make the child in question of their dynasty. Normal succession laws and restrictions still apply, so if you want cognatic succession for Muslims and Patriarchs you have to mod that yourself or find a mod that lets you enact those laws (there are a few good ones lying around the forum).
Compatibility: No vanilla files are changed, so this mod should be fully compatible with other mods. If you have troubles downloading or whatever, the relevant code is found below, just make a new .txt file in your decisions folder and copy the following code.
Code:
targetted_decisions = {
matrilineal_child = {
filter = dynasty
ai_target_filter = dynasty
from_potential = {
ai = no
is_playable = yes
is_female = yes
}
potential = {
NOT = { dynasty = FROM }
is_child_of = FROM
}
effect = {
dynasty = FROM
recalc_succession = yes
FROM = { prestige = 20 }
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 0
}
}
}
If you want to use this decision or a derivative of it in your mod, feel free, no need to credit or anything, I'm just happy I solved this headache and get to share it around.