﻿namespace = journey_events

journey_events.10 = { # Getting a traveling companion (horse/dog/falcon)
	type = character_event
	content_source = dlc_015
	title = journey_events.10.t
	desc = journey_events.10.desc
	theme = wanderer_journey_focus

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:provider_character
		animation = thinking
	}

	cooldown = { years = 10 }
	
	trigger = {
		has_lifestyle = wanderer_lifestyle
		OR = {
			any_councillor = {
				OR = {
					has_council_position = councillor_chancellor
					has_council_position = councillor_steward
				}
			}
			any_court_position_holder = {
				OR = {
					has_court_position = master_of_horse_court_position
					has_court_position = master_of_hunt_court_position
					has_court_position = travel_leader_court_position
				}
			}
		}
		NOR = {
			has_character_modifier = dog_story_modifier
			has_character_modifier = horse_story_modifier
			has_character_modifier = peregrine_falcon
		}
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	immediate = {
		random_court_position_holder = {
			limit = {
				OR = {
					has_court_position = master_of_horse_court_position
					has_court_position = master_of_hunt_court_position
					has_court_position = travel_leader_court_position
				}
			}
			save_scope_as = provider_character
		}
		if = {
			limit = {
				NOT = { exists = scope:provider_character }
			}
			random_councillor = {
				limit = {
					OR = {
						has_council_position = councillor_chancellor
						has_council_position = councillor_steward
					}
				}
				save_scope_as = provider_character
			}
		}
	}

	option = {
		name = journey_events.10.a
		show_as_tooltip = {
			add_character_modifier = horse_story_modifier
		}
		remove_short_term_gold = medium_gold_value
		trigger_event = {
			id = journey_events.11
			days = 1
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 1.5
				OR = {
					has_trait = athletic
					has_trait = content
				}
			}
		}
	}
	
	option = {
		name = journey_events.10.b
		show_as_tooltip = {
			add_character_modifier = dog_story_modifier
		}
		remove_short_term_gold = medium_gold_value
		trigger_event = {
			id = journey_events.12
			days = 1
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 1.5
				OR = {
					has_trait = loyal
					has_trait = compassionate
					has_trait = gregarious
				}
			}
		}
	}

	option = {
		name = journey_events.10.c
		add_character_modifier = {
			modifier = peregrine_falcon
			years = 7
		}
		remove_short_term_gold = minor_gold_value

		ai_chance = {
			base = 100
			modifier = {
				factor = 1.5
				has_trait = lifestyle_hunter
			}
		}
	}

	option = {
		name = journey_events.10.d

		ai_chance = {
			base = 0
		}
	}
}

journey_events.11 = { # Getting a horse
	type = character_event
	content_source = dlc_015
	title = journey_events.11.t
	desc = journey_events.11.desc
	theme = wanderer_journey_focus
	override_background = {
		reference = bp2_courtyard
	}

	left_portrait = {
		character = root
		animation = jockey_victory
		camera = camera_event_horse_left
	}

	option = {
		name = journey_events.11.a
		hidden_effect = {
			start_warhorse_story_cycle_effect = yes
		}
	}
}

journey_events.12 = { # Getting a dog
	type = character_event
	content_source = dlc_015
	title = journey_events.12.t
	desc = journey_events.12.desc
	theme = wanderer_journey_focus

	left_portrait = {
		character = root
		animation = laugh
	}

	option = {
		name = journey_events.12.a
		hidden_effect = {
			start_dog_story_cycle_effect = yes
		}
	}
}

