
###########################################
#
# 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 = {
		has_plot = yes
		is_plot_active = no
		num_of_plot_backers = 1
		any_courtier = {
			has_job_title = job_spymaster
			NOT = { is_plot_target_of = ROOT }
		}
		top_liege = {
			any_realm_lord = {
				OR = {
					higher_tier_than = BARON
					is_patrician = yes
				}
				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.85
			any_plot_backer = {
				trait = imbecile
			}
		}
		modifier = {
			factor = 0.85
			any_plot_backer = {
				trait = lunatic
			}
		}
		modifier = {
			factor = 0.95
			num_of_plot_backers = 2
		}
		modifier = {
			factor = 0.95
			num_of_plot_backers = 4
		}
		modifier = {
			factor = 0.85
			num_of_plot_backers = 6
		}
		modifier = {
			factor = 0.85
			num_of_plot_backers = 8
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
	}

	option = {
		name = "EVTOPTA7250" #Can my spymaster never bring me good news?
		hidden_tooltip = {
			random_realm_lord = {
				limit = {
					OR = {
						higher_tier_than = BARON
						is_patrician = yes
					}
					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"
	border = GFX_event_letter_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		FROM = { reveal_plot = ROOT }
	}
	
	option = {
		name = "EVTOPTA7255" #A little blackmail can't hurt
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				trait = greedy
			}
			modifier = {
				factor = 2
				trait = envious
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -25 } }
			}
			modifier = {
				factor = 0
				FROM = {
					plot_target_char = {
						OR = {
							NOT = { reverse_opinion = { who = ROOT value = -25 } }
							is_rival = ROOT
						}
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					plot_target_char = {
						OR = {
							has_non_aggression_pact_with = ROOT
							is_allied_with = ROOT
							reverse_opinion = { who = ROOT value = 50 }
							is_friend = ROOT
						}
					}
				}
			}
		}
		FROM = { letter_event = { id = 7260 days = 1 tooltip = "EVTTOOLTIP7260" } }
	}
	option = {
		name = "EVTOPTC7255" #Reveal it
		ai_chance = {
			factor = 30
			modifier = {
				factor = 3
				trait = just
			}
			modifier = {
				factor = 2
				trait = diligent
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -25 } }
			}
			modifier = {
				factor = 0
				FROM = {
					plot_target_char = {
						OR = {
							NOT = { reverse_opinion = { who = ROOT value = -25 } }
							is_rival = ROOT
						}
					}
				}
			}
		}
		FROM = {
			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 = devious_plotter
					who = PREV
					months = 120
				}
				if = {
					limit = {
						liege = { NOT = { character = ROOT } }
					}
					liege = {
						opinion = {
							who = PREVPREV
							modifier = devious_plotter
							months = 120
						}
					}
				}
			}
		}
	}
	option = {
		name = "EVTOPTB7255" #It does not concern me
		ai_chance = {
			factor = 20
			modifier = {
				factor = 2
				trait = slothful
			}
			modifier = {
				factor = 2
				trait = content
			}
			modifier = {
				factor = 0.1
				NOT = { opinion = { who = FROM value = -50 } }
			}
		}
	}
}

# Bounce event (when blackmail done by diplo-action)
character_event = {
	id = 7259
	
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		FROM = { letter_event = { id = 7260 } }
	}
}

