I want to have a triggered modifier everytime the ruler of a specific religion gets a piety or prestige reduction, when he is not married to his marriable daughter.
I will try this one:
Code:nicht_verheiratet = { potential = { is_ruler = yes is_adult = yes } trigger = { religion = atheisten has_living_children = yes OR = { AND = { is_female = no any_child = { is_female = yes is_marriage_adult = yes NOT = { is_married = ROOT } NOT = { is_consort = ROOT } } } AND = { is_female = yes any_child = { is_female = no is_marriage_adult = yes NOT = { is_married = ROOT } NOT = { is_consort = ROOT } } } } } icon = 36 piety = -0.25 active = no }
For performance, it's better to use a periodically-triggering event to set such modifiers than to use triggered modifiers, which are (as mentioned above) quite heavy in their performance cost.