journey_events.20 = { # Astronomical Phenomena
	type = character_event
	content_source = dlc_015
	title = journey_events.20.t
	desc = journey_events.20.desc
	theme = wanderer_journey_focus

	left_portrait = {
		character = root
		animation = boredom
	}

	right_portrait = {
		character = scope:informer_character
		animation = thinking
	}

	cooldown = { years = 30 }
	
	trigger = {
		has_lifestyle = wanderer_lifestyle
		has_perk = roaming_perk
		OR = {
			any_court_position_holder = {
				OR = {
					has_court_position = travel_leader_court_position
					has_court_position = court_scholar_court_position
				} 
			}
			any_councillor = {
				OR = {
					has_council_position = councillor_court_chaplain
					has_council_position = councillor_steward
				}
			}
		}
		NOT = {
			any_realm_province = {
				has_province_modifier = wayfarer_astronomical_phenomenon
			}
		}
		any_realm_province = {
			OR = {
				terrain = hills
				terrain = mountains
				terrain = desert_mountains
				terrain = steppe
			}
		}
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	immediate = {
		random_court_position_holder = {
			limit = {
				OR = {
					has_court_position = travel_leader_court_position
					has_court_position = court_scholar_court_position
				}
			}
			save_scope_as = informer_character
		}
		if = {
			limit = {
				NOT = { exists = scope:informer_character }
			}
			random_councillor = {
				limit = {
					OR = {
						has_council_position = councillor_court_chaplain
						has_council_position = councillor_steward
					}
				}
				save_scope_as = informer_character
			}
		}
		random_realm_province = {
			limit = {
				OR = {
					terrain = hills
					terrain = mountains
					terrain = desert_mountains
					terrain = steppe
				}
			}
			weight = {
				modifier = {
					factor = 100
					is_county_capital = yes
				}
				modifier = {
					factor = 100
					province_owner = root
				}
			}
			save_scope_as = destination_province
		}
	}

	option = {
		name = journey_events.20.a
		scope:destination_province = {
			add_province_modifier = {
				modifier = wayfarer_astronomical_phenomenon
				years = 1
			}
		}
	}
}

scripted_trigger journey_events_30_character_trigger = {
	age >= 14
	opinion = {
		target = root
		value > 10
	}
}

journey_events.30 = { # Telling a story
	type = character_event
	content_source = dlc_015
	title = journey_events.30.t
	desc = journey_events.30.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = corridor_day
	}

	left_portrait = {
		character = root
		animation = thinking
	}

	right_portrait = {
		character = scope:character_1
		animation = happiness
	}

	lower_right_portrait = {
		character = scope:character_2
	}

	cooldown = { years = 10 }
	
	trigger = {
		has_lifestyle = wanderer_lifestyle
		any_courtier_or_guest = {
			count >= 2
			journey_events_30_character_trigger = yes
		}
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	immediate = {
		random_courtier_or_guest = {
			limit = {
				journey_events_30_character_trigger = yes
			}
			weight = {
				modifier = {
					factor = 100
					OR = {
						is_spouse_of = root
						is_close_family_of = root
						has_friendly_relationship_trigger = { CHARACTER = root }
					}
				}
			}
			save_scope_as = character_1
		}
		random_courtier_or_guest = {
			limit = {
				this != scope:character_1
				journey_events_30_character_trigger = yes
			}
			weight = {
				modifier = {
					factor = 100
					has_trait = lifestyle_traveler
				}
			}
			save_scope_as = character_2
		}
		random_realm_province = {
			save_scope_as = traveller_province
		}
	}

	option = {
		name = journey_events.30.a
		flavor = journey_events.30.a.tt
		stress_impact = {
			lifestyle_poet = medium_stress_impact_loss
			deceitful = minor_stress_impact_loss
			honest = minor_stress_gain
		}
		duel = {
			skills = { intrigue diplomacy }
			target = scope:character_1
			50 = {
				desc = journey_events.30.a.win
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				send_interface_toast = {
					title = journey_events.30.a.win
					left_icon = root 

					scope:character_1 = {
						add_opinion = {
							target = root
							modifier = impressed_opinion
							opinion = 20
						}
					}
					scope:character_2 = {
						add_opinion = {
							target = root
							modifier = impressed_opinion
							opinion = 20
						}
					}
				}
			}
			50 = {
				desc = journey_events.30.a.loss
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				send_interface_toast = {
					title = journey_events.30.a.win
					left_icon = root 
					
					scope:character_1 = {
						add_opinion = {
							target = root
							modifier = dishonest_opinion
							opinion = -10
						}
					}
					scope:character_2 = {
						add_opinion = {
							target = root
							modifier = dishonest_opinion
							opinion = -10
						}
					}
				}
			}
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				has_trait = honest
			}
			modifier = {
				factor = 1.5
				OR = {
					has_trait = deceitful
					has_trait = ambitious
					has_trait = lifestyle_poet
				}
			}
		}
	}

	option = {
		name = journey_events.30.b
		stress_impact = {
			honest = minor_stress_impact_loss
		}
		scope:character_1 = {
			add_opinion = {
				target = root
				modifier = pleased_opinion
				opinion = 10
			}
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 1.5
				has_trait = honest
			}
		}
	}

	option = {
		name = journey_events.30.c
		stress_impact = {
			gregarious = minor_stress_impact_loss
			humble = minor_stress_impact_loss
		}
		scope:character_2 = {
			add_opinion = {
				target = root
				modifier = pleased_opinion
				opinion = 10
			}
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 1.5
				OR = {
					has_trait = gregarious
					has_trait = humble
				}
			}
		}
	}
}

