
###########################################
#
# 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
	is_part_of_plot = yes
	
	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 = "EVTDESC7265"
	
	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
	is_part_of_plot = yes
	
	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
			OR = {
				NOT = { religion_group = muslim }
				trait = hedonist
				trait = drunkard
			}
			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
			OR = {
				trait = slow
				trait = dull
			}
		}
		modifier = {
			factor = 10.0
			trait = temperate
		}
		modifier = {
			factor = 2.0
			trait = genius
		}
		modifier = {
			factor = 1.5
			OR = {
				trait = quick
				trait = shrewd
			}
		}
	}
	
	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
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			is_plot_active = no
			OR = {
				NOT = { religion_group = muslim }
				trait = hedonist
				trait = drunkard
			}
			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
			OR = {
				trait = slow
				trait = dull
			}
		}
		modifier = {
			factor = 10.0
			trait = temperate
		}
		modifier = {
			factor = 2.0
			trait = genius
		}
		modifier = {
			factor = 1.5
			OR = {
				trait = quick
				trait = shrewd
			}
		}
	}
	
	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
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			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
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			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 - seniority
letter_event = {
	id = 8005
	desc = "EVTDESC8005"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_succ_seniority }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_succ_seniority
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_succ_seniority
							power = 0.5
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_succ_seniority }
				}
				character_event = { id = 8076 }
			}
			FROM = {
				letter_event = { id = 8055 }
				any_faction_backer = {
					faction = faction_succ_seniority
					letter_event = { id = 8075 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			faction_succ_seniority = { # The target (title) of the faction
				succession = seniority
			}
		}
	}
	option = {
		name = "EVTOPTB8005"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_succ_seniority
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_seniority
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_seniority
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_seniority
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_seniority
						power = 4.0
					}
				}
			}				
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_succ_seniority power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8105 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_succ_seniority
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_succ_seniority power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_succ_seniority power = 0.75 }
						NOT = { faction_power = { faction = faction_succ_seniority power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - primogeniture
letter_event = {
	id = 8010
	desc = "EVTDESC8010"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_succ_primogeniture }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_succ_primogeniture
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_succ_primogeniture
							power = 0.5
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_succ_primogeniture }
				}
				character_event = { id = 8081 }
			}
			FROM = {
				letter_event = { id = 8060 }
				any_faction_backer = {
					faction = faction_succ_primogeniture
					letter_event = { id = 8080 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			faction_succ_primogeniture = { # The target (title) of the faction
				succession = primogeniture
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_succ_primogeniture
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_primogeniture
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_primogeniture
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_primogeniture
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_primogeniture
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_succ_primogeniture power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8110 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_succ_primogeniture
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_succ_primogeniture power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_succ_primogeniture power = 0.75 }
						NOT = { faction_power = { faction = faction_succ_primogeniture power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - feudal elective
letter_event = {
	id = 8015
	desc = "EVTDESC8015"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_succ_feudal_elective }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_succ_feudal_elective
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_succ_feudal_elective
							power = 0.5
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_succ_feudal_elective }
				}
				character_event = { id = 8086 }
			}
			FROM = {
				letter_event = { id = 8065 }
				any_faction_backer = {
					faction = faction_succ_feudal_elective
					letter_event = { id = 8085 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			faction_succ_feudal_elective = { # The target (title) of the faction
				if = {
					limit = {
						NOR = { 
							title = e_hre 
							has_title_flag = alternate_hre
						}
					}
					add_law_w_cooldown = succ_feudal_elective
					#succession = {
					#	base_type = feudal_elective
					#	voting_rules = feudal_elective
					#}
				}
				if = {
					limit = {
						OR = { 
							title = e_hre 
							has_title_flag = alternate_hre
						}
					}
					add_law_w_cooldown = succ_hre_elective
					#succession = {
					#	base_type = feudal_elective
					#	voting_rules = hre_feudal_elective
					#}
				}
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}		
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_succ_feudal_elective
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_feudal_elective
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_feudal_elective
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_feudal_elective
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_feudal_elective
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_succ_feudal_elective power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		
		FROM = {
			letter_event = { id = 8115 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_succ_feudal_elective
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_succ_feudal_elective power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_succ_feudal_elective power = 0.75 }
						NOT = { faction_power = { faction = faction_succ_feudal_elective power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - gavelkind
letter_event = {
	id = 8020
	desc = "EVTDESC8020"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_succ_gavelkind }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_succ_gavelkind
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_succ_gavelkind
							power = 0.5
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_succ_gavelkind }
				}
				character_event = { id = 8091 }
			}
			
			FROM = {
				letter_event = { id = 8066 }
				any_faction_backer = {
					faction = faction_succ_gavelkind
					letter_event = { id = 8090 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			show_scope_change = no		
			faction_succ_gavelkind = { # The target (title) of the faction
				succession = gavelkind
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 80
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_succ_gavelkind
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_gavelkind
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_gavelkind
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_gavelkind
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_succ_gavelkind
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_succ_gavelkind power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8116 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_succ_gavelkind
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_succ_gavelkind power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_succ_gavelkind power = 0.75 }
						NOT = { faction_power = { faction = faction_succ_gavelkind power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - crown authority
letter_event = {
	id = 8025
	desc = EVTDESC8025
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_lower_crown_authority }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_lower_crown_authority
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_lower_crown_authority
							power = 1.0
						}
					}
				}
			}			
			modifier = {
				factor = 0
				FROM = { NOT = { plot_power = 1.0 } }
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_lower_crown_authority
 }
				}
				character_event = { id = 8094 }
			}
			FROM = {
				letter_event = { id = 8067 }
				any_faction_backer = {
					faction = faction_lower_crown_authority
					letter_event = { id = 8095 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			faction_lower_crown_authority = { # The target (title) of the faction
				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
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_lower_crown_authority
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_crown_authority
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_crown_authority
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_crown_authority
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_crown_authority
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_lower_crown_authority power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8117 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_lower_crown_authority
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_lower_crown_authority power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_lower_crown_authority power = 0.75 }
						NOT = { faction_power = { faction = faction_lower_crown_authority power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - tribal organization
letter_event = {
	id = 8027
	desc = EVTDESC8027
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_lower_tribal_organization }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_lower_tribal_organization
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_lower_tribal_organization
							power = 1.0
						}
					}
				}
			}			
			modifier = {
				factor = 0
				FROM = { NOT = { plot_power = 1.0 } }
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_lower_tribal_organization
 }
				}
				character_event = { id = 8028 }
			}
			FROM = {
				letter_event = { id = 8071 }
				any_faction_backer = {
					faction = faction_lower_tribal_organization
					letter_event = { id = 8029 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			faction_lower_tribal_organization = { # The target (title) of the faction
				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
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_lower_tribal_organization
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_tribal_organization
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_tribal_organization
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_tribal_organization
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_lower_tribal_organization
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_lower_tribal_organization power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8114 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_lower_tribal_organization
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_lower_tribal_organization power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_lower_tribal_organization power = 0.75 }
						NOT = { faction_power = { faction = faction_lower_tribal_organization power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Inform faction backer - tribal organization
letter_event = {
	id = 8029
	desc = "EVTDESC8029"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_lower_TO_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Tribal Organization
character_event = {
	id = 8028
	desc = "EVTDESC8028"
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# 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
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			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
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			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 = EVTDESC8031
	
	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
			}
		}
	}
}

# Ultimatum - Independence
letter_event = {
	id = 8035
	desc = "EVTDESC8035"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_independence }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_independence
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000" # Fold to demand
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_independence
							power = 1.0
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
			modifier = {
				factor = 0.001
				FROM = {
					NOT = {
						faction_power = 
						{
							faction = faction_independence
							power = 0.25
						}
					}
				}
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_independence }
				}
				character_event = { id = 8093 }
			}
			FROM = {
				letter_event = { id = 8069 }
				any_faction_backer = {
					faction = faction_independence
					letter_event = { id = 8097 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			show_scope_change = no
			any_faction_backer = {
				show_scope_change = no
				faction = faction_independence
				set_defacto_liege = THIS
			}
			set_defacto_liege = THIS
		}
		
		FROM = {
			show_scope_change = no
			opinion = {
				modifier = opinion_granted_independence
				who = ROOT
				months = 120
			}
		}
	}
	option = {
		name = "EVTOPTB8000" # War!
		
		ai_chance = {
			factor = 95
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_independence
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_independence
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_independence
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_independence
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_independence
						power = 4.0
					}
				}
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_independence power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		
		FROM = {
			letter_event = { id = 8119 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_independence
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						faction_power = { faction = faction_independence power = 0.33 }
						NOT = { faction_power = { faction = faction_independence power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						15 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						35 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_independence power = 0.75 }
						NOT = { faction_power = { faction = faction_independence power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Ultimatum - Install Pretender
letter_event = {
	id = 8036
	desc = "EVTDESC8036"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_claimant }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_claimant
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000 # Give in
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_claimant
							power = 1.0
						}
					}
				}
			}			
			modifier = {
				factor = 0.001
				has_nickname = nick_the_conqueror
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_claimant }
				}
				character_event = { id = 8099 }
			}
			FROM = {
				any_faction_backer = {
					faction = faction_claimant
					letter_event = { id = 8098 }
					diplomatic_immunity = no
				}
				letter_event = { id = 8061 }
				diplomatic_immunity = no
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 95
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_claimant
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_claimant
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_claimant
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_claimant
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_claimant
						power = 4.0
					}
				}
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_claimant power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8111 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_claimant
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_claimant power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_claimant power = 0.75 }
						NOT = { faction_power = { faction = faction_claimant power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

letter_event = {
	id = 8037
	desc = "EVTDESC8037"
	
	is_triggered_only = yes
	
	ai = no
	
	option = {
		name = "EVTOPTA8037"
	}	
}

### Demand accepted events

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

# Demand accepted - seniority
letter_event = {
	id = 8055
	desc = "EVTDESC8055"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_succ_seniority_ultimatum_taken
		add_character_modifier = {
			name = faction_succ_seniority_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand accepted - primogeniture
letter_event = {
	id = 8060
	desc = "EVTDESC8060"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_succ_primogeniture_ultimatum_taken
		add_character_modifier = {
			name = faction_succ_primogeniture_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}	
}

# Demand accepted - Install Claimant
letter_event = {
	id = 8061
	desc = "EVTDESC8061"
	
	is_triggered_only = yes
	
	immediate = {
		supported_claimant = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 10
			}
			reverse_opinion = {
				modifier = opinion_fought_for_claimant
				who = ROOT
				years = 20
			}
		}
	}
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_claimant_ultimatum_taken
		supported_claimant = {
			if = {
				limit = {
					prisoner = yes
					host = { character = FROM  }
				}
				prisoner = no
			}
			ROOT = {
				supported_claimant_title = {
					# If the claimant has the wrong government type, take care of that first.
					if = {
						limit = {
							higher_tier_than = PREVPREV
							holder_scope = {
								OR = {
									is_feudal = yes
									is_tribal = yes
									is_nomadic = yes
								}
							}
							ROOT = {
								supported_claimant = {
									is_ruler = yes
									OR = {
										is_theocracy = yes
										is_republic = yes
									}
								}
							}
						}
						ROOT = { 
							supported_claimant = {
								abdicate = { move = no }
							}
						}
					}
				
					usurp_title_plus_barony_if_unlanded_and_vassals_no_adj = { target = PREVPREV type = faction_demand }
				}
			}
		}
	}
}

# Demand accepted - feudal elective
letter_event = {
	id = 8065
	desc = "EVTDESC8065"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_succ_feudal_elective_ultimatum_taken
		add_character_modifier = {
			name = faction_succ_feudal_elective_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand accepted - gavelkind
letter_event = {
	id = 8066
	desc = "EVTDESC8066"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_succ_gavelkind_ultimatum_taken
		
		add_character_modifier = {
			name = faction_succ_gavelkind_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand accepted - crown authority
letter_event = {
	id = 8067
	desc = "EVTDESC8067"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_lower_CA_ultimatum_taken
		
		add_character_modifier = {
			name = faction_lower_CA_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

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

# Demand accepted - Independence
letter_event = {
	id = 8069
	desc = "EVTDESC8069"
	
	is_triggered_only = yes
	
	immediate = {
		any_demesne_title = {
			limit = {
				controls_religion = no
				higher_tier_than = BARON
				FROM = {
					OR = { # If the old liege can use the subjugation CB, give no claims
						NOT = { religion_group = pagan_group }
						NOT = { culture_group = ROOT }
					}
				}
			}
			add_weak_pressed_claim = FROM
		}
	}
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_independence_ultimatum_taken
	}
}

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

# Demand accepted - tribal organization
letter_event = {
	id = 8071
	desc = "EVTDESC8071"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_lower_TO_ultimatum_taken
		
		add_character_modifier = {
			name = faction_lower_TO_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform faction backer - Seniority
letter_event = {
	id = 8075
	desc = "EVTDESC8075"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		add_character_modifier = {
			name = faction_succ_seniority_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Seniority
character_event = {
	id = 8076
	desc = EVTDESC8076
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Inform faction backer - Primogeniture
letter_event = {
	id = 8080
	desc = "EVTDESC8080"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_succ_primogeniture_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Primogeniture
character_event = {
	id = 8081
	desc = EVTDESC8081
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Inform faction backer - feudal elective
letter_event = {
	id = 8085
	desc = "EVTDESC8085"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_succ_feudal_elective_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - feudal elective
character_event = {
	id = 8086
	desc = EVTDESC8086
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Inform faction backer - gavelkind
letter_event = {
	id = 8090
	desc = "EVTDESC8090"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_succ_gavelkind_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Gavelkind
character_event = {
	id = 8091
	desc = EVTDESC8091
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Inform faction backer - crown authority
letter_event = {
	id = 8095
	desc = "EVTDESC8095"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_lower_CA_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Crown Authority
character_event = {
	id = 8094
	desc = EVTDESC8094
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

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

# Inform faction backer - Independence
letter_event = {
	id = 8097
	desc = "EVTDESC8097"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		any_demesne_title = {
			limit = {
				controls_religion = no
				higher_tier_than = BARON
				FROM = {
					OR = { # If the old liege can use the subjugation CB, give no claims
						NOT = { religion_group = pagan_group }
						NOT = { culture_group = ROOT }
					}
				}
			}
			add_weak_pressed_claim = FROM
		}
	}
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		opinion = {
			modifier = opinion_granted_independence
			who = FROM
			months = 120
		}
	}
}

# Inform other vassals - Independence
character_event = {
	id = 8093
	desc = "EVTDESC8093"
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Inform faction backer - Claimant Installed
letter_event = {
	id = 8098
	desc = "EVTDESC8098"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		supported_claimant = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 10
			}
			reverse_opinion = {
				modifier = opinion_fought_for_claimant
				who = ROOT
				years = 20
			}
		}
	}
	
	option = {
		name = "GOOD"
	}
}

# Inform other vassals - Claimant Installed
character_event = {
	id = 8099
	desc = "EVTDESC8099"
	
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

### 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 - seniority
letter_event = {
	id = 8105
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_succ_seniority_ultimatum_taken
		faction_succ_seniority = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = change_seniority_succession_law
				faction = faction_succ_seniority
			}
		}
	}
}

# Demand rejected - primogeniture
letter_event = {
	id = 8110
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_succ_primogeniture_ultimatum_taken
		
		faction_succ_primogeniture = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = change_primogeniture_succession_law
				faction = faction_succ_primogeniture
			}
		}
	}
}

# Demand rejected - Install Claimant
letter_event = {
	id = 8111
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	immediate = {
		supported_claimant = {
			reverse_opinion = {
				modifier = opinion_fought_for_claimant
				who = ROOT
				years = 20
			}
		}
		any_faction_backer = {
			faction = faction_claimant
			supported_claimant = {
				reverse_opinion = {
					modifier = opinion_fought_for_claimant
					who = PREV
					years = 20
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA8100"
		
		if = {
			limit = {
				supported_claimant = {
					character = ROOT
				}
			}
			faction_claimant = { # The target (title) of the faction
				reverse_war = {
					target = ROOT
					casus_belli = claim_on_liege
					faction = faction_claimant
				}
			}
		}
		
		if = {
			limit = {
				NOT = { 
					supported_claimant = {
						character = ROOT
					}
				}
			}
			faction_claimant = { # The target (title) of the faction
				reverse_war = {
					target = ROOT
					casus_belli = other_claim_on_liege
					faction = faction_claimant
				}
			}
		}
		
		clr_character_flag = faction_claimant_ultimatum_taken
		
	}
}

# Demand rejected - tribal organization
letter_event = {
	id = 8114
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_lower_TO_ultimatum_taken
		
		faction_lower_tribal_organization = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = lower_tribal_organization_law
				faction = faction_lower_tribal_organization
			}
		}
	}
}

# Demand rejected - feudal elective
letter_event = {
	id = 8115
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_succ_feudal_elective_ultimatum_taken
		
		faction_succ_feudal_elective = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = change_feudal_elective_succession_law
				faction = faction_succ_feudal_elective
			}
		}
	}
}

# Demand rejected - gavelkind
letter_event = {
	id = 8116
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_succ_gavelkind_ultimatum_taken
		
		faction_succ_gavelkind = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = change_gavelkind_succession_law
				faction = faction_succ_gavelkind
			}
		}
	}
}

# Demand rejected - crown authority
letter_event = {
	id = 8117
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_lower_CA_ultimatum_taken
		
		faction_lower_crown_authority = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = lower_crown_authority_law
				faction = faction_lower_crown_authority
			}
		}
	}
}

# 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
	}
}

# Demand rejected - Independence
letter_event = {
	id = 8119
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_independence_ultimatum_taken
		
		war = {
			target = FROM
			casus_belli = cb_faction_independence
			faction = faction_independence
		}
	}
}