# Blackmail attempt
letter_event = {
	id = 7260
	desc = "EVTDESC7260"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA7260" #Give in
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.1
				NOT = { wealth = 100 }
			}
			modifier = {
				factor = 2
				wealth = 250
			}
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 1.5
				trait = paranoid
			}
			modifier = {
				factor = 1.5
				trait = deceitful
			}
		}
		wealth = -100
		opinion = {
			who = FROM
			modifier = opinion_blackmailed
			years = 10
		}
		hidden_tooltip = {
			FROM = { letter_event = { id = 7265 days = 3 } }
		}
	}
	option = {
		name = "EVTOPTB7260" #I won't tolerate blackmail!
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.1
				trait = craven
			}
			modifier = {
				factor = 1.5
				trait = proud
			}
			modifier = {
				factor = 1.5
				trait = brave
			}
			modifier = {
				factor = 1.5
				trait = wroth
			}
		}
		opinion = {
			who = FROM
			modifier = opinion_failed_blackmail
			multiplier = 2
			years = 10
		}
		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 = devious_plotter
				who = ROOT
				months = 120
			}
			if = {
				limit = {
					liege = { NOT = { character = ROOT } }
				}
				liege = {
					opinion = {
						who = ROOT
						modifier = devious_plotter
						months = 120
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = { letter_event = { id = 7270 days = 3 } }
		}
	}
}

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

	option = {
		name = "EXCELLENT"
		treasury = 100
		clr_character_flag = attempted_blackmail
	}
}

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

	option = {
		name = "EVTOPTA7270"
		clr_character_flag = attempted_blackmail
	}
}


