namespace = plots
# TO DO - expand Discredit Fellow Vassal plot with few options giving prison reason
# TO DO - make Discredit Fellow Vassal plot similar to Kill Character plot

###########################################
# Discredit fellow vassal
###########################################
# Plotter - High plot power - Hire professional to forge incriminating documents
character_event = {
	id = plots.100
	desc = EVTDESCplots.100
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
		plot_power = 0.7
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = { factor = 0.75 plot_power = 0.8 }
		modifier = { factor = 0.75 plot_power = 0.9 }
		modifier = { factor = 0.75 plot_power = 1 }
	}
	
	option = { # Yes
		name = EVTOPTAplots.100
		liege = { letter_event = { id = plots.101 days = 3 tooltip = EVTTOOLTIPplots.101 } }
		set_character_flag = discredit_fellow_vassal_attempt
	}
	option = { # No
		name = EVTOPTBplots.100
		ai_chance = {
			factor = 0
		}
	}
}
# Liege - Recieves incriminating documents
letter_event = {
	id = plots.101
	desc = EVTDESCplots.101
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.101
		FROM = {
			letter_event = { id = plots.102 days = 3 tooltip = EVTTOOLTIPplots.102 }
			plot_target_char = { reverse_opinion = { modifier = opinion_discredited who = ROOT years = 10 } }
		}
	}
}
# Plotter - Liege is convinced
letter_event = {
	id = plots.102
	desc = EVTDESCplots.102
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.102
	}
}
# Plotter - Target has low opinion of liege - Found actual incriminating documents
character_event = {
	id = plots.110
	desc = EVTDESCplots.110
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
		plot_target_char = { NOT = { opinion = { who = liege value = 0 } } }
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = {
			factor = 0.75
			NOT = { plot_target_char = { opinion = { value = -20 who = liege } } }
		}
		modifier = {
			factor = 0.75
			NOT = { plot_target_char = { opinion = { value = -40 who = liege } } }
		}
		modifier = {
			factor = 0.75
			NOT = { plot_target_char = { opinion = { value = -60 who = liege } } }
		}
	}
	
	option = { # Yes
		name = EVTOPTAplots.110
		liege = { letter_event = { id = plots.101 days = 3 tooltip = EVTTOOLTIPplots.101 } }
		set_character_flag = discredit_fellow_vassal_attempt
	}
	option = { # No
		name = EVTOPTBplots.110
		ai_chance = {
			factor = 0
		}
	}
}
# Plotter - Liege's spymaster is on the plot - Have spymaster convince liege
character_event = {
	id = plots.120
	desc = EVTDESCplots.120
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
		any_plot_backer = {
			has_job_title = job_spymaster
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = { # Yes
		name = EVTOPTAplots.120
		liege = { letter_event = { id = plots.121 days = 3 tooltip = EVTTOOLTIPplots.121 } }
		set_character_flag = discredit_fellow_vassal_attempt
		ai_chance = {
			factor = 2
		}
	}
	option = { # No
		name = EVTOPTBplots.120
		ai_chance = {
			factor = 1
		}
	}
}
# Liege - Spymaster tries to convince me
letter_event = {
	id = plots.121
	desc = EVTDESCplots.121
	
	is_triggered_only = yes
	
	option = { # Convinced
		name = EVTOPTAplots.121
		FROM = {
			letter_event = { id = plots.122 days = 3 tooltip = EVTTOOLTIPplots.122 }
			plot_target_char = { reverse_opinion = { modifier = opinion_discredited who = ROOT years = 8 } }
		}
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = paranoid }
			modifier = { factor = 2 trait = just }
			modifier = { factor = 2 trait = honest }
		}
	}
	option = { # Not convinced
		name = EVTOPTAplots.121
		FROM = { letter_event = { id = plots.123 days = 3 tooltip = EVTTOOLTIPplots.123 } }
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = trusting }
			modifier = { factor = 2 trait = arbitrary }
			modifier = { factor = 2 trait = deceitful }
		}
	}
}
# Plotter - Liege is convinced
letter_event = {
	id = plots.122
	desc = EVTDESCplots.122
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.122
	}
}
# Plotter - Liege isn't convinced
letter_event = {
	id = plots.123
	desc = EVTDESCplots.123
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.123
		if = {
			limit = { has_character_flag = liege_is_suspicious_2 }
			set_character_flag = liege_is_suspicious_3
		}
		if = {
			limit = { has_character_flag = liege_is_suspicious_1 }
			set_character_flag = liege_is_suspicious_2
		}
		if = {
			limit = {
				NOT = { has_character_flag = liege_is_suspicious_1 }
				NOT = { has_character_flag = liege_is_suspicious_2 }
				NOT = { has_character_flag = liege_is_suspicious_3 }
			}
			set_character_flag = liege_is_suspicious_1
		}
	}
}
# Plotter - Multiple backers - Mass complain to liege
character_event = {
	id = plots.130
	desc = EVTDESCplots.130
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
		num_of_plot_backers = 4
	}
	
	mean_time_to_happen = {
		months = 120
		modifier = { factor = 0.75 num_of_plot_backers = 5 }
		modifier = { factor = 0.75 num_of_plot_backers = 6 }
	}
	
	option = { # Yes
		name = EVTOPTAplots.130
		liege = { letter_event = { id = plots.131 days = 3 tooltip = EVTTOOLTIPplots.131 } }
		set_character_flag = discredit_fellow_vassal_attempt
		ai_chance = {
			factor = 2
		}
	}
	option = { # No
		name = EVTOPTBplots.130
		ai_chance = {
			factor = 1
		}
	}
}
# Liege - Mass complaining
letter_event = {
	id = plots.131
	desc = EVTDESCplots.131
	
	is_triggered_only = yes
	
	option = { # Convinced
		name = EVTOPTAplots.131
		FROM = {
			letter_event = { id = plots.132 days = 3 tooltip = EVTTOOLTIPplots.132 }
			plot_target_char = { reverse_opinion = { modifier = opinion_discredited who = ROOT years = 8 } }
		}
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = paranoid }
			modifier = { factor = 2 trait = just }
			modifier = { factor = 2 trait = honest }
		}
	}
	option = { # Not convinced
		name = EVTOPTBplots.131
		FROM = { letter_event = { id = plots.133 days = 3 tooltip = EVTTOOLTIPplots.133 } }
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = trusting }
			modifier = { factor = 2 trait = arbitrary }
			modifier = { factor = 2 trait = deceitful }
		}
	}
}
# Plotter - Liege is convinced
letter_event = {
	id = plots.132
	desc = EVTDESCplots.132
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.132
	}
}
# Plotter - Liege isn't convinced
letter_event = {
	id = plots.133
	desc = EVTDESCplots.133
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.133
		if = {
			limit = { has_character_flag = liege_is_suspicious_2 }
			set_character_flag = liege_is_suspicious_3
		}
		if = {
			limit = { has_character_flag = liege_is_suspicious_1 }
			set_character_flag = liege_is_suspicious_2
		}
		if = {
			limit = {
				NOT = { has_character_flag = liege_is_suspicious_1 }
				NOT = { has_character_flag = liege_is_suspicious_2 }
				NOT = { has_character_flag = liege_is_suspicious_3 }
			}
			set_character_flag = liege_is_suspicious_1
		}
	}
}
# Plotter - Complain to liege
character_event = {
	id = plots.140
	desc = EVTDESCplots.140
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = { # Yes
		name = EVTOPTAplots.140
		liege = { letter_event = { id = plots.141 days = 3 tooltip = EVTTOOLTIPplots.141 } }
		set_character_flag = discredit_fellow_vassal_attempt
	}
	option = { # No
		name = EVTOPTBplots.140
	}
}
# Liege - Complaining
letter_event = {
	id = plots.141
	desc = EVTDESCplots.141
	
	is_triggered_only = yes
	
	option = { # Convinced
		name = EVTOPTAplots.141
		FROM = {
			letter_event = { id = plots.142 days = 3 tooltip = EVTTOOLTIPplots.142 }
			plot_target_char = { reverse_opinion = { modifier = opinion_discredited who = ROOT years = 6 } }
		}
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = paranoid }
			modifier = { factor = 2 trait = just }
			modifier = { factor = 2 trait = honest }
		}
	}
	option = { # Not convinced
		name = EVTOPTBplots.141
		FROM = { letter_event = { id = plots.143 days = 3 tooltip = EVTTOOLTIPplots.143 } }
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = trusting }
			modifier = { factor = 2 trait = arbitrary }
			modifier = { factor = 2 trait = deceitful }
		}
	}
}
# Plotter - Liege is convinced
letter_event = {
	id = plots.142
	desc = EVTDESCplots.142
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.142
	}
}
# Plotter - Liege isn't convinced
letter_event = {
	id = plots.143
	desc = EVTDESCplots.143
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.143
		if = {
			limit = { has_character_flag = liege_is_suspicious_2 }
			clr_character_flag = liege_is_suspicious_2
			set_character_flag = liege_is_suspicious_3
		}
		if = {
			limit = { has_character_flag = liege_is_suspicious_1 }
			clr_character_flag = liege_is_suspicious_1
			set_character_flag = liege_is_suspicious_2
		}
		if = {
			limit = {
				NOT = { has_character_flag = liege_is_suspicious_1 }
				NOT = { has_character_flag = liege_is_suspicious_2 }
				NOT = { has_character_flag = liege_is_suspicious_3 }
			}
			set_character_flag = liege_is_suspicious_1
		}
	}
}
# Plotter - Use something target said to make him look bad
character_event = {
	id = plots.150
	desc = EVTDESCplots.150
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		has_plot = plot_discredit_fellow_vassal
		plot_target_char = {
			is_adult = yes
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = discredit_fellow_vassal_attempt }
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	option = { # Yes
		name = EVTOPTAplots.150
		liege = { letter_event = { id = plots.151 days = 3 tooltip = EVTTOOLTIPplots.151 } }
		set_character_flag = discredit_fellow_vassal_attempt
	}
	option = { # No
		name = EVTOPTBplots.150
	}
}
# Liege - Bringing something target once said to my attention
letter_event = {
	id = plots.151
	desc = EVTDESCplots.151
	
	is_triggered_only = yes
	
	option = { # Convinced
		name = EVTOPTAplots.151
		FROM = {
			letter_event = { id = plots.152 days = 3 tooltip = EVTTOOLTIPplots.152 }
			plot_target_char = { reverse_opinion = { modifier = opinion_discredited who = ROOT years = 6 } }
		}
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = paranoid }
			modifier = { factor = 2 trait = just }
			modifier = { factor = 2 trait = honest }
		}
	}
	option = { # Not convinced
		name = EVTOPTAplots.151
		FROM = { letter_event = { id = plots.153 days = 3 tooltip = EVTTOOLTIPplots.153 } }
		ai_chance = {
			factor = 1
			modifier = { factor = 2 trait = trusting }
			modifier = { factor = 2 trait = arbitrary }
			modifier = { factor = 2 trait = deceitful }
		}
	}
}
# Plotter - Liege is convinced
letter_event = {
	id = plots.152
	desc = EVTDESCplots.152
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.152
	}
}
# Plotter - Liege isn't convinced
letter_event = {
	id = plots.153
	desc = EVTDESCplots.153
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.153
		if = {
			limit = { has_character_flag = liege_is_suspicious_2 }
			clr_character_flag = liege_is_suspicious_2
			set_character_flag = liege_is_suspicious_3
		}
		if = {
			limit = { has_character_flag = liege_is_suspicious_1 }
			clr_character_flag = liege_is_suspicious_1
			set_character_flag = liege_is_suspicious_2
		}
		if = {
			limit = {
				NOT = { has_character_flag = liege_is_suspicious_1 }
				NOT = { has_character_flag = liege_is_suspicious_2 }
				NOT = { has_character_flag = liege_is_suspicious_3 }
			}
			set_character_flag = liege_is_suspicious_1
		}
	}
}
# Liege - Becomes suspicous of plot
character_event = {
	id = plots.160
	desc = EVTDESCplots.160
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_vassal = {
			has_plot = plot_discredit_fellow_vassal
			OR = {
				has_character_flag = liege_is_suspicious_1
				has_character_flag = liege_is_suspicious_2
			}
		}
	}
	
	mean_time_to_happen = {
		months = 240
		modifier = { factor = 0.5 has_character_flag = liege_is_suspicious_2 }
	}
	
	option = { # Confront plotter
		name = EVTOPTAplots.160
		any_vassal = {
			limit = {
				has_plot = plot_discredit_fellow_vassal
				OR = {
					has_character_flag = liege_is_suspicious_1
					has_character_flag = liege_is_suspicious_2
				}
			}
			letter_event = { id = plots.161 days = 3 tooltip = EVTTOOLTIPplots.161 }
		}
	}
}
# Liege discovered plot
letter_event = {
	id = plots.161
	desc = EVTDESCplots.161
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.161
		FROM = { opinion = { modifier = opinion_tried_to_discredit_vassal who = ROOT months = 12 } }
	}
}

