﻿
namespace = follow_family_traditions_event

#强化外交纽带（纵横捭阖）
follow_family_traditions_event.0001 = { 
	type = character_event
	title = follow_family_traditions_event.0001.t
	desc = follow_family_traditions_event.0001.desc
	theme = diplomacy
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = chancellor
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0001.a

		add_character_modifier = {
			modifier = GA_rebuilding_diplomatic_ties
			years = 5
		}
	}
}

#重申圣明统治（圣明君王）
follow_family_traditions_event.0002 = { 
	type = character_event
	title = follow_family_traditions_event.0002.t
	desc = follow_family_traditions_event.0002.desc
	theme = realm
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0002.a

		add_character_modifier = {
			modifier = GA_expected_philosopher_king
			years = 5
		}
	}
}

#学习祖传战法（战争艺术家）
follow_family_traditions_event.0003 = { 
	type = character_event
	title = follow_family_traditions_event.0003.t
	desc = follow_family_traditions_event.0003.desc
	theme = war
	
	override_background = { reference = study }
	
	left_portrait = { 	
		character = root
		animation = chess_cocky
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0003.a

		if = {
			limit = {
				has_trait = education_martial
				NOT = { has_trait = education_martial_5 }
			}
			add_martial_lifestyle_perk_points = 1
		}
		if = {
			limit = {
				has_trait = education_martial_5
			}
			add_martial_skill = 1
			add_martial_lifestyle_perk_points = 1
		}
		if = {
			limit = {
				NOT = { has_trait = education_martial }
			}
			add_martial_skill = 1
		}
	}
	
	option = { #I will go my own way
		name = follow_family_traditions_event.0003.b
		trigger = {
			martial >= 20
		}
		add_character_modifier = {
			modifier = GA_aspiring_war_students
		}
	}
}

#家族骑士训练（传奇勇士）
follow_family_traditions_event.0004 = { 
	type = character_event
	title = follow_family_traditions_event.0004.t
	desc = follow_family_traditions_event.0004.desc
	theme = war

	override_background = { reference = courtyard }

	left_portrait = { 	
		character = root
		animation = marshal
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0004.a

		if = {
			limit = {
				has_trait = education_martial_prowess
			}
			add_character_modifier = {
				modifier = GA_knight_retinue
			}
		}
		if = {
			limit = {
				NOT = { has_trait = education_martial_prowess }
			}
			random_list = {
				50 = {
					add_trait = education_martial_prowess_1
				}
				30 = {
					add_trait = education_martial_prowess_2
				}
				20 = {
					add_trait = education_martial_prowess_3
				}
				10 = {
					add_trait = education_martial_prowess_4
				}
			}
		}
	}
}