###########################################
# 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 = {
			has_plot = yes
			NOR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			is_plot_active = no
			OR = {
				NOT = { religion_group = muslim }
				trait = hedonist
				trait = drunkard
			}
			NOR = {
				has_character_flag = event7041
				plot_target_char = {
					any_known_plotter = { character = PREVPREV }
				}
			}
		}
		NOR = {
			trait = temperate
			is_smart_trigger = yes
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = imbecile
		}
		modifier = {
			factor = 0.75
			OR = {
				trait = slow
				trait = dull
			}
		}
		modifier = {
			factor = 0.75
			trait = honest
		}
		modifier = {
			factor = 2.0
			trait = deceitful
		}
		modifier = {
			factor = 5.0
			trait = paranoid
		}
		modifier = {
			factor = 2.0
			trait = craven
		}
		modifier = {
			factor = 2.0
			trait = trusting
		}
		modifier = {
			factor = 0.75
			NOT = { intrigue = 5 }
		}
		modifier = {
			factor = 1.5
			intrigue = 8
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
	}
	
	option = {
		name = "EVTOPTA7040"
		random_backed_character = {
			limit = {
				has_plot = yes
				NOR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				is_plot_active = no
				NOR = {
					has_character_flag = event7041
					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"
		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
		}
		if = {
			limit = {
				NOT = { has_plot = plot_seduce }
			}
			plot_target_char = {
				opinion = {
					modifier = devious_plotter
					who = ROOT
					months = 120
				}
				if = {
					limit = {
						independent = no
						liege = { NOT = { character = ROOT } }
					}
					liege = {
						opinion = {
							who = ROOT
							modifier = devious_plotter
							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
				has_plot = plot_take_revenge
			}
			is_plot_active = no
			OR = {
				NOT = { religion_group = muslim }
				trait = hedonist
				trait = drunkard
			}
			NOR = {
				has_character_flag = event7041
				plot_target_char = {
					any_known_plotter = { character = PREVPREV }
				}
			}
		}
		NOR = {
			trait = temperate
			is_smart_trigger = yes
		}
	}
	
	mean_time_to_happen = {
		months = 600

		modifier = {
			factor = 0.5
			trait = drunkard
		}
		modifier = {
			factor = 0.5
			trait = imbecile
		}
		modifier = {
			factor = 0.75
			OR = {
				trait = slow
				trait = dull
			}
		}
		modifier = {
			factor = 0.75
			trait = honest
		}
		modifier = {
			factor = 2.0
			trait = deceitful
		}
		modifier = {
			factor = 4.0
			trait = paranoid
		}
		modifier = {
			factor = 2.0
			trait = craven
		}
		modifier = {
			factor = 2.0
			trait = trusting
		}
		modifier = {
			factor = 0.75
			NOT = { intrigue = 5 }
		}
		modifier = {
			factor = 1.5
			intrigue = 8
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
	}
	
	option = {
		name = EVTOPTA7040
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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 = {
			opinion = {
				modifier = devious_plotter
				who = ROOT
				months = 120
			}
			if = {
				limit = {
					independent = no
					liege = { NOT = { character = ROOT } }
				}
				liege = {
					opinion = {
						who = ROOT
						modifier = devious_plotter
						months = 120
					}
				}
			}
		}
		if = {
			limit = {
				ai = yes
				NOR = {
					trait = lunatic
					trait = possessed
					independent = yes
					has_plot = plot_take_revenge
				}
			}
			set_character_flag = abort_plot
		}
	}
}

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

# Ultimatum - Install Pretender
letter_event = {
	id = 8036
	desc = "EVTDESC8036"
	
	is_triggered_only = yes
	
	trigger = {
		FROM = { leads_faction = faction_pretender }
	}
	
	immediate = {
		FROM = {
			clr_character_flag = civil_war_faction_leader
			clr_character_flag = civil_war_faction_member
			clr_character_flag = will_join_civil_war
			diplomatic_immunity = yes 
			any_faction_backer = {
				faction = faction_pretender
				clr_character_flag = civil_war_faction_member
				clr_character_flag = will_join_civil_war
				diplomatic_immunity = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA8000"
		ai_chance = {
			factor = 5
			modifier = {
				factor = 5
				FROM = {
					supported_claimant_title = {
						is_primary_holder_title = no
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					supported_claimant_title = {
						is_primary_holder_title = yes
					}
				}
			}
			modifier = {
				factor = 0			
				NOT = {
					FROM = {
						faction_power = {
							faction = faction_pretender
							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
			}
		}

		log = "[Root.GetBestName] has caved to the claimant faction demand of [From.GetBestName]."

		hidden_tooltip = {
			FROM = {
				any_faction_backer = {
					faction = faction_pretender
					letter_event = { id = 8098 }
					diplomatic_immunity = no
					set_character_flag = no_need_to_inform
				}
				letter_event = { id = 8061 }
				diplomatic_immunity = no
				set_character_flag = no_need_to_inform
			}
			any_vassal = {
				limit = {
					ai = no
					NOT = { has_character_flag = no_need_to_inform }
				}
				character_event = { id = 8099 }
			}
			any_vassal = {
				clr_character_flag = no_need_to_inform
			}
		}
	}
	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_pretender
						power = 1.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = {
						faction = faction_pretender
						power = 1.5
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = {
						faction = faction_pretender
						power = 2.0
					}
				}
			}
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = {
						faction = faction_pretender
						power = 3.0
					}
				}
			}	
			modifier = {
				factor = 0.5
				FROM = {
					faction_power = {
						faction = faction_pretender
						power = 4.0
					}
				}
			}
		}

		log = "[Root.GetBestName] has refused the claimant faction demand of [From.GetBestName] -- this should start a civil war."

		FROM = {
			tooltip = { any_faction_backer = { faction = faction_pretender } }
			hidden_tooltip = {
				letter_event = { id = 8111 } #inform
				
				#setup faction leader
				diplomatic_immunity = no
				clr_character_flag = faction_claimant_ultimatum_taken
				if = {
					limit = { supported_claimant = { NOT = { character = PREV } } }
					supported_claimant = {
						opinion = { modifier = opinion_very_grateful who = PREV years = 10 }
						reverse_opinion = { modifier = opinion_fought_for_claimant who = PREV years = 20 }
					}
				}
				set_character_flag = original_war_liege
				pf_setup_rebel_effect = yes
				
				#setup faction backers
				any_faction_backer = {
					faction = faction_pretender
					diplomatic_immunity = no
					supported_claimant = {
						opinion = { modifier = opinion_very_grateful who = PREV years = 10 }
						reverse_opinion = { modifier = opinion_fought_for_claimant who = PREV years = 20 }
					}
					pf_setup_rebel_effect = yes
				}
				
				#call claimant into war, if possible
				if = {
					limit = { supported_claimant = { NOT = { vassal_of = ROOT } } }
					supported_claimant = { character_event = { id = PlusFaction.423 days = 1 } }
				}
			}
		}
		
		#start the actual war
		set_character_flag = faction_pretender_war
		FROM = {
			if = {
				limit = { supported_claimant = { character = PREV } }
				faction_pretender = { # The target (title) of the faction
					reverse_war = {
						target = FROM
						casus_belli = claim_on_liege_plot
						faction = faction_pretender
					}
				}
			}
			if = {
				limit = {
					NOT = { supported_claimant = { character = PREV } }
				}
				faction_pretender = { # The target (title) of the faction
					reverse_war = {
						target = FROM
						casus_belli = other_claim_on_liege_plot
						faction = faction_pretender
					}
				}
			}
		}
	
		#inform remaining vassals
		hidden_tooltip = {
			any_vassal = {
				letter_event = { id = PlusFaction.403 }
			}
		}
	}
}

# Claimant is informed of the ultimatum on their behalf
letter_event = {
	id = 8037
	desc = "EVTDESC8037"
	
	is_triggered_only = yes
	
	ai = no
	
	option = {
		name = "EVTOPTA8037"
	}	
}

# Demand accepted - Install Claimant
letter_event = {
	id = 8061
	desc = "EVTDESC8061"
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = faction_claimant_ultimatum_taken
		clr_character_flag = civil_war_faction_leader
		clr_character_flag = civil_war_faction_member
		clr_character_flag = will_join_civil_war
		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"
		supported_claimant = {
			if = {
				limit = {
					prisoner = yes
					host = {
						OR = {
							character = FROM
							is_liege_or_above = 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 }
							}
						}
					}
					if = {
						limit = {
							is_primary_holder_title = yes
						}
						FROM = {
							any_demesne_title = {
								limit =	{
									is_primary_holder_title_tier = yes
									OR = {
										tier = KING
										tier = EMPEROR
									}
								}
								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
								}									
							}
							any_demesne_title = {
								limit = {
									OR = {
										has_law = tribal_organization_1
										has_law = tribal_organization_2
										has_law = tribal_organization_3
										has_law = tribal_organization_4
									}
								}
								if = {
									limit = { has_law = tribal_organization_1 }
									add_law = tribal_organization_0
								}
								if = {
									limit = { has_law = tribal_organization_2 }
									add_law = tribal_organization_1
								}
								if = {
									limit = { has_law = tribal_organization_3 }
									add_law = tribal_organization_2
								}
								if = {
									limit = { has_law = tribal_organization_4 }
									add_law = tribal_organization_3
								}
							}
							any_demesne_title = {
								limit = {
									is_primary_holder_title_tier = yes
									is_primary_holder_title = no
								}
								usurp_title_plus_barony_if_unlanded = { target = PREVPREVPREVPREV type = faction_demand }
							}
							primary_title = {
								usurp_title_plus_barony_if_unlanded = { target = PREVPREVPREVPREV type = faction_demand }
								hidden_tooltip = { make_primary_title = yes }
							}
							set_defacto_liege = PREVPREVPREV
							pf_liege_change_effect = yes
						}
						hidden_tooltip = {
							if = {
								limit = {
									FROM = {
										ROOT = {
											supported_claimant = {
												primary_title = { 
													NOT = { has_law = succ_feudal_elective } 
													FROM = {
														capital_scope = {
															de_jure_liege_or_above = PREVPREV
														}
													}
												}
											}
										}
										OR = {
											num_of_count_titles = 2
											primary_title = { higher_tier_than = COUNT }
										}
									}
								}
								ROOT = {
									supported_claimant = {
										FROM = {
											capital_scope = {
												county = {
													usurp_title_plus_barony_if_unlanded = { target = PREVPREVPREV type = faction_demand }
												}
											}
										}
									}
								}
							}	
						}
						hidden_tooltip = {
							FROM = { 
								set_defacto_liege = PREVPREVPREV
								pf_liege_change_effect = yes								
								any_vassal = {
									limit = {
										NOT = { primary_title = { de_jure_liege_or_above = PREVPREV } }
									}
									set_defacto_liege = PREVPREVPREVPREV
									pf_liege_change_effect = yes
								}
							}
						}
					}
					if = {
						limit = {
							is_primary_holder_title = no
							OR = {
								tier = KING
								tier = EMPEROR
							}
						}
						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
						}
					}
					if = {
						limit = {
							is_primary_holder_title = no
						}
						if = {
							limit = { has_law = tribal_organization_1 }
							add_law = tribal_organization_0
						}
						if = {
							limit = { has_law = tribal_organization_2 }
							add_law = tribal_organization_1
						}
						if = {
							limit = { has_law = tribal_organization_3 }
							add_law = tribal_organization_2
						}
						if = {
							limit = { has_law = tribal_organization_4 }
							add_law = tribal_organization_3
						}
					}
					if = {
						limit = {
							is_primary_holder_title = no
						}
						usurp_title_plus_barony_if_unlanded_and_vassals_no_adj = { target = PREVPREV type = faction_demand }					
					}
				}
			}
		}
	}
}

# Inform faction backer - Claimant Installed
letter_event = {
	id = 8098
	desc = "EVTDESC8098"
	
	show_from_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = civil_war_faction_leader
		clr_character_flag = civil_war_faction_member
		clr_character_flag = will_join_civil_war
		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"
		clr_character_flag = civil_war_faction_leader
		clr_character_flag = civil_war_faction_member
		clr_character_flag = will_join_civil_war
	}
}