###########################################
# Brothel assassination
###########################################
# The plotter sees an opportunity - Brothel Assassination
character_event = {
	id = plots.300
	desc = EVTDESCplots.300
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			age = 15
			trait = lustful
			is_female = no
			prisoner = no
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { trait = incapable }
		}
		NOT = { has_character_flag = murder_in_motion }
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.300 # The conspirators provide the assassin
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = plots.312 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.305 days = 30 tooltip = EVTTOOLTIPplots.305 } }
	}
	option = {
		name = EVTOPTBplots.300 # Hire assassin
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.312 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.305 days = 30 tooltip = EVTTOOLTIPplots.305 } }
	}
	option = {
		name = EVTOPTBplots.300 # Hire assassin
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.312 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.305 days = 30 tooltip = EVTTOOLTIPplots.305 } }
	}
	
	option = {
		name = EVTOPTCplots.300 # Knows good man
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 14
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.312 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.305 days = 30 tooltip = EVTTOOLTIPplots.305 } }
	}
	option = {
		name = EVTOPTD8150 # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 14 }
			NOT = { plot_power = 1.0 }
		}
	}
}
# A plot backer sees an opportunity - Brothel Assassination
character_event = {
	id = plots.301
	desc = EVTDESCplots.301
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				age = 15
				trait = lustful
				is_female = no
				prisoner = no
				NOT = { trait = incapable }
			}
			NOT = { has_character_flag = murder_in_motion }
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 4200
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.300 # The conspirators provide the assassin
		trigger = {
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
			character_event = { id = plots.310 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = EVTOPTBplots.301 # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				NOT = { plot_power = 1.0 }
			}
			character_event = { id = plots.302 days = 3 tooltip = EVTTOOLTIP8152 }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = EVTOPTBplots.300 # Hire assassin
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				NOT = { plot_power = 1.0 }
			}
			character_event = { id = plots.310 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = EVTOPTBplots.300 # Hire assassin
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
			}
		}
		
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
			}
			character_event = { id = plots.310 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = EVTOPTDplots.300 # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
	}
}
# Brothel Assassination - Plot backer requests funds
character_event = {
	id = plots.302
	desc = EVTDESCplots.302
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.302
		transfer_scaled_wealth = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = plots.303 tooltip = EVTTOOLTIP8153 } }
	}
	
	option = {
		name = EVTOPTBplots.302
		FROM = { character_event = { id = plots.304 tooltip = EVTTOOLTIP8154 } }
	}
}
# Brothel Assassination - plot backer receives funds
character_event = {
	id = plots.303
	desc = EVTDESCplots.303
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		FROM = { plot_target_char = { character_event = { id = plots.305 days = 27 tooltip = EVTTOOLTIPplots.305 } } }
	}
}
# Brothel Assassination - plot backer does NOT receive funds
character_event = {
	id = plots.304
	desc = EVTDESCplots.304
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.304 # Pay for it myself
		scaled_wealth = -1.0
		FROM = { plot_target_char = { character_event = { id = plots.305 days = 27 tooltip = EVTTOOLTIPplots.305 } } }
	}
	option = {
		name = EVTOPTBplots.304 # Screw this
		clr_character_flag = murder_in_motion
	}
}
# Brothel Assassination - the murder attempt
character_event = {
	id = plots.305
	desc = EVTDESCplots.305
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	trigger = {
		prisoner = no
		
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.305 # Killed
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = craven }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
				has_character_modifier = protection_spell
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.313 days = 1 } }
						FROMFROM = { character_event = { id = plots.313 days = 1 } }
					}
					character_event = { id = plots.306 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.314 days = 1 } }
						FROMFROM = { character_event = { id = plots.314 days = 1 } }
					}
					character_event = { id = plots.307 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	option = {
		name = EVTOPTBplots.305 # Escapes
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = craven }
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
				has_character_modifier = protection_spell
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.315 days = 1 } }
						FROMFROM = { character_event = { id = plots.315 days = 1 } }
					}
					character_event = { id = plots.308 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.316 days = 1 } }
						FROMFROM = { character_event = { id = plots.316 days = 1 } }
					}
					character_event = { id = plots.309 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}
