
###########################################
#
# Plot Events
#
# ID 7000-8299 is reserved
#
###########################################
# Blackmail									7250-7270
# Drunken Plot Member						7040-7045
#
# Ultimatum event series					8000-8099
# Plot to kill character 					8220-8227
#
# Assassination notification events			8250-8299
#											7700-7999


###########################################
# Blackmail
###########################################
# 7250-7270

# The plot has been leaked
character_event = {
	id = 7250
	desc = "EVTDESC7250"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue

	only_rulers = yes
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		OR = {
			has_plot = plot_gain_title
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
			has_plot = plot_weaken_fellow_vassal
			has_plot = plot_gain_liege_title
			has_plot = plot_gain_fellow_vassal_title
		}
		is_plot_active = no
		num_of_plot_backers = 1
		any_courtier = {
			has_job_title = job_spymaster
			NOT = { is_plot_target_of = PREV }
		}
		top_liege = {
			any_realm_lord = {
				primary_title = { higher_tier_than = BARON }
				NOT = { character = ROOT }
				NOT = { is_liege_of = ROOT }
				NOT = { is_plot_target_of = ROOT }
				any_backed_character = {
					NOT = { character = ROOT }
				}
				employer = { NOT = { character = ROOT } }
				NOT = { opinion = { who = ROOT value = 0 } }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 240
		
		modifier = {
			factor = 0.95
			liege = {
				any_plot_backer = {
					trait = imbecile
				}
			}
		}
		modifier = {
			factor = 0.95
			liege = {
				any_plot_backer = {
					trait = lunatic
				}
			}
		}
		modifier = {
			factor = 0.95
			liege = { num_of_plot_backers = 2 }
		}
		modifier = {
			factor = 0.95
			liege = { num_of_plot_backers = 4 }
		}
		modifier = {
			factor = 0.85
			liege = { num_of_plot_backers = 6 }
		}
		modifier = {
			factor = 0.85
			liege = { num_of_plot_backers = 8 }
		}
	}

	option = {
		name = "EVTOPTA7250"
		hidden_tooltip = {
			any_realm_lord = {
				limit = {
					primary_title = { higher_tier_than = BARON }
					NOT = { character = ROOT }
					NOT = { is_liege_of = ROOT }
					NOT = { is_plot_target_of = ROOT }
					any_backed_character = {
						NOT = { character = ROOT }
					}
					employer = { NOT = { character = ROOT } }
					NOT = { opinion = { who = ROOT value = 0 } }
				}
				letter_event = { id = 7255 days = 1 }
			}
		}
	}
}

# Blackmail or not
letter_event = {
	id = 7255
	desc = "EVTDESC7255"
	picture = GFX_evt_whispers
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7255"
		ai_chance = {
			factor = 75
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -25 } }
			}
		}
		FROM = { letter_event = { id = 7260 days = 1 tooltip = "EVTTOOLTIP7260" } }
	}
	option = {
		name = "EVTOPTB7255"
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				NOT = { opinion = { who = FROM value = -50 } }
			}
		}
	}
}

# Blackmail attempt
letter_event = {
	id = 7260
	desc = "EVTDESC7260"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7260"
		wealth = -100
		hidden_tooltip = {
			FROM = { letter_event = { id = 7265 days = 1 } }
		}
	}
	option = {
		name = "EVTOPTB7260"
		if = {
			limit = {
				plot_target_char = {
					any_courtier = {
						has_job_title = job_spymaster
					}
				}
			}
			reveal_plot_w_message = yes
		}
		if = {
			limit = {
				plot_target_char = {
					NOT = {
						any_courtier = {
							has_job_title = job_spymaster
						}
					}
				}
			}
			reveal_plot = yes
		}
		hidden_tooltip = {
			FROM = { letter_event = { id = 7270 days = 1 } }
		}
	}
}

# Blackmail succeded
letter_event = {
	id = 7265
	desc = "EVTDESC7270"
	
	is_triggered_only = yes

	option = {
		name = "EXCELLENT"
		treasury = 100
		opinion = {
			modifier = opinion_blackmailed
			who = FROM
			months = 60
		}
	}
}

# Blackmail failed
letter_event = {
	id = 7270
	desc = "EVTDESC7270"
	
	is_triggered_only = yes

	option = {
		name = "EVTOPTA7270"
	}
}


###########################################
# Drunken Plot Member
###########################################
# 7040-7045

