namespace = Titres-Pape
######################################
####### Vatican				   #######
######################################
character_event = {
	id = Titres-Pape.1
	hide_window = yes
	only_rulers = yes
	mean_time_to_happen = { 
		days = 1
	}
	trigger = {
		is_alive = yes
		OR = {
			has_landed_title = k_papal_state
			has_landed_title = d_fraticelli
			has_landed_title = e_holy_see
		}
		OR = {
			has_character_modifier = uncrowned_modifier
			has_character_modifier = accused_apostate
			trait = excommunicated
		}
	}
	immediate = {
		remove_character_modifier = uncrowned_modifier
		remove_character_modifier = accused_apostate
		remove_trait = excommunicated
	}
}

character_event = {
	id = Titres-Pape.2
	hide_window = yes
	is_triggered_only = yes	
	only_rulers = yes
	trigger = {
		is_alive = yes
		OR = {
			has_landed_title = k_papal_state
			has_landed_title = d_fraticelli
			has_landed_title = e_holy_see
		}
		OR = {
			has_character_modifier = uncrowned_modifier
			has_character_modifier = accused_apostate
			trait = excommunicated
		}
	}	
	immediate = {
		remove_character_modifier = uncrowned_modifier
		remove_character_modifier = accused_apostate
		remove_trait = excommunicated
	}
}