### Demand rejected events

# Demand rejected - Install Claimant
letter_event = {
	id = 8111
	desc = "EVTDESC8100"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA8100"
	}
}

# 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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}

		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				limit = { ai = no }
				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
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}

		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 8153 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			plot_target_char = { character_event = { id = 8155 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 8156 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 8158 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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
		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"
		
		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 = {
			event_target:plot_target = { character_event = { id = 8155 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA8165"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
			}
			set_character_flag = abort_plot
			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
					has_plot = plot_take_revenge
				}
			}
			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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			is_adult = no
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				is_adult = no
				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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}

		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					is_adult = no
					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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
			from = ROOT
			to = FROM
			value = 1.0
		}
		FROM = { character_event = { id = 8173 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 8175 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 8176 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 8178 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"		
		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 = {
			event_target:plot_target = { character_event = { id = 8175 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA8185"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
			}
			set_character_flag = abort_plot
			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
					has_plot = plot_take_revenge
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

### 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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}

		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = yes
				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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = yes
					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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7703 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7705 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7706 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7708 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7705 days = 27 } }
			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"
	}
}

# Archer Ambush - Initiator informs other plotter
character_event = {
	id = 7712
	desc = "EVTDESC7712"
	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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

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

	option = {
		name = "EVTOPTA7715"
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
			}
			set_character_flag = abort_plot
			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"
		clr_character_flag = murder_in_motion
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

### 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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = 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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}

		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = yes
				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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}

		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
	}
	
	immediate = {
		any_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = yes
					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
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7723 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7725 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7726 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7728 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7725 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

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

	option = {
		name = "EVTOPTA7735"
		set_character_flag = abort_plot
		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"
		clr_character_flag = murder_in_motion
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

### 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
			has_plot = plot_take_revenge
		}
		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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				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 = {
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7743 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7745 days = 27 } }
		}
	}
	
	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"
		FROM = { plot_target_char = { 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7746 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7748 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7745 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7755"
		set_character_flag = abort_plot
		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"
		clr_character_flag = murder_in_motion
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

### 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
			has_plot = plot_take_revenge
		}
		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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	immediate = {
		plot_target_char = { save_event_target_as = plot_target }
	}
	
	option = {
		name = "EVTOPTA7760" # The conspirators get the man inside
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7763 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7765 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7766 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7768 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7765 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7775"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			trait = incapable
			prisoner = no
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				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
				}
			}
		}
	}
	
	immediate = {
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					#NOT = { is_murder_quest_target_of_prev_trigger = yes }
					age = 5
					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
		}
	}
	
	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
	}
	
	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:plot_leader = {
			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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7783 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7785 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 }
						NOT = { is_weak_trigger = yes }
						NOT = { is_strong_trigger = yes }
						random = 75
					}
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					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 }
					NOT = { is_weak_trigger = yes }
					NOT = { is_strong_trigger = yes }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7785 days = 27  } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7795"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			is_adult = no
			NOT = { trait = incapable }
			prisoner = no
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				is_adult = no
				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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					is_adult = no
					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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7803 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7805 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7806 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 }
					NOT = { is_weak_trigger = yes }
					NOT = { is_strong_trigger = yes }
					random = 75
				}
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7805 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7815"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = 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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = 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 = "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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7823 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7825 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7826 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7828 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7825 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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 = {
		character_event = { id = 11 } # Consequences of discovery
		clear_event_target = target_victim
	}
	
	option = {
		name = "EVTOPTA7835"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = 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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = 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 = "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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7843 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7845 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7846 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7848 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7845 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7855"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			age = 5
			is_adult = no
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				age = 5
				is_adult = no
				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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					age = 5
					is_adult = no
					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 = "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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7863 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7865 days = 27 } }
		}
	}
	
	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"
		FROM = { plot_target_char = { 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7866 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7868 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7865 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7875"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = 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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = 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 = "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 = {
				plot_power = 0.5
			}
		}
		
		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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7883 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7885 days = 27 } }
		}
	}
	
	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"
		FROM = { plot_target_char = { 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7886 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7888 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7885 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7895"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		plot_target_char = {
			NOT = { is_murder_quest_target_of_root_trigger = yes }
			is_adult = yes
			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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.9
			plot_power_contribution =
			{
				plotter = ROOT
				power = 1.5
			}
		}
	}
	
	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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			plot_power = 0.5
			plot_target_char = {
				NOT = { is_murder_quest_target_of_root_trigger = yes }
				is_adult = 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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = 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 = "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 = {
				plot_power = 0.5
			}
		}
		
		event_target:plot_leader = {
			character_event = { id = 7910 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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7903 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7905 days = 27 } }
		}
	}
	
	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"
	}
}

# 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 = "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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7906 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7908 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7905 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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
	}
	
	option = {
		name = "EVTOPTA7915"
		set_character_flag = abort_plot
		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"
		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
			has_plot = plot_take_revenge
		}
		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 = 500
		modifier = {
			factor = 0.75
			has_character_modifier = plot_assisted_spying
		}
		modifier = {
			factor = 0.60
			has_character_modifier = plot_assisted_spying2
		}
		modifier = {
			factor = 0.45
			has_character_modifier = plot_assisted_spying3
		}
		modifier = {
			factor = 0.30
			has_character_modifier = plot_assisted_spying4
		}
		modifier = {
			factor = 0.15
			has_character_modifier = plot_assisted_spying5
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 10 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 20 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 30 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 40 } }
		}
		modifier = {
			factor = 1.1
			plot_target_char = { check_variable = { which = "personal_spy_network" value = 50 } }
		}
		modifier = {
			factor = 0.66
			plot_power = 1.0
		}
		modifier = {
			factor = 0.66
			plot_power = 1.5
		}
		modifier = {
			factor = 0.66
			plot_power = 2.0
		}
		modifier = {
			factor = 0.66
			plot_power = 3.0
		}
		modifier = {
			factor = 0.66
			plot_power = 4.0
		}
		modifier = {
			factor = 0.66
			plot_power = 6.0
		}
		modifier = {
			factor = 0.66
			plot_power = 8.0
		}
		modifier = {
			factor = 0.66
			plot_power = 10.0
		}		
		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
					has_plot = plot_take_revenge
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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 = {
				limit = { ai = no }
				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
				has_plot = plot_take_revenge
			}
			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 = 2000
		modifier = {
			factor = 0.75
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying
			}
		}
		modifier = {
			factor = 0.65
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying2
			}
		}
		modifier = {
			factor = 0.55
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying3
			}
		}
		modifier = {
			factor = 0.45
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying4
			}
		}
		modifier = {
			factor = 0.35
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				has_character_modifier = plot_assisted_spying5
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 10 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 20 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 30 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 40 }
				}
			}
		}
		modifier = {
			factor = 1.1
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_target_char = {
					has_character_flag = has_personal_spy_network
					check_variable = { which = "personal_spy_network" value = 50 }
				}
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 2.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 3.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 4.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 6.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 8.0
			}
		}
		modifier = {
			factor = 0.66
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				plot_power = 10.0
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				ROOT = {
					plot_power_contribution =
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.9
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
					has_plot = plot_take_revenge
				}
				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
					has_plot = plot_take_revenge
				}
				plot_power = 0.5
				plot_target_char = {
					NOT = { is_murder_quest_target_of_root_trigger = yes }
					is_adult = yes
					NOT = { trait = incapable }
					NOT = { is_inaccessible_trigger = yes }
					prisoner = no
					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 = "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 = 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 = {
				plot_power = 0.5
			}
		}
		
		event_target:plot_leader = {
			character_event = { id = 7960 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 = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = 7953 tooltip = "EVTTOOLTIP8153" } }
		hidden_tooltip = {
			event_target:plot_target = { character_event = { id = 7955 days = 27 } }
		}
	}
	
	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"
	}
}

