namespace = Plus

#reserved: Plus.435 to Plus.459

########################################
# LIFESTYLE EVENTS
########################################

# completely re-written from the vanilla events
# written by Rylock

#Hunter
character_event = {
	id = Plus.435
	desc = "EVTDESC_Plus_435"
	picture = "GFX_evt_hunt"
	
	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = craven
			is_weak_trigger = yes
			religion = jain
			religion = cathar
			is_inaccessible_trigger = yes
		}
		martial = 5
		OR = {
			is_female = no
			trait = martial_lady
			trait = martial_lady_tengri
			trait = martial_lady_pagan
			trait = shieldmaiden
			liege = { has_law = female_council_law_4 }
			has_game_rule = {
				name = gender
				value = all
			}
			has_game_rule = {
				name = gender
				value = plus
			}
		}
		OR = {
			trait = brave
			is_strong_trigger = yes
			martial = 12
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_hunter_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = brave
		}
		modifier = {
			factor = 1.5
			is_strong_trigger = yes
		}
		modifier = {
			factor = 1.5
			martial = 10
		}
		modifier = {
			factor = 1.5
			martial = 15
		}
		modifier = {
			factor = 1.5
			martial = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_435" #I'm a hunter
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = brave
					is_strong_trigger = yes
				}
			}
			modifier = {
				factor = 2
				is_pagan_religion = yes
			}
		}
		add_trait = hunter
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_martial" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_martial_no
	}
}

#Falconer
character_event = {
	id = Plus.436
	desc = "EVTDESC_Plus_436"
	picture = "GFX_evt_falconing"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = shy
			trait = slothful
			religion = jain
			is_inaccessible_trigger = yes
		}
		diplomacy = 5
		intrigue = 5
		OR = {
			trait = diligent
			trait = deceitful
			diplomacy = 12
			intrigue = 12
			check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
			check_variable = { which = "lifestyle_intrigue" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_falconer_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = gregarious
		}
		modifier = {
			factor = 1.5
			diplomacy = 10
		}
		modifier = {
			factor = 1.5
			diplomacy = 15
		}
		modifier = {
			factor = 1.5
			diplomacy = 20
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
	}

	option = {
		name = "EVTOPTA_Plus_436" #I'm a falconer
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = diligent
					trait = gregarious
				}
			}
		}
		add_trait = falconer
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_diplomacy_no
	}
}

#Scholar
character_event = {
	id = Plus.437
	desc = "EVTDESC_Plus_437"
	picture = "GFX_evt_library"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = gregarious
			is_dumb_trigger = yes
			is_inaccessible_trigger = yes
		}
		learning = 5
		OR = {
			trait = shy
			is_smart_trigger = yes
			is_priest = yes
			learning = 12
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_scholar_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}		
		modifier = {
			factor = 1.5
			is_smart_trigger = yes
		}
		modifier = {
			factor = 1.5
			trait = shy
		}
		modifier = {
			factor = 1.5
			learning = 10
		}
		modifier = {
			factor = 1.5
			learning = 15
		}
		modifier = {
			factor = 1.5
			learning = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_437" #I'm a scholar
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = shy
					is_smart_trigger = yes
				}
			}
		}
		add_trait = scholar
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_learning" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_learning_no
	}
}

#Mystic
character_event = {
	id = Plus.438
	desc = "EVTDESC_Plus_438"
	picture = "GFX_evt_library"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = zealous
			is_inaccessible_trigger = yes
		}
		learning = 5
		OR = {
			trait = cynical
			is_pagan_religion = yes
			learning = 12
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_mystic_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = deceitful
		}
		modifier = {
			factor = 1.5
			trait = paranoid
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_438" #I'm a mystic
		ai_chance = {
			factor = 20
			modifier = {
				factor = 2
				OR = {
					trait = cynical
					is_pagan_religion = yes
				}
			}
		}
		add_trait = mystic
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_learning" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_learning_no
	}
}

#Impaler
character_event = {
	id = Plus.439
	desc = "EVTDESC_Plus_439"
	picture = "GFX_evt_pale_rider"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = kind
			trait = charitable
			religion = jain
			religion = cathar
			is_inaccessible_trigger = yes
		}
		martial = 5
		OR = {
			trait = cruel
			trait = wroth
			martial = 12
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_impaler_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = cruel
		}
		modifier = {
			factor = 1.5
			trait = wroth
		}
		modifier = {
			factor = 1.5
			intrigue = 10
		}
		modifier = {
			factor = 1.5
			intrigue = 15
		}
		modifier = {
			factor = 1.5
			intrigue = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_439" #I'm an impaler
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = cruel
					trait = wroth
				}
			}
		}
		add_trait = impaler
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_martial" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_martial_no
	}
}

