Last active
November 15, 2020 08:21
-
-
Save mindryu/01a73a4c3bd9a7596a41decd23148638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Will AI for this character try to arrange matrilineal marriages? | |
# Note that the AI can still arrange patrilineal marriages based on the SPOUSE_SCORE_LINEALITY_MISMATCH_SCORE AI define | |
# root: the arranging AI character | |
# scope:secondary_actor: the character to be married | |
ai_wants_matrilineal_marriage = { | |
scope:secondary_actor = { | |
is_female = yes | |
} | |
trigger_if = { | |
limit = { | |
OR = { | |
# faith = { has_doctrine_parameter = male_dominated_law } | |
has_realm_law = male_preference_law | |
has_realm_law = equal_law | |
faith = { has_doctrine_parameter = gender_equal_law } | |
} | |
} | |
OR = { | |
scope:secondary_actor = { is_ruler = yes } | |
player_heir_position = { | |
position < 3 | |
target = scope:secondary_actor | |
} | |
} | |
} | |
trigger_else = { | |
or = { | |
has_realm_law = female_only_law | |
has_realm_law = female_preference_law | |
faith = { has_doctrine_parameter = female_dominated_law } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment