namespace = mmetr_SHU_Han_mission_events

# Legacy of Liu Bang
country_event = {
	id = mmetr_SHU_Han_mission_events.1
	title = "mmetr_SHU_Han_mission_events.1.t"
	desc = "mmetr_SHU_Han_mission_events.1.desc"
	picture = MMETR_CHINESE_COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.1.a"
		
		add_country_modifier = {
			name = me_hnd_king_of_hanzhong
			duration = 10950
		}
		700 = {		#Chang'an
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		1836 = {	#Luoyang
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		gansu_area = {
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		west_gansu_area = {
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
	}
}

# The White Feather Guard
country_event = {
	id = mmetr_SHU_Han_mission_events.2
	title = "mmetr_SHU_Han_mission_events.2.t"
	desc = "mmetr_SHU_Han_mission_events.2.desc"
	picture = east_asian_LAND_MILITARY_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.2.a"
		
		custom_tooltip = shu_white_feather_guard_mission.tt
		capital_scope = {
			add_province_modifier = {
				name = "me_shu_white_feather_guard_recruitment"
				duration = -1
			}
		}
		add_country_modifier = {
			name = "me_shu_white_feather_guard"
			duration = -1
		}
	}
}

# Lord of Zhongyuan
country_event = {
	id = mmetr_SHU_Han_mission_events.3
	title = "mmetr_SHU_Han_mission_events.3.t"
	desc = "mmetr_SHU_Han_mission_events.3.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.3.a"
		
		north_china_region = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_benevolent_integration"
				duration = 10950
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.3.b"
		
		north_china_region = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_harsh_integration"
				duration = 10950
			}
		}
	}
}

# The Western Capital
country_event = {
	id = mmetr_SHU_Han_mission_events.4
	title = "mmetr_SHU_Han_mission_events.4.t"
	desc = "mmetr_SHU_Han_mission_events.4.desc"
	picture = MMETR_GREAT_WALL_CONSTRUCTION_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.4.a"
		
		add_legitimacy = 50
		add_mandate = 10
		add_country_modifier = {
			name = "me_shu_forward_momentum"
			duration = 7300
		}
	}
}

# Restoration of the Han?
country_event = {
	id = mmetr_SHU_Han_mission_events.5
	title = "mmetr_SHU_Han_mission_events.5.t"
	desc = "mmetr_SHU_Han_mission_events.5.desc"
	picture = MMETR_CHINESE_COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.5.a"
		
		hidden_effect = {
			restore_country_name = yes	#removes any overriden name
		}
		
		change_tag = HND	#Switch to Han
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.5.b"
		
		override_country_name = SHU_HAN_NAME	#Name change to Shu Han
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.5.c"
		
		custom_tooltip = mmetr_SHU_Han_mission_events.5.tt
	}
	
}

# Purge of the Corrupt
country_event = {
	id = mmetr_SHU_Han_mission_events.6
	title = "mmetr_SHU_Han_mission_events.6.t"
	desc = "mmetr_SHU_Han_mission_events.6.desc"
	picture = MMETR_CHINESE_COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.6.a"
		
		add_country_modifier = {
			name = "me_shu_anti_corruption_crackdown"
			duration = 9125
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.6.b"
		
		add_corruption = 1
		add_country_modifier = {
			name = "me_shu_yi_nobles_pardoned"
			duration = 9125
		}
	}
	
}

# Promotion of Education and Talent
country_event = {
	id = mmetr_SHU_Han_mission_events.7
	title = "mmetr_SHU_Han_mission_events.7.t"
	desc = "mmetr_SHU_Han_mission_events.7.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.7.a"
		
		add_country_modifier = {
			name = "me_shu_great_education_residence"
			duration = -1
		}
	}
	
}

# The City of Silk
country_event = {
	id = mmetr_SHU_Han_mission_events.8
	title = "mmetr_SHU_Han_mission_events.8.t"
	desc = "mmetr_SHU_Han_mission_events.8.desc"
	picture = MMETR_GREAT_WALL_CONSTRUCTION_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.8.a"
		
		add_prestige = 20
		679 = {
			add_province_modifier = {
				name = "me_shu_city_of_silk"
				duration = -1
			}
		}
	}
	
}

# Innovations of Shu
country_event = {
	id = mmetr_SHU_Han_mission_events.9
	title = "mmetr_SHU_Han_mission_events.9.t"
	desc = "mmetr_SHU_Han_mission_events.9.desc"
	picture = INVENTION_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.9.a"
		
		add_country_modifier = {
			name = "me_shu_wooden_ox_and_flowing_horse"
			duration = 7300
		}
		
		add_country_modifier = {
			name = "me_shu_tuntian_system"
			duration = -1
		}
	}
	
}

# Land of Salt and Steel
country_event = {
	id = mmetr_SHU_Han_mission_events.10
	title = "mmetr_SHU_Han_mission_events.10.t"
	desc = "mmetr_SHU_Han_mission_events.10.desc"
	picture = MMETR_CHINESE_COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.10.a"
		
		add_dip_power = 75
		add_country_modifier = {
			name = "me_shu_shu_salt_bureau"
			duration = 10950
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.10.b"
		
		add_mil_power = 75
		add_country_modifier = {
			name = "me_shu_shu_steelmaking"
			duration = 10950
		}
	}
	
}