# 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
		}
	}
}

### Murder Plot Events ###
#
# 8150-8299

# POISONED WINE - ADULTS ONLY

# The plotter sees an opportunity - Poisoned Wine
character_event = {
	id = 8150
	desc = "EVTDESC8150"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			OR = {
				NOT = { religion_group = muslim }
				trait = decadent
				trait = hedonist
				trait = drunkard
			}
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8150" # The conspirators provide the poison
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8162 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8155 days = 30 tooltip = "EVTTOOLTIP8155" } }
	}
	option = {
		name = "EVTOPTB8150" # Buy the poison
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8162 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8155 days = 30 tooltip = "EVTTOOLTIP8155" } }
	}
	option = {
		name = "EVTOPTB8150" # Buy the poison
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8162 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8155 days = 30 tooltip = "EVTTOOLTIP8155" } }
	}
	option = {
		name = "EVTOPTC8150" # Hemlock goes well with the Red...
		tooltip_info = learning
		trigger = {
			plot_power = 0.5
			learning = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8162 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8155 days = 30 tooltip = "EVTTOOLTIP8155" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Poisoned Wine
character_event = {
	id = 8151
	desc = EVTDESC8151
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 4200
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					prisoner = no
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA8150" # The conspirators provide the poison
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 8160 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 8152 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB8150" # Buy the poison
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 8160 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC8150" # Hemlock goes well with the Red...
		tooltip_info = learning
		trigger = {
			learning = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 8160 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Poisoned Wine - Plot backer requests funds
character_event = {
	id = 8152
	desc = "EVTDESC8152"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8152"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 8153 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 8154 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Poisoned Wine - plot backer receives funds
character_event = {
	id = 8153
	desc = "EVTDESC8153"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 8155 days = 27 tooltip = "EVTTOOLTIP8155" } }
	}
}

# Poisoned Wine - plot backer does NOT receive funds
character_event = {
	id = 8154
	desc = "EVTDESC8154"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 8155 days = 27 tooltip = "EVTTOOLTIP8155" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Poisoned Wine - the murder attempt
character_event = {
	id = 8155
	desc = EVTDESC8155
	picture = GFX_evt_feast
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	trigger = {
		prisoner = no
		
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	option = {
		name = "EVTOPTA8155" # Drinks the wine
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = temperate
						random = 50
					}
					AND = {
						trait = gluttonous
						random = 90
					}
					AND = {
						NOT = { trait = temperate }
						NOT = { trait = gluttonous }
						NOT = { trait = paranoid }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8163 days = 1 } }
						FROMFROM = { character_event = { id = 8163 days = 1 } }
					}
					character_event = { id = 8156 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8164 days = 1 } }
						FROMFROM = { character_event = { id = 8164 days = 1 } }
					}
					character_event = { id = 8157 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB8155" # Discovers the poison
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = temperate
					random = 50
				}
				AND = {
					trait = gluttonous
					random = 90
				}
				AND = {
					NOT = { trait = temperate }
					NOT = { trait = gluttonous }
					NOT = { trait = paranoid }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8165 days = 1 } }
						FROMFROM = { character_event = { id = 8165 days = 1 } }
					}
					character_event = { id = 8158 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8166 days = 1 } }
						FROMFROM = { character_event = { id = 8166 days = 1 } }
					}
					character_event = { id = 8159 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Poisoned Wine - Dies, murderer(s) discovered
character_event = {
	id = 8156
	desc = EVTDESC8156
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8156
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_poison
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_poison
				killer = FROMFROM
			}
		}
	}
}

# Poisoned Wine - Dies, murderer NOT discovered
character_event = {
	id = 8157
	desc = "EVTDESC8157"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8157"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_poison
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_poison
				killer = FROMFROM
			}
		}
	}
}

# Poisoned Wine - Lives, murderer discovered
character_event = {
	id = 8158
	desc = "EVTDESC8158"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8158"
	}
}

# Poisoned Wine - Lives, murderer NOT discovered
character_event = {
	id = 8159
	desc = "EVTDESC8159"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8159"
	}
}

# Poisoned Wine - Backer informs Plotter of plan
character_event = {
	id = 8160
	desc = "EVTDESC8160"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8160"
		FROM = { character_event = { id = 8161 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 8162 days = 1 }
			}
		}
	}
}

# Poisoned Wine - Plotter tells backer to go ahead
character_event = {
	id = 8161
	desc = "EVTDESC8161"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 8155 days = 27 tooltip = "EVTTOOLTIP8155" } }
	}
}

# Poisoned Wine - Initiator informs other plotter
character_event = {
	id = 8162
	desc = "EVTDESC8162"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Poisoned Wine - Notification: Success, but discovered
character_event = {
	id = 8163
	desc = EVTDESC8163
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Poisoned Wine - Notification: Success, and NOT discovered
character_event = {
	id = 8164
	desc = "EVTDESC8164"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8164"
	}
}

# Poisoned Wine - Notification: Failure, and discovered
character_event = {
	id = 8165
	desc = "EVTDESC8165"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA8165"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Poisoned Wine - Notification: Failure, but NOT discovered
character_event = {
	id = 8166
	desc = "EVTDESC8166"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}


# FALLING ACCIDENT - CHILDREN ONLY

# Falling accident - The plotter sees an opportunity
character_event = {
	id = 8170
	desc = "EVTDESC8170"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			NOT = { age = 16 }
			prisoner = no
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8170" # The conspirators provide the poison
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8182 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8175 days = 30 tooltip = "EVTTOOLTIP8175" } }
	}
	option = {
		name = "EVTOPTB8170" # Bribe a Guard
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8182 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8175 days = 30 tooltip = "EVTTOOLTIP8175" } }
	}
	option = {
		name = "EVTOPTB8170" # Bribe a Guard
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8182 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8175 days = 30 tooltip = "EVTTOOLTIP8175" } }
	}
	option = {
		name = "EVTOPTC8170" # I know just the person for the job...
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 8182 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 8175 days = 30 tooltip = "EVTTOOLTIP8175" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# Falling Accident - A plot backer sees an opportunity
character_event = {
	id = 8171
	desc = "EVTDESC8171"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				NOT = { age = 16 }
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					NOT = { age = 16 }
					prisoner = no
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA8170" # The conspirators provide a killer
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 8180 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8171" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 8172 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB8170" # Bribe a Guard
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 8180 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC8170" # I know just the person for the job...
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 8180 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Falling Accident - Plot backer requests funds
character_event = {
	id = 8172
	desc = "EVTDESC8172"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8172"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 8173 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 8174 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Falling Accident - plot backer receives funds
character_event = {
	id = 8173
	desc = "EVTDESC8173"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 8175 days = 27 tooltip = "EVTTOOLTIP8175" } }
	}
}

# Falling Accident - plot backer does NOT receive funds
character_event = {
	id = 8174
	desc = "EVTDESC8174"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 8175 days = 27 tooltip = "EVTTOOLTIP8175" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Falling Accident - the murder attempt
character_event = {
	id = 8175
	desc = "EVTDESC8175"
	picture = GFX_evt_feast
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		prisoner = no
		
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA8175" # Falls
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = paranoid }
						NOT = { trait = trusting }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8183 days = 1 } }
						FROMFROM = { character_event = { id = 8183 days = 1 } }
					}
					character_event = { id = 8176 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8184 days = 1 } }
						FROMFROM = { character_event = { id = 8184 days = 1 } }
					}
					character_event = { id = 8177 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB8175" # Dodges
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8185 days = 1 } }
						FROMFROM = { character_event = { id = 8185 days = 1 } }
					}
					character_event = { id = 8178 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 8186 days = 1 } }
						FROMFROM = { character_event = { id = 8186 days = 1 } }
					}
					character_event = { id = 8179 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Falling Accident - Dies, murderer(s) discovered
character_event = {
	id = 8176
	desc = "EVTDESC8176"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8176"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROM
			}
		}
	}
	
}