#新建筑工程（盛世缔造者）
follow_family_traditions_event.0005 = { 
	type = character_event
	title = follow_family_traditions_event.0005.t
	desc = follow_family_traditions_event.0005.desc
	theme = realm
	
	left_portrait = { 	
		character = root
		animation = personality_rational
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { #defense_engineering
		name = follow_family_traditions_event.0005.a

		every_sub_realm_county = {
			add_county_modifier = {
				modifier = GA_defense_engineering
				years = 3
			}		
		}
	}
	option = { #water conservancy project
		name = follow_family_traditions_event.0005.b

        add_character_modifier = {
				modifier = GA_water_conservancy_project
				years = 3
			}		
		}
		
	option = { #Palace project
		name = follow_family_traditions_event.0005.c
	
		every_sub_realm_county = {
			add_county_modifier = {
				modifier = GA_palace_project
				years = 3
			}		
		}
	}
	option = { #Religious architectural engineering
		name = follow_family_traditions_event.0005.d

		add_character_modifier = {
			modifier = GA_religious_architectural_engineering
			years = 3	
	    }
	}
}

#谋略学习（传奇谋略家）
follow_family_traditions_event.0006 = { 
	type = character_event
	title = follow_family_traditions_event.0006.t
	desc = follow_family_traditions_event.0006.desc
	theme = intrigue
	
	override_background = { reference = study }
	
	left_portrait = { 	
		character = root
		animation = spymaster
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0006.a

		if = {
			limit = {
				has_trait = education_intrigue
			}
			add_martial_skill = 1
		}
		if = {
			limit = {
				has_trait = education_martial
			}
			add_intrigue_skill = 1
		}
		if = {
			limit = {
				NOR = {
					has_trait = education_martial
					has_trait = education_intrigue
				}
			}
			add_intrigue_skill = 1
		}
	}
}

#重建恐怖统治（无边恐怖）
follow_family_traditions_event.0007 = { 
	type = character_event
	title = follow_family_traditions_event.0007.t
	desc = follow_family_traditions_event.0007.desc
	theme = dungeon
	
	left_portrait = { 	
		character = root
		animation = scheme
	}
	
	immediate = {
		play_music_cue = "mx_cue_prison"
	}
		
	option = { 
		name = follow_family_traditions_event.0007.a

		add_character_modifier = {
			modifier = GA_rebuilding_reign_of_terror
			years = 10
		}
	}
}

#接触学术圈（资深学究）
follow_family_traditions_event.0008 = { 
	type = character_event
	title = follow_family_traditions_event.0008.t
	desc = follow_family_traditions_event.0008.desc
	theme = learning
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = throne_room_writer
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
		
	option = { 
		name = follow_family_traditions_event.0008.a

		if = {
			limit = {
				OR = {
					has_trait = education_diplomacy_5
					has_trait = education_martial_5
					has_trait = education_stewardship_5
					has_trait = education_intrigue_5
					has_trait = education_learning_5
				}
			}
			add_character_modifier = {
				modifier = GA_recognition_of_scholars
			}
		}
		if = {
			limit = {
				has_trait = education_diplomacy
				NOT = { has_trait = education_diplomacy_4 }
			}
			change_trait_rank = {
				trait = education_diplomacy
				rank = 1
			}
		}
		if = {
			limit = {
				has_trait = education_martial
				NOT = { has_trait = education_martial_4 }
			}
			change_trait_rank = {
				trait = education_martial
				rank = 1
			}
		}
		if = {
			limit = {
				has_trait = education_stewardship
				NOT = { has_trait = education_diplomacy_4 }
			}
			change_trait_rank = {
				trait = education_stewardship
				rank = 1
			}
		}
		if = {
			limit = {
				has_trait = education_intrigue
				NOT = { has_trait = education_diplomacy_4 }
			}
			change_trait_rank = {
				trait = education_intrigue
				rank = 1
			}
		}
		if = {
			limit = {
				has_trait = education_learning
				NOT = { has_trait = education_diplomacy_4 }
			}
			change_trait_rank = {
				trait = education_learning
				rank = 1
			}
		}
	}
}

#照亮深渊（深渊观测者）
follow_family_traditions_event.0009 = { 
	type = character_event
	title = follow_family_traditions_event.0009.t
	desc = follow_family_traditions_event.0009.desc
	theme = witchcraft

	override_background = { reference = physicians_study }

	left_portrait = { 	
		character = root
		animation = lantern
	}
	
	immediate = {
		play_music_cue = "mx_mood_balik_part2"
	}
			
	option = { 
		name = follow_family_traditions_event.0009.a

		add_stress = 100
		stress_impact = {
			brave = -30
		}
		add_diplomacy_lifestyle_perk_points = 1
		add_martial_lifestyle_perk_points = 1
		add_stewardship_lifestyle_perk_points = 1
		add_intrigue_lifestyle_perk_points = 1
		add_learning_lifestyle_perk_points = 1
		add_character_modifier = {
			modifier = GA_light_up_the_abyss
			years = 5
		}
		random = {
			chance = 30
			add_trait = lunatic_1
		}
	}
}

#遵照家族养生传统（养生大师）
follow_family_traditions_event.0010 = { 
	type = character_event
	title = follow_family_traditions_event.0010.t
	desc = follow_family_traditions_event.0010.desc
	theme = witchcraft

	override_background = { reference = physicians_study }

	left_portrait = { 	
		character = root
		animation = boredom
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0010.a

		if = {
			limit = {
				OR = {
					has_trait = journaller
					has_trait = confider
					has_trait = athletic
				}
			}
			random = {
				chance = 50
				add_trait = strong
			}
		}
		if = {
			limit = {
				NOR = {
					has_trait = journaller
					has_trait = confider
					has_trait = athletic
				}
			}
			random_list = {
				33 = {
					add_trait = journaller
				}
				33 = {
					add_trait = confider
				}
				33 = {
					add_trait = athletic
				}
			}
		}
	}
}

#召开宗教会议（神圣仲裁者）
follow_family_traditions_event.0011 = { 
	type = character_event
	title = follow_family_traditions_event.0011.t
	desc = follow_family_traditions_event.0011.desc
	theme = faith
	
	left_portrait = { 	
		character = root
		animation = personality_zealous
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0011.a

		add_piety_level = 1
	}
}

#承担责任，锻炼能力（少年英雄）
follow_family_traditions_event.0012 = { 
	type = character_event
	title = follow_family_traditions_event.0012.t
	desc = follow_family_traditions_event.0012.desc
	theme = dynasty
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
		
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
		
	option = { 
		name = follow_family_traditions_event.0012.a

		add_stress = 20

		if = {
			limit = {
				OR = {
					diplomacy >= 15
					martial >= 15
					stewardship >= 15
					intrigue >= 15
					learning >= 15
					prowess >= 15
				}
			}
			add_trait = shrewd
		}
		if = {
			limit = {
				NOR = {
					diplomacy >= 15
					martial >= 15
					stewardship >= 15
					intrigue >= 15
					learning >= 15
					prowess >= 15
				}
			}
			random_list = {
				25 = {
					add_trait = shrewd
				}
				25 = {
					add_trait = diligent
				}
				25 = {
					add_trait = brave
				}
				25 = {
					add_trait = ambitious
				}
			}
		}
	}
}

#探索前路（光芒四射）
follow_family_traditions_event.0013 = { 
	type = character_event
	title = follow_family_traditions_event.0013.t
	desc = follow_family_traditions_event.0013.desc
	theme = dynasty
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_bold
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
		
	option = { 
		name = follow_family_traditions_event.0013.a

		stress_impact = {
			arrogant = -20
			humble = 20
		}
		add_character_modifier = {
			modifier = GA_confidence_and_pride
		}
	}
	
	option = { 
		name = follow_family_traditions_event.0013.b

		stress_impact = {
			arrogant = 20
			humble = -20
		}
		add_character_modifier = {
			modifier = GA_humility_and_enterprise
		}
	}
}

##
#凝聚信仰力量（圣地守护者）
follow_family_traditions_event.0101 = { 
	type = character_event
	title = follow_family_traditions_event.0101.t
	desc = follow_family_traditions_event.0101.desc
	theme = faith
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = sword_coup_degrace
	}
	
	immediate = {
		play_music_cue = "mx_cue_faith_conversion"
	}
			
	option = { 
		name = follow_family_traditions_event.0101.a

		spawn_army = {
			name = event_troop_default_name
			levies = 500
			men_at_arms = {
				type = teutonic_knights
				stacks = 3
			}
			location = capital_province
		}
	}
}