# 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
	
	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?
		FROM = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
				has_plot = plot_take_revenge
			}
			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 } }
					}
					character_event = { id = 7956 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { 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 } }
					}
					character_event = { id = 7958 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { 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"
		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"
		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 = {
			event_target:plot_target = { character_event = { id = 7955 days = 27 } }
			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"
	}
}

# 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"
		tooltip = { dishonorable_plus_1_effect = yes }
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

# 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"
		if = {
			limit = {
				trait = honest
			}
			remove_trait = honest
			
		}
		if = {
			limit = {
				trait = kind
			}
			remove_trait = kind
		}
	}
}

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

	option = {
		name = "EVTOPTA7965"
		set_character_flag = abort_plot
		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"
		clr_character_flag = murder_in_motion
	}
}

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

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

	is_triggered_only = yes
	
	trigger = {
		is_liege_of = FROM
		FROM = { has_plot = plot_weaken_fellow_vassal }
	}
	
	option = { #Yes
		name = "EVTOPTA7500"
		FROM = {
			letter_event = { id = 7501 days = 3 tooltip = "EVTTOOLTIP7501" }
			plot_target_char = {
				letter_event = { id = 7504 days = 4 tooltip = "EVTTOOLTIP7504A" }
			}
		}
 		ai_chance = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					trait = just
					NOT = {
						opinion = { who = FROM value = -10 }
					}
				}
			}
			modifier = {
				factor = 0.2
				trait = deceitful
			}
			modifier = {
				factor = 0.5
				FROM = {
					plot_target_char = {
						ROOT = {
							likes_better_than = { who = PREV than = FROM }
						}
					}
				}
			}
		}
	}
	option = { #No
		name = "EVTOPTB7500"
		FROM = {
			letter_event = { id = 7502 days = 3 tooltip = "EVTTOOLTIP7502" }
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 0.5
				FROM = {
					plot_target_char = {
						ROOT = {
							likes_better_than = { who = FROM than = PREV }
						}
					}
				}
			}
		}
	}
}
	