# Falling Accident - Dies, murderer NOT discovered
character_event = {
	id = 8177
	desc = "EVTDESC8176"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8177"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROM
			}
		}
	}
}

# Falling Accident - Lives, murderer discovered
character_event = {
	id = 8178
	desc = "EVTDESC8178"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8178"
	}
}

# Falling Accident - Lives, murderer NOT discovered
character_event = {
	id = 8179
	desc = "EVTDESC8179"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8179"
		if = {
			limit = {
				NOT = { trait = paranoid }
				NOT = { trait = trusting }
			}
			random = {
				chance = 25
				add_trait = paranoid
			}
		}
		if = {
			limit = {
				trait = trusting
			}
			random = {
				chance = 50
				remove_trait = trusting
			}
		}
	}
}

# Falling Accident - Backer informs Plotter of plan
character_event = {
	id = 8180
	desc = "EVTDESC8180"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8180"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 8181 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 8182 days = 1 }
			}
		}
	}
}

# Falling Accident - Plotter tells backer to go ahead
character_event = {
	id = 8181
	desc = "EVTDESC8181"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 8175 days = 27 tooltip = "EVTTOOLTIP8175" } }
	}
}

# Falling Accident - Initiator informs other plotter
character_event = {
	id = 8182
	desc = "EVTDESC8182"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8180"
	}
}

# Falling Accident - Notification: Success, but discovered
character_event = {
	id = 8183
	desc = "EVTDESC8183"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Falling Accident - Notification: Success, and NOT discovered
character_event = {
	id = 8184
	desc = "EVTDESC8184"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8184"
	}
}

# Falling Accident - Notification: Failure, and discovered
character_event = {
	id = 8185
	desc = "EVTDESC8185"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA8185"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Falling Accident - Notification: Failure, but NOT discovered
character_event = {
	id = 8186
	desc = "EVTDESC8186"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}


###########################################
# 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
			}
		}
	}
}

### ARCHER AMBUSH - RULERS ONLY
# The plotter sees an opportunity - Archer Ambush
character_event = {
	id = 7700
	desc = "EVTDESC7700"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			is_ruler = yes
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			prisoner = no
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7700" # The conspirators provide the archers
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7712 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7705 days = 30 tooltip = "EVTTOOLTIP7705" } }
	}
	option = {
		name = "EVTOPTB7700" # Hire archers
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { martial = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7712 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7705 days = 30 tooltip = "EVTTOOLTIP7705" } }
	}
	option = {
		name = "EVTOPTB7700" # Hire archers
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { martial = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7712 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7705 days = 30 tooltip = "EVTTOOLTIP7705" } }
	}
	option = {
		name = "EVTOPTC7700" # Knows good archers
		tooltip_info = martial
		trigger = {
			plot_power = 0.5
			martial = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7712 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7705 days = 30 tooltip = "EVTTOOLTIP7705" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { martial = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Archer Ambush
character_event = {
	id = 7701
	desc = "EVTDESC7701"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				is_ruler = yes
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				prisoner = no
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					is_ruler = yes
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
					prisoner = no
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7700" # The conspirators provide the archers
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7710 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { martial = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7702 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7700" # Hire archers
		trigger = {
			NOT = { martial = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7710 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7700" # Knows good archers
		tooltip_info = martial
		trigger = {
			martial = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7710 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { martial = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Archer Ambush - Plot backer requests funds
character_event = {
	id = 7702
	desc = "EVTDESC7702"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7702"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7703 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7704 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Archer Ambush - plot backer receives funds
character_event = {
	id = 7703
	desc = "EVTDESC7703"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7705 days = 27 tooltip = "EVTTOOLTIP7705" } }
	}
}

# Archer Ambush - plot backer does NOT receive funds
character_event = {
	id = 7704
	desc = "EVTDESC7704"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7705 days = 27 tooltip = "EVTTOOLTIP7705" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Archer Ambush - the murder attempt
character_event = {
	id = 7705
	desc = "EVTDESC7705"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7705" # Hit by arrows
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = craven
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = craven }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7713 days = 1 } }
						FROMFROM = { character_event = { id = 7713 days = 1 } }
					}
					character_event = { id = 7706 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7714 days = 1 } }
						FROMFROM = { character_event = { id = 7714 days = 1 } }
					}
					character_event = { id = 7707 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7705" # Avoids arrows
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = craven
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = craven }
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7715 days = 1 } }
						FROMFROM = { character_event = { id = 7715 days = 1 } }
					}
					character_event = { id = 7708 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7716 days = 1 } }
						FROMFROM = { character_event = { id = 7716 days = 1 } }
					}
					character_event = { id = 7709 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Archer Ambush - Dies, murderer(s) discovered
character_event = {
	id = 7706
	desc = "EVTDESC7706"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7706"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_arrow
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_arrow
				killer = FROMFROM
			}
		}
	}
	
}

# Archer Ambush - Dies, murderer NOT discovered
character_event = {
	id = 7707
	desc = "EVTDESC7706"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7707"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_arrow
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_arrow
				killer = FROMFROM
			}
		}
	}
}

# Archer Ambush - Lives, murderer discovered
character_event = {
	id = 7708
	desc = "EVTDESC7708"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7708"
	}
}

# Archer Ambush - Lives, murderer NOT discovered
character_event = {
	id = 7709
	desc = "EVTDESC7708"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7709"
	}
}

# Archer Ambush - Backer informs Plotter of plan
character_event = {
	id = 7710
	desc = "EVTDESC7710"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7710"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7711 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7712 days = 1 }
			}
		}
	}
}

# Archer Ambush - Plotter tells backer to go ahead
character_event = {
	id = 7711
	desc = "EVTDESC7711"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7705 days = 27 tooltip = "EVTTOOLTIP7705" } }
	}
}

# Archer Ambush - Initiator informs other plotter
character_event = {
	id = 7712
	desc = {
		trigger = {
			event_target:plot_target = {
				NOT = {
					is_inaccessible_trigger = yes
				}
			}
		}
		text = EVTDESC7712
	}
	desc = {
		trigger = {
			event_target:plot_target = {
				is_inaccessible_trigger = yes
			}
		}
		text = EVTDESC7712_B
	}
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Archer Ambush - Notification: Success, but discovered
character_event = {
	id = 7713
	desc = "EVTDESC7713"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Archer Ambush - Notification: Success, and NOT discovered
character_event = {
	id = 7714
	desc = "EVTDESC7714"
	picture = GFX_evt_longbowman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7714"
	}
}

# Archer Ambush - Notification: Failure, and discovered
character_event = {
	id = 7715
	desc = "EVTDESC7715"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7715"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Archer Ambush - Notification: Failure, but NOT discovered
character_event = {
	id = 7716
	desc = "EVTDESC7716"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### MANURE EXPLOSION
# The plotter sees an opportunity - Manure Explosion
character_event = {
	id = 7720
	desc = "EVTDESC7720"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			prisoner = no
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7720" # The conspirators provide the manure
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7732 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7725 days = 30 tooltip = "EVTTOOLTIP7725" } }
	}
	option = {
		name = "EVTOPTB7720" # Buy the manure
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { stewardship = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7732 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7725 days = 30 tooltip = "EVTTOOLTIP7725" } }
	}
	option = {
		name = "EVTOPTB7720" # Buy the manure
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { stewardship = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7732 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7725 days = 30 tooltip = "EVTTOOLTIP7725" } }
	}
	option = {
		name = "EVTOPTC7720" # Knows farmer
		tooltip_info = stewardship
		trigger = {
			plot_power = 0.5
			stewardship = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7732 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7725 days = 30 tooltip = "EVTTOOLTIP7725" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { stewardship = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Manure Explosion
character_event = {
	id = 7721
	desc = "EVTDESC7721"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					prisoner = no
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7720" # The conspirators provide the manure
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7730 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { stewardship = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7722 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7720" # Buy the manure
		trigger = {
			NOT = { stewardship = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7730 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7720" # Knows farmer
		tooltip_info = stewardship
		trigger = {
			stewardship = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7730 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { stewardship = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Manure Explosion - Plot backer requests funds
character_event = {
	id = 7722
	desc = "EVTDESC7722"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7722"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7723 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7724 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Manure Explosion - plot backer receives funds
character_event = {
	id = 7723
	desc = "EVTDESC7723"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7725 days = 27 tooltip = "EVTTOOLTIP7725" } }
	}
}

# Manure Explosion - plot backer does NOT receive funds
character_event = {
	id = 7724
	desc = "EVTDESC7724"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7725 days = 27 tooltip = "EVTTOOLTIP7725" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Manure Explosion - the murder attempt
character_event = {
	id = 7725
	desc = "EVTDESC7725"
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7725" # Blown up
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = diligent }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7733 days = 1 } }
						FROMFROM = { character_event = { id = 7733 days = 1 } }
					}
					character_event = { id = 7726 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7734 days = 1 } }
						FROMFROM = { character_event = { id = 7734 days = 1 } }
					}
					character_event = { id = 7727 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7725" # Not blown up
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7735 days = 1 } }
						FROMFROM = { character_event = { id = 7735 days = 1 } }
					}
					character_event = { id = 7728 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7736 days = 1 } }
						FROMFROM = { character_event = { id = 7736 days = 1 } }
					}
					character_event = { id = 7729 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Manure Explosion - Dies, murderer(s) discovered
character_event = {
	id = 7726
	desc = "EVTDESC7726"
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7726"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder
				killer = FROMFROM
			}
		}
	}
}

# Manure Explosion - Dies, murderer NOT discovered
character_event = {
	id = 7727
	desc = "EVTDESC7726"
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7727"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROM
			}
		}
	}
}

# Manure Explosion - Lives, murderer discovered
character_event = {
	id = 7728
	desc = "EVTDESC7728"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7728"
	}
}

# Manure Explosion - Lives, murderer NOT discovered
character_event = {
	id = 7729
	desc = "EVTDESC7729"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7729"
	}
}

# Manure Explosion - Backer informs Plotter of plan
character_event = {
	id = 7730
	desc = "EVTDESC7730"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7730"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7731 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7732 days = 1 }
			}
		}
	}
}

# Manure Explosion - Plotter tells backer to go ahead
character_event = {
	id = 7731
	desc = "EVTDESC7731"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7725 days = 27 tooltip = "EVTTOOLTIP7725" } }
	}
}

# Manure Explosion - Initiator informs other plotter
character_event = {
	id = 7732
	desc = "EVTDESC7732"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Manure Explosion - Notification: Success, but discovered
character_event = {
	id = 7733
	desc = "EVTDESC7733"
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Manure Explosion - Notification: Success, and NOT discovered
character_event = {
	id = 7734
	desc = "EVTDESC7734"
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7734"
	}
}

# Manure Explosion - Notification: Failure, and discovered
character_event = {
	id = 7735
	desc = "EVTDESC7735"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7735"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Manure Explosion - Notification: Failure, but NOT discovered
character_event = {
	id = 7736
	desc = "EVTDESC7736"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### INFANTICIDE - INFANTS ONLY
# The plotter sees an opportunity - Infanticide
character_event = {
	id = 7740
	desc = "EVTDESC7740"
	picture = GFX_evt_birth
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { age = 5 }
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7740" # The conspirators bribe the maid
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7752 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7745 days = 30 tooltip = "EVTTOOLTIP7745" } }
	}
	option = {
		name = "EVTOPTB7740" # Bribe maid
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7752 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7745 days = 30 tooltip = "EVTTOOLTIP7745" } }
	}
	option = {
		name = "EVTOPTB7740" # Bribe maid
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7752 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7745 days = 30 tooltip = "EVTTOOLTIP7745" } }
	}
	option = {
		name = "EVTOPTC7740" # Knows maid
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7752 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7745 days = 30 tooltip = "EVTTOOLTIP7745" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Infanticide
character_event = {
	id = 7741
	desc = "EVTDESC7741"
	picture = GFX_evt_birth
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				NOT = { age = 5 }
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					NOT = { age = 5 }
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7740" # The conspirators bribe the maid
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7750 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7742 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7740" # Bribe maid
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7750 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7740" # Knows maid
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7750 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Infanticide - Plot backer requests funds
character_event = {
	id = 7742
	desc = "EVTDESC7742"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7742"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7743 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7744 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Infanticide - plot backer receives funds
character_event = {
	id = 7743
	desc = "EVTDESC7743"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7745 days = 27 tooltip = "EVTTOOLTIP7745" } }
	}
}