# Brothel Assassination - Dies, murderer(s) discovered
character_event = {
	id = plots.306
	desc = EVTDESCplots.306
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.306
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_butchered
				killer = FROMFROMFROM
			}
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_butchered
				killer = FROMFROM
			}
		}
	}
}
# Brothel Assassination - Dies, murderer NOT discovered
character_event = {
	id = plots.307
	desc = EVTDESCplots.306
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.307
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_butchered
				killer = FROMFROMFROM
			}
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_butchered
				killer = FROMFROM
			}
		}
	}
}
# Brothel Assassination - Lives, murderer discovered
character_event = {
	id = plots.308
	desc = EVTDESCplots.308
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.308
	}
}
# Brothel Assassination - Lives, murderer NOT discovered
character_event = {
	id = plots.309
	desc = EVTDESCplots.308
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.309
	}
}
# Brothel Assassination - Backer informs Plotter of plan
character_event = {
	id = plots.310
	desc = EVTDESCplots.310
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.310
		FROM = { character_event = { id = plots.311 tooltip = EVTTOOLTIP8161 } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = 7892 days = 1 }
			}
		}
	}
}
# Brothel Assassination - Plotter tells backer to go ahead
character_event = {
	id = plots.311
	desc = EVTDESCplots.311
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.311
		FROM = { plot_target_char = { character_event = { id = plots.305 days = 27 tooltip = EVTTOOLTIPplots.305 } } }
	}
}
# Brothel Assassination - Initiator informs other plotter
character_event = {
	id = plots.312
	desc = EVTDESCplots.312
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.311
	}
}
# Brothel Assassination - Notification: Success, but discovered
character_event = {
	id = plots.313
	desc = EVTDESCplots.313
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { 
				dynasty = FROM 
				NOT = { trait = kinslayer }
			}
			add_trait = kinslayer
		}
		
		if = {
			limit = { any_spouse = { character = FROM } }
			FROM = { 
				any_dynasty_member = {
					limit = {
						is_alive = yes
						NOT = { character = ROOT }
					}
					opinion = {
						who = ROOT
						modifier = opinion_spouse_slayer
						months = 60
					}
				}
			}
		}
		
		FROM = {
			any_dynasty_member = {
				limit = {
					is_alive = yes
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
			top_liege = {
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
				any_realm_lord = {
					opinion = {
						who = ROOT
						modifier = opinion_dishonorable
						months = 60
					}
				}
			}
			religion_head = {
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
		}
		
		if = {
			limit = {
				FROM = { mother = { NOT = { character = ROOT } } }
			}
			FROM = {
				mother = {
					opinion = {
						who = ROOT
						modifier = opinion_killed_close_kin
						months = 60
					}
				}
			}
		}
		
		if = {
			limit = {
				FROM = { father = { NOT = { character = ROOT } } }
			}
			FROM = {
				father = {
					opinion = {
						who = ROOT
						modifier = opinion_killed_close_kin
						months = 60
					}
				}
			}
		}
		
		FROM = {
			any_child = {
				limit = {
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 60
				}
			}
		}
		
		FROM = {
			any_sibling = {
				limit = {
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 60
				}
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.313
	}
}
# Brothel Assassination - Notification: Success, and NOT discovered
character_event = {
	id = plots.314
	desc = EVTDESCplots.314
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.314
	}
}
# Brothel Assassination - Notification: Failure, and discovered
character_event = {
	id = plots.315
	desc = EVTDESCplots.315
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		# Set opinions vs the bungling killer
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_murder_attempt
				months = 120
			}
		}
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_dishonorable
				months = 60
			}
		}
		if = {
			limit = { 
				NOT = { FROM = { employer = { character = ROOT } } }
			}
			FROM = { 
				employer = {
					opinion = {
						who = ROOT
						modifier = opinion_dishonorable
						months = 60
					}
				}
			}
		}
		FROM = {
			any_dynasty_member = {
				limit = {
					is_alive = yes
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
		}
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = EVTOPTAplots.315
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}
# Brothel Assassination - Notification: Failure, but NOT discovered
character_event = {
	id = plots.316
	desc = EVTDESCplots.316
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.316
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}

###########################################
# Ambush assassination
########################################### 
# The plotter sees an opportunity - Ambush Assassination
character_event = {
	id = plots.320
	desc = EVTDESCplots.320
	picture = GFX_evt_family_feud_republic
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		OR = {
			has_plot = plot_kill_character
			has_plot = plot_kill_spouse
		}
		plot_target_char = {
			age = 15
			at_location = ROOT # The Plot Head needs to be at the target's location to get a chance
			NOT = { trait = incapable }
			prisoner = no
		}
		NOT = { has_character_flag = murder_in_motion }
		plot_power_contribution = 
		{
			plotter = ROOT
			power = 0.025
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.10
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.20
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.30
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.40
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.50
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.60
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.70
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.80
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 0.90
			}
		}
		modifier = {
			factor = 0.7
			plot_power_contribution = 
			{
				plotter = ROOT
				power = 1.5
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.320 # The conspirators provide the thugs
		trigger = {
			plot_power = 1.0
		}
		hidden_tooltip = {
			any_plot_backer = {
					character_event = { id = plots.332 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.325 days = 30 tooltip = EVTTOOLTIPplots.325 } }
	}
	option = {
		name = EVTOPTBplots.320 # Hire thugs
		trigger = {
			NOT = { plot_power = 0.5 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -1.0
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.332 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.325 days = 30 tooltip = EVTTOOLTIPplots.325 } }
	}
	option = {
		name = EVTOPTBplots.320 # Hire thugs
		trigger = {
			plot_power = 0.5
			NOT = { plot_power = 1.0 }
			NOT = { intrigue = 10 }
		}
		scaled_wealth = -0.5
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.332 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.325 days = 30 tooltip = EVTTOOLTIPplots.325 } }
	}
	option = {
		name = EVTOPTCplots.320 # Knows good man
		tooltip_info = intrigue
		trigger = {
			plot_power = 0.5
			intrigue = 10
		}
		
		hidden_tooltip = {
			any_plot_backer = {
				character_event = { id = plots.332 days = 1 }
			}
		}
		
		set_character_flag = murder_in_motion
		plot_target_char = { character_event = { id = plots.325 days = 30 tooltip = EVTTOOLTIPplots.325 } }
	}
	option = {
		name = EVTOPTDplots.300 # Not a good idea
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = { plot_power = 1.0 }
		}
	}
}
# A plot backer sees an opportunity - Ambush Assassination
character_event = {
	id = plots.321
	desc = EVTDESCplots.321
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	capable_only = yes
	prisoner = no
	is_part_of_plot = yes
	
	trigger = {
		any_backed_character = {
			OR = {
				has_plot = plot_kill_character
				has_plot = plot_kill_spouse
			}
			plot_power = 0.5
			plot_target_char = {
				age = 15
				NOT = { trait = incapable }
				prisoner = no
			}
			NOT = { has_character_flag = murder_in_motion }
			ROOT = {
				plot_power_contribution = 
				{
					plotter = PREV
					power = 0.025
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8400
		
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.10
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.20
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.30
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.40
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.50
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.60
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.70
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.80
					}
				}
			}
		}
		modifier = {
			factor = 0.6
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				ROOT = {
					plot_power_contribution = 
					{
						plotter = PREV
						power = 0.90
					}
				}
			}
		}
		
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.5
			}
		}
		modifier = {
			factor = 0.33
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 2.0
			}
		}
	}
	
	option = {
		name = EVTOPTA7880 # The conspirators provide thugs
		trigger = {
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
		}
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 1.0
			}
			character_event = { id = plots.330 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = EVTOPTB8151 # Ask the Plotter for funds
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				NOT = { plot_power = 1.0 }
			}
			character_event = { id = plots.322 days = 3 tooltip = EVTTOOLTIP8152 }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = EVTOPTB7880 # Hire thugs
		trigger = {
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
		scaled_wealth = -0.5
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				NOT = { plot_power = 1.0 }
			}
			character_event = { id = plots.330 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	option = {
		name = EVTOPTC7880 # Knows good man
		tooltip_info = intrigue
		trigger = {
			intrigue = 10
			any_backed_character = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
			}
		}
		
		random_backed_character = {
			limit = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_power = 0.5
			}
			character_event = { id = plots.330 days = 3 tooltip = EVTTOOLTIP8160 }
			set_character_flag = murder_in_motion
		}
	}
	
	option = {
		name = EVTOPTD8150 # I cannot afford this
		trigger = {
			ai = no
			NOT = { intrigue = 10 }
			NOT = {
				any_backed_character = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_power = 1.0
				}
			}
		}
	}
}
# Ambush Assassination - Plot backer requests funds
character_event = {
	id = plots.322
	desc = EVTDESCplots.322
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.322
		transfer_scaled_wealth = {
				from = ROOT
				to = FROM
				value = 1.0
		}
		FROM = { character_event = { id = plots.323 tooltip = EVTTOOLTIP8153 } }
	}
	
	option = {
		name = EVTOPTB8152
		FROM = { character_event = { id = plots.324 tooltip = EVTTOOLTIP8154 } }
	}
}
# Ambush Assassination - plot backer receives funds
character_event = {
	id = plots.323
	desc = EVTDESCplots.323
	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 } } }
	}
}
# Ambush Assassination - plot backer does NOT receive funds
character_event = {
	id = plots.324
	desc = EVTDESCplots.324
	picture = GFX_evt_spymaster
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA8154 # Pay for it myself
		scaled_wealth = -1.0
		FROM = { plot_target_char = { character_event = { id = 7885 days = 27 tooltip = EVTTOOLTIP7885 } } }
	}
	option = {
		name = EVTOPTB8154 # Screw this
		FROM = { clr_character_flag = murder_in_motion }
	}
}
# Ambush Assassination - the murder attempt
character_event = {
	id = plots.325
	desc = EVTDESCplots.325
	picture = GFX_evt_family_feud_republic
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	trigger = {
		# Is the plot still in motion?
		OR = {
			FROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
			FROMFROM = {
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
				plot_target_char = {
					character = ROOT
				}
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.325 # Killed
		trigger = {
			NOT = {
				OR = {
					AND = {
						trait = paranoid
						random = 33
					}
					AND = {
						trait = trusting
						random = 90
					}
					AND = {
						NOT = { trait = craven }
						NOT = { trait = trusting }
						NOT = { trait = paranoid }
						random = 75
					}
				}
				has_character_modifier = protection_spell
			}
		}
		hidden_tooltip = {
			random_list = {
				25 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.333 days = 1 } }
						FROMFROM = { character_event = { id = plots.333 days = 1 } }
					}
					character_event = { id = plots.326 days = 1 } # Dies, murderer discovered
				}
				75 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.334 days = 1 } }
						FROMFROM = { character_event = { id = plots.334 days = 1 } }
					}
					character_event = { id = plots.327 days = 1 } # Dies, murderer unknown
				}
			}
		}
	}
	
	option = {
		name = EVTOPTBplots.325 # Escapes
		trigger = {
			OR = {
				AND = {
					trait = paranoid
					random = 33
				}
				AND = {
					trait = trusting
					random = 90
				}
				AND = {
					NOT = { trait = craven }
					NOT = { trait = trusting }
					NOT = { trait = paranoid }
					random = 75
				}
				has_character_modifier = protection_spell
			}
		}
		hidden_tooltip = {
			random_list = {
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.335 days = 1 } }
						FROMFROM = { character_event = { id = plots.335 days = 1 } }
					}
					character_event = { id = plots.328 days = 1 } # Lives, murderer discovered
				}
				50 = {
					hidden_tooltip = {
						FROM = { character_event = { id = plots.336 days = 1 } }
						FROMFROM = { character_event = { id = plots.336 days = 1 } }
					}
					character_event = { id = plots.329 days = 1 } # Lives, murderer unknown
				}
			}
		}
	}
}
# Ambush Assassination - Dies, murderer(s) discovered
character_event = {
	id = plots.326
	desc = EVTDESCplots.326
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.326
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_butchered
				killer = FROMFROMFROM
			}
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_butchered
				killer = FROMFROM
			}
		}
	}
	
}
# Ambush Assassination - Dies, murderer NOT discovered
character_event = {
	id = plots.327
	desc = EVTDESCplots.326
	picture = GFX_evt_death
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.327
		
		if = {
			limit = {
				FROMFROMFROM = {
					OR = {
						has_plot = plot_kill_character
						has_plot = plot_kill_spouse
					}
					plot_target_char = {
						character = ROOT
					}
				}
			}
			death = {
				death_reason = death_murder_unknown_butchered
				killer = FROMFROMFROM
			}
		}
		if = {
			limit = {
				is_alive = yes
			}
			death = {
				death_reason = death_murder_unknown_butchered
				killer = FROMFROM
			}
		}
	}
}
# Ambush Assassination - Lives, murderer discovered
character_event = {
	id = plots.328
	desc = EVTDESCplots.328
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.328
	}
}
# Ambush Assassination - Lives, murderer NOT discovered
character_event = {
	id = plots.329
	desc = EVTDESCplots.328
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_intrigue
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.329
	}
}
# Ambush Assassination - Backer informs Plotter of plan
character_event = {
	id = plots.330
	desc = EVTDESCplots.330
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.330
		set_character_flag = murder_in_motion
		FROM = { character_event = { id = plots.331 tooltip = EVTTOOLTIP8161 } }
		hidden_tooltip = {
			any_plot_backer = {
				limit = {
					NOT = { character = FROM }
				}
				character_event = { id = plots.332 days = 1 }
			}
		}
	}
}
# Ambush Assassination - Plotter tells backer to go ahead
character_event = {
	id = plots.331
	desc = EVTDESCplots.331
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.311
		FROM = { plot_target_char = { character_event = { id = 7885 days = 27 tooltip = EVTTOOLTIP7885 } } }
	}
}
# Ambush Assassination - Initiator informs other plotter
character_event = {
	id = plots.332
	desc = EVTDESCplots.332
	picture = GFX_evt_family_feud_republic
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.311
	}
}
# Ambush Assassination - Notification: Success, but discovered
character_event = {
	id = plots.333
	desc = EVTDESCplots.333
	picture = GFX_evt_family_feud_republic
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		if = {
			limit = { 
				dynasty = FROM 
				NOT = { trait = kinslayer }
			}
			add_trait = kinslayer
		}
		
		if = {
			limit = { any_spouse = { character = FROM } }
			FROM = { 
				any_dynasty_member = {
					limit = {
						is_alive = yes
						NOT = { character = ROOT }
					}
					opinion = {
						who = ROOT
						modifier = opinion_spouse_slayer
						months = 60
					}
				}
			}
		}
		
		FROM = {
			any_dynasty_member = {
				limit = {
					is_alive = yes
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
			top_liege = {
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
				any_realm_lord = {
					opinion = {
						who = ROOT
						modifier = opinion_dishonorable
						months = 60
					}
				}
			}
			religion_head = {
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
		}
		if = {
			limit = {
				FROM = { mother = { NOT = { character = ROOT } } }
			}
			FROM = {
				mother = {
					opinion = {
						who = ROOT
						modifier = opinion_killed_close_kin
						months = 60
					}
				}
			}
		}
		
		if = {
			limit = {
				FROM = { father = { NOT = { character = ROOT } } }
			}
			FROM = {
				father = {
					opinion = {
						who = ROOT
						modifier = opinion_killed_close_kin
						months = 60
					}
				}
			}
		}
		
		FROM = {
			any_child = {
				limit = {
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 60
				}
			}
		}
		
		FROM = {
			any_sibling = {
				limit = {
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 60
				}
			}
		}
	}
	
	option = {
		name = EVTOPTAplots.313
	}
}
# Ambush Assassination - Notification: Success, and NOT discovered
character_event = {
	id = plots.334
	desc = EVTDESCplots.334
	picture = GFX_evt_family_feud_republic
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.314
	}
}
# Ambush Assassination - Notification: Failure, and discovered
character_event = {
	id = plots.335
	desc = EVTDESCplots.335
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		# Set opinions vs the bungling killer
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_murder_attempt
				months = 120
			}
		}
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_dishonorable
				months = 60
			}
		}
		if = {
			limit = { 
				NOT = { FROM = { employer = { character = ROOT } } }
			}
			FROM = { 
				employer = {
					opinion = {
						who = ROOT
						modifier = opinion_dishonorable
						months = 60
					}
				}
			}
		}
		FROM = {
			any_dynasty_member = {
				limit = {
					is_alive = yes
					NOT = { character = ROOT }
				}
				opinion = {
					who = ROOT
					modifier = opinion_dishonorable
					months = 60
				}
			}
		}
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			reveal_plot = yes
		}
	}
	
	option = {
		name = EVTOPTAplots.315
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
			tooltip = { reveal_plot = yes }
		}
	}
}
# Ambush Assassination - Notification: Failure, but NOT discovered
character_event = {
	id = plots.336
	desc = EVTDESCplots.336
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAplots.316
		
		if = {
			limit = { 
				plot_target_char = {
					character = FROM
				}
				OR = {
					has_plot = plot_kill_character
					has_plot = plot_kill_spouse
				}
			}
			clr_character_flag = murder_in_motion
		}
	}
}
