# -*- ck2.events -*-


namespace = eoc_cheats

# eoc_cheats.0
#
# 
# of titles with dynamic CoA rules.
# Sets graphical culture to that of the father
character_event = {
	id = eoc_cheats.0
	desc = "EVTdescEOCcheats.0"
	is_triggered_only = yes
	
	trigger = {
		FROM = {
			ai = no
		}
	}

	option = {
		name = EVToptAOCcheats.0
		father_even_if_dead = {
			FROM = {
				set_graphical_culture = PREV
				culture = PREV
			}
		}
	}
}
# Sets graphical culture to that of the mother
character_event = {
	id = eoc_cheats.1
	desc = "EVTdescEOCcheats.1"
	is_triggered_only = yes
	
	trigger = {
		FROM = {
			ai = no
		}
	}

	option = {
		name = EVToptAOCcheats.1
		mother_even_if_dead = {
			FROM = {
				set_graphical_culture = PREV
				culture = PREV
			}
		}
	}
}
# Sets religion to that of the liege (catholic/orthodox)
character_event = {
	id = eoc_cheats.2
	desc = "EVTdescEOCcheats.2"
	is_triggered_only = yes
	
	trigger = {
		FROM = {
			ai = no
		}
	}

	option = {
		name = EVToptAOCcheats.2
		religion=orthodox
		if = {
			limit={
				mother_even_if_dead = {
					culture=ROOT
				}
			}
			mother_even_if_dead = {
				religion=orthodox
			}
		}
		if = {
			limit={
				father_even_if_dead = {
					culture=ROOT
				}
			}
			father_even_if_dead = {
				religion=orthodox
			}
		}
		any_province={
			if = {
				limit={
					owner=ROOT
					culture=ROOT
				}
				religion=orthodox
			}
		}
		any_vassal={
			if = {
				limit={
					culture=ROOT
				}
				religion=orthodox
			}
		}
	}

	option = {
		name = EVToptBOCcheats.2
		religion=catholic
		if = {
			limit={
				mother_even_if_dead = {
					culture=ROOT
				}
			}
			mother_even_if_dead = {
				religion=catholic
			}
		}
		if = {
			limit={
				father_even_if_dead = {
					culture=ROOT
				}
			}
			father_even_if_dead = {
				religion=catholic
			}
		}
		any_province={
			if = {
				limit={
					owner=ROOT
					culture=ROOT
				}
				religion=catholic
			}
		}
		any_vassal={
			if = {
				limit={
					culture=ROOT
				}
				religion=catholic
			}
		}
	}
}