# Infanticide - plot backer does NOT receive funds
character_event = {
	id = 7744
	desc = "EVTDESC7744"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7745 days = 27 tooltip = "EVTTOOLTIP7745" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Infanticide - the murder attempt
character_event = {
	id = 7745
	desc = "EVTDESC7745"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7745" # Smothered
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = brave
						random = 33
					}
					AND = {
						trait = gregarious
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = brave }
						NOT = { trait = trusting }
						NOT = { trait = gregarious }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7753 days = 1 } }
						FROMFROM = { character_event = { id = 7753 days = 1 } }
					}
					character_event = { id = 7746 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7754 days = 1 } }
						FROMFROM = { character_event = { id = 7754 days = 1 } }
					}
					character_event = { id = 7747 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7745" # Not smothered
		trigger = {
			OR = {
				AND = {
					trait = brave
					random = 33
				}
				AND = {
					trait = gregarious
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = gregarious }
					NOT = { trait = trusting }
					NOT = { trait = brave }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7755 days = 1 } }
						FROMFROM = { character_event = { id = 7755 days = 1 } }
					}
					character_event = { id = 7748 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7756 days = 1 } }
						FROMFROM = { character_event = { id = 7756 days = 1 } }
					}
					character_event = { id = 7749 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Infanticide - Dies, murderer(s) discovered
character_event = {
	id = 7746
	desc = "EVTDESC7746"
	picture = GFX_evt_family
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7746"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder
				killer = FROMFROM
			}
		}
	}
	
}

# Infanticide - Dies, murderer NOT discovered
character_event = {
	id = 7747
	desc = "EVTDESC7746"
	picture = GFX_evt_family
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7747"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROM
			}
		}
	}
}

# Infanticide - Lives, murderer discovered
character_event = {
	id = 7748
	desc = "EVTDESC7748"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7748"
	}
}

# Infanticide - Lives, murderer NOT discovered
character_event = {
	id = 7749
	desc = "EVTDESC7748"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7749"
	}
}

# Infanticide - Backer informs Plotter of plan
character_event = {
	id = 7750
	desc = "EVTDESC7750"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7750"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7751 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7752 days = 1 }
			}
		}
	}
}

# Infanticide - Plotter tells backer to go ahead
character_event = {
	id = 7751
	desc = "EVTDESC7751"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7745 days = 27 tooltip = "EVTTOOLTIP7745" } }
	}
}

# Infanticide - Initiator informs other plotter
character_event = {
	id = 7752
	desc = "EVTDESC7752"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Infanticide - Notification: Success, but discovered
character_event = {
	id = 7753
	desc = "EVTDESC7753"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Infanticide - Notification: Success, and NOT discovered
character_event = {
	id = 7754
	desc = "EVTDESC7754"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7754"
	}
}

# Infanticide - Notification: Failure, and discovered
character_event = {
	id = 7755
	desc = "EVTDESC7755"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7755"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Infanticide - Notification: Failure, but NOT discovered
character_event = {
	id = 7756
	desc = "EVTDESC7756"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### PRISON BREAK - PRISONERS ONLY
# The plotter sees an opportunity - Prison Break
character_event = {
	id = 7760
	desc = "EVTDESC7760"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			prisoner = yes
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	option = {
		name = "EVTOPTA7760" # The conspirators get the man inside
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7772 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7765 days = 30 tooltip = "EVTTOOLTIP7765" } }
	}
	option = {
		name = "EVTOPTB7760" # Hire killer
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7772 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7765 days = 30 tooltip = "EVTTOOLTIP7765" } }
	}
	option = {
		name = "EVTOPTB7760" # Hire killer
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7772 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7765 days = 30 tooltip = "EVTTOOLTIP7765" } }
	}
	option = {
		name = "EVTOPTC7760" # Knows the man for the job
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7772 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7765 days = 30 tooltip = "EVTTOOLTIP7765" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Prison Break
character_event = {
	id = 7761
	desc = "EVTDESC7761"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				prisoner = yes
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					prisoner = yes
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7760" # The conspirators get the man inside
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7770 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7762 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7760" # Hire killer
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7770 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7760" # Knows the man for the job
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7770 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Prison Break - Plot backer requests funds
character_event = {
	id = 7762
	desc = "EVTDESC7762"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7762"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7763 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7764 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Prison Break - plot backer receives funds
character_event = {
	id = 7763
	desc = "EVTDESC7763"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7765 days = 27 tooltip = "EVTTOOLTIP7765" } }
	}
}

# Prison Break - plot backer does NOT receive funds
character_event = {
	id = 7764
	desc = "EVTDESC7764"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7765 days = 27 tooltip = "EVTTOOLTIP7765" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Prison Break - the murder attempt
character_event = {
	id = 7765
	desc = "EVTDESC7765"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7765" # Tries to escape
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = craven
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = craven }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7773 days = 1 } }
						FROMFROM = { character_event = { id = 7773 days = 1 } }
					}
					character_event = { id = 7766 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7774 days = 1 } }
						FROMFROM = { character_event = { id = 7774 days = 1 } }
					}
					character_event = { id = 7767 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7765" # Does not try to escape
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = craven
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = craven }
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7775 days = 1 } }
						FROMFROM = { character_event = { id = 7775 days = 1 } }
					}
					character_event = { id = 7768 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7776 days = 1 } }
						FROMFROM = { character_event = { id = 7776 days = 1 } }
					}
					character_event = { id = 7769 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Prison Break - Dies, murderer(s) discovered
character_event = {
	id = 7766
	desc = "EVTDESC7766"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7766"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROM
			}
		}
	}
	
}

# Prison Break - Dies, murderer NOT discovered
character_event = {
	id = 7767
	desc = "EVTDESC7766"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7767"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROM
			}
		}
	}
}

# Prison Break - Lives, murderer discovered
character_event = {
	id = 7768
	desc = "EVTDESC7768"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7768"
	}
}

# Prison Break - Lives, murderer NOT discovered
character_event = {
	id = 7769
	desc = "EVTDESC7769"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7769"
	}
}

# Prison Break - Backer informs Plotter of plan
character_event = {
	id = 7770
	desc = "EVTDESC7770"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7770"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7771 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7772 days = 1 }
			}
		}
	}
}

# Prison Break - Plotter tells backer to go ahead
character_event = {
	id = 7771
	desc = "EVTDESC7771"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7765 days = 27 tooltip = "EVTTOOLTIP7765" } }
	}
}

# Prison Break - Initiator informs other plotter
character_event = {
	id = 7772
	desc = "EVTDESC7772"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Prison Break - Notification: Success, but discovered
character_event = {
	id = 7773
	desc = "EVTDESC7773"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Prison Break - Notification: Success, and NOT discovered
character_event = {
	id = 7774
	desc = "EVTDESC7774"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7774"
	}
}

# Prison Break - Notification: Failure, and discovered
character_event = {
	id = 7775
	desc = "EVTDESC7775"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
	
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7775"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Prison Break - Notification: Failure, but NOT discovered
character_event = {
	id = 7776
	desc = "EVTDESC7776"
	picture = GFX_evt_into_the_dungeon
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### BATHTUB DROWNING - INCAPABLE ONLY
# The plotter sees an opportunity - Bathtub Drowning
character_event = {
	id = 7780
	desc = "EVTDESC7780"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			trait = incapable
			NOT = { is_inaccessible_trigger = yes }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7780" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7792 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7785 days = 30 tooltip = "EVTTOOLTIP7785" } }
	}
	option = {
		name = "EVTOPTB7780" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7792 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7785 days = 30 tooltip = "EVTTOOLTIP7785" } }
	}
	option = {
		name = "EVTOPTB7780" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7792 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7785 days = 30 tooltip = "EVTTOOLTIP7785" } }
	}
	option = {
		name = "EVTOPTC7780" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7792 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7785 days = 30 tooltip = "EVTTOOLTIP7785" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Bathtub Drowning
character_event = {
	id = 7781
	desc = "EVTDESC7781"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				trait = incapable
				NOT = { is_inaccessible_trigger = yes }
				prisoner = no
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					trait = incapable
					NOT = { is_inaccessible_trigger = yes }
					prisoner = no
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7780" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7790 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7782 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7780" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plotter = {
			character_event = { id = 7790 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7780" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7790 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Bathtub Drowning - Plot backer requests funds
character_event = {
	id = 7782
	desc = "EVTDESC7782"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7782"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7783 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7784 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Bathtub Drowning - plot backer receives funds
character_event = {
	id = 7783
	desc = "EVTDESC7783"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7785 days = 27 tooltip = "EVTTOOLTIP7785" } }
	}
}

# Bathtub Drowning - plot backer does NOT receive funds
character_event = {
	id = 7784
	desc = "EVTDESC7784"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7785 days = 27 tooltip = "EVTTOOLTIP7785" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Bathtub Drowning - the murder attempt
character_event = {
	id = 7785
	desc = "EVTDESC7785"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7785" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						is_strong_trigger = yes
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						is_weak_trigger = yes
						random = 90
					}
					AND = {
						NOT = { trait = diligent }
						is_weak_trigger = no
						is_strong_trigger = no
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7793 days = 1 } }
						FROMFROM = { character_event = { id = 7793 days = 1 } }
					}
					character_event = { id = 7786 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7794 days = 1 } }
						FROMFROM = { character_event = { id = 7794 days = 1 } }
					}
					character_event = { id = 7787 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7785" # Does not drown
		trigger = {
			OR = {
				AND = {
					is_strong_trigger = yes
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					is_weak_trigger = yes
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					is_weak_trigger = no
					is_strong_trigger = no
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7795 days = 1 } }
						FROMFROM = { character_event = { id = 7795 days = 1 } }
					}
					character_event = { id = 7788 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7796 days = 1 } }
						FROMFROM = { character_event = { id = 7796 days = 1 } }
					}
					character_event = { id = 7789 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Bathtub Drowning - Dies, murderer(s) discovered
character_event = {
	id = 7786
	desc = "EVTDESC7786"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7786"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_drowning
				killer = FROMFROMFROM
			}
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_drowning
				killer = FROMFROM
			}
		}
	}
	
}

# Bathtub Drowning - Dies, murderer NOT discovered
character_event = {
	id = 7787
	desc = "EVTDESC7786"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7787"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_drowning
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_drowning
				killer = FROMFROM
			}
		}
	}
}

# Bathtub Drowning - Lives, murderer discovered
character_event = {
	id = 7788
	desc = "EVTDESC7788"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7788"
	}
}

# Bathtub Drowning - Lives, murderer NOT discovered
character_event = {
	id = 7789
	desc = "EVTDESC7789"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7789"
	}
}

# Bathtub Drowning - Backer informs Plotter of plan
character_event = {
	id = 7790
	desc = "EVTDESC7790"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7790"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7791 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7792 days = 1 }
			}
		}
	}
}

# Bathtub Drowning - Plotter tells backer to go ahead
character_event = {
	id = 7791
	desc = "EVTDESC7791"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7785 days = 27 tooltip = "EVTTOOLTIP7785" } }
	}
}

