
namespace = FemRule

#reserved: FemRule.300 to FemRule.399

#######################################
# JURE UXORIS EVENTS
# Original events by richvh
# Revisions by Rylock
#######################################

# on_death event for usurping husband - no sons by usurped wife
character_event = {
	id = FemRule.300
	desc = EVTDESC_FemRule_300
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	has_character_flag = usurped_my_wife
	
	trigger = {
		any_spouse = {
			has_character_flag = usurped_by_husband
			NOT = {
				any_child = {
					father = { character = ROOT }
					NOT = { trait = bastard }
					is_female = no
					is_alive = yes
				}
			}
			any_claim = {
				any_claimant = {
					character = PREVPREV
					has_strong_claim = PREV
				}
				holder_scope = { character = ROOT }
				OR = {
					has_law = succ_gavelkind
					has_law = succ_seniority
					has_law = succ_primogeniture
					has_law = succ_ultimogeniture
				}
			}
		}
	}
	
	immediate = {
		clr_character_flag = usurped_my_wife
		hidden_tooltip = {
			any_vassal = {
				limit = {
					NOT = { is_primary_heir = ROOT }
					NOT = { any_spouse = { character = ROOT } }
				}
				character_event = { id = FemRule.302 }
			}
			current_heir = {
				character_event = { id = FemRule.302 }
			}
		}
		any_spouse = {
			limit = { has_character_flag = usurped_by_husband }
			clr_character_flag = usurped_by_husband
			hidden_tooltip = {
				any_dynasty_member = {
					limit = {
						NOT = { is_primary_heir = ROOT }
						NOT = { vassal_of = ROOT }
					}
					character_event = { id = FemRule.302 }
				}
			}
			if = {
				limit = { is_ruler = no }
				move_character = ROOT
			}
			any_claim = {
				limit = {
					any_claimant = {
						character = PREVPREV
						has_strong_claim = PREV
					}
					holder_scope = { character = ROOT }
					OR = {
						has_law = succ_gavelkind
						has_law = succ_seniority
						has_law = succ_primogeniture
						has_law = succ_ultimogeniture
					}
				}
				gain_title_plus_barony_if_unlanded = PREV
				add_weak_pressed_claim = ROOT
				hidden_tooltip = {
					PREV = { character_event = { id = FemRule.301 } }
				}
			}
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_300
	}
}

# Wife notified that her titles have been returned
character_event = {
	id = FemRule.301
	desc = EVTDESC_FemRule_301
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_301
	}
}

# Vassals/dynasty members notified that wife's titles have been returned
character_event = {
	id = FemRule.302
	desc = EVTDESC_FemRule_302
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_302
	}
}

#on_death event - usurped wife dies with no living sons by usurping husband
character_event = {
	id = FemRule.303
	desc = EVTDESC_FemRule_303
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	has_character_flag = usurped_by_husband
	
	trigger = {	
		any_spouse = {
			has_character_flag = usurped_my_wife
			NOT = {
				any_child = {
					mother = { character = ROOT }
					NOT = { trait = bastard }
					is_female = no
					is_alive = yes
				}
			}
			ROOT = {
				any_claim = {
					ROOT = { has_strong_claim = PREV }
					holder_scope = { character = PREVPREVPREV }
					OR = {
						has_law = succ_gavelkind
						has_law = succ_seniority
						has_law = succ_primogeniture
						has_law = succ_ultimogeniture
					}
				}
			}
		}
	}
	immediate = {
		clr_character_flag = usurped_by_husband
		any_spouse = {
			limit = { has_character_flag = usurped_my_wife }
			clr_character_flag = usurped_my_wife
			hidden_tooltip = {
				any_vassal = {
					limit = {
						NOT = { is_primary_heir = PREV }
						NOT = { any_spouse = { character = ROOT } }
					}
					character_event = { id = FemRule.305 }
				}
				current_heir = {
					character_event = { id = FemRule.305 }
				}
			}
			ROOT = {
				if = {
					limit = { is_ruler = no }
					move_character = PREV
				}
				any_claim = {
					limit = {
						ROOT = { has_strong_claim = PREV }
						holder_scope = { character = PREVPREVPREV }
						OR = {
							has_law = succ_gavelkind
							has_law = succ_seniority
							has_law = succ_primogeniture
							has_law = succ_ultimogeniture
						}
					}
					gain_title_plus_barony_if_unlanded = ROOT
					add_weak_pressed_claim = PREVPREV
				}
			}
			hidden_tooltip = {
				character_event = { id = FemRule.304 }
			}
		}

	}
	option = {
		name = EVTOPTA_FemRule_303
	}
}

# Husband notified that wife's titles have been returned and will fall to her heir instead
character_event = {
	id = FemRule.304
	desc = EVTDESC_FemRule_304
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
	}
}

# Vassals/dynasty members notified that wife's titles have been returned
character_event = {
	id = FemRule.305
	desc = EVTDESC_FemRule_305
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_305
	}
}

# Wife regains usurped titles on divorce
character_event = {
	id = FemRule.310
	desc = EVTDESC_FemRule_310
	picture = GFX_evt_noblewoman
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_310
		hidden_tooltip = {
			any_vassal = {
				limit = {
					NOT = { is_primary_heir = ROOT }
					NOT = { character = FROM }
				}
				character_event = { id = FemRule.311 }
			}
			current_heir = {
				character_event = { id = FemRule.311 }
			}
		}
		FROM = {
			if = {
				limit = { is_ruler = no }
				move_character = ROOT
			}
			any_claim = {
				limit = {
					FROM = { has_strong_claim = PREV }
					holder_scope = { character = ROOT }
				}
				usurp_title_plus_barony_if_unlanded = FROM
				hidden_tooltip = {
					remove_claim = ROOT
					add_weak_pressed_claim = ROOT
				}
			}
		}
	}
}

# Vassals/dynasty members notified that wife's titles have been returned
character_event = {
	id = FemRule.311
	desc = EVTDESC_FemRule_311
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_305
	}
}

# Husband notified that wife regains usurped title upon him giving it away
letter_event = {
	id = FemRule.312
	desc = EVTDESC_FemRule_312
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_310
	}
}

### USURP WIFE'S TITLES (Plot, activated by decision)

