namespace = ASE_Splendor_Events

#Invest Extrade Splendor
country_event = {
	id = ASE_Splendor_Events.1
	title = ASE_Splendor_Events.1.T
	desc = ASE_Splendor_Events.1.D
	picture = GOOD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.1.OPT1
		ai_chance = {
			factor = 10
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.1.OPT2
		trigger = {
			splendor = 800
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				NOT = { legitimacy_equivalent = 90 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -800
		add_legitimacy_equivalent = { amount = 10 republican_tradition = 3 }
	}

	option = {
		name = ASE_Splendor_Events.1.OPT3
		trigger = {
			splendor = 1200
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 10
				NOT = { prestige = 90 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -1200
		add_prestige = 10
	}

	option = {
		name = ASE_Splendor_Events.1.OPT4
		trigger = {
			splendor = 1200
		}
		ai_chance = {
			factor = 10
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -1200
		if = {
			limit = {
				uses_papacy = yes
			}
			add_papal_influence = 50
		}
		else_if = {
			limit = {
				uses_fervor = yes
			}
			add_fervor = 100
		}
		else_if = {
			limit = {
				uses_church_aspects = yes
			}
			add_church_power = 100
		}
		else_if = {
			limit = {
				uses_patriarch_authority = yes
			}
			add_patriarch_authority = 0.15
		}
		else_if = {
			limit = {
				uses_piety = yes
			}
			add_piety = 0.50
		}
		else_if = {
			limit = {
				uses_karma = yes
			}
			add_karma = 25
		}
		else_if = {
			limit = {
				religion = confucianism
			}
			add_harmony = 10
		}
		else_if = {
			limit = {
				OR = {
					is_religion_reformed = yes
					religion = dreamtime
					religion = totemism
					religion = tengri_pagan_reformed
					religion = norse_pagan_reformed
				}
			}
			create_general = {
				tradition = 50
			}
		}
		else_if = {
			limit = {
				uses_authority = yes
			}
			add_authority = 10
		}
		else_if = {
			limit = {
				uses_doom = yes
			}
			add_doom = -25
		}
		else_if = {
			limit = {
				religion = shinto
			}
			kill_ruler = yes
			add_stability = 1
			add_prestige = 10
		}
		else_if = {
			limit = {
				religion = animism
			}
			change_adm = 1
			change_dip = 1
			change_mil = 1
		}
		else_if = {
			limit = {
				religion = sikhism
			}
			random_owned_province = {
				limit = {
					NOT = { religion = ROOT }
					any_neighbor_province = {
						owned_by = ROOT
						religion = ROOT
					}
				}
				change_religion = ROOT
			}
		}
		else_if = {
			limit = {
				religion = hinduism
			}
			set_country_flag = brahmin_deity_interaction
			clr_country_flag = brahmin_hindu_deity_decision
			set_country_flag = brahmin_hindu_deity_decision
			country_event = { id = hindu_events.1 }
		}
		else_if = {
			limit = {
				religion = shamanism
			}
			set_country_flag = swaps_cult_flag
			country_event = { id = fetishist_flavor.603 }
		}
		else_if = {
			limit = {
				religion = mesoamerican_religion
			}
			if = {
				limit = {
					capital_scope = {
						NOT = { has_building = cathedral }
					}
				}
				capital_scope = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					any_owned_province = {
						NOT = { has_building = cathedral }
					}
				}
				random_owned_province = {
					limit = {
						NOT = { has_building = cathedral }
					}
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
		}
		else_if = {
			limit = {
				religion = coptic
			}
			if = {
				limit = {
					358 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				358 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					1227 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				1227 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					2313 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				2313 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					1234 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				1234 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					419 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				419 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					capital_scope = {
						NOT = { has_building = cathedral }
					}
				}
				capital_scope = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					any_owned_province = {
						NOT = { has_building = cathedral }
					}
				}
				random_owned_province = {
					limit = {
						NOT = { has_building = cathedral }
					}
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
		}
		else_if = {
			limit = {
				religion = zoroastrian
			}
			if = {
				limit = {
					421 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				421 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					4430 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				4430 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					2223 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				2223 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					441 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				441 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					2235 = {
						owned_by = ROOT
						NOT = { has_building = cathedral }
					}
				}
				2235 = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					capital_scope = {
						NOT = { has_building = cathedral }
					}
				}
				capital_scope = {
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
			else_if = {
				limit = {
					any_owned_province = {
						NOT = { has_building = cathedral }
					}
				}
				random_owned_province = {
					limit = {
						NOT = { has_building = cathedral }
					}
					if = {
						limit = {
							has_building = temple
						}
						add_building = cathedral
					}
					else = {
						add_building = temple
					}
				}
			}
		}
	}

	option = {
		name = ASE_Splendor_Events.1.OPT5
		trigger = {
			splendor = 1200
			OR = {
				uses_piety = yes
				uses_karma = yes
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					uses_piety = yes
				}
			}
			modifier = {
				factor = 0
				NOT = {
					uses_karma = yes
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -1200

		if = {
			limit = {
				uses_piety = yes
			}
			add_piety = -0.50
		}
		else_if = {
			limit = {
				uses_karma = yes
			}
			add_karma = -25
		}
	}

	#ADM
	option = {
		name = ASE_Splendor_Events.1.OPT6
		trigger = { }
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.2
		}
	}

	#ADM ATE
	option = {
		name = ASE_Splendor_Events.1.OPT7
		trigger = {
			is_expanded_mod_active = { mod = advisor_types }
		}
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.3
		}
	}

	#DIP
	option = {
		name = ASE_Splendor_Events.1.OPT8
		trigger = { }
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.4
		}
	}

	#DIP ATE
	option = {
		name = ASE_Splendor_Events.1.OPT9
		trigger = {
			is_expanded_mod_active = { mod = advisor_types }
		}
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.5
		}
	}

	#MIL
	option = {
		name = ASE_Splendor_Events.1.OPT10
		trigger = { }
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.6
		}
	}

	#MIL ATE
	option = {
		name = ASE_Splendor_Events.1.OPT11
		trigger = {
			is_expanded_mod_active = { mod = advisor_types }
		}
		ai_chance = {
			factor = 10
		}

		country_event = {
			id = ASE_Splendor_Events.7
		}
	}
}

#Hire Admin Advisor
country_event = {
	id = ASE_Splendor_Events.2
	title = ASE_Splendor_Events.2.T
	desc = ASE_Splendor_Events.2.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.2.OPT1
		ai_chance = {
			factor = 11
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.2.OPT2
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
			modifier = {
				factor = 9
				NOT = { stability = 1 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = artist
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT3
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
			modifier = {
				factor = 9
				NOT = { religious_unity = 0.75 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = inquisitor
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT4
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
			modifier = {
				factor = 9
				inflation = 1
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = master_of_mint
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT5
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = natural_scientist
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT6
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = philosopher
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT7
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = theologian
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}

	option = {
		name = ASE_Splendor_Events.2.OPT8
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = treasurer
			culture = ROOT
			cost_multiplier = 0.75
			skill = 2
		}
	}
}

#ATE Admin Advisor
country_event = {
	id = ASE_Splendor_Events.3
	title = ASE_Splendor_Events.3.T
	desc = ASE_Splendor_Events.3.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.3.OPT1
		ai_chance = {
			factor = 10
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.3.OPT2
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_loyal_friend_adm
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT3
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				has_regency = yes
			}
			modifier = {
				factor = 15
				government = republic
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_court_physician
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT4
		trigger = {
			splendor = 400
			religion = catholic
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 15
				tag = PAP
			}
			modifier = {
				factor = 30
				has_cardinal = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_cardinal
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT5
		trigger = {
			splendor = 400
			religion = catholic
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				tag = PAP
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_bishop_catholic
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT6
		trigger = {
			splendor = 400
			OR = {
				has_dlc = "Common Sense"
				religion = protestant
			}
			OR = {
				has_dlc = "Emperor"
				religion = hussite
			}
			OR = {
				has_dlc = "Rule Britannia"
				religion = anglican
			}
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_bishop_protestant
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT7
		trigger = {
			splendor = 400
			has_dlc = "Wealth of Nations"
			religion = reformed
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_bishop_reformed
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT8
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { vassal = 1 }
			}
			modifier = {
				factor = 0
				NOT = { num_of_subjects = 1 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_feudal_tax_collector
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT9
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { overextension_percentage = 0.01 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_architect
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT10
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_great_administrator
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT11
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_states = 5 }
			}
			modifier = {
				factor = 0.1
				NOT = { governing_capacity_percentage = 1 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_steward
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT12
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_country = {
						ROOT = {
							NOT = { adm_tech = PREV }
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_administrative_genius
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT13
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { corruption = 1 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_anti_corruption_officer
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT14
		trigger = {
			splendor = 400
			government = monarchy
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_emperor_of_china = yes
			}
			modifier = {
				factor = 0
				legitimacy_equivalent = 90
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_first_minister_monarchy
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT15
		trigger = {
			splendor = 400
			government = theocracy
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				legitimacy_equivalent = 90
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_first_minister_theocracy
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT16
		trigger = {
			splendor = 400
			government = republic
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				legitimacy_equivalent = 90
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_first_minister_republic
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT17
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_states = 5 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_state_administrator
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT18
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_owned_province = {
						trade_goods = gold
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_gold_digger
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT19
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_free_thinker
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT20
		trigger = {
			splendor = 400
			is_revolution_target = yes
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_revolution_target = no
				is_revolutionary = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_revolutionist
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT21
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				has_completed_all_reforms_trigger = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_reformist
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT22
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { is_absolutism_active = yes }
			}
			modifier = {
				factor = 0
				has_dlc = "Emperor"
				OR = {
					is_revolution_target = yes
					is_revolutionary = yes
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_state_theorist
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT23
		trigger = {
			splendor = 400
			has_dlc = "Leviathan"
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_owned_province = {
						has_great_project = {
							type = monument
						}
						NOT = {
							has_great_project = {
								type = monument
								tier = 3
							}
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_visionary
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT24
		trigger = {
			splendor = 400
			has_dlc = "Mandate of Heaven"
			religion = confucianism
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_owned_province = {
						NOT = { religion = ROOT }
						ROOT = {
							NOT = { has_harmonized_with = PREV }
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_great_philosopher
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT25
		trigger = {
			splendor = 400
			is_part_of_hre = yes
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_emperor = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_chamberlain
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT26
		trigger = {
			splendor = 400
			has_estate = estate_church
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_church
						loyalty = 60
					}
					estate_influence = {
						estate = estate_church
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_monk
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT27
		trigger = {
			splendor = 400
			has_estate = estate_brahmins
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_brahmins
						loyalty = 60
					}
					estate_influence = {
						estate = estate_brahmins
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_brahmins_preacher
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT28
		trigger = {
			splendor = 400
			has_estate = estate_dhimmi
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_dhimmi
						loyalty = 60
					}
					estate_influence = {
						estate = estate_dhimmi
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_dhimmi_scholar
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT29
		trigger = {
			splendor = 400
			has_estate = estate_jains
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_jains
						loyalty = 60
					}
					estate_influence = {
						estate = estate_jains
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_jains_bureaucrat
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT30
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				religious_unity = 0.9
			}
			modifier = {
				factor = 0
				num_of_missionaries = 2
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_missionary
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT31
		trigger = {
			splendor = 400
			has_dlc = "Mandate of Heaven"
			is_emperor_of_china = yes
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_imperial_bureaucrat
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT32
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0.25
				is_tribal = yes
			}
			modifier = {
				factor = 0
				primitives = yes
			}
			modifier = {
				factor = 0
				NOT = { is_lacking_institutions = yes }
			}
			modifier = {
				factor = 0.5
				NOT = {
					any_known_country = {
						institution_difference = {
							who = PREV
							value = 2
						}
					}
				}
				NOT = {
					any_neighbor_country = {
						institution_difference = {
							who = PREV
							value = 1
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_scholar
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT33
		trigger = {
			splendor = 400
			has_dlc = "Rule Britannia"
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0.5
				innovativeness = 90
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_inventor
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.3.OPT34
		trigger = {
			splendor = 400
			religion_group = christian
			OR = {
				any_owned_province = {
					religion_group = PREV
					has_owner_religion = no
				}
				AND = {
					has_dlc = "Cradle of Civilization"
					any_subject_country = {
						religion = PREV
						any_owned_province = {
							religion_group = PREV
							has_owner_religion = no
						}
					}
				}
			}
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				religious_unity = 80
				has_hostile_reformation_center = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_witch_hunter
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}
}

#Hire Dip Advisor
country_event = {
	id = ASE_Splendor_Events.4
	title = ASE_Splendor_Events.4.T
	desc = ASE_Splendor_Events.4.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.4.OPT1
		ai_chance = {
			factor = 11
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.4.OPT2
		trigger = {
			splendor = 400
			num_of_colonists = 1
			is_colonial_nation = no
		}
		ai_chance = {
			factor = 11
			modifier = {
				factor = 0
				NOT = { num_of_colonists = 1 }
			}
			modifier = {
				factor = 0
				is_colonial_nation = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = colonial_governor
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT3
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = diplomat
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT4
		trigger = {
			splendor = 400
			num_of_total_ports = 1
			primitives = no
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = naval_reformer
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT5
		trigger = {
			splendor = 400
			num_of_colonists = 1
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = navigator
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT6
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = spymaster
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT7
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = statesman
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.4.OPT8
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = trader
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}
}

#ATE Dip Advisor
country_event = {
	id = ASE_Splendor_Events.5
	title = ASE_Splendor_Events.5.T
	desc = ASE_Splendor_Events.5.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.5.OPT1
		ai_chance = {
			factor = 10
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.5.OPT2
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_loyal_friend_dip
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT3
		trigger = {
			splendor = 400
			government = monarchy
			has_government_attribute = heir
			is_female = yes
			has_regency = no
			NOT = { has_government_attribute = has_harem }
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				has_heir = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_concubine_male
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT4
		trigger = {
			splendor = 400
			government = monarchy
			has_government_attribute = heir
			is_female = no
			has_regency = no
			NOT = { has_government_attribute = has_harem }
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				has_heir = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_concubine_female
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT5
		trigger = {
			splendor = 400
			num_of_total_ports = 1
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_sailors_recruitmaster
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT6
		trigger = {
			splendor = 400
			num_of_total_ports = 1
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { navy_size = 10 }
			}
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_blockade_specialist
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT7
		trigger = {
			splendor = 400
			has_reform = pirate_republic_reform
			num_of_total_ports = 1
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { navy_size = 10 }
			}
			modifier = {
				factor = 0.5
				is_at_war = no
				has_privateers = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_pirate_captain
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT8
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_great_negotiator
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT9
		trigger = {
			splendor = 400
			num_of_subjects = 1
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_subject_country = {
						liberty_desire = 45
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_vicegerent
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT10
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_traveling_salesman
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT11
		trigger = {
			splendor = 400
			num_of_total_ports = 1
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { navy_size = 10 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_naval_traditional_tactician
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT12
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_country = {
						ROOT = {
							NOT = { dip_tech = PREV }
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_diplomatic_genius
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT13
		trigger = {
			splendor = 400
			any_owned_province = {
				NOT = { has_owner_accepted_culture = yes }
			}
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				all_owned_province = {
					OR = {
						has_owner_culture = yes
						has_owner_accepted_culture = yes
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_cultural_commissioner
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT14
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { war_exhaustion = 3 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_herald
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT15
		trigger = {
			splendor = 400
			is_part_of_hre = yes
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_emperor = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_chancellor
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT16
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					has_global_modifier_value = {
						which = envoy_travel_time
						value = -0.75
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_envoy
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT17
		trigger = {
			splendor = 400
			has_estate = estate_vaisyas
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_vaisyas
						loyalty = 60
					}
					estate_influence = {
						estate = estate_vaisyas
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_vaisyas_peasant
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT18
		trigger = {
			splendor = 400
			has_estate = estate_burghers
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_burghers
						loyalty = 60
					}
					estate_influence = {
						estate = estate_burghers
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_guild_trader
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT19
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_historian
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT20
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_plantation_owner
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT21
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_colonists = 1 }
			}
			modifier = {
				factor = 0.25
				is_at_war = yes
			}
			modifier = {
				factor = 2
				num_of_owned_provinces_with = {
					value = 3
					is_colony = yes
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_colonial_administrator
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.5.OPT22
		trigger = {
			splendor = 400
			OR = {
				colony = 1
				crown_colony = 1
				private_enterprise = 1
				self_governing_colony = 1
			}
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0.25
				is_at_war = yes
			}
			modifier = {
				factor = 0.5
				NOT = { is_year = 1550 }
			}
			modifier = {
				factor = 0
				primitives = yes
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_treasure_fleet_captain
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}
}

#Hire MIL Advisor
country_event = {
	id = ASE_Splendor_Events.6
	title = ASE_Splendor_Events.6.T
	desc = ASE_Splendor_Events.6.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.6.OPT1
		ai_chance = {
			factor = 11
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.6.OPT2
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = army_organiser
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT3
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = army_reformer
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT4
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = commandant
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT5
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = grand_captain
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT6
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = recruitmaster
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT7
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = fortification_expert
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.6.OPT8
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 11
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = quartermaster
			skill = 2
			culture = ROOT
			cost_multiplier = 0.75
		}
	}
}

#ATE MIL Advisor
country_event = {
	id = ASE_Splendor_Events.7
	title = ASE_Splendor_Events.7.T
	desc = ASE_Splendor_Events.7.D
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	option = {
		name = ASE_Splendor_Events.7.OPT1
		ai_chance = {
			factor = 10
		}
		clr_country_flag = ase_invest_splendor_flag
	}

	option = {
		name = ASE_Splendor_Events.7.OPT2
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_loyal_friend_mil
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT3
		trigger = {
			splendor = 400
			num_of_subjects = 1
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_feudal_lord
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT4
		trigger = {
			splendor = 400
			has_reform = feudalism_reform
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_cavalry = 5 }
			}
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_knight
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT5
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { army_tradition = 25 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_traditional_tactician
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT6
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_landsknecht
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT7
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_hired_mercenary_companies = 1 }
			}
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_mercenary_leader
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT8
		trigger = {
			splendor = 400
			any_owned_province = {
				OR = {
					AND = {
						is_capital = yes
						fort_level = 2
					}
					AND = {
						is_capital = no
						fort_level = 1
					}
				}
			}
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					num_of_owned_provinces_with = {
						value = 3
						OR = {
							AND = {
								is_capital = yes
								fort_level = 2
							}
							AND = {
								is_capital = no
								fort_level = 1
							}
						}
					}
				}
			}
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_lord_of_a_castle
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT9
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_noble_man
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT10
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = {
					any_country = {
						ROOT = {
							NOT = { mil_tech = PREV }
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_military_genius
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT11
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_siege_expert
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT12
		trigger = {
			splendor = 400
			num_of_artillery = 1
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_master_of_artillery
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT13
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0.25
				is_nomad = no
			}
			modifier = {
				factor = 0
				is_at_war = no
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_looting_expert
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT14
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_marshal
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT15
		trigger = {
			splendor = 400
			is_part_of_hre = yes
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_emperor = no
			}
			modifier = {
				factor = 0
				OR = {
					is_at_war = no
					NOT = {
						any_known_country = {
							war_with = ROOT
							is_part_of_hre = no
						}
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_arch_marshal
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT16
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				is_at_war = no
			}
			modifier = {
				factor = 0
				NOT = { army_size = 50 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_supply_expert
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT17
		trigger = {
			splendor = 400
			has_dlc = "Cradle of Civilization"
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { num_of_states = 5 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_sergeant
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT18
		trigger = {
			splendor = 400
			has_estate = estate_maratha
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_maratha
						loyalty = 60
					}
					estate_influence = {
						estate = estate_maratha
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_maratha_warrior
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT19
		trigger = {
			splendor = 400
			has_estate = estate_nobles
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_nobles
						loyalty = 60
					}
					estate_influence = {
						estate = estate_nobles
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_gentleman
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT20
		trigger = {
			splendor = 400
			has_estate = estate_cossacks
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_cossacks
						loyalty = 60
					}
					estate_influence = {
						estate = estate_cossacks
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_cossack
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT21
		trigger = {
			splendor = 400
			has_estate = estate_nomadic_tribes
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_nomadic_tribes
						loyalty = 60
					}
					estate_influence = {
						estate = estate_nomadic_tribes
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_tribal_chieftain
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT22
		trigger = {
			splendor = 400
			has_estate = estate_rajput
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0
				OR = {
					estate_loyalty = {
						estate = estate_rajput
						loyalty = 60
					}
					estate_influence = {
						estate = estate_rajput
						influence = 80
					}
				}
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_rajputs_warrior
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}

	option = {
		name = ASE_Splendor_Events.7.OPT23
		trigger = {
			splendor = 400
		}
		ai_chance = {
			factor = 3
			modifier = {
				factor = 0.5
				is_at_war = yes
			}
			modifier = {
				factor = 0
				manpower_percentage = 0.75
			}
			modifier = {
				factor = 1.5
				NOT = { manpower_percentage = 0.1 }
			}
		}

		clr_country_flag = ase_invest_splendor_flag
		add_splendor = -400
		define_advisor = {
			type = ate_advisor_banneret
			culture = ROOT
			skill = 2
			cost_multiplier = 0.75
		}
	}
}