# Plotter informed Liege agrees
letter_event = {
	id = 7501
	desc = "EVTDESC7501"

	is_triggered_only = yes
	
	trigger = {
		FROM = { is_liege_of = ROOT }
		has_plot = plot_weaken_fellow_vassal
	}
	
	option = {
		name = "EVTOPTA7501"
		ROOT = { set_character_flag = weaken_vassal_plotter }
		plot_target_char = {
			custom_tooltip = { text = "EVTTOOLTIP7504" }
		}
		FROM = {
			opinion = {
				modifier = approves_of_my_behaviour
				who = ROOT
				years = 2
			}
		}
	}
}
	
# Plotter informed Liege disagrees
letter_event = {
	id = 7502
	desc = "EVTDESC7502"

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

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

	is_triggered_only = yes
	
	trigger = {
		FROM = { is_liege_of = ROOT }
		FROMFROM = { has_plot = plot_weaken_fellow_vassal }
	}
	
	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
	
	trigger = {
		FROM = { has_plot = plot_weaken_fellow_vassal }
	}			
	
	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
	}
}

# 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 }
				opinion = {
					modifier = opinion_grateful
					who = ROOT
					years = 5
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_bitter
				who = ROOT
				years = 6
			}
		}
	}
}

# 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 }
				opinion = {
					modifier = opinion_respects_liege
					who = ROOT
					years = 5
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_bitter
				who = ROOT
				years = 6
			}
		}
	}
}