# Husband attempts to usurp wife (triggered from plot decision)
character_event = {
	id = FemRule.360
	desc = EVTDESC_FemRule_360
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	immediate = {
		FROM = { character_event = { id = FemRule.398 days = 1 } }
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 7
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_360 #I will turn to my lover
		trigger = {
			NOR = {
				trait = incapable
				AND = {
					prisoner = yes
					host = { character = FROM }
				}
			}
			any_lover = {
				is_female = no
				is_priest = no
				prisoner = no
				NOR = {
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
		}
		ai_chance = {
			factor = 100
		}	
		random_lover = {
			limit = {
				is_female = no
				is_priest = no
				prisoner = no
				NOR = {
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
			character_event = {
				id = FemRule.361
				tooltip = TURN_TO_FOR_HELP
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_360 # I will turn to a member of the family
		trigger = {
			NOR = {
				trait = incapable
				AND = {
					prisoner = yes
					host = { character = FROM }
				}
			}
			any_realm_character = {
				is_close_relative = ROOT
				is_adult = yes
				prisoner = no
				opinion = { who = ROOT value = 25 }
				NOR = {
					is_lover = ROOT
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}		
			}
		}
		ai_chance = {
			factor = 50
		}
		# First look for a family member of rank
		if = {
			limit = {
				any_realm_character = {
					higher_tier_than = COUNT
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						is_lover = ROOT
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}		
				}
			}
			set_character_flag = found_family_member		
			random_realm_character = {
				limit = {
					higher_tier_than = COUNT
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
				}
				character_event = {
					id = FemRule.370
					tooltip = TURN_TO_FOR_HELP
				}
			}
		}
		# Then look for a family member of substance
		if = {
			limit = {
				NOT = { has_character_flag = found_family_member }
				any_realm_character = {
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
					OR = {
						is_female = no
						AND = {
							martial = 8
							intrigue = 8
						}
						trait = ambitious
						trait = brilliant_strategist
						trait = elusive_shadow
						trait = grey_eminence
						is_smart_trigger = yes
						is_strong_trigger = yes
					}		
				}
			}
			set_character_flag = found_family_member		
			random_realm_character = {
				limit = {
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
					OR = {
						is_female = no
						AND = {
							martial = 8
							intrigue = 8
						}
						trait = ambitious
						trait = brilliant_strategist
						trait = elusive_shadow
						trait = grey_eminence
						is_smart_trigger = yes
						is_strong_trigger = yes
					}
				}
				character_event = {
					id = FemRule.370
					tooltip = TURN_TO_FOR_HELP
				}
			}
		}
		# Then anyone else
		if = {
			limit = {
				NOT = { has_character_flag = found_family_member }
				any_realm_character = {
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}		
				}
			}
			set_character_flag = found_family_member		
			random_realm_character = {
				limit = {
					is_close_relative = ROOT
					is_adult = yes
					prisoner = no
					opinion = { who = ROOT value = 25 }
					NOR = {
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
				}
				character_event = {
					id = FemRule.370
					tooltip = TURN_TO_FOR_HELP
				}
			}
		}
		clr_character_flag = found_family_member
	}
	option = {
		name = EVTOPTC_FemRule_360 # I will turn to my faithful councillor
		trigger = {
			NOR = {
				trait = incapable
				AND = {
					prisoner = yes
					host = { character = FROM }
				}
			}
			OR = {
				ai = yes
				NOT = {
					any_lover = {
						is_female = no
						is_priest = no
						prisoner = no
						NOR = {
							character = FROM
							trait = slothful
							trait = content
							trait = incapable
							trait = craven
							is_dumb_trigger = yes
							health_traits = 1
						}
					}
				}
			}
			any_courtier = {
				is_female = no
				is_priest = no
				prisoner = no
				is_councillor = yes
				opinion = { who = ROOT value = 50 }
				OR = {
					is_ruler = no
					lower_tier_than = COUNT
				}
				NOR = {
					is_close_relative = ROOT
					is_lover = ROOT
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
		}
		ai_chance = {
			factor = 25
		}	
		random_courtier = {
			limit = {
				is_female = no
				is_priest = no
				prisoner = no
				is_councillor = yes
				opinion = { who = ROOT value = 50 }
				OR = {
					is_ruler = no
					lower_tier_than = COUNT
				}
				NOR = {
					is_close_relative = ROOT
					is_lover = ROOT
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
			character_event = {
				id = FemRule.369
				tooltip = TURN_TO_FOR_HELP
			}
		}
	}
	option = {
		name = EVTOPTD_FemRule_360	#I will turn to my friend
		trigger = {
			NOR = {
				trait = incapable
				AND = {
					prisoner = yes
					host = { character = FROM }
				}
			}
			any_friend = {
				is_female = no
				is_priest = no
				prisoner = no
				opinion = { who = ROOT value = 50 }
				OR = {
					NOT = { is_close_relative = ROOT }
					NOT = { same_realm = ROOT }
				}
				OR = {
					is_councillor = no
					AND = {
						NOT = { employer = { character = ROOT } }
						NOT = { liege = { character = ROOT } }
					}
				}
				NOR = {
					is_lover = ROOT
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
		}
		ai_chance = {
			factor = 25
		}
		random_friend = {
			limit = {
				is_female = no
				is_priest = no
				prisoner = no
				opinion = { who = ROOT value = 50 }
				OR = {
					NOT = { is_close_relative = ROOT }
					NOT = { same_realm = ROOT }
				}
				OR = {
					is_councillor = no
					AND = {
						NOT = { employer = { character = ROOT } }
						NOT = { liege = { character = ROOT } }
					}
				}
				NOR = {
					is_lover = ROOT
					character = FROM
					trait = slothful
					trait = content
					trait = incapable
					trait = craven
					is_dumb_trigger = yes
					health_traits = 1
				}
			}
			character_event = {
				id = FemRule.371
				tooltip = TURN_TO_FOR_HELP
			}
		}
	}
	option = {
		name = EVTOPTE_FemRule_360	#I will turn to my husband's rival
		trigger = {
			NOR = {
				trait = incapable
				AND = {
					prisoner = yes
					host = { character = FROM }
				}
			}
			OR = {
				ai = no
				NOT = {
					any_friend = {
						is_female = no
						is_priest = no
						prisoner = no
						opinion = { who = ROOT value = 50 }
						OR = {
							NOT = { is_close_relative = ROOT }
							NOT = { same_realm = ROOT }
						}
						OR = {
							is_councillor = no
							AND = {
								NOT = { employer = { character = ROOT } }
								NOT = { liege = { character = ROOT } }
							}
						}
						NOR = {
							is_lover = ROOT
							character = FROM
							trait = slothful
							trait = content
							trait = incapable
							trait = craven
							is_dumb_trigger = yes
							health_traits = 1
						}
					}
				}
			}
			FROM = {
				any_rival = {
					is_female = no
					is_priest = no
					prisoner = no
					opinion = { who = ROOT value = 0 }
					OR = {
						NOT = { is_close_relative = ROOT }
						NOT = { same_realm = ROOT }
					}
					OR = {
						is_councillor = no
						AND = {
							NOT = { employer = { character = ROOT } }
							NOT = { liege = { character = ROOT } }
						}
					}
					NOR = {
						is_friend = ROOT
						is_lover = ROOT
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
				}
			}
		}
		ai_chance = {
			factor = 25
		}
		FROM = {
			random_rival = {
				limit = {
					is_female = no
					is_priest = no
					prisoner = no
					opinion = { who = ROOT value = 0 }
					OR = {
						NOT = { is_close_relative = ROOT }
						NOT = { same_realm = ROOT }
					}
					OR = {
						is_councillor = no
						AND = {
							NOT = { employer = { character = ROOT } }
							NOT = { liege = { character = ROOT } }
						}
					}
					NOR = {
						is_friend = ROOT
						is_lover = ROOT
						character = FROM
						trait = slothful
						trait = content
						trait = incapable
						trait = craven
						is_dumb_trigger = yes
						health_traits = 1
					}
				}
				character_event = {
					id = FemRule.372
					tooltip = TURN_TO_FOR_HELP
				}
			}
		}
	}
	option = {
		name = EVTOPTF_FemRule_360 #There is nothing I can do
		ai_chance = {
			factor = 1			
		}
		set_character_flag = usurped_by_husband
		hidden_tooltip = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
					days = 7
				}
			}
			any_vassal = {
				limit = {
					NOR = {
						dynasty = ROOT
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
					days = 7
				}
			}
		}
		FROM = {
			character_event = {
				id = FemRule.396
				days = 7
				tooltip = USURPS_TITLES
			}
		}
	} 
}

# Wife's lover is appealed to for help
character_event = {
	id = FemRule.361
	desc = EVTDESC_FemRule_361
	picture = GFX_evt_courtly_love
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_FemRule_370 #I shall go to her with a large retinue
		trigger = {
			NOR = {
				trait = lunatic
				trait = possessed
			}
			is_ruler = yes
			wealth = 25
		}
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 0.5
				NOT = { wealth = 50 }
			}
			modifier = {
				factor = 2
				wealth = 100
			}
			modifier = {
				factor = 0.5
				tier = BARON
			}
			modifier = {
				factor = 0.1
				has_character_modifier = ai_austerity
			}
		}
		wealth = -25
		FROM = {
			character_event = {
				id = FemRule.374
				days = 7
				tooltip = GO_ASSIST_HER_WITH_TROOPS
			}
		}
	}	
	option = {
		name = EVTOPTA_FemRule_361 # I am at her disposal
		trigger = {
			NOR = {
				trait = lunatic
				trait = possessed
			}
		}
		ai_chance = {
			factor = 50
		}
		FROM = {
			character_event = {
				id = FemRule.385
				days = 7
				tooltip = GO_ASSIST_HER
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_361 # I will deal with him myself
		trigger = {
			OR = {
				trait = lunatic
				trait = possessed
				trait = wroth
				trait = impaler
				trait = duelist
				martial = 15
			}
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.1
				OR = {
					trait = craven
					trait = kind
					trait = content
				}
			}
			modifier = {
				factor = 2
				trait = wroth
			}
			modifier = {
				factor = 2
				OR = {
					trait = impaler
					trait = cruel
				}
			}
			modifier = {
				factor = 0.4
				NOR = {
					trait = lunatic
					trait = possessed
					trait = wroth
					trait = impaler
				}
			}
		}
		if = {
			limit = { trait = craven }
			random = {
				chance = 50
				remove_trait = craven
			}
		}
		if = {
			limit = { NOT = { trait = wroth } }
			random = {
				chance = 50
				add_trait = wroth
			}
		}
		FROM = {
			custom_tooltip = { text = DO_SOMETHING_RASH }
		}
		if = {
			limit = {
				attribute_diff = { character = FROMFROM attribute = martial value = 9 }
			}
			random_list = {
				80 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				20 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				NOT = { attribute_diff = { character = FROMFROM attribute = martial value = 9 } }
				attribute_diff = { character = FROMFROM attribute = martial value = 6 }
			}
			random_list = {
				70 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				30 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				NOT = { attribute_diff = { character = FROMFROM attribute = martial value = 6 } }
				attribute_diff = { character = FROMFROM attribute = martial value = 3 }
			}
			random_list = {
				60 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				40 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				NOT = {
					attribute_diff = { character = FROMFROM attribute = martial value = 3 }
					FROMFROM = { attribute_diff = { character = ROOT attribute = martial value = 3 } }
				}
			}
			random_list = {
				50 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				50 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				FROMFROM = {
					NOT = { attribute_diff = { character = ROOT attribute = martial value = 6 } }
					attribute_diff = { character = ROOT attribute = martial value = 3 }
				}
			}
			random_list = {
				40 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				60 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				FROMFROM = {
					NOT = { attribute_diff = { character = ROOT attribute = martial value = 9 } }
					attribute_diff = { character = ROOT attribute = martial value = 6 }
				}
			}
			random_list = {
				30 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				70 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		if = {
			limit = {
				FROMFROM = {
					attribute_diff = { character = ROOT attribute = martial value = 9 }
				}
			}
			random_list = {
				20 = { FROMFROM = { character_event = { id = FemRule.363 tooltip = AMBUSH_SUCCEEDS days = 7 } } }
				80 = { FROMFROM = { character_event = { id = FemRule.364 tooltip = AMBUSH_FAILS days = 7 } } }
			}
		}
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.362 days = 4 } }
		}
	}
	option = {
		name = EVTOPTC_FemRule_361 # I cannot, alas
		trigger = {
			NOR = {
				trait = lunatic
				trait = possessed
			}
		}
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = { is_close_relative = FROMFROM }
				NOT = { opinion = { who = FROMFROM value = 0 } }
			}
			modifier = {
				factor = 5
				OR = {
					is_child_of = FROMFROM
					any_child = { character = FROMFROM }
				}
			}
			modifier = {
				factor = 5
				is_friend = FROMFROM
			}
			modifier = {
				factor = 2
				opinion = { who = FROMFROM value = 25 }
			}
			modifier = {
				factor = 5
				likes_better_than = { who = FROMFROM than = FROM }
			}
		}
		tooltip = { remove_lover = FROM }
		FROM = {
			character_event = {
				id = FemRule.373
				days = 7
				tooltip = DO_NOT_INTERVENE
			}
		}
	}
}

# Lover is going to do something rash
character_event = {
	id = FemRule.362
	desc = EVTDESC_FemRule_362
	picture = GFX_evt_courtly_love
	border = GFX_event_normal_frame_intrigue	

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_362
	}
}

# Ambush succeeds and the husband is killed
character_event = {
	id = FemRule.363
	desc = EVTDESC_FemRule_363
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
		tooltip = {
			death = {
				death_reason = death_murder
				killer = FROM
			}
		}
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.365 } }
			FROMFROM = { character_event = { id = FemRule.366 } }
		}
	}
}