#Gardener
character_event = {
	id = Plus.440
	desc = "EVTDESC_Plus_440"
	picture = "GFX_evt_garden"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = slothful
			trait = wroth
			is_inaccessible_trigger = yes
		}
		stewardship = 5
		OR = {
			trait = temperate
			trait = patient
			trait = diligent
			stewardship = 12
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_gardener_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = patient
		}
		modifier = {
			factor = 1.5
			trait = temperate
		}
		modifier = {
			factor = 1.5
			stewardship = 10
		}
		modifier = {
			factor = 1.5
			stewardship = 15
		}
		modifier = {
			factor = 1.5
			stewardship = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_440" #I'm a gardener
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = temperate
					trait = patient
					trait = diligent
				}
			}
		}
		add_trait = gardener
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_stewardship" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_stewardship_no
	}
}

#Poet
character_event = {
	id = Plus.441
	desc = "EVTDESC_Plus_441"
	picture = "GFX_evt_courtly_love"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		prisoner = no
		NOT = {
			lifestyle_traits = 1
			trait = cruel
			trait = envious
			trait = gregarious
			is_inaccessible_trigger = yes
		}
		diplomacy = 5
		OR = {
			trait = shy
			trait = kind
			diplomacy = 12
			check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_poet_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = shy
		}
		modifier = {
			factor = 1.5
			trait = kind
		}
		modifier = {
			factor = 1.5
			trait = lustful
		}
		modifier = {
			factor = 1.5
			diplomacy = 10
		}
		modifier = {
			factor = 1.5
			diplomacy = 15
		}
		modifier = {
			factor = 1.5
			diplomacy = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_diplomacy" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_441" #I'm a poet
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = shy
					trait = kind
				}
			}
		}
		add_trait = poet
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_diplomacy_no
	}
}

#Administrator
character_event = {
	id = Plus.442
	desc = "EVTDESC_Plus_442"
	picture = "GFX_evt_royal_court"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = slothful
			trait = gregarious
			is_inaccessible_trigger = yes
		}
		stewardship = 5
		OR = {
			trait = diligent
			trait = shy
			trait = content
			stewardship = 12
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_administrator_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = temperate
		}
		modifier = {
			factor = 1.5
			trait = shy
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_442" #I'm an administrator
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = diligent
					trait = shy
					trait = content
				}
			}
		}
		add_trait = administrator
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_stewardship" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_administrator_no
	}
}

#Hedonist
character_event = {
	id = Plus.443
	desc = "EVTDESC_Plus_443"
	picture = "GFX_evt_brothel"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = temperate
			trait = shy
			is_inaccessible_trigger = yes
		}
		trait = lustful
		OR = {
			trait = drunkard
			trait = gluttonous
			trait = greedy
			check_variable = { which = "lifestyle_hedonist" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_hedonist_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = drunkard
		}
		modifier = {
			factor = 1.5
			trait = gluttonous
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_hedonist" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_hedonist" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_443" #I'm a hedonist
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = drunkard
					trait = gluttonous
					trait = greedy
				}
			}
		}
		add_trait = hedonist
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_hedonist" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_hedonist_no
	}
}

#Duelist
character_event = {
	id = Plus.444
	desc = "EVTDESC_Plus_444"
	picture = "GFX_evt_joust"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = content
			trait = kind
			trait = craven
			is_weak_trigger = yes
			is_inaccessible_trigger = yes
		}
		martial = 5
		OR = {
			is_female = no
			trait = martial_lady
			trait = martial_lady_tengri
			trait = martial_lady_pagan
			trait = shieldmaiden
			has_game_rule = {
				name = gender
				value = all
			}
			has_game_rule = {
				name = gender
				value = plus
			}
		}
		OR = {
			trait = wroth
			trait = brave
			trait = ambitious
			martial = 12
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		
		NOT = { has_character_flag = lifestyle_duelist_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = wroth
		}
		modifier = {
			factor = 1.5
			trait = brave
		}
		modifier = {
			factor = 1.5
			is_strong_trigger = yes
		}
		modifier = {
			factor = 1.5
			martial = 10
		}
		modifier = {
			factor = 1.5
			martial = 15
		}
		modifier = {
			factor = 1.5
			martial = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_444" #I'm a duelist
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = wroth
					trait = brave
					trait = ambitious
				}
			}
			modifier = {
				factor = 0.5
				religion = jain
			}
			modifier = {
				factor = 0.5
				religion = cathar
			}
		}
		add_trait = duelist
		if = {
			limit = { religion = jain }
			piety = -20
			custom_tooltip = { text = jain_ahimsa_tooltip }
		}
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_martial" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_martial_no
	}
}