journey_events.40 = { # Hiring a bard to share your tales
	type = character_event
	content_source = dlc_015
	title = journey_events.40.t
	desc = journey_events.40.desc
	theme = wanderer_journey_focus

	left_portrait = {
		character = root
		animation = boredom
	}

	right_portrait = {
		character = scope:suggester_character
		animation = thinking
	}

	cooldown = { years = 10 }
	
	trigger = {
		has_lifestyle = wanderer_lifestyle
		OR = {
			any_councillor = {
				has_council_position = councillor_steward
			}
			employs_court_position = court_poet_court_position
		}
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	immediate = {
		random_court_position_holder = {
			limit = {
				has_court_position = court_poet_court_position
			}
			save_scope_as = suggester_character
		}
		if = {
			limit = {
				NOT = { exists = scope:provider_character }
			}
			random_councillor = {
				limit = {
					has_council_position = councillor_steward
				}
				save_scope_as = suggester_character
			}
		}
	}

	option = {
		name = journey_events.40.a

		remove_short_term_gold = minor_gold_value
		custom_tooltip = journey_events.40.a.tt

		trigger_event = {
			id = journey_events.41
		}

		set_variable = {
			name = local_bard_variable
			value = 1
		}

		stress_impact = {
			arrogant = minor_stress_impact_loss
			humble = minor_stress_gain
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				has_trait = humble
			}
		}
	}

	option = {
		name = journey_events.40.b
		scope:suggester_character = {
			add_opinion = {
				modifier = disappointed_opinion
				target = root
				opinion = -5
			}
		}

		stress_impact = {
			humble = minor_stress_impact_loss
			arrogant = minor_stress_gain
		}

		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				has_trait = arrogant
			}
		}
	}
}

journey_events.41 = { # Hidden event to slowly trickle out the modifier over time
	hidden = yes

	immediate = {
		if = {
			limit = {
				NOT = { capital_county = { has_county_modifier = journey_local_bard_modifier } }
			}
			send_interface_message = {
				title = journey_local_bard_modifier
				capital_county = {
					add_county_modifier = {
						modifier = journey_local_bard_modifier
						years = 3
					}
				}
			}
			trigger_event = {
				id = journey_events.41
				months = 3
			}
		}
		else = {
			random_held_title = {
				limit = {
					tier = 2
					NOT = { has_county_modifier = journey_local_bard_modifier }
				}
				root = {
					send_interface_message = {
						title = journey_local_bard_modifier
						prev = {
							add_county_modifier = {
								modifier = journey_local_bard_modifier
								years = 3
							}
						}
					}
				}
			}
			random_list = {
				100 = {
					modifier = {
						add = {
							subtract = 20
							multiply = var:local_bard_variable
						}
					}
					change_variable = {
						name = local_bard_variable
						add = 1
					}
					trigger_event = {
						id = journey_events.41
						months = 3
					}
				}
				0 = {
					modifier = {
						add = {
							add = 20
							multiply = var:local_bard_variable
						}
					}
					remove_variable = local_bard_variable
				}
			}
		}
	}
}