# Ambush failed, lover is possibly captured
character_event = {
	id = FemRule.364
	desc = EVTDESC_FemRule_364
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 7
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_364
		random = {
			chance = 30
			add_trait = wounded
		}
		if = {
			limit = { is_ruler = yes }
			tooltip = {
				FROM = {
					random_list = {
						40 = { add_trait = wounded }
						30 = { add_maimed_trait_effect = yes }
						30 = {
							add_trait = wounded
							imprison = ROOT
						}
					}
				}
			}
		}
		if = {
			limit = { is_ruler = no }
			tooltip = {
				FROM = {
					random_list = {
						70 = { add_trait = wounded }
						30 = { add_maimed_trait_effect = yes }
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.367 } }
			FROMFROM = { character_event = { id = FemRule.368 } }
		}
	}
}

# Lover notified that his ambush was successful
character_event = {
	id = FemRule.365
	desc = EVTDESC_FemRule_365
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_365
		clr_character_flag = filthy_murderer
		set_character_flag = filthy_murderer		
		dishonorable_plus_1_effect = yes
		FROM = { save_event_target_as = kinslayer_target }
		add_kinslayer_trait_effect = yes
		FROM = {
			mother = {
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 120
				}
			}
			father = {
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 120
				}
			}
			any_child = {
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 120
				}
			}
			any_sibling = {
				opinion = {
					who = ROOT
					modifier = opinion_killed_close_kin
					months = 120
				}
			}
			liege = {
				if = {
					limit = {
						NOR = {
							character = FROMFROMFROM
							has_opinion_modifier = {
								who = ROOT
								modifier = opinion_killed_close_kin
							}
							has_opinion_modifier = {
								who = ROOT
								modifier = opinion_spouse_slayer
							}
						}
					}
					opinion = {
						who = ROOT
						modifier = killed_vassal
						months = 60
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				death = {
					death_reason = death_murder
					killer = FROM
				}
			}
		}
	}
}