#宣示统治与征服（上帝之鞭）
follow_family_traditions_event.0102 = { 
	type = character_event
	title = follow_family_traditions_event.0102.t
	desc = follow_family_traditions_event.0102.desc
	theme = war
	
	override_background = { reference = ep2_wedding_ceremony }
	
	left_portrait = { 	
		character = root
		animation = jockey_walk
	}
	
	immediate = {
		play_music_cue = "mx_cue_travel_start"
	}
		
	option = { 
		name = follow_family_traditions_event.0102.a

		add_prestige_level = 1
	}
}

#自立为奥古斯都（新罗马缔建者）
follow_family_traditions_event.0103 = { 
	type = character_event
	title = follow_family_traditions_event.0103.t
	desc = follow_family_traditions_event.0103.desc
	theme = crown
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_bold
	}
	
	immediate = {
		play_music_cue = "mx_cue_epic_sacral_moment"
	}
		
	option = { 
		name = follow_family_traditions_event.0103.a

		add_trait = augustus
	}
}

#支援文兰殖民地（文兰传奇）
follow_family_traditions_event.0104 = { 
	type = character_event
	title = follow_family_traditions_event.0104.t
	desc = follow_family_traditions_event.0104.desc
	theme = realm
	
	override_background = { reference = docks }
	
	left_portrait = { 	
		character = root
		animation = personality_rational
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0104.a

		random_list = {
			25 = {
				add_gold = 100
				add_prestige = 100
			}
			50 = {
				add_gold = 50
			}
			25 = {
				remove_short_term_gold = 50
			}
		}
	}
}