journey_events.50 = { # One Night in X - Event Chain 
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.50.desc
	theme = wanderer_journey_focus

	right_portrait = {
		character = root
		animation = scheme
	}

	cooldown = { years = 50 }
	
	trigger = {
		has_lifestyle = wanderer_lifestyle
		is_ai = no
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	immediate = {
		save_scope_as = rootscope
	}

	option = {
		name = journey_events.50.a
		duel = {
			skill = intrigue
			value = low_skill_rating
			50 = {
				desc = journey_events.50.a.win
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				custom_tooltip = journey_events_50_event_chain_begins_tt
				trigger_event = {
					id = journey_events.51
				}
				stress_impact = {
					deceitful = minor_stress_impact_loss
					humble = minor_stress_impact_loss
					gregarious = minor_stress_impact_loss
				}
				show_as_tooltip = { add_wanderer_lifestyle_xp = 100 }
			}
			50 = {
				desc = journey_events.50.a.loss
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				send_interface_toast = {
					title = journey_events.50.a.loss
					left_icon = root
					add_prestige = -50
				}
			}
		}
	}

	option = {
		name = journey_events.50.b
		flavor = journey_events.50.b.tt
		stress_impact = {
			base = minor_stress_impact_loss
			arrogant = minor_stress_impact_loss
		}
	}
}

journey_events.51 = { # One Night in X - Event Chain Part 2
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.51.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = drink
		outfit_tags = { beggar_rags }
	}

	immediate = {
		add_wanderer_lifestyle_xp = 100
	}

	option = {
		name = journey_events.51.a
		flavor = journey_events.51.a.tt
		duel = {
			skill = intrigue
			value = 10
			20 = {
				desc = journey_events.51.a.big_win
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				show_as_tooltip = { add_short_term_gold = minor_gold_value }
				save_scope_value_as = {
					name = gamble_win
					value = minor_gold_value
				}
			}
			40 = {
				desc = journey_events.51.a.win
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				show_as_tooltip = { add_short_term_gold = tiny_gold_value }
				save_scope_value_as = {
					name = gamble_win
					value = tiny_gold_value
				}
			}
			40 = {
				desc = journey_events.51.a.loss
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				show_as_tooltip = { remove_short_term_gold = tiny_gold_value }
				save_scope_value_as = {
					name = gamble_loss
					value = tiny_gold_value
				}
			}
		}
		trigger_event = {
			id = journey_events.52
		}
		add_wanderer_lifestyle_xp = 100
		stress_impact = {
			gregarious = minor_stress_impact_loss
			deceitful = minor_stress_impact_loss
			greedy = minor_stress_impact_loss
		}
	}

	option = {
		name = journey_events.51.b
		flavor = journey_events.51.b.tt
		stress_impact = {
			base = minor_stress_impact_loss
			shy = minor_stress_impact_loss
		}
	}
}

journey_events.52 = { # One Night in X - Event Chain Part 3
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.52.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = drink
		outfit_tags = { beggar_rags }
	}

	left_portrait = {
		character = scope:local_gambler
		animation = toast
		hide_info = yes
	}

	lower_right_portrait = scope:threat_1

	immediate = {
		create_character = {
			location = root.capital_province
			template = generic_peasant_character
			gender = root
			culture = root.culture
			faith = root.faith
			save_scope_as = local_gambler
		}
		if = {
			limit = {
				exists = scope:gamble_loss
			}
			remove_short_term_gold = scope:gamble_loss
		}
		else_if = {
			limit = {
				exists = scope:gamble_win
			}
			add_short_term_gold = scope:gamble_win
		}
		wayfarer_the_real_threat_effect = { NUMBER = 1 }
	}

	option = {
		name = journey_events.52.a
		flavor = journey_events.52.a.tt
		add_wanderer_lifestyle_xp = 100
		trigger_event = { id = journey_events.53 }
		remove_short_term_gold = tiny_gold_value
		capital_county = {
			add_county_modifier = {
				modifier = journey_drink_and_circus_modifier
				years = 10
			}
		}
		stress_impact = {
			drunkard = minor_stress_impact_loss
			lifestyle_reveler = minor_stress_impact_loss
			generous = minor_stress_impact_loss
		}
	}

	option = {
		name = journey_events.52.b
		flavor = journey_events.52.b.tt
		add_wanderer_lifestyle_xp = 100
		duel = {
			skills = { diplomacy intrigue }
			value = high_skill_rating
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				trigger_event = { id = journey_events.54 }
				show_as_tooltip = {
					if = {
						limit = {
							has_any_nickname = no
						}
						give_nickname = nick_pauper_king
					}
					add_character_modifier = journey_pauper_king_modifier
				}
			}
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				trigger_event = { id = journey_events.55 }
				show_as_tooltip = {
					increase_wounds_no_death_effect = { REASON = fight }
				}
			}
		}
		stress_impact = {
			gregarious = minor_stress_impact_loss
			lifestyle_poet = minor_stress_impact_loss
			arrogant = minor_stress_impact_loss
		}
	}

	option = {
		name = {
			trigger = {
				scope:threat_1 = { has_council_position = councillor_chancellor }
			}
			text = journey_events.52.c.chancellor
		}
		name = {
			trigger = {
				scope:threat_1 = { has_council_position = councillor_steward }
			}
			text = journey_events.52.c.steward
		}
		name = {
			trigger = {
				scope:threat_1 = { has_council_position = councillor_marshal }
			}
			text = journey_events.52.c.marshal
		}
		name = {
			trigger = {
				scope:threat_1 = { has_council_position = councillor_spymaster }
			}
			text = journey_events.52.c.spymaster
		}
		name = {
			trigger = {
				scope:threat_1 = { has_council_position = councillor_court_chaplain }
			}
			text = journey_events.52.c.chaplain
		}
		name = {
			trigger = {
				scope:threat_1 = { is_councillor = yes }
			}
			text = journey_events.52.c.fallback
		}
		flavor = journey_events.52.c.tt
		trigger = { exists = scope:threat_1 }
		add_wanderer_lifestyle_xp = 100
		duel = {
			skills = { diplomacy intrigue }
			value = mediocre_skill_rating
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				trigger_event = { id = journey_events.56 }
				show_as_tooltip = {
					scope:threat_1 = {
						add_character_modifier = {
							modifier = journey_blame_game_modifier
							years = 5
						}
					}
					capital_county = {
						add_county_modifier = {
							modifier = journey_blame_game_province_modifier
							years = 25
						}
					}
				}
			}
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				trigger_event = { id = journey_events.57 }
				show_as_tooltip = {
					add_character_modifier = {
						modifier = journey_blame_game_modifier
						years = 5
					}
				}
			}
		}
		stress_impact = {
			deceitful = minor_stress_impact_loss
			arbitrary = minor_stress_impact_loss
		}
	}
}