#Faqih
character_event = {
	id = Plus.445
	desc = "EVTDESC_Plus_445"
	picture = GFX_evt_shadowy_cabal

	is_triggered_only = yes
	
	religion_group = muslim
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = cynical
			trait = slothful
			trait = hafiz
			is_inaccessible_trigger = yes
		}
		learning = 5
		OR = {
			trait = just
			trait = zealous
			learning = 12
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_faqih_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = diligent
		}
		modifier = {
			factor = 1.5
			trait = just
		}
		modifier = {
			factor = 1.5
			trait = zealous
		}
		modifier = {
			factor = 1.5
			learning = 10
		}
		modifier = {
			factor = 1.5
			learning = 15
		}
		modifier = {
			factor = 1.5
			learning = 20
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_learning" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_445" #I have become faqih
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = just
					trait = zealous
				}
			}
		}
		add_trait = faqih
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_learning" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_learning_no
	}
}

#Architect
character_event = {
	id = Plus.446
	desc = "EVTDESC_Plus_446"
	picture = "GFX_evt_castle_construction"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = wroth
			trait = content
			trait = humble
			is_inaccessible_trigger = yes
		}
		stewardship = 5
		OR = {
			trait = patient
			trait = ambitious
			trait = proud
			stewardship = 12
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_architect_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = patient
		}
		modifier = {
			factor = 1.5
			trait = ambitious
		}
		modifier = {
			factor = 1.5
			trait = proud
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_stewardship" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_446" #I'm an architect
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = patient
					trait = ambitious
					trait = proud
				}
			}
		}
		add_trait = architect
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_stewardship" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_architect_no
	}
}

#Strategist
character_event = {
	id = Plus.447
	desc = "EVTDESC_Plus_447"
	picture = "GFX_evt_large_army"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = wroth
			trait = content
			trait = trusting
			is_inaccessible_trigger = yes
		}
		martial = 5
		OR = {
			trait = patient
			trait = ambitious
			trait = paranoid
			martial = 12
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_strategist_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = patient
		}
		modifier = {
			factor = 1.5
			trait = ambitious
		}
		modifier = {
			factor = 1.5
			trait = paranoid
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_martial" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_447" #I'm a strategist
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = patient
					trait = ambitious
					trait = paranoid
				}
			}
		}
		add_trait = strategist
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_martial" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_strategist_no
	}
}

#Socializer
character_event = {
	id = Plus.448
	desc = "EVTDESC_Plus_448"
	picture = "GFX_evt_feast"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = shy
			trait = ugly
			trait = paranoid
			is_inaccessible_trigger = yes
		}
		diplomacy = 5
		OR = {
			trait = gregarious
			trait = fair
			diplomacy = 12
			check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_socializer_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = gregarious
		}
		modifier = {
			factor = 1.5
			trait = proud
		}
		modifier = {
			factor = 1.5
			trait = fair
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_diplomacy" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_diplomacy" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_448" #I'm a socializer
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = gregarious
					trait = fair
				}
			}
		}
		add_trait = socializer
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_diplomacy" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_socializer_no
	}
}

#Schemer
character_event = {
	id = Plus.449
	desc = "EVTDESC_Plus_449"
	picture = "GFX_evt_whispers"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = trusting
			trait = honest
			is_inaccessible_trigger = yes
		}
		intrigue = 5
		OR = {
			trait = paranoid
			trait = deceitful
			intrigue = 12
			check_variable = { which = "lifestyle_intrigue" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_schemer_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = paranoid
		}
		modifier = {
			factor = 1.5
			trait = deceitful
		}
		modifier = {
			factor = 1.5
			trait = patient
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_intrigue" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_449" #I'm a schemer
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = paranoid
					trait = deceitful
				}
			}
		}
		add_trait = schemer
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_intrigue" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_strategist_no
	}
}