# Drunk plot member spills the beans - Non-Murder Plots
character_event = {
	id = 7040
	desc = "EVTDESC7040"
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_gain_title
				has_plot = plot_weaken_fellow_vassal
				has_plot = plot_gain_liege_title
				has_plot = plot_gain_fellow_vassal_title
			}
			is_plot_active = no
			NOT = { has_character_flag = event7040 }
			NOT = {
				plot_target_char = {
					any_known_plotter = {	character = PREVPREV }
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 240

		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = imbecile
		}
		modifier = {
			factor = 0.75
			trait = slow
		}
		modifier = {
			factor = 10.0
			trait = temperate
		}
		modifier = {
			factor = 2.0
			trait = genius
		}
		modifier = {
			factor = 1.5
			trait = quick
		}
	}
	
	option = {
		name = "EVTOPTA7040"
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_gain_title
					has_plot = plot_weaken_fellow_vassal
					has_plot = plot_gain_liege_title
					has_plot = plot_gain_fellow_vassal_title
				}
				NOT = { has_character_flag = event7040 }
				NOT = {
					plot_target_char = {
						any_known_plotter = {	character = PREVPREV }
					}
				}
			}
			opinion = {
				who = ROOT
				modifier = revealed_plot
				months = 120
			}
			set_character_flag = event7040
			hidden_tooltip = {
				character_event = { id = 7045 days = 1 }
			}
		}
	}
}

# Plot revealed by drunken backer
character_event = {
	id = 7045
	desc = "EVTDESC7045"
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7045"
		clr_character_flag = event7040
		if = {
			limit = {
				plot_target_char = {
					any_courtier = {
						has_job_title = job_spymaster
					}
				}
			}
			reveal_plot_w_message = yes
		}
		if = {
			limit = {
				plot_target_char = {
					NOT = {
						any_courtier = {
							has_job_title = job_spymaster
						}
					}
				}
			}
			reveal_plot = yes
		}
		plot_target_char = {
			opinion = {
				modifier = scheming_bastard
				who = ROOT
				months = 120
			}
		}
	}
}

# Drunk plot member spills the beans - Murder Plots
character_event = {
	id = 7041
	desc = EVTDESC7040
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			is_plot_active = no
			NOT = { has_character_flag = event7041 }
			NOT = {
				plot_target_char = {
					any_known_plotter = {	character = PREVPREV }
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 240

		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = imbecile
		}
		modifier = {
			factor = 0.75
			trait = slow
		}
		modifier = {
			factor = 10.0
			trait = temperate
		}
		modifier = {
			factor = 2.0
			trait = genius
		}
		modifier = {
			factor = 1.5
			trait = quick
		}
	}
	
	option = {
		name = EVTOPTA7040
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				NOT = { has_character_flag = event7041 }
				NOT = {
					plot_target_char = {
						any_known_plotter = {	character = PREVPREV }
					}
				}
			}
			opinion = {
				who = ROOT
				modifier = revealed_plot
				months = 120
			}
			set_character_flag = event7041
			hidden_tooltip = {
				character_event = { id = 7046 days = 1 }
			}
		}
	}
}

# Murder plot revealed by drunken backer
character_event = {
	id = 7046
	desc = EVTDESC7045
	picture = GFX_evt_drunk
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA7045
		
		clr_character_flag = event7041
		if = {
			limit = {
				plot_target_char = {
					any_courtier = {
						has_job_title = job_spymaster
					}
				}
			}
			reveal_plot_w_message = yes
		}
		if = {
			limit = {
				plot_target_char = {
					NOT = {
						any_courtier = {
							has_job_title = job_spymaster
						}
					}
				}
			}
			reveal_plot = yes
		}
		plot_target_char = {
			save_event_target_as = target_victim
			ROOT = {
				character_event = { id = 11 } # Consequences of discovery
			}
			clear_event_target = target_victim
		}
	}
}

###########################################
# Ultimatum event series
###########################################
# 8000-8120


### Ultimatum events

# Ultimatum - gain a title
letter_event = {
	id = 8000
	desc = "EVTDESC8000"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				FROM = { NOT = { plot_power = 1.0 } }
			}				
			modifier = {
				factor = 1.25
				trait = weak
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = friendly
			}
			modifier = {
				factor = 1.25
				trait = friendly
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}		
		}
		hidden_tooltip = {
			FROM = {
				letter_event = { id = 8050 }
				any_plot_backer = {
					letter_event = { id = 8070 }
				}
			}
		}
		FROM = {
			plot_target_title = {
				usurp_title_plus_barony_if_unlanded = PREV
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = cold
			}
			modifier = {
				factor = 1.25
				trait = cold
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = { plot_power = 1.5 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 2.0 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 3.0 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 4.0 }
			}			
		}
		FROM = {
			letter_event = { id = 8100 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_plot_backer = {
				}
			}
		}
	}
}