# Bathtub Drowning - Initiator informs other plotter
character_event = {
	id = 7792
	desc = "EVTDESC7792"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Bathtub Drowning - Notification: Success, but discovered
character_event = {
	id = 7793
	desc = "EVTDESC7793"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Bathtub Drowning - Notification: Success, and NOT discovered
character_event = {
	id = 7794
	desc = "EVTDESC7794"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7794"
	}
}

# Bathtub Drowning - Notification: Failure, and discovered
character_event = {
	id = 7795
	desc = "EVTDESC7795"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
	
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7795"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Bathtub Drowning - Notification: Failure, but NOT discovered
character_event = {
	id = 7796
	desc = "EVTDESC7796"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### BOATING ACCIDENT - CHILDREN ONLY
# The plotter sees an opportunity - Boating Accident
character_event = {
	id = 7800
	desc = "EVTDESC7800"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			NOT = { age = 16 }
			NOT = { trait = incapable }
			NOT = { is_inaccessible_trigger = yes }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7800" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7812 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7805 days = 30 tooltip = "EVTTOOLTIP7805" } }
	}
	option = {
		name = "EVTOPTB7800" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7812 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7805 days = 30 tooltip = "EVTTOOLTIP7805" } }
	}
	option = {
		name = "EVTOPTB7800" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7812 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7805 days = 30 tooltip = "EVTTOOLTIP7805" } }
	}
	option = {
		name = "EVTOPTC7800" # Replace with own servants
		tooltip_info = learning
		trigger = {
			plot_power = 0.5
			learning = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7812 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7805 days = 30 tooltip = "EVTTOOLTIP7805" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Boating Accident
character_event = {
	id = 7801
	desc = "EVTDESC7801"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				NOT = { age = 16 }
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				prisoner = no
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					NOT = { age = 16 }
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
					prisoner = no
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7800" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7810 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7802 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7800" # Bribe servants
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7810 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7800" # Replace with own servants
		tooltip_info = learning
		trigger = {
			learning = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7810 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Boating Accident - Plot backer requests funds
character_event = {
	id = 7802
	desc = "EVTDESC7802"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7802"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7803 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7804 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Boating Accident - plot backer receives funds
character_event = {
	id = 7803
	desc = "EVTDESC7803"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7805 days = 27 tooltip = "EVTTOOLTIP7805" } }
	}
}

# Boating Accident - plot backer does NOT receive funds
character_event = {
	id = 7804
	desc = "EVTDESC7804"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7805 days = 27 tooltip = "EVTTOOLTIP7805" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Boating Accident - the murder attempt
character_event = {
	id = 7805
	desc = "EVTDESC7805"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7805" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = diligent }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7813 days = 1 } }
						FROMFROM = { character_event = { id = 7813 days = 1 } }
					}
					character_event = { id = 7806 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7814 days = 1 } }
						FROMFROM = { character_event = { id = 7814 days = 1 } }
					}
					character_event = { id = 7807 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7805" # Does not drown
		trigger = {
			OR = {
				AND = {
					is_strong_trigger = yes
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					is_weak_trigger = yes
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					is_weak_trigger = no
					is_strong_trigger = no
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7815 days = 1 } }
						FROMFROM = { character_event = { id = 7815 days = 1 } }
					}
					character_event = { id = 7808 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7816 days = 1 } }
						FROMFROM = { character_event = { id = 7816 days = 1 } }
					}
					character_event = { id = 7809 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Boating Accident - Dies, murderer(s) discovered
character_event = {
	id = 7806
	desc = "EVTDESC7806"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7806"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_drowning
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_drowning
				killer = FROMFROM
			}
		}
	}
	
}

# Boating Accident - Dies, murderer NOT discovered
character_event = {
	id = 7807
	desc = "EVTDESC7806"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7807"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_drowning
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_drowning
				killer = FROMFROM
			}
		}
	}
}

# Boating Accident - Lives, murderer discovered
character_event = {
	id = 7808
	desc = "EVTDESC7808"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7808"
	}
}

# Boating Accident - Lives, murderer NOT discovered
character_event = {
	id = 7809
	desc = "EVTDESC7808"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7809"
	}
}

# Boating Accident - Backer informs Plotter of plan
character_event = {
	id = 7810
	desc = "EVTDESC7810"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7810"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7811 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7812 days = 1 }
			}
		}
	}
}

# Boating Accident - Plotter tells backer to go ahead
character_event = {
	id = 7811
	desc = "EVTDESC7811"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7805 days = 27 tooltip = "EVTTOOLTIP7805" } }
	}
}

# Boating Accident - Initiator informs other plotter
character_event = {
	id = 7812
	desc = "EVTDESC7812"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Boating Accident - Notification: Success, but discovered
character_event = {
	id = 7813
	desc = "EVTDESC7813"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Boating Accident - Notification: Success, and NOT discovered
character_event = {
	id = 7814
	desc = "EVTDESC7814"
	picture = GFX_evt_kraken
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7814"
	}
}

# Boating Accident - Notification: Failure, and discovered
character_event = {
	id = 7815
	desc = "EVTDESC7815"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7815"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Boating Accident - Notification: Failure, but NOT discovered
character_event = {
	id = 7816
	desc = "EVTDESC7816"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### POISONOUS SNAKE
# The plotter sees an opportunity - Poisonous Snake
character_event = {
	id = 7820
	desc = "EVTDESC7820"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7820" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7832 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7825 days = 30 tooltip = "EVTTOOLTIP7825" } }
	}
	option = {
		name = "EVTOPTB7820" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7832 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7825 days = 30 tooltip = "EVTTOOLTIP7825" } }
	}
	option = {
		name = "EVTOPTB7820" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { learning = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7832 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7825 days = 30 tooltip = "EVTTOOLTIP7825" } }
	}
	option = {
		name = "EVTOPTC7820" # Replace with own servants
		tooltip_info = learning
		trigger = {
			plot_power = 0.5
			learning = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7832 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7825 days = 30 tooltip = "EVTTOOLTIP7825" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Poisonous Snake
character_event = {
	id = 7821
	desc = "EVTDESC7821"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7820" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7830 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7822 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7820" # Bribe servants
		trigger = {
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7830 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7820" # Replace with own servants
		tooltip_info = learning
		trigger = {
			learning = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7830 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { learning = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Poisonous Snake - Plot backer requests funds
character_event = {
	id = 7822
	desc = "EVTDESC7822"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7822"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7823 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7824 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Poisonous Snake - plot backer receives funds
character_event = {
	id = 7823
	desc = "EVTDESC7823"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7825 days = 27 tooltip = "EVTTOOLTIP7825" } }
	}
}

# Poisonous Snake - plot backer does NOT receive funds
character_event = {
	id = 7824
	desc = "EVTDESC7824"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7825 days = 27 tooltip = "EVTTOOLTIP7825" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Poisonous Snake - the murder attempt
character_event = {
	id = 7825
	desc = "EVTDESC7825"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7825" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = craven
						random = 33
					}
					AND = {
						trait = paranoid
						random = 50
					}
					AND = {
						trait = slothful
						random = 90
					}
					AND = {
						NOT = { trait = craven }
						NOT = { trait = paranoid }
						NOT = { trait = slothful }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7833 days = 1 } }
						FROMFROM = { character_event = { id = 7833 days = 1 } }
					}
					character_event = { id = 7826 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7834 days = 1 } }
						FROMFROM = { character_event = { id = 7834 days = 1 } }
					}
					character_event = { id = 7827 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7825" # Does not drown
		trigger = {
			OR = {
				AND = {
					trait = craven
					random = 33
				}
				AND = {
					trait = paranoid
					random = 50
				}
				AND = {
					trait = slothful
					random = 90
				}
				AND = {
					NOT = { trait = craven }
					NOT = { trait = paranoid }
					NOT = { trait = slothful }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7835 days = 1 } }
						FROMFROM = { character_event = { id = 7835 days = 1 } }
					}
					character_event = { id = 7828 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7836 days = 1 } }
						FROMFROM = { character_event = { id = 7836 days = 1 } }
					}
					character_event = { id = 7829 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Poisonous Snake - Dies, murderer(s) discovered
character_event = {
	id = 7826
	desc = "EVTDESC7826"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7826"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_snakes
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_snakes
				killer = FROMFROM
			}
		}
	}
	
}

# Poisonous Snake - Dies, murderer NOT discovered
character_event = {
	id = 7827
	desc = "EVTDESC7826"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7827"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_snakes
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_snakes
				killer = FROMFROM
			}
		}
	}
}

# Poisonous Snake - Lives, murderer discovered
character_event = {
	id = 7828
	desc = "EVTDESC7828"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7828"
	}
}

# Poisonous Snake - Lives, murderer NOT discovered
character_event = {
	id = 7829
	desc = "EVTDESC7828"
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7829"
	}
}

# Poisonous Snake - Backer informs Plotter of plan
character_event = {
	id = 7830
	desc = "EVTDESC7830"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7830"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7831 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7832 days = 1 }
			}
		}
	}
}

# Poisonous Snake - Plotter tells backer to go ahead
character_event = {
	id = 7831
	desc = "EVTDESC7831"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7825 days = 27 tooltip = "EVTTOOLTIP7825" } }
	}
}

# Poisonous Snake - Initiator informs other plotter
character_event = {
	id = 7832
	desc = "EVTDESC7832"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Poisonous Snake - Notification: Success, but discovered
character_event = {
	id = 7833
	desc = "EVTDESC7833"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Poisonous Snake - Notification: Success, and NOT discovered
character_event = {
	id = 7834
	desc = "EVTDESC7834"
	picture = GFX_evt_shadow
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7834"
	}
}

# Poisonous Snake - Notification: Failure, and discovered
character_event = {
	id = 7835
	desc = "EVTDESC7835"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		# Set opinions vs the bungling killer
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_murder_attempt
				months = 120
			}
		}
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_dishonorable
				months = 60
			}
		}
		if = {
			limit = { 
				NOT = { FROM = { employer = { character = ROOT } } }
			}
			FROM = { 
				employer = {
					opinion = {
						who = ROOT
						modifier = opinion_dishonorable
						months = 60
					}
				}
			}
		}
		FROM = {
			any_dynasty_member = {
				limit = {
					is_alive = yes
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
		}
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7835"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Poisonous Snake - Notification: Failure, but NOT discovered
character_event = {
	id = 7836
	desc = "EVTDESC7836"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### BALCONY PLUMMET
# The plotter sees an opportunity - Balcony Plummet
character_event = {
	id = 7840
	desc = "EVTDESC7840"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7840" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7852 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7845 days = 30 tooltip = "EVTTOOLTIP7845" } }
	}
	option = {
		name = "EVTOPTB7840" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7852 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7845 days = 30 tooltip = "EVTTOOLTIP7845" } }
	}
	option = {
		name = "EVTOPTB7840" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7852 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7845 days = 30 tooltip = "EVTTOOLTIP7845" } }
	}
	option = {
		name = "EVTOPTC7840" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7852 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7845 days = 30 tooltip = "EVTTOOLTIP7845" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Balcony Plummet
character_event = {
	id = 7841
	desc = "EVTDESC7841"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7840" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7850 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7842 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7840" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7850 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7840" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7850 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Balcony Plummet - Plot backer requests funds
character_event = {
	id = 7842
	desc = "EVTDESC7842"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7842"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7843 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7844 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Balcony Plummet - plot backer receives funds
character_event = {
	id = 7843
	desc = "EVTDESC7843"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7845 days = 27 tooltip = "EVTTOOLTIP7845" } }
	}
}

# Balcony Plummet - plot backer does NOT receive funds
character_event = {
	id = 7844
	desc = "EVTDESC7844"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7845 days = 27 tooltip = "EVTTOOLTIP7845" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Balcony Plummet - the murder attempt
character_event = {
	id = 7845
	desc = "EVTDESC7845"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7845" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = paranoid }
						NOT = { trait = diligent }
						NOT = { trait = trusting }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7853 days = 1 } }
						FROMFROM = { character_event = { id = 7853 days = 1 } }
					}
					character_event = { id = 7846 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7854 days = 1 } }
						FROMFROM = { character_event = { id = 7854 days = 1 } }
					}
					character_event = { id = 7847 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7845" # Does not drown
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					NOT = { trait = paranoid }
					NOT = { trait = trusting }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7855 days = 1 } }
						FROMFROM = { character_event = { id = 7855 days = 1 } }
					}
					character_event = { id = 7848 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7856 days = 1 } }
						FROMFROM = { character_event = { id = 7856 days = 1 } }
					}
					character_event = { id = 7849 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Balcony Plummet - Dies, murderer(s) discovered
character_event = {
	id = 7846
	desc = "EVTDESC7846"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7846"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROM
			}
		}
	}
	
}

# Balcony Plummet - Dies, murderer NOT discovered
character_event = {
	id = 7847
	desc = "EVTDESC7846"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7847"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROM
			}
		}
	}
}

# Balcony Plummet - Lives, murderer discovered
character_event = {
	id = 7848
	desc = "EVTDESC7848"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7848"
	}
}

# Balcony Plummet - Lives, murderer NOT discovered
character_event = {
	id = 7849
	desc = "EVTDESC7848"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7849"
	}
}

# Balcony Plummet - Backer informs Plotter of plan
character_event = {
	id = 7850
	desc = "EVTDESC7850"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7850"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7851 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7852 days = 1 }
			}
		}
	}
}

# Balcony Plummet - Plotter tells backer to go ahead
character_event = {
	id = 7851
	desc = "EVTDESC7851"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7845 days = 27 tooltip = "EVTTOOLTIP7845" } }
	}
}