#Gamer
character_event = {
	id = Plus.450
	desc = "EVTDESC_Plus_450"
	picture = "GFX_evt_market"

	is_triggered_only = yes
	
	min_age = 25
	prisoner = no
	capable_only = yes

	trigger = {
		NOT = {
			lifestyle_traits = 1
			trait = wroth
			trait = arbitrary
			is_inaccessible_trigger = yes
		}
		intrigue = 5
		OR = {
			trait = patient
			trait = just
			intrigue = 12
			check_variable = { which = "lifestyle_intrigue" value = 0.9 }
		}
		NOT = { has_character_flag = lifestyle_schemer_no }
	}

	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			trait = patient
		}
		modifier = {
			factor = 1.5
			trait = just
		}
		modifier = {
			factor = 1.5
			trait = gluttonous
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "lifestyle_intrigue" value = 0.9 } }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 0.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 1.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 2.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 3.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 4.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 5.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 6.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 7.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 8.9 }
		}
		modifier = {
			factor = 2.0
			check_variable = { which = "lifestyle_intrigue" value = 9.9 }
		}
	}

	option = {
		name = "EVTOPTA_Plus_450" #I'm a gamer
		ai_chance = {
			factor = 60
			modifier = {
				factor = 2
				OR = {
					trait = patient
					trait = just
				}
			}
		}
		add_trait = gamer
	}
	option = {
		name = "EVTOPTB_Plus_435" #That lifestyle is not for me
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				check_variable = { which = "lifestyle_intrigue" value = 0.9 }
			}
			modifier = {
				factor = 0
				has_ambition = obj_adopt_a_lifestyle
			}
		}
		set_character_flag = lifestyle_strategist_no
	}
}

### GAIN LIFESTYLE AMBITION EVENTS

#A traveling merchant visits during a storm
character_event = {
	id = Plus.451
	desc = EVTDESC_Plus_451
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	only_rulers = yes
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		is_ill = no
		is_ruler = yes
		diplomacy = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_diplomacy1_check
			check_variable = { which = "lifestyle_diplomacy" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			diplomacy = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_diplomacy1_check
	}
	
	option = {
		name = EVTOPTA_Plus_451 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_451 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { martial = 5 }
			}
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_451 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { learning = 5 }
			}
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_451 #None of the above
		ai_chance = {
			factor = 10
		}
		if = {
			limit = { trait = stressed }
			random = {
				chance = 20
				remove_trait = stressed
			}
		}
		if = {
			limit = { trait = depressed }
			random = {
				chance = 20
				remove_trait = depressed
			}
		}
	}
}

#A function is happening in the capital
character_event = {
	id = Plus.452
	desc = EVTDESC_Plus_452
	picture = GFX_evt_jugglers
	
	is_triggered_only = yes
	
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		diplomacy = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_diplomacy2_check
			check_variable = { which = "lifestyle_diplomacy" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			diplomacy = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_diplomacy2_check
	}
	
	option = {
		name = EVTOPTA_Plus_452 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_452 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { intrigue = 5 }
			}
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_452 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { stewardship = 5 }
			}
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_452 #None of the above
		if = {
			limit = { trait = stressed }
			random = {
				chance = 20
				remove_trait = stressed
			}
		}
		if = {
			limit = { trait = depressed }
			random = {
				chance = 20
				remove_trait = depressed
			}
		}
	}
}

#See your knights sparring together
character_event = {
	id = Plus.453
	desc = EVTDESC_Plus_453
	picture = GFX_evt_melee
	
	is_triggered_only = yes
	
	only_rulers = yes
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		is_ruler = yes
		martial = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_martial1_check
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			martial = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_martial1_check
	}
	
	option = {
		name = EVTOPTA_Plus_453 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_453 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { diplomacy = 5 }
			}
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_453 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { learning = 5 }
			}
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_453 #None of the above
		random = {
			chance = 20
			health = 0.25
		}
	}
}

#Courtiers arguing about the war
character_event = {
	id = Plus.454
	desc = EVTDESC_Plus_454
	picture = GFX_evt_warrior_banners
	
	is_triggered_only = yes
	
	war = yes
	min_age = 25
	prisoner = no
	
	trigger = {
		martial = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_martial2_check
			check_variable = { which = "lifestyle_martial" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			martial = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_martial2_check
	}
	
	option = {
		name = EVTOPTA_Plus_454 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_454 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { intrigue = 5 }
			}
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_454 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { stewardship = 5 }
			}
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_454 #None of the above
		random = {
			chance = 20
			health = 0.25
		}
	}
}