# Ultimatum - gain a vassal title
letter_event = {
	id = 8030
	desc = EVTDESC8030
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				FROM = { NOT = { plot_power = 1.0 } }
			}
			modifier = {
				factor = 1.25
				trait = weak
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = friendly
			}
			modifier = {
				factor = 1.25
				trait = friendly
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		hidden_tooltip = {
			FROM = {
				letter_event = { id = 8068 }
				any_plot_backer = {
					letter_event = { id = 8096 }
				}
			}
		}
		FROM = {
			plot_target_title = {
				usurp_title_plus_barony_if_unlanded = PREV
			}
		}
	}
	option = {
		name = EVTOPTB8000
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				trait = strong
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = cold
			}
			modifier = {
				factor = 1.25
				trait = cold
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = { plot_power = 1.5 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 2.0 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 3.0 }
			}
			modifier = {
				factor = 0.5
				FROM = { plot_power = 4.0 }
			}	
		}
		FROM = {
			letter_event = { id = 8118 days = 3 tooltip = EVTTOOLTIP8100 }
		}
	}
}

# Regent is in on the plot - Crown Authority
letter_event = {
	id = 8026
	desc = EVTDESC8026
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8026
		hidden_tooltip = {
			FROM = {
				letter_event = { id = 8067 }
				any_plot_backer = {
					letter_event = { id = 8095 }
				}
			}
		}
		FROM = {
			crownlaw_title = {
				if = {
					limit = { has_law = crown_authority_1 }
					add_law_w_cooldown = crown_authority_0
				}
				if = {
					limit = { has_law = crown_authority_2 }
					add_law_w_cooldown = crown_authority_1
				}
				if = {
					limit = { has_law = crown_authority_3 }
					add_law_w_cooldown = crown_authority_2
				}
				if = {
					limit = { has_law = crown_authority_4 }
					add_law_w_cooldown = crown_authority_3
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_lowered_crown_authority
				who = ROOT
				months = 12
			}
		}
	}
}

# Regent is in on the plot - Tribal Organization
letter_event = {
	id = 8031
	desc = EVTDESC8026
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8026
		hidden_tooltip = {
			FROM = {
				letter_event = { id = 8071 }
				any_plot_backer = {
					letter_event = { id = 8029 }
				}
			}
		}
		FROM = {
			crownlaw_title = {
				if = {
					limit = { has_law = tribal_organization_1 }
					add_law_w_cooldown = tribal_organization_0
				}
				if = {
					limit = { has_law = tribal_organization_2 }
					add_law_w_cooldown = tribal_organization_1
				}
				if = {
					limit = { has_law = tribal_organization_3 }
					add_law_w_cooldown = tribal_organization_2
				}
				if = {
					limit = { has_law = tribal_organization_4 }
					add_law_w_cooldown = tribal_organization_3
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_lowered_tribal_organization
				who = ROOT
				months = 12
			}
		}
	}
}

### Demand accepted events

# Demand accepted - gain a title
letter_event = {
	id = 8050
	desc = "EVTDESC8050"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8050"
	}	
}

# Demand accepted - gain a vassal title
letter_event = {
	id = 8068
	desc = "EVTDESC8068"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8068"
	}	
}

# Inform vassal - gain a title
letter_event = {
	id = 8070
	desc = "EVTDESC8070"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8070"
	}
}

# Inform vassal - gain a vassal title
letter_event = {
	id = 8096
	desc = "EVTDESC8096"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8096"
	}
}

### Demand rejected events

# Demand rejected - gain a title
letter_event = {
	id = 8100
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		ai_chance = { factor = 100 }
		hidden_tooltip = { reveal_plot = yes }
		plot_target_title = {
			reverse_war = {
				target = ROOT
				casus_belli = claim_on_liege_plot
				plot_backers = yes
			}
		}
	}
	option = {
		name = "EVTOPTB8100"
		ai_chance = { factor = 0 }
		prestige = -100
		any_plot_backer = {
			opinion = {
				modifier = opinion_coward
				who = ROOT
				years = 5
			}
			hidden_tooltip = {
				letter_event = { id = 8120 }
			}
		}
		cancel_plot = plot_gain_title
	}
}

# Demand rejected - gain a vassal title
letter_event = {
	id = 8118
	desc = "EVTDESC8118"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8118"
		ai_chance = { factor = 100 }
		hidden_tooltip = { reveal_plot = yes }
		plot_target_title = {
			reverse_war = {
				target = ROOT
				casus_belli = claim_on_vassal_plot
			}
		}
	}
	option = {
		name = "EVTOPTB8118"
		ai_chance = { factor = 0 }
		prestige = -100
		any_plot_backer = {
			opinion = {
				modifier = opinion_coward
				who = ROOT
				years = 5
			}
			hidden_tooltip = {
				letter_event = { id = 8120 }
			}
		}
		cancel_plot = plot_gain_vassal_title
	}
}