# Balcony Plummet - Initiator informs other plotter
character_event = {
	id = 7852
	desc = "EVTDESC7852"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Balcony Plummet - Notification: Success, but discovered
character_event = {
	id = 7853
	desc = "EVTDESC7853"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Balcony Plummet - Notification: Success, and NOT discovered
character_event = {
	id = 7854
	desc = "EVTDESC7854"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7854"
	}
}

# Balcony Plummet - Notification: Failure, and discovered
character_event = {
	id = 7855
	desc = "EVTDESC7855"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7855"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Balcony Plummet - Notification: Failure, but NOT discovered
character_event = {
	id = 7856
	desc = "EVTDESC7856"
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### HUNTING ACCIDENT - CHILDREN ONLY
# The plotter sees an opportunity - Hunting Accident
character_event = {
	id = 7860
	desc = "EVTDESC7860"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			NOT = { age = 16 }
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7860" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7872 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7865 days = 30 tooltip = "EVTTOOLTIP7865" } }
	}
	option = {
		name = "EVTOPTB7860" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7872 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7865 days = 30 tooltip = "EVTTOOLTIP7865" } }
	}
	option = {
		name = "EVTOPTB7860" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7872 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7865 days = 30 tooltip = "EVTTOOLTIP7865" } }
	}
	option = {
		name = "EVTOPTC7860" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7872 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7865 days = 30 tooltip = "EVTTOOLTIP7865" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Hunting Accident
character_event = {
	id = 7861
	desc = "EVTDESC7861"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				NOT = { age = 16 }
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 3600
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					NOT = { age = 16 }
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7860" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7870 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7862 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7860" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7870 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7860" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7870 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Hunting Accident - Plot backer requests funds
character_event = {
	id = 7862
	desc = "EVTDESC7862"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7862"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7863 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7864 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Hunting Accident - plot backer receives funds
character_event = {
	id = 7863
	desc = "EVTDESC7863"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7865 days = 27 tooltip = "EVTTOOLTIP7865" } }
	}
}

# Hunting Accident - plot backer does NOT receive funds
character_event = {
	id = 7864
	desc = "EVTDESC7864"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7865 days = 27 tooltip = "EVTTOOLTIP7865" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Hunting Accident - the murder attempt
character_event = {
	id = 7865
	desc = "EVTDESC7865"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7865" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = gregarious
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = paranoid }
						NOT = { trait = gregarious }
						NOT = { trait = trusting }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7873 days = 1 } }
						FROMFROM = { character_event = { id = 7873 days = 1 } }
					}
					character_event = { id = 7866 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7874 days = 1 } }
						FROMFROM = { character_event = { id = 7874 days = 1 } }
					}
					character_event = { id = 7867 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7865" # Does not drown
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = gregarious
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = paranoid }
					NOT = { trait = gregarious }
					NOT = { trait = trusting }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7875 days = 1 } }
						FROMFROM = { character_event = { id = 7875 days = 1 } }
					}
					character_event = { id = 7868 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7876 days = 1 } }
						FROMFROM = { character_event = { id = 7876 days = 1 } }
					}
					character_event = { id = 7869 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Hunting Accident - Dies, murderer(s) discovered
character_event = {
	id = 7866
	desc = "EVTDESC7866"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7866"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_arrow
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_arrow
				killer = FROMFROM
			}
		}
	}
	
}

# Hunting Accident - Dies, murderer NOT discovered
character_event = {
	id = 7867
	desc = "EVTDESC7866"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7867"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_arrow
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_arrow
				killer = FROMFROM
			}
		}
	}
}

# Hunting Accident - Lives, murderer discovered
character_event = {
	id = 7868
	desc = "EVTDESC7868"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7868"
	}
}

# Hunting Accident - Lives, murderer NOT discovered
character_event = {
	id = 7869
	desc = "EVTDESC7868"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7869"
	}
}

# Hunting Accident - Backer informs Plotter of plan
character_event = {
	id = 7870
	desc = "EVTDESC7870"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7870"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7871 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7872 days = 1 }
			}
		}
	}
}

# Hunting Accident - Plotter tells backer to go ahead
character_event = {
	id = 7871
	desc = "EVTDESC7871"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7865 days = 27 tooltip = "EVTTOOLTIP7865" } }
	}
}

# Hunting Accident - Initiator informs other plotter
character_event = {
	id = 7872
	desc = "EVTDESC7872"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Hunting Accident - Notification: Success, but discovered
character_event = {
	id = 7873
	desc = "EVTDESC7873"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Hunting Accident - Notification: Success, and NOT discovered
character_event = {
	id = 7874
	desc = "EVTDESC7874"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7874"
	}
}

# Hunting Accident - Notification: Failure, and discovered
character_event = {
	id = 7875
	desc = "EVTDESC7875"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7875"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Hunting Accident - Notification: Failure, but NOT discovered
character_event = {
	id = 7876
	desc = "EVTDESC7876"
	picture = GFX_evt_hunt
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### DISGUISED HIGHWAYMEN
# The plotter sees an opportunity - Disguised Highwaymen
character_event = {
	id = 7880
	desc = "EVTDESC7880"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7880" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7892 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7885 days = 30 tooltip = "EVTTOOLTIP7885" } }
	}
	option = {
		name = "EVTOPTB7880" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7892 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7885 days = 30 tooltip = "EVTTOOLTIP7885" } }
	}
	option = {
		name = "EVTOPTB7880" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7892 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7885 days = 30 tooltip = "EVTTOOLTIP7885" } }
	}
	option = {
		name = "EVTOPTC7880" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7892 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7885 days = 30 tooltip = "EVTTOOLTIP7885" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Disguised Highwaymen
character_event = {
	id = 7881
	desc = "EVTDESC7881"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7880" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7890 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7882 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7880" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7890 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7880" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7890 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Disguised Highwaymen - Plot backer requests funds
character_event = {
	id = 7882
	desc = "EVTDESC7882"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7882"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7883 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7884 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Disguised Highwaymen - plot backer receives funds
character_event = {
	id = 7883
	desc = "EVTDESC7883"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7885 days = 27 tooltip = "EVTTOOLTIP7885" } }
	}
}

# Disguised Highwaymen - plot backer does NOT receive funds
character_event = {
	id = 7884
	desc = "EVTDESC7884"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7885 days = 27 tooltip = "EVTTOOLTIP7885" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Disguised Highwaymen - the murder attempt
character_event = {
	id = 7885
	desc = "EVTDESC7885"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7885" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = paranoid }
						NOT = { trait = diligent }
						NOT = { trait = trusting }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7893 days = 1 } }
						FROMFROM = { character_event = { id = 7893 days = 1 } }
					}
					character_event = { id = 7886 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7894 days = 1 } }
						FROMFROM = { character_event = { id = 7894 days = 1 } }
					}
					character_event = { id = 7887 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7885" # Does not drown
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					NOT = { trait = paranoid }
					NOT = { trait = trusting }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7895 days = 1 } }
						FROMFROM = { character_event = { id = 7895 days = 1 } }
					}
					character_event = { id = 7888 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7896 days = 1 } }
						FROMFROM = { character_event = { id = 7896 days = 1 } }
					}
					character_event = { id = 7889 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Disguised Highwaymen - Dies, murderer(s) discovered
character_event = {
	id = 7886
	desc = "EVTDESC7886"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7886"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder
				killer = FROMFROM
			}
		}
	}
	
}

# Disguised Highwaymen - Dies, murderer NOT discovered
character_event = {
	id = 7887
	desc = "EVTDESC7886"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7887"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROM
			}
		}
	}
}

# Disguised Highwaymen - Lives, murderer discovered
character_event = {
	id = 7888
	desc = "EVTDESC7888"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7888"
	}
}

# Disguised Highwaymen - Lives, murderer NOT discovered
character_event = {
	id = 7889
	desc = "EVTDESC7888"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7889"
	}
}

# Disguised Highwaymen - Backer informs Plotter of plan
character_event = {
	id = 7890
	desc = "EVTDESC7890"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7890"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7891 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7892 days = 1 }
			}
		}
	}
}

# Disguised Highwaymen - Plotter tells backer to go ahead
character_event = {
	id = 7891
	desc = "EVTDESC7891"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7885 days = 27 tooltip = "EVTTOOLTIP7885" } }
	}
}

# Disguised Highwaymen - Initiator informs other plotter
character_event = {
	id = 7892
	desc = "EVTDESC7892"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Disguised Highwaymen - Notification: Success, but discovered
character_event = {
	id = 7893
	desc = "EVTDESC7893"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Disguised Highwaymen - Notification: Success, and NOT discovered
character_event = {
	id = 7894
	desc = "EVTDESC7894"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7894"
	}
}

# Disguised Highwaymen - Notification: Failure, and discovered
character_event = {
	id = 7895
	desc = "EVTDESC7895"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7895"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Disguised Highwaymen - Notification: Failure, but NOT discovered
character_event = {
	id = 7896
	desc = "EVTDESC7896"
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### CARRIAGE ACCIDENT
# The plotter sees an opportunity - Carriage Accident
character_event = {
	id = 7900
	desc = "EVTDESC7900"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7900" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7912 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7905 days = 30 tooltip = "EVTTOOLTIP7905" } }
	}
	option = {
		name = "EVTOPTB7900" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7912 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7905 days = 30 tooltip = "EVTTOOLTIP7905" } }
	}
	option = {
		name = "EVTOPTB7900" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7912 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7905 days = 30 tooltip = "EVTTOOLTIP7905" } }
	}
	option = {
		name = "EVTOPTC7900" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7912 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7905 days = 30 tooltip = "EVTTOOLTIP7905" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Carriage Accident
character_event = {
	id = 7901
	desc = "EVTDESC7901"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7900" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7910 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7902 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7900" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7910 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7900" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7900 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Carriage Accident - Plot backer requests funds
character_event = {
	id = 7902
	desc = "EVTDESC7902"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7902"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7903 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7904 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Carriage Accident - plot backer receives funds
character_event = {
	id = 7903
	desc = "EVTDESC7903"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7905 days = 27 tooltip = "EVTTOOLTIP7905" } }
	}
}

# Carriage Accident - plot backer does NOT receive funds
character_event = {
	id = 7904
	desc = "EVTDESC7904"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7905 days = 27 tooltip = "EVTTOOLTIP7905" } } 
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Carriage Accident - the murder attempt
character_event = {
	id = 7905
	desc = "EVTDESC7905"
	picture = GFX_evt_carriage
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7905" # Drowns
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = diligent
						random = 50
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = diligent }
						NOT = { trait = paranoid }
						NOT = { trait = trusting }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7913 days = 1 } }
						FROMFROM = { character_event = { id = 7913 days = 1 } }
					}
					character_event = { id = 7906 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7914 days = 1 } }
						FROMFROM = { character_event = { id = 7914 days = 1 } }
					}
					character_event = { id = 7907 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7905" # Does not drown
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = diligent
					random = 50
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = diligent }
					NOT = { trait = paranoid }
					NOT = { trait = trusting }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7915 days = 1 } }
						FROMFROM = { character_event = { id = 7915 days = 1 } }
					}
					character_event = { id = 7908 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7916 days = 1 } }
						FROMFROM = { character_event = { id = 7916 days = 1 } }
					}
					character_event = { id = 7909 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Carriage Accident - Dies, murderer(s) discovered
character_event = {
	id = 7906
	desc = "EVTDESC7906"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7906"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_fall
				killer = FROMFROM
			}
		}
	}
	
}

# Carriage Accident - Dies, murderer NOT discovered
character_event = {
	id = 7907
	desc = "EVTDESC7906"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7907"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_fall
				killer = FROMFROM
			}
		}
	}
}

# Carriage Accident - Lives, murderer discovered
character_event = {
	id = 7908
	desc = "EVTDESC7908"
	picture = GFX_evt_carriage
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7908"
	}
}

# Carriage Accident - Lives, murderer NOT discovered
character_event = {
	id = 7909
	desc = "EVTDESC7908"
	picture = GFX_evt_carriage
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7909"
	}
}

# Carriage Accident - Backer informs Plotter of plan
character_event = {
	id = 7910
	desc = "EVTDESC7910"
	picture = GFX_evt_carriage
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7910"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7911 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7912 days = 1 }
			}
		}
	}
}

# Carriage Accident - Plotter tells backer to go ahead
character_event = {
	id = 7911
	desc = "EVTDESC7911"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7905 days = 27 tooltip = "EVTTOOLTIP7905" } }
	}
}

# Carriage Accident - Initiator informs other plotter
character_event = {
	id = 7912
	desc = "EVTDESC7912"
	picture = GFX_evt_carriage
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Carriage Accident - Notification: Success, but discovered
character_event = {
	id = 7913
	desc = "EVTDESC7913"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA8163"
	}
}

# Carriage Accident - Notification: Success, and NOT discovered
character_event = {
	id = 7914
	desc = "EVTDESC7914"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7914"
	}
}