#A day of peace for a ruler
character_event = {
	id = Plus.455
	desc = EVTDESC_Plus_455
	picture = GFX_evt_battle
	
	is_triggered_only = yes
	
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		stewardship = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			any_liege = { war = yes }
			has_character_flag = lifestyle_stewardship1_check
			check_variable = { which = "lifestyle_stewardship" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			stewardship = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_stewardship1_check
	}
	
	option = {
		name = EVTOPTA_Plus_455 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_455 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { martial = 5 }
			}
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_455 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { learning = 5 }
			}
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_455 #None of the above
		random_courtier = {
			limit = {
				OR = {
					is_married = ROOT
					is_consort = ROOT
					is_lover = ROOT
					is_close_relative = ROOT
				}
			}
			opinion = { who = ROOT modifier = opinion_family_love months = 24 }
		}
	}
}

#A disturbance in the market
character_event = {
	id = Plus.456
	desc = EVTDESC_Plus_456
	picture = GFX_evt_riots_byzantine
	
	is_triggered_only = yes
	
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		is_ruler = yes
		stewardship = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_stewardship2_check
			check_variable = { which = "lifestyle_stewardship" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			stewardship = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_stewardship2_check
	}
	
	option = {
		name = EVTOPTA_Plus_456 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_456 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { diplomacy = 5 }
			}
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_456 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { intrigue = 5 }
			}
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_456 #None of the above
		add_character_modifier = {
			name = attentive_liege
			duration = 365
		}
	}
}

#Wondering about rival
character_event = {
	id = Plus.457
	desc = EVTDESC_Plus_457
	picture = GFX_evt_shadow
	
	is_triggered_only = yes
	
	rivals = yes
	min_age = 25
	prisoner = no
	
	trigger = {
		intrigue = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_intrigue1_check
			check_variable = { which = "lifestyle_intrigue" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			intrigue = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_intrigue1_check
		random_rival = {
			limit = { is_alive = yes }
			save_event_target_as = target_rival
		}
	}
	
	option = {
		name = EVTOPTA_Plus_457 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_457 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { martial = 5 }
			}
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_457 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { diplomacy = 5 }
			}
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_457 #None of the above
		piety = 25
		if = {
			limit = {
				NOT = {
					trait = wroth
					trait = patient
				}
			}
			random = {
				chance = 20
				add_trait = patient
			}
		}
		if = {
			limit = { trait = wroth }
			random = {
				chance = 20
				remove_trait = wroth
			}
		}
	}
}

#Thinking about the plot
character_event = {
	id = Plus.458
	desc = EVTDESC_Plus_458
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	is_part_of_plot = yes
	min_age = 25
	prisoner = no
	
	trigger = {
		intrigue = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_intrigue2_check
			check_variable = { which = "lifestyle_intrigue" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			intrigue = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_intrigue2_check
	}
	
	option = {
		name = EVTOPTA_Plus_458 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_458 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { learning = 5 }
			}
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_458 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { stewardship = 5 }
			}
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_458 #None of the above
		if = {
			limit = {
				NOR = {
					has_character_modifier = plot_assisted_spying
					has_character_modifier = plot_assisted_spying2
					has_character_modifier = plot_assisted_spying3
					has_character_modifier = plot_assisted_spying4
					has_character_modifier = plot_assisted_spying5
				}
			}
			add_character_modifier = {
				name = plot_assisted_spying
				duration = 90
			}
		}
		if = {
			limit = { NOT = { trait = wroth } }
			random = {
				chance = 20
				add_trait = wroth
			}
		}
	}
}