# Empire of Silk
country_event = {
	id = mmetr_SHU_Han_mission_events.11
	title = "mmetr_SHU_Han_mission_events.11.t"
	desc = "mmetr_SHU_Han_mission_events.11.desc"
	picture = MMETR_CHINESE_COURT_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.11.a"
		
		add_mercantilism = 2
		add_country_modifier = {
			name = "me_shu_bureau_of_silk"
			duration = 10950
		}
	}
	
}

# Eunuch Influence Curbed
country_event = {
	id = mmetr_SHU_Han_mission_events.12
	title = "mmetr_SHU_Han_mission_events.12.t"
	desc = "mmetr_SHU_Han_mission_events.12.desc"
	picture = MMETR_TEN_EUNUCHS_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.12.a"
		
		add_country_modifier = {
			name = "me_shu_bureau_of_silk"
			duration = 10950
		}
	}
	
}

# Jing Province Claimed
country_event = {
	id = mmetr_SHU_Han_mission_events.13
	title = "mmetr_SHU_Han_mission_events.13.t"
	desc = "mmetr_SHU_Han_mission_events.13.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.13.a"
		
		add_prestige = 20
		add_country_modifier = {
			name = "me_shu_claims_fulfilled"
			duration = 10950
		}
		huguang_area = {
			limit = {
				NOT = { is_core = ROOT }
			}
			add_core = ROOT
		}
		hunan_area = {
			limit = {
				NOT = { is_core = ROOT }
			}
			add_core = ROOT
		}
		jiangxi_area = {
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
		south_anhui_area = {
			limit = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
			add_permanent_claim = ROOT
		}
	}
	
}

# The Fate of the Sun Clan
country_event = {
	id = mmetr_SHU_Han_mission_events.14
	title = "mmetr_SHU_Han_mission_events.14.t"
	desc = "mmetr_SHU_Han_mission_events.14.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.14.a"
		
		1821 = {
			add_province_modifier = {
				name = "me_shu_sun_clan_nobility"
				duration = 5475
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.14.b"
		
		define_consort = {
			dynasty = "Sun"
			religion = ROOT
			culture = wu
		}
		1821 = {
			add_province_modifier = {
				name = "me_shu_sun_clan_nobility"
				duration = 5475
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.14.c"
		
		1821 = {
			add_province_modifier = {
				name = "me_shu_sun_clan_demoted"
				duration = 5475
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.14.d"
		
		add_prestige = 10
		
		1821 = {
			add_province_modifier = {
				name = "me_shu_sun_clan_annihilated"
				duration = 5475
			}
		}
	}
	
}

# The People of Nanyue
country_event = {
	id = mmetr_SHU_Han_mission_events.15
	title = "mmetr_SHU_Han_mission_events.15.t"
	desc = "mmetr_SHU_Han_mission_events.15.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.15.a"
		
		red_river_delta_area = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_sinicization_policy"
				duration = 10950
			}
		}
		vietnam_area = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_sinicization_policy"
				duration = 10950
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.15.b"
		
		red_river_delta_area = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_viet_autonomy"
				duration = 10950
			}
		}
		vietnam_area = {
			limit = {
				country_or_non_sovereign_subject_holds = ROOT
			}
			add_province_modifier = {
				name = "me_shu_viet_autonomy"
				duration = 10950
			}
		}
	}
	
}

# Min Traders
country_event = {
	id = mmetr_SHU_Han_mission_events.16
	title = "mmetr_SHU_Han_mission_events.16.t"
	desc = "mmetr_SHU_Han_mission_events.16.desc"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.16.a"
		
		create_admiral = { tradition = 50 }
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.16.b"
		
		define_advisor = {
			type = naval_reformer
			skill = 2
			culture = chimin
			discount = yes
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.16.c"
		
		define_advisor = {
			type = trader
			skill = 2
			culture = chimin
			discount = yes
		}
	}
	
}

# Rise of the Cuan Clan
country_event = {
	id = mmetr_SHU_Han_mission_events.17
	title = "mmetr_SHU_Han_mission_events.17.t"
	desc = "mmetr_SHU_Han_mission_events.17.desc"
	picture = MMETR_CHINESE_GENERAL_JOIN_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.17.a"
		
		661 = {
			cede_province = CNM
			add_core = CNM
			add_nationalism = -8
		}
		vassalize = CNM
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.17.b"
		
		define_advisor = {
			name = "Cuan Xi"
			type = recruitmaster
			skill = 2
			culture = bai
			discount = yes
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.17.c"
		
		define_advisor = {
			name = "Cuan Xi"
			type = diplomat
			skill = 2
			culture = bai
			discount = yes
		}
	}
	
}

# Hostage from the Xianbei Tribes
country_event = {
	id = mmetr_SHU_Han_mission_events.18
	title = "mmetr_SHU_Han_mission_events.18.t"
	desc = "mmetr_SHU_Han_mission_events.18.desc"
	picture = MONGOL_BANNERS_eventPicture

	is_triggered_only = yes
	
	option = {
		name = "mmetr_SHU_Han_mission_events.18.a"
		
		define_advisor = {
			type = grand_captain
			skill = 2
			culture = khitan
			discount = yes
		}
		
		if	= {
			limit = {
				exists = XIB
			}
			add_trust = {
				who = XIB
				value = 5
				mutual = yes
			}
		}
	}
	
	option = {
		name = "mmetr_SHU_Han_mission_events.18.b"
		
		define_advisor = {
			type = diplomat
			skill = 2
			culture = khitan
			discount = yes
		}
		
		if	= {
			limit = {
				exists = XIB
			}
			add_trust = {
				who = XIB
				value = 5
				mutual = yes
			}
		}
	}
	
}