journey_events.53 = { # One Night in X - Outcome 1 - A Friendly Night Out
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.53.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = toast
		outfit_tags = { beggar_rags }
	}

	left_portrait = {
		character = scope:local_gambler
		animation = drink
		hide_info = yes
	}

	option = {
		name = journey_events.53.a
		flavor = journey_events.53.a.tt
		add_wanderer_lifestyle_xp = 200
		stress_impact = {
			base = medium_stress_impact_loss
		}
	}
}

journey_events.54 = { # One Night in X - Outcome 2 - The Pauper King
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.54.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = toast
		outfit_tags = { beggar_rags }
	}

	left_portrait = {
		character = scope:local_gambler
		animation = drink
		hide_info = yes
	}

	option = {
		name = journey_events.54.a
		flavor = journey_events.53.a.tt
		if = {
			limit = {
				has_any_nickname = no
			}
			give_nickname = nick_pauper_king
		}
		add_character_modifier = journey_pauper_king_modifier
		add_wanderer_lifestyle_xp = 500
		spawn_army = {
			name = local_militia_name_default
			levies = 400
			location = root.capital_province
			inheritable = no
			war_keep_on_attacker_victory = yes
		}
	}
}

journey_events.55 = { # One Night in X - Outcome 3 - The Misguided Fool
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.55.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = alley_night
	}

	right_portrait = {
		character = root
		animation = shiver
		outfit_tags = { beggar_rags }
	}

	option = {
		name = journey_events.55.a
		add_wanderer_lifestyle_xp = 250
		increase_wounds_no_death_effect = { REASON = fight }
	}
}

journey_events.56 = { # One Night in X - Outcome 4 - The Blame Game - Success
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.56.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = toast
		outfit_tags = { beggar_rags }
	}

	left_portrait = {
		character = scope:local_gambler
		animation = drink
		hide_info = yes
	}

	immediate = {
		scope:threat_1 = {
			add_character_modifier = {
				modifier = journey_blame_game_modifier
				years = 5
			}
		}
		capital_county = {
			add_county_modifier = {
				modifier = journey_blame_game_province_modifier
				years = 25
			}
		}
	}

	option = {
		name = journey_events.56.a
		flavor = journey_events.56.a.tt
		add_wanderer_lifestyle_xp = 500
	}
}