#Debate with a zealous courtier
character_event = {
	id = Plus.434
	desc = EVTDESC_Plus_434
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	only_rulers = yes
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		is_ruler = yes
		learning = 5
		any_courtier = {
			is_liege_or_above = ROOT
			is_ruler = yes
			is_adult = yes
			OR = {
				trait = zealous
				learning = 12
			}
		}
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_learning1_check
			check_variable = { which = "lifestyle_learning" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			learning = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_learning1_check
		random_courtier = {
			limit = {
				is_liege_or_above = ROOT
				is_ruler = yes
				is_adult = yes
				OR = {
					trait = zealous
					learning = 12
				}
			}
			save_event_target_as = debater
		}
	}
	
	option = {
		name = EVTOPTA_Plus_434 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_434 #Diplomacy
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { diplomacy = 5 }
			}
			modifier = {
				factor = 2
				diplomacy = 12
			}
			modifier = {
				factor = 1.5
				trait = naive_appeaser
			}
			modifier = {
				factor = 2.0
				trait = underhanded_rogue
			}
			modifier = {
				factor = 3.0
				trait = charismatic_negotiator
			}
			modifier = {
				factor = 4.0
				trait = grey_eminence
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_diplomacy" value = 1.0 }
		}
		random = {
			chance = 20
			change_diplomacy = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_434 #Intrigue
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { intrigue = 5 }
			}
			modifier = {
				factor = 2
				intrigue = 12
			}
			modifier = {
				factor = 1.5
				trait = amateurish_plotter
			}
			modifier = {
				factor = 2.0
				trait = flamboyant_schemer
			}
			modifier = {
				factor = 3.0
				trait = intricate_webweaver
			}
			modifier = {
				factor = 4.0
				trait = elusive_shadow
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_intrigue" value = 1.0 }
		}
		random = {
			chance = 20
			change_intrigue = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_434 #None of the above
		event_target:debater = {
			if = {
				limit = { NOT = { is_rival = ROOT } }
				opinion = { who = ROOT modifier = good_speech years = 3 }
			}
			if = {
				limit = { is_rival = ROOT }
				remove_rival = ROOT
			}
		}
	}
}

#Bookseller comes to court
character_event = {
	id = Plus.459
	desc = EVTDESC_Plus_459
	picture = GFX_evt_library
	
	is_triggered_only = yes
	
	war = no
	min_age = 25
	prisoner = no
	
	trigger = {
		learning = 5
		NOT = {
			lifestyle_traits = 1
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_flag = lifestyle_learning2_check
			check_variable = { which = "lifestyle_learning" value = 1.9 }
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 0.75
			has_dlc = "Way of Life"
		}
		modifier = {
			factor = 5.0
			has_ambition = obj_adopt_a_lifestyle
		}
		modifier = {
			factor = 1.5
			learning = 12
		}
		modifier = {
			factor = 1.25
			age = 30
		}
		modifier = {
			factor = 1.25
			age = 35
		}
		modifier = {
			factor = 1.25
			age = 40
		}
		modifier = {
			factor = 1.25
			age = 45
		}
	}
	
	immediate = {
		set_character_flag = lifestyle_learning2_check
	}
	
	option = {
		name = EVTOPTA_Plus_459 #Learning
		ai_chance = {
			factor = 10
			modifier = {
				factor = 2
				learning = 12
			}
			modifier = {
				factor = 1.5
				trait = detached_priest
			}
			modifier = {
				factor = 2.0
				trait = martial_cleric
			}
			modifier = {
				factor = 3.0
				trait = scholarly_theologian
			}
			modifier = {
				factor = 4.0
				trait = mastermind_theologian
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_learning" value = 1.0 }
		}
		random = {
			chance = 20
			change_learning = 1
		}
	}
	option = {
		name = EVTOPTB_Plus_459 #Martial
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { martial = 5 }
			}
			modifier = {
				factor = 2
				martial = 12
			}
			modifier = {
				factor = 1.5
				trait = misguided_warrior
			}
			modifier = {
				factor = 2.0
				trait = tough_soldier
			}
			modifier = {
				factor = 3.0
				trait = skilled_tactician
			}
			modifier = {
				factor = 4.0
				trait = brilliant_strategist
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_martial" value = 1.0 }
		}
		random = {
			chance = 20
			change_martial = 1
		}
	}
	option = {
		name = EVTOPTC_Plus_459 #Stewardship
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { stewardship = 5 }
			}
			modifier = {
				factor = 2
				stewardship = 12
			}
			modifier = {
				factor = 1.5
				trait = indulgent_wastrel
			}
			modifier = {
				factor = 2.0
				trait = thrifty_clerk
			}
			modifier = {
				factor = 3.0
				trait = fortune_builder
			}
			modifier = {
				factor = 4.0
				trait = midas_touched
			}
		}
		hidden_tooltip = {
			change_variable = { which = "lifestyle_stewardship" value = 1.0 }
		}
		random = {
			chance = 20
			change_stewardship = 1
		}
	}
	option = {
		name = EVTOPTD_Plus_459 #None of the above
		scaled_wealth = 0.1
	}
}