# Wife notified that lover's ambush was successful
character_event = {
	id = FemRule.366
	desc = EVTDESC_FemRule_366
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_366
		dishonorable_plus_1_effect = yes
		FROM = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROMFROM
						has_opinion_modifier = {
							who = ROOT
							modifier = opinion_killed_close_kin
						}
					}
					is_alive = yes
				}
				opinion = {
					who = ROOT
					modifier = opinion_spouse_slayer
					months = 120
				}
			}
		}
	}
}

# Lover notified that his ambush failed
character_event = {
	id = FemRule.367
	desc = EVTDESC_FemRule_367
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
		if = {
			limit = { FROM = { is_ruler = yes } }
			random_list = {
				40 = { add_trait = wounded }
				30 = { add_maimed_trait_effect = yes }
				30 = {
					add_trait = wounded
					imprison = ROOT
				}
			}
		}
		if = {
			limit = { FROM = { is_ruler = no } }
			random_list = {
				70 = { add_trait = wounded }
				30 = { add_maimed_trait_effect = yes }
			}
		}
		clr_character_flag = filthy_murderer
		set_character_flag = filthy_murderer
		dishonorable_plus_1_effect = yes
		FROM = {
			opinion = {
				who = ROOT
				modifier = opinion_murder_attempt
				months = 120
			}
			mother = {
				opinion = {
					who = ROOT
					modifier = attempted_murder_of_close_kin
					months = 120
				}
			}
			father = {
				opinion = {
					who = ROOT
					modifier = attempted_murder_of_close_kin
					months = 120
				}
			}
			any_child = {
				opinion = {
					who = ROOT
					modifier = attempted_murder_of_close_kin
					months = 120
				}
			}
			any_sibling = {
				opinion = {
					who = ROOT
					modifier = attempted_murder_of_close_kin
					months = 120
				}
			}
			liege = {
				if = {
					limit = {
						NOR = {
							character = FROMFROMFROM
							has_opinion_modifier = {
								who = ROOT
								modifier = attempted_murder_of_close_kin
							}
							has_opinion_modifier = {
								who = ROOT
								modifier = attempted_murder_of_spouse
							}
						}
					}
					opinion = {
						who = ROOT
						modifier = attempted_murder_of_vassal
						months = 60
					}
				}
			}
		}
	}
}

# Wife notified that lover's ambush failed
character_event = {
	id = FemRule.368
	desc = EVTDESC_FemRule_368
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	immediate = {
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 7
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_366
		set_character_flag = usurped_by_husband
		prestige = -25
		hidden_tooltip = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
					days = 7
				}
			}
			any_vassal = {
				limit = {
					NOR = {
						dynasty = ROOT
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
					days = 7
				}
			}
		}
		FROM = {
			reverse_opinion = { who = ROOT modifier = husband_usurped_me years = 20 }
			character_event = {
				id = FemRule.396
				days = 7
				tooltip = USURPS_TITLES
			}
		}
	}
}

# Wife's councillor is appealed to for help
character_event = {
	id = FemRule.369
	desc = EVTDESC_FemRule_369
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_FemRule_370 #I shall go to her with a large retinue
		trigger = {
			is_ruler = yes
			higher_real_tier_than = BARON
			wealth = 25
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 0.5
				NOT = { wealth = 50 }
			}
			modifier = {
				factor = 2
				wealth = 100
			}
			modifier = {
				factor = 0.1
				has_character_modifier = ai_austerity
			}
		}
		wealth = -25
		FROM = {
			character_event = {
				id = FemRule.374
				days = 7
				tooltip = GO_ASSIST_HER_WITH_TROOPS
			}
		}
	}	
	option = {
		name = EVTOPTA_FemRule_369 #Of course I will help
		ai_chance = {
			factor = 100
		}
		FROM = {
			character_event = {
				id = FemRule.385
				days = 7
				tooltip = GO_ASSIST_HER
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_369 #She is on her own
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = { is_close_relative = FROMFROM }
				NOT = { opinion = { who = FROMFROM value = 0 } }
			}
			modifier = {
				factor = 5
				OR = {
					is_child_of = FROMFROM
					any_child = { character = FROMFROM }
				}
			}
			modifier = {
				factor = 5
				is_friend = FROMFROM
			}
			modifier = {
				factor = 2
				opinion = { who = FROMFROM value = 25 }
			}
			modifier = {
				factor = 5
				likes_better_than = { who = FROMFROM than = FROM }
			}
		}
		FROM = {
			character_event = {
				id = FemRule.373
				days = 7
				tooltip = DO_NOT_INTERVENE
			}
		}
	}
}

# Wife's family is appealed to for help
character_event = {
	id = FemRule.370
	desc = EVTDESC_FemRule_370
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_FemRule_370 #I shall go to her with a large retinue
		trigger = {
			is_ruler = yes
			higher_real_tier_than = BARON
			wealth = 25
		}
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 0.5
				NOT = { wealth = 50 }
			}
			modifier = {
				factor = 2
				wealth = 100
			}
			modifier = {
				factor = 0.1
				has_character_modifier = ai_austerity
			}
		}
		wealth = -25
		FROM = {
			character_event = {
				id = FemRule.374
				days = 7
				tooltip = GO_ASSIST_HER_WITH_TROOPS
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_370 # I shall go to her personally
		ai_chance = {
			factor = 50
		}
		FROM = {
			character_event = {
				id = FemRule.385
				days = 7
				tooltip = GO_ASSIST_HER
			}
		}
	}
	option = {
		name = EVTOPTC_FemRule_370 # She is one her own
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = { is_close_relative = FROMFROM }
				NOT = { opinion = { who = FROMFROM value = 0 } }
			}
			modifier = {
				factor = 5
				OR = {
					is_child_of = FROMFROM
					any_child = { character = FROMFROM }
				}
			}
			modifier = {
				factor = 5
				is_friend = FROMFROM
			}
			modifier = {
				factor = 2
				opinion = { who = FROMFROM value = 25 }
			}
			modifier = {
				factor = 2
				trait = cruel
			}
			modifier = {
				factor = 5
				likes_better_than = { who = FROMFROM than = FROM }
			}
		}
		FROM = {
			character_event = {
				id = FemRule.373
				days = 7
				tooltip = DO_NOT_INTERVENE
			}
		}
	}
}