journey_events.57 = { # One Night in X - Outcome 4 - The Blame Game - Failure
	type = character_event
	content_source = dlc_015
	title = journey_events.50.t
	desc = journey_events.57.desc
	theme = wanderer_journey_focus

	override_background = {
		reference = tavern
	}

	right_portrait = {
		character = root
		animation = drink
		outfit_tags = { beggar_rags }
	}

	left_portrait = {
		character = scope:local_gambler
		animation = toast
		hide_info = yes
	}

	immediate = {
		add_character_modifier = {
			modifier = journey_blame_game_modifier
			years = 5
		}
	}

	option = {
		name = journey_events.57.a
		flavor = journey_events.57.a.tt
		add_wanderer_lifestyle_xp = 250
	}
}

journey_events.60 = { # Appreciating the culture of X
	type = character_event
	title = journey_events.60.t
	desc = {
		desc = journey_events.60.desc_intro
		first_valid = {
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_courtly }
				}
				desc = journey_events.60.desc_courtly
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_bellicose }
				}
				desc = journey_events.60.desc_bellicose
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_stoic }
				}				
				desc = journey_events.60.desc_stoic
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_bureaucratic }
				}
				desc = journey_events.60.desc_bureaucratic
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_spiritual }
				}
				desc = journey_events.60.desc_spiritual
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_egalitarian }
				}
				desc = journey_events.60.desc_egalitarian
			}
			triggered_desc = { 
				trigger = {
					scope:journey_culture = { has_cultural_pillar = ethos_communal }
				}
				desc = journey_events.60.desc_communal
			}
		}
	}

	theme = wanderer_journey_focus

	cooldown = { years = 10 }

	override_background = {
		trigger = { scope:journey_culture = { has_cultural_pillar = ethos_bellicose } }
		reference = army_camp
	}
	
	override_background = {
		trigger = { scope:journey_culture = { has_cultural_pillar = ethos_egalitarian } }
		reference = tavern
	}

	override_background = {
		trigger = { scope:journey_culture = { has_cultural_pillar = ethos_spiritual } }
		reference = temple_church
	}

	override_background = {
		trigger = { scope:journey_culture = { has_cultural_pillar = ethos_communal } }
		reference = alley_day
	}

	override_background = {
		trigger = { 
			OR = {
				scope:journey_culture = { has_cultural_pillar = ethos_bureaucratic } 
				scope:journey_culture = { has_cultural_pillar = ethos_stoic } 
			}
		}
		reference = courtyard_scope
	}

	override_background = {
		trigger = { scope:journey_culture = { has_cultural_pillar = ethos_courtly } }
		reference = throne_room
	}

	weight_multiplier = {
		base = 1
		upweight_for_focus_modifier = { FOCUS = wanderer_journey_focus }
	}

	left_portrait  = {
		character = root
		animation = happiness
	}

	trigger = {
		has_lifestyle = wanderer_lifestyle
		NOT = { 
			location.culture = {
				has_same_culture_ethos = root.culture
			}
		}
	}

	immediate = {
		location.county = { save_scope_as = journey_county }
		location = { save_scope_as = journey_province }	
		location.culture = { save_scope_as = journey_culture }
	}

	option = {
		name = journey_events.60.opt
		scope:journey_culture = {
			switch = {
				trigger = has_cultural_pillar
				ethos_courtly = {
					root = {
						add_character_modifier = {
							modifier = journey_courtly_modifier
							years = 3
						}
					}
				}
				ethos_bellicose = {
					root = {
						add_character_modifier = {
							modifier = journey_bellicose_modifier
							years = 3
						}
					}
				}
				ethos_stoic = {
					root = {
						add_character_modifier = {
							modifier = journey_stoic_modifier
							years = 3
						}
					}
				}
				ethos_bureaucratic = {
					root = {
						add_character_modifier = {
							modifier = journey_bureaucratic_modifier
							years = 3
						}
					}
				}
				ethos_spiritual = {
					root = {
						add_character_modifier = {
							modifier = journey_spiritual_modifier
							years = 3
						}
					}
				}
				ethos_egalitarian = {
					root = {
						add_character_modifier = {
							modifier = journey_egalitarian_modifier
							years = 3
						}
					}
				}
				ethos_communal = {
					root = {
						add_character_modifier = {
							modifier = journey_communal_modifier
							years = 3
						}
					}
				}

			}
		}
	}

	option = {
		name = journey_events.60.opt_b
		add_wanderer_lifestyle_xp = 500 
	}
}