# Carriage Accident - Notification: Failure, and discovered
character_event = {
	id = 7915
	desc = "EVTDESC7915"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7915"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Carriage Accident - Notification: Failure, but NOT discovered
character_event = {
	id = 7916
	desc = "EVTDESC7916"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### DECADENT DEBAUCHERY
# The plotter sees an opportunity - Decadent Debauchery
character_event = {
	id = 7950
	desc = "EVTDESC7950"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 16
			NOT = { trait = incapable }
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { is_inaccessible_trigger = yes }
			trait = decadent
			dynasty = ROOT
		}
		OR = {
			NOT = { has_character_flag = murder_in_motion }
			had_character_flag = { flag = murder_in_motion days = 100 }
		}
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 7300
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7950" # The conspirators bribe the servants
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = 7962 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7955 days = 30 tooltip = "EVTTOOLTIP7955" } }
	}
	option = {
		name = "EVTOPTB7950" # Bribe servants
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7962 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7955 days = 30 tooltip = "EVTTOOLTIP7955" } }
	}
	option = {
		name = "EVTOPTB7950" # Bribe servants
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7962 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7955 days = 30 tooltip = "EVTTOOLTIP7955" } }
	}
	option = {
		name = "EVTOPTC7950" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = 7962 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		event_target:plot_target = { character_event = { id = 7955 days = 30 tooltip = "EVTTOOLTIP7955" } }
	}
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}

# A plot backer sees an opportunity - Decadent Debauchery
character_event = {
	id = 7951
	desc = "EVTDESC7951"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 16
				NOT = { trait = incapable }
				prisoner = no
				NOT = { is_inaccessible_trigger = yes }
				trait = decadent
				dynasty = PREV
			}
			OR = {
				NOT = { has_character_flag = murder_in_motion }
				had_character_flag = { flag = murder_in_motion days = 100 }
			}
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 7300
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}

	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 16
					NOT = { trait = incapable }
					prisoner = no
					NOT = { is_inaccessible_trigger = yes }
					trait = decadent
					dynasty = PREV
				}
				OR = {
					NOT = { has_character_flag = murder_in_motion }
					had_character_flag = { flag = murder_in_motion days = 100 }
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.025
					}
				}
			}
			save_event_target_as = plot_leader
		}
	}
	
	option = {
		name = "EVTOPTA7950" # The conspirators bribe servants
		trigger = {
			event_target:plot_leader = {
				plot_power = 1.0
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7960 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTB8151" # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		event_target:plot_leader = {
			character_event = { id = 7952 days = 3 tooltip = "EVTTOOLTIP8152" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTB7950" # Bribe servants
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		event_target:plot_leader = {
			character_event = { id = 7960 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = "EVTOPTC7950" # Replace with own servants
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
		}
		
		event_target:plot_leader = {
			character_event = { id = 7950 days = 3 tooltip = "EVTTOOLTIP8160" }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = "EVTOPTD8150" # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				event_target:plot_leader = {
					plot_power = 1.0
				}
			}
		}
	}
}

# Decadent Debauchery - Plot backer requests funds
character_event = {
	id = 7952
	desc = "EVTDESC8152"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8152"
		transfer_scaled_wealth = {
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 7953 tooltip = "EVTTOOLTIP8153" } }
	}
	
	option = {
		name = "EVTOPTB8152"
		FROM = { character_event = { id = 7954 tooltip = "EVTTOOLTIP8154" } }
	}
}

# Decadent Debauchery - plot backer receives funds
character_event = {
	id = 7953
	desc = "EVTDESC7953"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		event_target:plot_target = { character_event = { id = 7955 days = 27 tooltip = "EVTTOOLTIP7955" } }
	}
}

# Decadent Debauchery - plot backer does NOT receive funds
character_event = {
	id = 7954
	desc = "EVTDESC7954"
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA8154" # Pay for it myself
		scaled_wealth = -1.0
		event_target:plot_target = { character_event = { id = 7955 days = 27 tooltip = "EVTTOOLTIP7955" } }
	}
	option = {
		name = "EVTOPTB8154" # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}

# Decadent Debauchery - the murder attempt
character_event = {
	id = 7955
	desc = "EVTDESC7955"
	picture = GFX_evt_jugglers
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		save_event_target_as = target_victim
	}
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = "EVTOPTA7955" # Dies
		trigger = {
			OR = {
				AND = {
					trait = slothful
					random = 33
				}
				AND = {
					trait = proud
					random = 33
				}
				AND = {
					trait = hedonist
					random = 50
				}
				AND = {
					trait = gluttonous
					random = 50
				}
				AND = {
					trait = drunkard
					random = 90
				}
				AND = {
					trait = lustful
					random = 90
				}
				AND = {
					NOT = { trait = drunkard }
					NOT = { trait = hedonist }
					NOT = { trait = lustful }
					NOT = { trait = gluttonous }
					NOT = { trait = slothful }
					NOT = { trait = proud }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7963 days = 1 } }
						FROMFROM = { character_event = { id = 7963 days = 1 } }
					}
					character_event = { id = 7956 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7964 days = 1 } }
						FROMFROM = { character_event = { id = 7964 days = 1 } }
					}
					character_event = { id = 7957 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7955" # Does not die
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = slothful
						random = 33
					}
					AND = {
						trait = proud
						random = 33
					}
					AND = {
						trait = hedonist
						random = 50
					}
					AND = {
						trait = gluttonous
						random = 50
					}
					AND = {
						trait = drunkard
						random = 90
					}
					AND = {
						trait = lustful
						random = 90
					}
					AND = {
						NOT = { trait = drunkard }
						NOT = { trait = hedonist }
						NOT = { trait = lustful }
						NOT = { trait = gluttonous }
						NOT = { trait = slothful }
						NOT = { trait = proud }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7965 days = 1 } }
						FROMFROM = { character_event = { id = 7965 days = 1 } }
					}
					character_event = { id = 7958 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = 7966 days = 1 } }
						FROMFROM = { character_event = { id = 7966 days = 1 } }
					}
					character_event = { id = 7959 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}

# Decadent Debauchery - Dies, murderer(s) discovered
character_event = {
	id = 7956
	desc = "EVTDESC7956"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7956"
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder
				killer = FROMFROM
			}
		}
	}
	
}

# Decadent Debauchery - Dies, murderer NOT discovered
character_event = {
	id = 7957
	desc = "EVTDESC7956"
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7957"
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROMFROM
			}
			break = yes
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown
				killer = FROMFROM
			}
		}
	}
}

# Decadent Debauchery - Lives, murderer discovered
character_event = {
	id = 7958
	desc = "EVTDESC7958"
	picture = GFX_evt_jugglers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7958"
	}
}

# Decadent Debauchery - Lives, murderer NOT discovered
character_event = {
	id = 7959
	desc = "EVTDESC7959"
	picture = GFX_evt_jugglers
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7959"
	}
}

# Decadent Debauchery - Backer informs Plotter of plan
character_event = {
	id = 7960
	desc = "EVTDESC7960"
	picture = GFX_evt_jugglers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	trigger = {
		plot_target_char = {
			is_alive = yes
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7960"
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = 7961 tooltip = "EVTTOOLTIP8161" } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7962 days = 1 }
			}
		}
	}
}

# Decadent Debauchery - Plotter tells backer to go ahead
character_event = {
	id = 7961
	desc = "EVTDESC7961"
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8161"
		event_target:plot_target = { character_event = { id = 7955 days = 27 tooltip = "EVTTOOLTIP7955" } }
	}
}

# Decadent Debauchery - Initiator informs other plotter
character_event = {
	id = 7962
	desc = "EVTDESC7962"
	picture = GFX_evt_jugglers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8162"
	}
}

# Decadent Debauchery - Notification: Success, but discovered
character_event = {
	id = 7963
	desc = "EVTDESC7963"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 10 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA7963"
	}
}

# Decadent Debauchery - Notification: Success, and NOT discovered
character_event = {
	id = 7964
	desc = "EVTDESC7964"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7964"
	}
}

# Decadent Debauchery - Notification: Failure, and discovered
character_event = {
	id = 7965
	desc = "EVTDESC7965"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = "EVTOPTA7965"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}

# Decadent Debauchery - Notification: Failure, but NOT discovered
character_event = {
	id = 7966
	desc = "EVTDESC7966"
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8166"
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

# Ultimatum - antiking
letter_event = {
	id = 8200
	desc = EVTDESC8200
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_antiking }
	}
	
	immediate = {
		FROM = {
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_antiking
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_antiking
							power = 1.0
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_antiking }
				}
				character_event = { id = 8202 }
			}
			FROM = {
				letter_event = { id = 8203 }
				any_faction_backer = {
					faction = faction_antiking
					letter_event = { id = 8201 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			religion_authority = {
				modifier = deposed_antipope
				years = 50
			}
			faction_antiking = { # The target (title) of the faction
				if = {
					limit = { has_law = investiture_law_1 }
					add_law_w_cooldown = investiture_law_0
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						religion = catholic
					}
					k_papal_state = {
						holder_scope = {
							opinion = {
								who = PREVPREV
								modifier = opinion_deposed_antipope
							}
						}
					}
				}
				if = {
					limit = {
						religion = fraticelli
					}
					d_fraticelli = {
						holder_scope = {
							opinion = {
								who = PREVPREV
								modifier = opinion_deposed_antipope
							}
						}
					}
				}
			}
		}
		hidden_tooltip = {
			rightful_religious_head_scope = {
				remove_claim = k_papal_state
				remove_claim = d_fraticelli
			}
		}
		
		primary_title = {
			usurp_title = FROM
		}
	}
	
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_antiking
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_antiking
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_antiking
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_antiking
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_antiking
						power = 4.0
					}
				}
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_antiking power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8204 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_antiking
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_antiking power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_antiking power = 0.75 }
						NOT = { faction_power = { faction = faction_antiking power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Inform faction backer - antiking
letter_event = {
	id = 8201
	desc = EVTDESC8201
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_antiking_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - antiking
character_event = {
	id = 8202
	desc = EVTDESC8202
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Demand accepted - antiking
letter_event = {
	id = 8203
	desc = EVTDESC8203
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_install_antiking_ultimatum_taken
		
		add_character_modifier = {
			name = faction_antiking_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand rejected - antiking
letter_event = {
	id = 8204
	desc = EVTDESC8100
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8100
		
		clr_character_flag = faction_install_antiking_ultimatum_taken
		
		faction_antiking = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = cb_install_antiking
				faction = faction_antiking
			}
		}
	}
}

# Ultimatum - overthrow
letter_event = {
	id = 8210
	desc = EVTDESC8210
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_overthrow }
	}
	
	immediate = {
		FROM = {
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_overthrow
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_overthrow
							power = 1.0
						}
					}
				}
			}
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
		}
		
		custom_tooltip = { text = khagan_overthrow_execution_warning_tooltip }
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_overthrow }
				}
				character_event = { id = 8212 }
			}
			FROM = {
				letter_event = { id = 8213 }
				any_faction_backer = {
					faction = faction_overthrow
					letter_event = { id = 8211 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		
		primary_title = {
			gain_title = { target = FROM type = faction_demand }
		}
	}
	
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_overthrow
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_overthrow
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_overthrow
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_overthrow
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_overthrow
						power = 4.0
					}
				}
			}
		}
		FROM = {
			letter_event = { id = 8214 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_overthrow
				}
			}
		}
	}
}

# Inform faction backer - overthrow
letter_event = {
	id = 8211
	desc = EVTDESC8211
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
	}
}

# Inform other vassals - overthrow
character_event = {
	id = 8212
	desc = EVTDESC8212
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Demand accepted - overthrow
letter_event = {
	id = 8213
	desc = EVTDESC8213
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8213"
		clr_character_flag = faction_overthrow_ultimatum_taken
	}

	option = {
		name = "EVTOPTB8213"
		clr_character_flag = faction_overthrow_ultimatum_taken
		if = {
			limit = {
				NOT = { has_dlc = "Reapers" }
			}
			FROM = {
				death = {
					death_reason = death_execution
					killer = ROOT
				}
			}
		}
		if = {
			limit = {
				has_dlc = "Reapers"
			}
			FROM = {
				death = {
					death_reason = death_execution_horses
					killer = ROOT
				}
			}
		}
	}
}

# Demand rejected - overthrow
letter_event = {
	id = 8214
	desc = EVTDESC8100
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8100
		
		clr_character_flag = faction_overthrow_ultimatum_taken
		
		faction_overthrow = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = cb_install_khan
				faction = faction_overthrow
			}
		}
	}
}