# Plotter informed 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 Liege's ultimatum rejected
character_event = {
	id = 7511
	desc = "EVTDESC7511"
	picture = GFX_evt_council

	is_triggered_only = yes
	
	trigger = {
		has_plot = plot_weaken_fellow_vassal
	}
	
	option = {
		name = "EVTOPTA7511" #So be it
		clr_character_flag = weaken_vassal_plotter
		cancel_plot = plot_weaken_fellow_vassal
	}
	option = {
		name = "EVTOPTB7511" #Never! It will be war!
		clr_character_flag = weaken_vassal_plotter
		hidden_tooltip = { reveal_plot = yes }
		plot_target_title = {
			reverse_war = {
				target = ROOT
				casus_belli = weaken_vassal_plot
				plot_backers = yes
			}
		}
	}
}

# 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"
		set_character_flag = abort_plot
		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"
		set_character_flag = abort_plot
		plot_target_char = {
			opinion = {
				modifier = scheming_bastard
				who = ROOT
				years = 6
			}
		}
	}
}

##############################
# Antiking Faction Ultimatum #
##############################

# 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 = {
			opinion = {
				modifier = opinion_increased_council_power
				who = ROOT
				months = 12
			}
		}
		FROM = {
			faction_increase_council_power = { # The target (title) of the faction
				if = {
					limit = { has_law = law_voting_power_0 }
					add_law_w_cooldown = law_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = war_voting_power_0 }
					add_law_w_cooldown = war_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = revoke_title_voting_power_0 }
					add_law_w_cooldown = revoke_title_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = imprison_voting_power_0 }
					add_law_w_cooldown = imprison_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = grant_title_voting_power_0 }
					add_law_w_cooldown = grant_title_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = banish_voting_power_0 }
					add_law_w_cooldown = banish_voting_power_1
					break = yes
				}
				if = {
					limit = { has_law = execution_voting_power_0 }
					add_law_w_cooldown = execution_voting_power_1
					break = 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 = { has_law = true_cognatic_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 }
					}
				}
				if = {
					limit = { has_law = law_voting_power_0 }
					add_law_w_cooldown = law_voting_power_1 
				}
				if = {
					limit = { has_law = war_voting_power_0 }
					add_law_w_cooldown = war_voting_power_1
				}
				custom_tooltip = {
					text = overthrow_text
					hidden_tooltip = {
						if = {
							limit = { 
								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 }
								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 = { NOT =  { has_law = succ_feudal_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
			}
			letter_event = { id = 8225 days = 1 }
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_favorite
					years = 5
				}
				reverse_add_favor = ROOT
			}
		}
	}
}
