namespace = Reclamation_Pontifical
######################################
####### Vatican				   #######
######################################
character_event = {
	id = Reclamation_Pontifical.1
	desc = EVTDESC67021
	picture = GFX_evt_pope
	border = GFX_event_normal_frame_religion
	is_triggered_only = yes
	option = {
		name = EVTDESC_Reclamation_Pontifical_1 # EVTOPTA67021	# localisation buggé	
		piety = 50
		opinion = {
			modifier = bishop_bribed_by_pope
			who = ROOT
			years = 5
		}
		liege = {
			any_demesne_title = {
				limit = {
					tier = EMPEROR
					has_law = investiture_law_1 
				}
				add_pressed_claim = ROOT
			}
		}
		liege = {
			any_demesne_title = {
				limit = {
					tier = KING
					has_law = investiture_law_1 
				}
				add_pressed_claim = ROOT
			}
		}
		random = {
			chance = 33
			liege = {
				character_event = {
					id = Reclamation_Pontifical.2
					days = 1
					tooltip = EVTTOOLTIP67022
				}	
			}
		}
		k_papal_state = {
			holder_scope = {
				letter_event = {
					id = Reclamation_Pontifical.3
					days = 1
				}
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0.1
				opinion = {
					who = liege
					value = 75
				}
			}
		}
		clr_character_flag = demande_revendication_flag
	}
	option = {
		name = EVTOPTB67021		
		piety = -50
		liege = {
			if = { # opinion du seigneur liege envers son vassal
				limit = {
					NOT = {
						has_opinion_modifier = {
							who = FROM
							modifier = loyal_vassal_against_pope
						}
					}
				}
				opinion = {
					modifier = loyal_vassal_against_pope
					who = FROM
					years = 5
				}
			}
		}
		k_papal_state = {
			holder_scope = {
				letter_event = {
					id = Reclamation_Pontifical.4
					days = 1
				}
			}
		}		
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					opinion = {
						who = liege
						value = 50
					}
				}
			}
			modifier = {
				factor = 2
				opinion = {
					who = liege
					value = 55
				}
			}
			modifier = {
				factor = 4
				opinion = {
					who = liege
					value =  60
				}
			}
			modifier = {
				factor = 100
				opinion = {
					who = liege
					value =  80
				}
			}
		}
		clr_character_flag = demande_revendication_flag
	}
}

character_event = {
	id = Reclamation_Pontifical.2
	desc = EVTDESC67022
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion	
	is_triggered_only = yes	
	option = {
		name = EVTOPTA67022
		prestige = -5
		if = { # opinion du seigneur liege envers son vassal
			limit = {
				NOT = {
					has_opinion_modifier = {
						who = FROM
						modifier = my_vassal_bribed_by_pope
					}
				}
			}
			opinion = {
				modifier = my_vassal_bribed_by_pope
				who = FROM
				years = 5
			}
		}
	#	FROM = { # opinion du vassal envers son seigneur liege
	#		if = {
	#			limit = {
	#				NOT = {
	#					has_opinion_modifier = {
	#						who = FROM
	#						modifier = my_vassal_bribed_by_pope
	#					}
	#				}
	#			}
	#			opinion = {
	#				modifier = my_vassal_bribed_by_pope
	#				who = ROOT
	#				years = 5
	#			}
	#		}
	#	}
		ROOT = {
			add_rival = FROM
		}
	}
}

letter_event = {
	id = Reclamation_Pontifical.3
	desc = EVTDESC_Reclamation_Pontifical_3
	is_triggered_only = yes	
	option = {
		name = EXCELLENT
	}
}

letter_event = {
	id = Reclamation_Pontifical.4
	desc = EVTDESC_Reclamation_Pontifical_4
	is_triggered_only = yes	
	option = {
		name = CURSES
	}
}