#扩建新亚特兰蒂斯（新亚特兰蒂斯缔建者）
follow_family_traditions_event.0105 = {
	type = character_event
	title = follow_family_traditions_event.0105.t
	desc = follow_family_traditions_event.0105.desc
	theme = realm
	
	override_background = { reference = docks }
	
	left_portrait = { 	
		character = root
		animation = personality_rational
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0105.a

		title:c_canarias.county = {
			add_county_modifier = {
				modifier = GA_county_new_atlantis
				years = 5
			}
		}
	}
}

#传播光明信仰（光明使者）
follow_family_traditions_event.0106 = { 
	type = character_event
	title = follow_family_traditions_event.0106.t
	desc = follow_family_traditions_event.0106.desc
	theme = faith
	
	left_portrait = { 	
		character = root
		animation = personality_zealous
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0106.a

		add_character_modifier = {
			modifier = GA_spread_the_faith_of_light
			years = 5
		}
	}
}

#祭司王加冕仪式（祭司王约翰）
follow_family_traditions_event.0107 = { 
	type = character_event
	title = follow_family_traditions_event.0107.t
	desc = follow_family_traditions_event.0107.desc
	theme = faith
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0107.a

		add_character_modifier = {
			modifier = GA_descendant_of_prester_john
		}
	}
	
	option = { 
		name = follow_family_traditions_event.0107.b
		trigger = {
			martial >= 17
			has_trait = zealous
			NOT = {
				has_trait = craven
				has_trait = content
				has_trait = cynical
			}
			piety_level >= 3
			prestige_level >= 3
		}
		stress_impact = {
			humble = major_stress_gain
		}
		add_trait = crusader_king
	}
}


#巡视地中海诸岛（地中海之主）
follow_family_traditions_event.0108 = { 
	type = character_event
	title = follow_family_traditions_event.0108.t
	desc = follow_family_traditions_event.0108.desc
	theme = realm
	
	override_background = { reference = fp1_ocean }
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
	
	option = { 
		name = follow_family_traditions_event.0108.a

		stress_impact = {
			arrogant = -20
			diligent = -10
			lazy = 10
			humble = 20
		}
		add_character_modifier = {
			modifier = GA_master_of_the_mediterranean
			years = 5
		}
	}
	
	option = { 
		name = follow_family_traditions_event.0108.b

		stress_impact = {
			arrogant = 10
			diligent = 10
			lazy = -20
			humble = -10
		}
		add_prestige = 250
	}
}


#胜利祭祀（西苏精神的胜利）
follow_family_traditions_event.0109 = { 
	type = character_event
	title = follow_family_traditions_event.0109.t
	desc = follow_family_traditions_event.0109.desc
	theme = party
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
		
	option = { 
		name = follow_family_traditions_event.0109.a

		stress_impact = {
			ambitious = 20
			content = -20
		}
		add_character_modifier = {
			modifier = GA_march_to_the_center_of_the_world
			years = 5
		}
		add_piety = 50
	}
	
	option = { 
		name = follow_family_traditions_event.0109.b

		stress_impact = {
			ambitious = 20
			content = -20
		}
		add_prestige = 300
	}
}

#阿拉伯部族联合大会（古莱什之鹰）
follow_family_traditions_event.0110 = { 
	type = character_event
	title = follow_family_traditions_event.0110.t
	desc = follow_family_traditions_event.0110.desc
	theme = alliance
	
	override_background = { reference = throne_room }
	
	left_portrait = { 	
		character = root
		animation = personality_honorable
	}
	
	immediate = {
		play_music_cue = "mx_cue_sacredrite"
	}
			
	option = { 
		name = follow_family_traditions_event.0110.a

		stress_impact = {
			zealous = -20
			cynical = 10
		}
		add_character_modifier = {
			modifier = GA_eternal_islamism
			years = 5
		}
		every_vassal = {
			add_character_modifier = {
				modifier = GA_eternal_islamism
				years = 5
			}
		}
		root.faith = {
			change_fervor = {
				value = 5
				desc = fervor_gain_arab
			}
		}
	}
	
	option = { 
		name = follow_family_traditions_event.0110.b

		stress_impact = {
			arrogant = -20
			humble = 10
		}
		add_character_modifier = {
			modifier = GA_caliph_immortality
			years = 5
		}
	}
}