# Wife's friend is appealed to for help
character_event = {
	id = FemRule.371
	desc = EVTDESC_FemRule_371
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_370 #I shall go to her with a large retinue
		trigger = {
			is_ruler = yes
			higher_real_tier_than = BARON
			wealth = 25
		}
		ai_chance = {
			factor = 100
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 0.5
				NOT = { wealth = 50 }
			}
			modifier = {
				factor = 2
				wealth = 100
			}
			modifier = {
				factor = 0.1
				has_character_modifier = ai_austerity
			}
		}
		wealth = -25
		FROM = {
			character_event = {
				id = FemRule.374
				days = 7
				tooltip = GO_ASSIST_HER_WITH_TROOPS
			}
		}
	}	
	option = {
		name = EVTOPTA_FemRule_369 #Of course I will help
		ai_chance = {
			factor = 100
		}
		FROM = {
			character_event = {
				id = FemRule.385
				days = 7
				tooltip = GO_ASSIST_HER
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_369 #She is on her own
		ai_chance = {
			factor = 5
			modifier = {
				factor = 0
				NOT = { is_close_relative = FROMFROM }
				NOT = { opinion = { who = FROMFROM value = 0 } }
			}
			modifier = {
				factor = 5
				OR = {
					is_child_of = FROMFROM
					any_child = { character = FROMFROM }
				}
			}
			modifier = {
				factor = 5
				is_friend = FROMFROM
			}
			modifier = {
				factor = 2
				opinion = { who = FROMFROM value = 25 }
			}
			modifier = {
				factor = 5
				likes_better_than = { who = FROMFROM than = FROM }
			}
		}
		tooltip = { remove_friend = FROM }
		FROM = {
			character_event = {
				id = FemRule.373
				days = 7
				tooltip = DO_NOT_INTERVENE
			}
		}
	}
}

# Husband's rival is appealed to for help
character_event = {
	id = FemRule.372
	desc = EVTDESC_FemRule_372
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_370 #I shall go to her with a large retinue
		trigger = {
			is_ruler = yes
			higher_real_tier_than = BARON
			wealth = 25
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.5
				trait = greedy
			}
			modifier = {
				factor = 0.5
				NOT = { wealth = 50 }
			}
			modifier = {
				factor = 2
				wealth = 100
			}
			modifier = {
				factor = 0.1
				has_character_modifier = ai_austerity
			}
		}
		wealth = -25
		FROM = {
			character_event = {
				id = FemRule.374
				days = 7
				tooltip = GO_ASSIST_HER_WITH_TROOPS
			}
		}
	}	
	option = {
		name = EVTOPTA_FemRule_369 #Of course I will help
		ai_chance = {
			factor = 100
		}
		FROM = {
			character_event = {
				id = FemRule.385
				days = 7
				tooltip = GO_ASSIST_HER
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_369 #She is on her own
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.1
				opinion = { who = FROM value = 25 }
			}
			modifier = {
				factor = 0
				opinion = { who = FROM value = 50 }
			}
		}
		FROM = {
			character_event = {
				id = FemRule.373
				days = 7
				tooltip = DO_NOT_INTERVENE
			}
		}
	}
}

# Wife is notified that whoever she appealed to has decided not to help
character_event = {
	id = FemRule.373
	desc = EVTDESC_FemRule_373
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_373
		if = {
			limit = { is_lover = FROM }
			remove_lover = FROM
		}
		if = {
			limit = { is_friend = FROM }
			remove_friend = FROM
		}
		opinion = { who = FROM modifier = opinion_very_disappointed years = 5 }
		random_list = {
			30 = { 
				modifier = {
					factor = 0
					trait = depressed
				}
				add_trait = depressed
				hidden_tooltip = {
					character_event = {
						id = 38288 #Notify Depressed
					}
				}
			}
			30 = {
				modifier = {
					factor = 0
					trait = stressed
				}
				modifier = {
					factor = 0
					trait = depressed
				}
				add_trait = stressed
				hidden_tooltip = {
					character_event = {
						id = 38282 #Notify Stressed
					}
				}
				
			}
			40 = { }
		}
		set_character_flag = usurped_by_husband
		hidden_tooltip = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
			any_vassal = {
				limit = {
					NOR = {
						dynasty = ROOT
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
		}	
		FROM = {
			character_event = {
				id = FemRule.396
				tooltip = USURPS_TITLES
			}
		}
	}
}

# Whoever she appealed to arrives to help, bringing a retinue to assist her
character_event = {
	id = FemRule.374
	desc = EVTDESC_FemRule_374
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	immediate = {
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 14
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_374
		tooltip = { opinion = { who = FROM modifier = opinion_very_grateful years = 5 } }
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.375 } }
			FROMFROMFROM = { character_event = { id = FemRule.376 } }
		}
	}
}

# Whoever helped is notified of retainers left behind
character_event = {
	id = FemRule.375
	desc = EVTDESC_FemRule_375
	picture = GFX_evt_noblewoman
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_375
		reverse_opinion = { who = FROM modifier = opinion_very_grateful years = 5 }
		prestige = 25
		if = {
			limit = {
				NOT = { trait = humble }
				NOT = { trait = proud }
			}
			random = {
				chance = 33
				add_trait = proud
			}
		}
		if = {
			limit = { trait = humble }
			random = {
				chance = 33
				remove_trait = humble
			}
		}
	}
}

