Scripted Effect
change_religion_for_ruler_and_family
Definitionin_game/common/scripted_effects/country_effects.txt:2415
2416hidden_effect = {
2417$country$ = {
2418if = {
2419limit = {
2420ruler ?= {
2421owner = $country$
}
}
2424heir ?= {
2425if = {
2426limit = {
2427owner = $country$
}
2429change_character_religion = $religion$
}
}
2432ruler ?= {
2433change_character_religion = $religion$
2434every_descendant = {
2435limit = {
2436owner = $country$
}
2438change_character_religion = $religion$
}
2440every_spouse = {
2441limit = {
2442owner = $country$
2443this != $country$.heir
}
2445change_character_religion = $religion$
}
}
}
}
}