# Inform vassal - plot is abandoned
letter_event = {
	id = 8120
	desc = "EVTDESC8120"
	
	show_from_from = yes
	
	is_triggered_only = yes

	immediate = {
		hidden_tooltip = {
			remove_opinion = {
				modifier = opinion_coward
				who = FROM
			}
		}
	}

	option = {
		name = "EVTOPTA8120"
		opinion = {
			modifier = opinion_coward
			who = FROM
			years = 5
		}
	}
}

###########################################
# Plot to cut down another vassal to size #
###########################################

	
# Top Liege is approached by Plotter
letter_event = {
	id = 7500
	desc = "EVTDESC7500"

	is_triggered_only = yes
	
	option = { #Yes
		name = "EVTOPTA7500"
		FROM = {
			letter_event = { id = 7501 days = 3 tooltip = "EVTTOOLTIP7501" }
		}
	}
	option = { #No
		name = "EVTOPTB7500"
		FROM = {
			letter_event = { id = 7502 days = 3 tooltip = "EVTTOOLTIP7502" }
		}
	}
}
	
# Plotter informed Top Liege agrees
letter_event = {
	id = 7501
	desc = "EVTDESC7501"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7501"
		ROOT = { set_character_flag = weaken_vassal_plotter }
		plot_target_char = {
			letter_event = { id = 7504 tooltip = "EVTTOOLTIP7504" }
		}
		FROM = {
			opinion = {
				modifier = approves_of_my_behaviour
				who = ROOT
				years = 2
			}
		}
	}
}
	
# Plotter informed Top Liege disagrees
letter_event = {
	id = 7502
	desc = "EVTDESC7502"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7502"
		reveal_plot = yes
		FROM = {
			opinion = {
				modifier = resentful_of_my_behaviour
				who = ROOT
				years = 2
			}
		}
	}
}

# Duke receives ultimatum from Top Liege
letter_event = {
	id = 7504
	desc = "EVTDESC7504"

	is_triggered_only = yes
	
	option = { #Take it!
		name = "EVTOPTA7504"
		trigger = {
			FROM = {
				plot_target_title = {
					ROOT = {
						any_vassal = {
							tier = count
							any_demesne_title = {
								tier = count
								dejure_liege_title = {
									FROM = {
										plot_target_title = {
											title = PREVPREV
										}
									}
								}
							}
						}
					}
				}
			}
		}
		FROM = {
			plot_target_title = {
				ROOT = {
					random_vassal = {
						limit = {
							tier = count
							any_demesne_title = {
								tier = count
								dejure_liege_title = {
									FROM = {
										plot_target_title = {
											title = PREVPREV
										}
									}
								}
							}
						}
						usurp_title = PREVPREV
					}
				}
			}
		}
		hidden_tooltip = {
			liege = {
				letter_event = { 
					id = 7508
				}
			}
		}
	}
	option = { #Never
		name = "EVTOPTB7504"
		liege = {
			letter_event = { 
				id = 7509
				tooltip = "EVTTOOLTIP7509"
			}
		}
	}
}