# Husband is notified of retainers left behind, stymying his efforts
character_event = {
	id = FemRule.376
	desc = EVTDESC_FemRule_376
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	immediate = {
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 14
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA_FemRule_376 #Give up
		ai_chance = {
			factor = 1
			modifier = {
				factor = 5
				trait = slothful
			}
			modifier = {
				factor = 5
				trait = content
			}
			modifier = {
				factor = 5
				OR = {
					trait = slow
					trait = dull
				}
			}
			modifier = {
				factor = 2
				trait = patient
			}
			modifier = {
				factor = 2
				trait = temperate
			}
			modifier = {
				factor = 2
				trait = humble
			}
		}
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			clr_character_flag = plot_usurp_wife_decision_taken
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			FROM = { character_event = { id = FemRule.377 days = 7 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			set_character_flag = abort_plot
		}	
	}
	option = {
		name = EVTOPTB_FemRule_376 #Deal with them directly
		trigger = {
			NOR = {
				trait = content
				trait = humble
				trait = craven
				trait = kind
			}
			OR = {
				trait = arbitrary
				trait = brave
				trait = ambitious
				is_strong_trigger = yes
				trait = cruel
				trait = wroth
				trait = impaler
				trait = misguided_warrior
				trait = tough_soldier
				trait = skilled_tactician
				trait = brilliant_strategist
				trait = lunatic
				trait = possessed
				martial = 12
			}
		}
		ai_chance = {
			factor = 10
		}
		prestige = -50
		if = {
			limit = {
				NOT = { trait = patient }
				NOT = { trait = wroth }
			}
			random = {
				chance = 50
				add_trait = wroth
			}
		}
		if = {
			limit = { trait = patient }
			random = {
				chance = 50
				remove_trait = patient
			}
		}
		if = {
			limit = {
				NOT = { martial = 8 }
			}
			random_list = {
				25 = { character_event = { id = FemRule.378 days = 7 tooltip = AMBUSH_RETAINERS_SUCCESSFUL } }
				75 = {
					character_event = { id = FemRule.379 days = 7 tooltip = AMBUSH_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				martial = 8
				NOT = { martial = 12 }
			}
			random_list = {
				40 = { character_event = { id = FemRule.378 days = 7 tooltip = AMBUSH_RETAINERS_SUCCESSFUL } }
				60 = {
					character_event = { id = FemRule.379 days = 7 tooltip = AMBUSH_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				martial = 12
				NOT = { martial = 16 }
			}
			random_list = {
				60 = { character_event = { id = FemRule.378 days = 7 tooltip = AMBUSH_RETAINERS_SUCCESSFUL } }
				40 = {
					character_event = { id = FemRule.379 days = 7 tooltip = AMBUSH_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				martial = 16
			}
			random_list = {
				75 = { character_event = { id = FemRule.378 days = 7 tooltip = AMBUSH_RETAINERS_SUCCESSFUL } }
				25 = {
					character_event = { id = FemRule.379 days = 7 tooltip = AMBUSH_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
	}
	option = {
		name = EVTOPTC_FemRule_376 #Subvert them
		trigger = {
			wealth = 25
			NOR = {
				trait = honest
				trait = brave
			}
			OR = {
				trait = ambitious
				trait = deceitful
				trait = cynical
				is_smart_trigger = yes
				trait = intricate_webweaver
				trait = flamboyant_schemer
				trait = elusive_shadow
				trait = fortune_builder
				trait = midas_touched
				intrigue = 12
			}
		}
		ai_chance = {
			factor = 10
		}
		wealth = -25
		if = {
			limit = {
				NOT = { trait = deceitful }
			}
			random = {
				chance = 50
				add_trait = deceitful
				
			}
		}
		if = {
			limit = {
				NOT = { intrigue = 8 }
			}
			random_list = {
				25 = { character_event = { id = FemRule.380 days = 7 tooltip = SUBVERT_RETAINERS_SUCCESSFUL } }
				75 = {
					character_event = { id = FemRule.381 days = 7 tooltip = SUBVERT_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				intrigue = 8
				NOT = { intrigue = 12 }
			}
			random_list = {
				40 = { character_event = { id = FemRule.380 days = 7 tooltip = SUBVERT_RETAINERS_SUCCESSFUL } }
				60 = {
					character_event = { id = FemRule.381 days = 7 tooltip = SUBVERT_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				intrigue = 12
				NOT = { intrigue = 16 }
			}
			random_list = {
				60 = { character_event = { id = FemRule.380 days = 7 tooltip = SUBVERT_RETAINERS_SUCCESSFUL } }
				40 = {
					character_event = { id = FemRule.381 days = 7 tooltip = SUBVERT_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				intrigue = 16
			}
			random_list = {
				75 = { character_event = { id = FemRule.380 days = 7 tooltip = SUBVERT_RETAINERS_SUCCESSFUL } }
				25 = {
					character_event = { id = FemRule.381 days = 7 tooltip = SUBVERT_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
	}
	option = {
		name = EVTOPTD_FemRule_376 #Win them over
		trigger = {
			NOR = {
				trait = shy
				trait = paranoid
				trait = excommunicated
				is_kinslayer_trigger = yes
				trait = ugly
			}
			OR = {
				is_strong_trigger = yes
				trait = fair
				trait = crusader
				trait = poet
				trait = hedonist
				trait = gregarious
				trait = underhanded_rogue
				trait = charismatic_negotiator
				trait = grey_eminence
				diplomacy = 12
			}
		}
		ai_chance = {
			factor = 10
		}
		random_list = {
			20 = { add_trait = drunkard }
			20 = { add_trait = gluttonous }
			20 = { add_trait = lustful }
			10 = { add_trait = gregarious }
			30 = { }
		}
		if = {
			limit = {
				NOT = { diplomacy = 8 }
			}
			random_list = {
				25 = { character_event = { id = FemRule.382 days = 7 tooltip = CHARM_RETAINERS_SUCCESSFUL } }
				75 = {
					character_event = { id = FemRule.383 days = 7 tooltip = CHARM_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				diplomacy = 8
				NOT = { diplomacy = 12 }
			}
			random_list = {
				40 = { character_event = { id = FemRule.382 days = 7 tooltip = CHARM_RETAINERS_SUCCESSFUL } }
				60 = {
					character_event = { id = FemRule.383 days = 7 tooltip = CHARM_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				diplomacy = 12
				NOT = { diplomacy = 16 }
			}
			random_list = {
				60 = { character_event = { id = FemRule.382 days = 7 tooltip = CHARM_RETAINERS_SUCCESSFUL } }
				40 = {
					character_event = { id = FemRule.383 days = 7 tooltip = CHARM_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
		if = {
			limit = {
				diplomacy = 16
			}
			random_list = {
				75 = { character_event = { id = FemRule.382 days = 7 tooltip = CHARM_RETAINERS_SUCCESSFUL } }
				25 = {
					character_event = { id = FemRule.383 days = 7 tooltip = CHARM_RETAINERS_FAILED }
					hidden_tooltip = { FROM = { character_event = { id = FemRule.377 days = 7 } } }
				}
			}
		}
	}
}

# Wife notified that retainers were successful
character_event = {
	id = FemRule.377
	desc = EVTDESC_FemRule_377
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_377
		prestige = 25
		hidden_tooltip = {
			FROM = { clr_character_flag = plot_usurp_wife_decision_taken }
		}
	}
}

# Ambush of retainers was successful
character_event = {
	id = FemRule.378
	desc = EVTDESC_FemRule_378
	picture = GFX_evt_melee
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.384 days = 7 } }
		}
	}
}

# Ambush of retainers failed
character_event = {
	id = FemRule.379
	desc = EVTDESC_FemRule_379
	picture = GFX_evt_melee
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		random_list = {
			20 = { add_maimed_trait_effect = yes }
			40 = { add_trait = wounded }
			40 = {}
		}
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.377 days = 7 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Subversion of retainers was successful
character_event = {
	id = FemRule.380
	desc = EVTDESC_FemRule_380
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.384 days = 7 } }
		}
	}
}

# Subversion of retainers failed
character_event = {
	id = FemRule.381
	desc = EVTDESC_FemRule_381
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		random = {
			chance = 50
			change_intrigue = -1
		}
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.377 days = 7 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Charming of retainers was successful
character_event = {
	id = FemRule.382
	desc = EVTDESC_FemRule_382
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.384 days = 7 } }
		}
	}
}

# Charming of retainers failed
character_event = {
	id = FemRule.383
	desc = EVTDESC_FemRule_383
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		if = {
			limit = {
				NOT = { trait = gregarious }
				NOT = { trait = shy }
			}
			random = {
				chance = 50
				add_trait = shy
			}
		}
		if = {
			limit = { trait = gregarious }
			random = {
				chance = 50
				remove_trait = gregarious
			}
		}
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			FROMFROM = { character_event = { id = FemRule.377 days = 7 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Wife is notified that retainers were nullified
character_event = {
	id = FemRule.384
	desc = EVTDESC_FemRule_384
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_384
		set_character_flag = usurped_by_husband
		prestige = -25
		hidden_tooltip = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
			any_vassal = {
				limit = {
					NOR = {
						dynasty = ROOT
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
		}
		FROM = {
			reverse_opinion = { who = ROOT modifier = husband_usurped_me years = 20 }
			character_event = {
				id = FemRule.396
				tooltip = USURPS_TITLES
			}
		}
	}
}

# Whoever she appealed to arrives to help personally
character_event = {
	id = FemRule.385
	desc = EVTDESC_FemRule_385
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	immediate = {
		opinion = { who = FROM modifier = opinion_very_grateful years = 5 }
		remove_do_not_disturb_effect = yes
		add_character_modifier = {
			name = do_not_disturb
			days = 14
			hidden = yes
		}
		FROMFROMFROM = {
			remove_do_not_disturb_effect = yes
			add_character_modifier = {
				name = do_not_disturb
				days = 14
				hidden = yes
			}
		}
	}

	option = {
		name = EVTOPTA_FemRule_385 #Use force
		trigger = {
			FROM = {
				OR = { 
					trait = misguided_warrior
					trait = tough_soldier
					trait = skilled_tactician
					trait = brilliant_strategist
					martial = 12
				}
			}	
		}
		ai_chance = { 
			factor = 1 
			modifier = {
				factor = 100
				FROM = {
					martial = 17
				}
				FROMFROMFROM = {
					NOT = { martial = 8 }
				}
			}
				
			modifier = {
				factor = 0
				FROM = {
					NOT = {
						martial = 12
					}
					OR = {
						intrigue = 17
						diplomacy = 17
						stewardship = 17
						learning = 17
					}
				}
				FROMFROMFROM = {
					martial = 4
				}
			}					
		}
		if = {
			limit = {
				FROM = { NOT = { martial = 8 } }
			}
			random_list = {
				25 = { FROMFROMFROM = { character_event = { id = FemRule.386 days = 7 tooltip = HUSBAND_INTIMIDATION_SUCCESSFUL } } }
				75 = { FROMFROMFROM = { character_event = { id = FemRule.387 days = 7 tooltip = HUSBAND_INTIMIDATION_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { martial = 8 }
				FROM = { NOT = { martial = 12 } }
			}
			random_list = {
				40 = { FROMFROMFROM = { character_event = { id = FemRule.386 days = 7 tooltip = HUSBAND_INTIMIDATION_SUCCESSFUL } } }
				60 = { FROMFROMFROM = { character_event = { id = FemRule.387 days = 7 tooltip = HUSBAND_INTIMIDATION_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { martial = 12 }
				FROM = { NOT = { martial = 16 } }
			}
			random_list = {
				60 = { FROMFROMFROM = { character_event = { id = FemRule.386 days = 7 tooltip = HUSBAND_INTIMIDATION_SUCCESSFUL } } }
				40 = { FROMFROMFROM = { character_event = { id = FemRule.387 days = 7 tooltip = HUSBAND_INTIMIDATION_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { martial = 16 }
			}
			random_list = {
				75 = { FROMFROMFROM = { character_event = { id = FemRule.386 days = 7 tooltip = HUSBAND_INTIMIDATION_SUCCESSFUL } } }
				25 = { FROMFROMFROM = { character_event = { id = FemRule.387 days = 7 tooltip = HUSBAND_INTIMIDATION_UNSUCCESSFUL } } }
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_385 #Use bribery
		trigger = {
			FROM = {
				OR = { 
					trait = amateurish_plotter
					trait = flamboyant_schemer
					trait = intricate_webweaver
					trait = elusive_shadow
					trait = indulgent_wastrel
					trait = thrifty_clerk
					trait = fortune_builder
					trait = midas_touched
					intrigue = 12
					stewardship = 12
				}
			}	
		}
		ai_chance = { 
			factor = 1 
			modifier = {
				factor = 100
				FROM = {
					OR = {
						intrigue = 17
						stewardship = 17
					}
				}
				FROMFROMFROM = {
					NOR = {
						intrigue = 8
						stewardship = 8
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					NOT = { intrigue = 12 }
					NOT = { stewardship = 12 }
					OR = {
						martial = 17
						diplomacy = 17
						learning = 17
					}
				}
				FROMFROMFROM = {
					OR = {
						intrigue = 4
						stewardship = 4
					}
				}
			}					
		}
		if = {
			limit = {
				FROM = {
					NOR = {
						stewardship = 8
						intrigue = 8
					}
				}
			}
			random_list = {
				25 = { FROMFROMFROM = { character_event = { id = FemRule.388 days = 7 tooltip = HUSBAND_BRIBERY_SUCCESSFUL } } }
				75 = { FROMFROMFROM = { character_event = { id = FemRule.389 days = 7 tooltip = HUSBAND_BRIBERY_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = {
					OR = {
						stewardship = 8
						intrigue = 8
					}
					NOR = {
						stewardship = 12
						intrigue = 12
					}
				}
			}
			random_list = {
				40 = { FROMFROMFROM = { character_event = { id = FemRule.388 days = 7 tooltip = HUSBAND_BRIBERY_SUCCESSFUL } } }
				60 = { FROMFROMFROM = { character_event = { id = FemRule.389 days = 7 tooltip = HUSBAND_BRIBERY_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = {
					OR = {
						stewardship = 12
						intrigue = 12
					}
					NOR = {
						stewardship = 16
						intrigue = 16
					}
				}
			}
			random_list = {
				40 = { FROMFROMFROM = { character_event = { id = FemRule.388 days = 7 tooltip = HUSBAND_BRIBERY_SUCCESSFUL } } }
				60 = { FROMFROMFROM = { character_event = { id = FemRule.389 days = 7 tooltip = HUSBAND_BRIBERY_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = {
					OR = {
						stewardship = 16
						intrigue = 16
					}
				}
			}
			random_list = {
				40 = { FROMFROMFROM = { character_event = { id = FemRule.388 days = 7 tooltip = HUSBAND_BRIBERY_SUCCESSFUL } } }
				60 = { FROMFROMFROM = { character_event = { id = FemRule.389 days = 7 tooltip = HUSBAND_BRIBERY_UNSUCCESSFUL } } }
			}
		}
	}
	option = {
		name = EVTOPTC_FemRule_385 #Gather support on her behalf
		trigger = {
			FROM = {
				OR = { 
					trait = naive_appeaser
					trait = underhanded_rogue
					trait = charismatic_negotiator
					trait = grey_eminence
					trait = detached_priest
					trait = martial_cleric
					trait = scholarly_theologian
					trait = mastermind_theologian
					diplomacy = 12
					learning = 12
				}
			}	
		}
		ai_chance = { 
			factor = 1 
			modifier = {
				factor = 100
				FROM = {
					OR = {
						diplomacy = 17
						learning = 17
					}
					FROMFROMFROM = {
						NOR = {
							diplomacy = 8
							learning = 8
						}
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					NOR = {
						diplomacy = 12
						learning = 12
					}
					OR = {
						martial = 17
						intrigue = 17
						stewardship = 17
					}
				}
				FROMFROMFROM = {
					diplomacy = 4
					learning = 4
				}
			}					
		}
		if = {
			limit = {
				FROM = { NOT = { diplomacy = 8 } }
			}
			random_list = {
				25 = { FROMFROMFROM = { character_event = { id = FemRule.390 days = 7 tooltip = HUSBAND_CAMPAIGN_SUCCESSFUL } } }
				75 = { FROMFROMFROM = { character_event = { id = FemRule.391 days = 7 tooltip = HUSBAND_CAMPAIGN_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { diplomacy = 8 }
				FROM = { NOT = { diplomacy = 12 } }
			}
			random_list = {
				40 = { FROMFROMFROM = { character_event = { id = FemRule.390 days = 7 tooltip = HUSBAND_CAMPAIGN_SUCCESSFUL } } }
				60 = { FROMFROMFROM = { character_event = { id = FemRule.391 days = 7 tooltip = HUSBAND_CAMPAIGN_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { diplomacy = 12 }
				FROM = { NOT = { diplomacy = 16 } }
			}
			random_list = {
				60 = { FROMFROMFROM = { character_event = { id = FemRule.390 days = 7 tooltip = HUSBAND_CAMPAIGN_SUCCESSFUL } } }
				40 = { FROMFROMFROM = { character_event = { id = FemRule.391 days = 7 tooltip = HUSBAND_CAMPAIGN_UNSUCCESSFUL } } }
			}
		}
		if = {
			limit = {
				FROM = { diplomacy = 16 }
			}
			random_list = {
				75 = { FROMFROMFROM = { character_event = { id = FemRule.390 days = 7 tooltip = HUSBAND_CAMPAIGN_SUCCESSFUL } } }
				25 = { FROMFROMFROM = { character_event = { id = FemRule.391 days = 7 tooltip = HUSBAND_CAMPAIGN_UNSUCCESSFUL } } }
			}
		}
	}
}

# Husband notified that campaign of intimidation is successful
character_event = {
	id = FemRule.386
	desc = EVTDESC_FemRule_386
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			FROM = { character_event = { id = FemRule.392 } }
			FROMFROM = { character_event = { id = FemRule.393 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Husband notified that campaign of intimidation is unsuccessful
character_event = {
	id = FemRule.387
	desc = EVTDESC_FemRule_387
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.394 days = 7 } }
			FROMFROM = { character_event = { id = FemRule.395 days = 7 } }
		}
	}
}

# Husband notified that campaign of bribery is successful
character_event = {
	id = FemRule.388
	desc = EVTDESC_FemRule_388
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			FROM = { character_event = { id = FemRule.392 } }
			FROMFROM = { character_event = { id = FemRule.393 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Husband notified that campaign of bribery is unsuccessful
character_event = {
	id = FemRule.389
	desc = EVTDESC_FemRule_389
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.394 days = 7 } }
			FROMFROM = { character_event = { id = FemRule.395 days = 7 } }
		}
	}
}

# Husband notified that campaign of support is successful
character_event = {
	id = FemRule.390
	desc = EVTDESC_FemRule_390
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = CURSES
		prestige = -50
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		custom_tooltip = { text = ABANDONS_USURP_EFFORT }
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			FROM = { character_event = { id = FemRule.392 } }
			FROMFROM = { character_event = { id = FemRule.393 } }
			any_plot_backer = {
				opinion = { who = ROOT modifier = opinion_irritated years = 5 }
			}
			add_character_modifier = { 
				name = failed_to_usurp_wife
				duration = 	1825
			}
			set_character_flag = abort_plot
		}
	}
}

# Husband notified that campaign of support is unsuccessful
character_event = {
	id = FemRule.391
	desc = EVTDESC_FemRule_391
	picture = GFX_evt_shadowy_cabal
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
		opinion = { who = FROMFROM modifier = opinion_angry years = 5 }
		hidden_tooltip = {
			FROM = { character_event = { id = FemRule.394 days = 7 } }
			FROMFROM = { character_event = { id = FemRule.395 days = 7 } }
		}
	}
}

# Wife notified that plan was successful
character_event = {
	id = FemRule.392
	desc = EVTDESC_FemRule_392
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_392
		prestige = 25
		hidden_tooltip = {
			remove_do_not_disturb_effect = yes
			FROM = { clr_character_flag = plot_usurp_wife_decision_taken }
		}
	}
}

# Whoever helped her notified that plan was successful
character_event = {
	id = FemRule.393
	desc = EVTDESC_FemRule_393
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		prestige = 25
	}
}

# Wife notified that plan failed
character_event = {
	id = FemRule.394
	desc = EVTDESC_FemRule_394
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_392
		set_character_flag = usurped_by_husband
		prestige = -25
		hidden_tooltip = {
			any_dynasty_member = {
				limit = {
					NOR = {
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
			any_vassal = {
				limit = {
					NOR = {
						dynasty = ROOT
						character = ROOT
						character = FROM
					}
				}
				character_event = {
					id = FemRule.397
				}
			}
		}
		FROM = {
			reverse_opinion = { who = ROOT modifier = husband_usurped_me years = 20 }
			character_event = {
				id = FemRule.396
				days = 7
				tooltip = USURPS_TITLES
			}
		}
	}
}

# Whoever helped her notified that plan failed
character_event = {
	id = FemRule.395
	desc = EVTDESC_FemRule_395
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_395
		prestige = -25
	}
}

# Husband successfully usurps wife's titles
character_event = {
	id = FemRule.396
	desc = EVTDESC_FemRule_396
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_396
		set_character_flag = usurped_my_wife
		set_character_flag = usurp_wife_plot_success
		hidden_tooltip = { remove_do_not_disturb_effect = yes }
		FROM = {
			any_demesne_title = {
				limit = {
					NOR = {
						has_law = enatic_cognatic_succession
						has_law = enatic_succession
					}
				}
				usurp_title_plus_barony_if_unlanded = ROOT
			}
		}
		clr_character_flag = plot_usurp_wife_decision_taken
	}
}

# Family member/realm lord is notified that wife's titles have been usurped
character_event = {
	id = FemRule.397
	desc = EVTDESC_FemRule_397
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_397 #This is an outrage!
		opinion = { who = FROM modifier = sympathetic_to_cause years = 10 }
		opinion = { who = FROMFROM modifier = outraged_usurpation years = 10 }
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.5
				is_female = no
			}
			modifier = {
				factor = 0.5
				is_close_relative = FROMFROM
			}
			modifier = {
				factor = 0
				FROMFROM = {
					any_plot_backer = { character = ROOT }
				}
			}
			modifier = {
				factor = 2
				dynasty = FROM
				NOT = { dynasty = FROMFROM }
			}
			modifier = {
				factor = 1.5
				opinion = { who = FROM value = 25 }
			}
			modifier = {
				factor = 1.5
				opinion = { who = FROM value = 50 }
			}
			modifier = {
				factor = 2
				opinion = { who = FROM value = 75 }
			}
			modifier = {
				factor = 1.5
				NOT = { opinion = { who = FROMFROM value = 0 } }
			}
			modifier = {
				factor = 1.5
				NOT = { opinion = { who = FROMFROM value = -25 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROMFROM value = -50 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROMFROM value = -75 } }
			}
		}
	}
	option = {
		name = EVTOPTB_FemRule_397 #So be it
		ai_chance = {
			factor = 50
			modifier = {
				factor = 1.5
				is_female = no
			}
			modifier = {
				factor = 2
				dynasty = FROMFROM
				NOT = { dynasty = FROM }
			}
			modifier = {
				factor = 2
				NOT = { same_realm = FROM }
			}
			modifier = {
				factor = 1.5
				NOT = { opinion = { who = FROM value = 0 } }
			}
			modifier = {
				factor = 1.5
				NOT = { opinion = { who = FROM value = -25 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -50 } }
			}
			modifier = {
				factor = 2
				NOT = { opinion = { who = FROM value = -75 } }
			}
			modifier = {
				factor = 1.5
				opinion = { who = FROMFROM value = 25 }
			}
			modifier = {
				factor = 1.5
				opinion = { who = FROMFROM value = 50 }
			}
			modifier = {
				factor = 2
				opinion = { who = FROMFROM value = 75 }
			}
		}
	}
}

# First event to the husband to kick off the chain
character_event = {
	id = FemRule.398
	desc = EVTDESC_FemRule_398
	picture = GFX_evt_quarrel
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_FemRule_398
	}
}