# Ultimatum - increase council power
letter_event = {
	id = 8215
	desc = EVTDESC8215
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_increase_council_power }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_increase_council_power
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0.01	
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_increase_council_power
							power = 1.0
						}
					}
				}
			}			
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_increase_council_power }
				}
				character_event = { id = 8217 }
			}
			FROM = {
				letter_event = { id = 8218 }
				any_faction_backer = {
					faction = faction_increase_council_power
					letter_event = { id = 8216 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			show_scope_change = no
			opinion = {
				modifier = opinion_increased_council_power
				who = ROOT
				months = 12
			}
		}
		FROM = {
			show_scope_change = no
			faction_increase_council_power = { # The target (title) of the faction
				increase_council_power_effect = yes
				increase_vassal_freedom_effect = yes
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 8
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 1.25
				trait = stubborn
			}
			modifier = {
				factor = 0.1
				war = yes
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_increase_council_power
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_increase_council_power
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.35
				FROM = {
					faction_power = 
					{
						faction = faction_increase_council_power
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.2
				FROM = {
					faction_power = 
					{
						faction = faction_increase_council_power
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.2
				FROM = {
					faction_power = 
					{
						faction = faction_increase_council_power
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_increase_council_power power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8219 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_increase_council_power
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_increase_council_power power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_increase_council_power power = 0.75 }
						NOT = { faction_power = { faction = faction_increase_council_power power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Inform faction backer - increase council power
letter_event = {
	id = 8216
	desc = "EVTDESC8216"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}
		
		add_character_modifier = {
			name = faction_council_power_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - increase council power
character_event = {
	id = 8217
	desc = EVTDESC8217
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Demand accepted - increase council power
letter_event = {
	id = 8218
	desc = "EVTDESC8218"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_council_power_ultimatum_taken
		
		add_character_modifier = {
			name = faction_council_power_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand rejected - increase council power
letter_event = {
	id = 8219
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_council_power_ultimatum_taken
		
		faction_increase_council_power = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = increase_council_power_war
				faction = faction_increase_council_power
			}
		}
	}
}

# Ultimatum - powerful vassal takeover
letter_event = {
	id = 8220
	desc = EVTDESC8220
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { in_faction = faction_powerful_vassal_takeover }
	}
	
	immediate = {
		FROM = { 
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_powerful_vassal_takeover
				diplomatic_immunity = yes
			}
		}
		most_popular_vassal = {
			limit = {
				higher_tier_than = BARON
				is_feudal = yes
				prisoner = no
				NOR = {
					is_inaccessible_trigger = yes
					trait = incapable
					trait = eunuch
				}
				age = 16
				#can_hold_title = PREVPREV
				OR = {
					is_female = no
					AND = {
						is_female = yes
						ROOT = {
							OR = {
								has_law = true_cognatic_succession
								has_law = enatic_cognatic_succession
								has_law = enatic_succession
							}
						}
					}
				}
			}
			set_character_flag = new_title_holder
			save_event_target_as = new_title_holder
		}
	}
	
	option = {
		name = EVTOPTA8000
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0	
				NOT = {
					FROM = {
						faction_power = 
						{
							faction = faction_powerful_vassal_takeover
							power = 1.0
						}
					}
				}
			}			
			modifier = {
				factor = 1.25
				is_weak_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = craven
			}
			modifier = {
				factor = 1.25
				trait = humble
			}
			modifier = {
				factor = 1.25
				trait = kind
			}
			modifier = {
				factor = 1.25
				trait = charitable
			}
			modifier = {
				factor = 1.25
				trait = patient
			}
			modifier = {
				factor = 1.25
				trait = content
			}
		}
		
		hidden_tooltip = {
			any_vassal = {
				limit = {
					ai = no
					NOT = { in_faction = faction_powerful_vassal_takeover }
				}
				character_event = { id = 8222 }
			}
			FROM = {
				letter_event = { id = 8223 }
				any_faction_backer = {
					faction = faction_powerful_vassal_takeover
					letter_event = { id = 8221 }
					diplomatic_immunity = no
				}
				diplomatic_immunity = no
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_abdicated
				who = ROOT
				months = 12
			}
		}
		FROM = {
			faction_powerful_vassal_takeover = { # The target (title) of the faction
				holder_scope = {
					any_vassal = {
						limit = { has_character_flag = new_title_holder }
						usurp_title = {
							target = PREVPREV
							type = faction_demand
						}
						clr_character_flag = new_title_holder
						job_chancellor = { remove_title = job_chancellor }
						job_marshal = { remove_title = job_marshal }
						job_treasurer = { remove_title = job_treasurer }
						job_spymaster = { remove_title = job_spymaster }
						job_spiritual = { remove_title = job_spiritual }
					}
				}
				increase_council_power_effect = yes
				increase_vassal_freedom_effect = yes
				increase_vassal_freedom_effect = yes
				if = {
					limit = { has_law = succession_voting_power_0 }
					add_law_w_cooldown = succession_voting_power_1
				}
				if = {
					limit = { NOT = { has_law = succ_byzantine_elective } }
					custom_tooltip = {
						text = overthrow_text
						hidden_tooltip = {
							if = {
								limit = { 
									title = e_hre
									NOT = { has_law = succ_hre_elective }
									NOT = { has_law = succ_feudal_elective }
									has_law = law_voting_power_1
									has_law = banish_voting_power_1
									has_law = execution_voting_power_1
									has_law = revoke_title_voting_power_1
									has_law = grant_title_voting_power_1
									has_law = imprison_voting_power_1
									has_law = war_voting_power_1						
								}
								add_law_w_cooldown = succ_hre_elective
							}
							if = {
								limit = { 
									NOT = { title = e_hre }
									NOT = { has_law = succ_hre_elective }
									NOT = { has_law = succ_feudal_elective }
									has_law = law_voting_power_1
									has_law = banish_voting_power_1
									has_law = execution_voting_power_1
									has_law = revoke_title_voting_power_1
									has_law = grant_title_voting_power_1
									has_law = imprison_voting_power_1
									has_law = war_voting_power_1						
								}
								add_law_w_cooldown = succ_feudal_elective
							}
							if = {
								limit = {
									NOT = { has_law = succ_gavelkind }
									NOT = { has_law = succ_feudal_elective }
									NOT = { has_law = succ_hre_elective }
									NAND = {
										has_law = succ_feudal_elective
										has_law = law_voting_power_1
										has_law = banish_voting_power_1
										has_law = execution_voting_power_1
										has_law = revoke_title_voting_power_1
										has_law = grant_title_voting_power_1
										has_law = imprison_voting_power_1
										has_law = war_voting_power_1						
									}
								}
								add_law_w_cooldown = succ_gavelkind
							}
						}
					}
				}
			}
		}
	}
	option = {
		name = "EVTOPTB8000"
		ai_chance = {
			factor = 90
			modifier = {
				factor = 1.25
				is_strong_trigger = yes
			}
			modifier = {
				factor = 1.25
				trait = brave
			}
			modifier = {
				factor = 1.25
				trait = proud
			}
			modifier = {
				factor = 1.25
				trait = envious
			}
			modifier = {
				factor = 1.25
				trait = greedy
			}
			modifier = {
				factor = 1.25
				trait = wroth
			}
			modifier = {
				factor = 1.25
				trait = ambitious
			}
			modifier = {
				factor = 1.25
				trait = stubborn
			}
			modifier = {
				factor = 0.75
				FROM = {
					faction_power = 
					{
						faction = faction_powerful_vassal_takeover
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_powerful_vassal_takeover
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_powerful_vassal_takeover
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_powerful_vassal_takeover
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = 
					{
						faction = faction_powerful_vassal_takeover
						power = 4.0
					}
				}
			}	
		}
		hidden_tooltip = {
			if = {
				limit = {
					FROM = { faction_power = { faction = faction_powerful_vassal_takeover power = 1.0 } }
				}
				random = {
					chance = 25
					character_event = { id = 45002 days = 120 } # Loyalists flock to the liege's banner
				}
			}
		}
		FROM = {
			letter_event = { id = 8224 days = 3 tooltip = "EVTTOOLTIP8100" }
			tooltip = {
				any_faction_backer = {
					faction = faction_powerful_vassal_takeover
				}
			}
			hidden_tooltip = {
				if = {
					limit = {
						NOT = { faction_power = { faction = faction_powerful_vassal_takeover power = 0.75 } }
					}
					random_list = {
						50 = {
						}
						30 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
				if = {
					limit = {
						faction_power = { faction = faction_powerful_vassal_takeover power = 0.75 }
						NOT = { faction_power = { faction = faction_powerful_vassal_takeover power = 1.5 } }
					}
					random_list = {
						75 = {
						}
						5 = {
							character_event = { id = 45000 days = 17 } # A great number of rebels flock to the revolter's banner
						}
						20 = {
							character_event = { id = 45004 days = 17 } # Rebels flock to the revolter's banner
						}
					}
				}
			}
		}
	}
}

# Inform faction backer - Powerful Vassal Takeover
letter_event = {
	id = 8221
	desc = "EVTDESC8221"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "GOOD"
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROMFROM
			years = 5
		}

		if = {
			limit = { event_target:new_title_holder = { NOT = { character = ROOT } } }
			add_favor = event_target:new_title_holder
			opinion = {
				who = event_target:new_title_holder
				modifier = opinion_favorite
				years = 5
			}
		}

		add_character_modifier = {
			name = faction_powerful_vassal_takeover_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Inform other vassals - Powerful Vassal Takeover
character_event = {
	id = 8222
	desc = EVTDESC8222
	
	notification = yes
	
	picture = GFX_evt_council
	border = GFX_event_normal_frame_intrigue
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = "I_SEE"
	}
}

# Demand accepted - Powerful Vassal Takeover
letter_event = {
	id = 8223
	desc = "EVTDESC8223"
	
	is_triggered_only = yes
	
	option = {
		name = "EXCELLENT"
		clr_character_flag = faction_powerful_vassal_takeover_ultimatum_taken
		
		if = {
			limit = { event_target:new_title_holder = { NOT = { character = ROOT } } }
			add_favor = event_target:new_title_holder
			opinion = {
				who = event_target:new_title_holder
				modifier = opinion_favorite
				years = 5
			}
		}
		
		add_character_modifier = {
			name = faction_powerful_vassal_takeover_ultimatum_timer
			hidden = yes
			duration = 3650
		}
	}
}

# Demand rejected - Powerful Vassal Takeover
letter_event = {
	id = 8224
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
		
		clr_character_flag = faction_powerful_vassal_takeover_ultimatum_taken

		FROM = { set_character_flag = powerful_vassal_takeover_target }
		
		faction_powerful_vassal_takeover = { # The target (title) of the faction
			reverse_war = {
				target = ROOT
				casus_belli = powerful_vassal_takeover_war
				faction = faction_powerful_vassal_takeover
			}
		}
	}
}

# Winning war notification - Powerful Vassal Takeover
letter_event = {
	id = 8225
	desc = "EVTDESC8225"

	immediate = {
		clr_character_flag = helped_win_war
	}

	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8225"
		opinion = {
			who = FROM
			modifier = opinion_favorite
			years = 5
		}
		add_favor = FROM
	}
}

# Winning war notification - New title holder
character_event = {
	id = 8226
	desc = "EVTDESC8226"
	picture = GFX_evt_coronation
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes

	immediate = {
		primary_title = {
			if = {
				limit = { has_law = succession_voting_power_0 }
				add_law_w_cooldown = succession_voting_power_1
			}
			if = {
				limit = { 
					NOT =  { has_law = succ_byzantine_elective } 
					OR =  { 
						title = e_hre 
						has_title_flag = alternate_hre
					} 
					NOT =  { has_law = succ_feudal_elective } 
				}
				add_law_w_cooldown = succ_hre_elective
			}
			if = {
				limit = { 
					NOR =  { 
						title = e_hre 
						has_title_flag = alternate_hre
						has_law = succ_feudal_elective 
						has_law = succ_byzantine_elective
					} 
				}
				add_law_w_cooldown = succ_feudal_elective
			}
		}

	}
	
	option = {
		name = "EVTOPTA8226"
		clr_character_flag = new_title_holder
		job_chancellor = { remove_title = job_chancellor }
		job_marshal = { remove_title = job_marshal }
		job_treasurer = { remove_title = job_treasurer }
		job_spymaster = { remove_title = job_spymaster }
		job_spiritual = { remove_title = job_spiritual }
		any_vassal = {
			limit = {
				has_character_flag = helped_win_war
			}
			character_event = { id = 8225 days = 1 }
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_favorite
					years = 5
				}
				reverse_add_favor = ROOT
			}
		}
	}
}