# Duke receives ultimatum from Plotter
letter_event = {
	id = 7505
	desc = "EVTDESC7505"

	is_triggered_only = yes
	
	option = { #Take it!
		name = "EVTOPTA7505"
		trigger = {
			FROM = {
				plot_target_title = {
					ROOT = {
						any_vassal = {
							tier = count
							any_demesne_title = {
								tier = count
								dejure_liege_title = {
									FROM = {
										plot_target_title = {
											title = PREVPREV
										}
									}
								}
							}
						}
					}
				}
			}
		}
		FROM = {
			plot_target_title = {
				ROOT = {
					random_vassal = {
						limit = {
							tier = count
							any_demesne_title = {
								tier = count
								dejure_liege_title = {
									FROM = {
										plot_target_title = {
											title = PREVPREV
										}
									}
								}
							}
						}
						usurp_title = PREVPREV
						hidden_tooltip = {
							character_event = { id = 7515 }
						}
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				letter_event = { id = 7506 }
			}
		}
	}
	option = {
		name = "EVTOPTC7505"
		trigger = {
			NOT = {
				FROM = {
					plot_target_title = {
						ROOT = {
							any_vassal = {
								tier = count
								any_demesne_title = {
									tier = count
									dejure_liege_title = {
										FROM = {
											plot_target_title = {
												title = PREVPREV
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		# add effect...
		FROM = {
			plot_target_title = {
				usurp_title = FROM
			}
			hidden_tooltip = {
				character_event = { id = 7517 }
			}
		}
	}
	option = { #No!
		name = "EVTOPTB7505"
		FROM = {
			letter_event = { id = 7507 tooltip = "EVTTOOLTIP7507" }
		}
	}
}

# Plotter informed ultimatum accepted
letter_event = {
	id = 7506
	desc = "EVTDESC7506"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7506"
		FROM = {
			opinion = {
				modifier = scheming_bastard
				who = ROOT
				years = 6
			}
		}	
	}
}

# Plotter informed ultimatum rejected
letter_event = {
	id = 7507
	desc = "EVTDESC7507"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7507"
		ai_chance = { factor = 100 }
		hidden_tooltip = { reveal_plot = yes }
		plot_target_title = {
			reverse_war = {
				target = ROOT
				casus_belli = weaken_vassal_plot
				plot_backers = yes
			}
		}
	}
	option = {
		name = "EVTOPTB7507"
		ai_chance = { factor = 0 }
		prestige = -100
		any_plot_backer = {
			opinion = {
				modifier = opinion_coward
				who = ROOT
				years = 5
			}
			hidden_tooltip = {
				letter_event = { id = 8120 }
			}
		}
		cancel_plot = plot_weaken_fellow_vassal
	}
}

# Top Liege informed ultimatum accepted
letter_event = {
	id = 7508
	desc = "EVTDESC7508"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7508"
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = weaken_vassal_plotter }
				character_event = { id = 7510 }
			}
			any_vassal = {
				limit = {
					any_vassal = {
						has_character_flag = weaken_vassal_plotter
					}
				}
				any_vassal = {
					limit = { has_character_flag = weaken_vassal_plotter }
					character_event = { id = 7510 }
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_bitter
				who = ROOT
				years = 6
			}
		}
	}
}

# Top Liege informed ultimatum rejected
letter_event = {
	id = 7509
	desc = "EVTDESC7509"

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7509"
		opinion = {
			who = FROM
			modifier = opinion_refused_abdicate_title
		}
		hidden_tooltip = {
			any_vassal = {
				limit = { has_character_flag = weaken_vassal_plotter }
				character_event = { id = 7511 }
			}
			any_vassal = {
				limit = {
					any_vassal = {
						has_character_flag = weaken_vassal_plotter
					}
				}
				any_vassal = {
					limit = { has_character_flag = weaken_vassal_plotter }
					character_event = { id = 7511 }
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_bitter
				who = ROOT
				years = 6
			}
		}
	}
}

# Plotter informed Top Liege's ultimatum accepted
character_event = {
	id = 7510
	desc = "EVTDESC7510"
	picture = GFX_evt_council

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7510"
		clr_character_flag = weaken_vassal_plotter
	}
}

# Plotter informed Top Liege's ultimatum rejected
character_event = {
	id = 7511
	desc = "EVTDESC7511"
	picture = GFX_evt_council

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7511"
		clr_character_flag = weaken_vassal_plotter
		cancel_plot = plot_weaken_fellow_vassal
	}
}

# Duke's vassal informed he will be granted duchy.
character_event = {
	id = 7515
	desc = "EVTDESC7515"
	picture = GFX_evt_council

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7515"
	}
}

# Plotter informed he has received the title instead, as there were no vassals to give it to.
character_event = {
	id = 7517
	desc = "EVTDESC7517"
	picture = GFX_evt_knight_kneeling
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7502"
	}
}

############################
# Plot to Fabricate Claims #
############################

### Between Independents

# Plotter succeeds in fabricating claim
character_event = {
	id = 7600
	desc = "EVTDESC7600"
	picture = GFX_evt_council
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7600"
		plot_target_title = {
			add_pressed_claim = ROOT
		}
	}
}

# Plotter fails in fabricating claim on liege
character_event = {
	id = 7601
	desc = "EVTDESC7601"
	picture = GFX_evt_council
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7601"
		cancel_plot = plot_gain_liege_title
		plot_target_char = {
			opinion = {
				modifier = scheming_bastard
				who = ROOT
				years = 6
			}
		}
	}
}

# Plotter fails in fabricating claim on fellow vassal
character_event = {
	id = 7602
	desc = "EVTDESC7601"
	picture = GFX_evt_council
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7601"
		cancel_plot = plot_gain_fellow_vassal_title
		plot_target_char = {
			opinion = {
				modifier = scheming_bastard
				who = ROOT
				years = 6
			}
		}
	}
}