Ok, it's still not working. First, I had too many brackets (and had some of the code I had copied and pasted in my code), so marriages would not be accepted at all. Now, it's like my code doesn't even exist. Can someone PLEASE help me get this right?
Code:
#########
# FAITH #
#########
modifier = { # A recipient will want to marry close family members
scope:recipient = {
faith = has_doctrine = tenet_divine_marriage
is_close_family_of = scope:actor
}
add = {
value = -10
if = {
limit = {
scope:recipient = {
faith = has_doctrine = tenet_divine_marriage
is_not_close_family_of = scope:actor
}
}
}
subtract = 2000
}
desc = MARRY_CONSANGUINITY_REASON
}
The Scope:recipient should be the person receiving the offer from the scope:actor, right? So if the recipient isn't a close family member of the actor, there should be -2000 to the marriage.
And also to make sure that it works against courtiers (which it doesn't), I added the target to my court and married him. I got the Incestuous trait, despite him not being a close family member. Then I tried with my half brother, and I got the incestuous trait, but my half brother did not. In all attempts, the sister was landed and doing it herself. When the mother tried to marry her sister/daughter to her son/nephew, the son/nephew got the trait, but the sister/daughter didn't.
Here's the code for to give Incestuous on what's supposed to be familial marriages, but to no surprise, it doesn't work either.
Code:
###MANAGEMENT SCRIPT FOR VARIOUS EVENTS/CONTENT###
#If your marrying a close family member, give incestuous trait
if = {
limit = {
is_close_family_of = scope:secondary_actor
}
scope:actor = { player_heir = scope:secondary_actor }
}
scope:actor = {
add_trait = incestuous
}
scope:secondary_actor = {
add_trait = incestuous
}
}