namespace = reform_me_events

country_event = {
	id = reform_me_events.1
	title = reform_me_events.1.t
	desc = reform_me_events.1.d
	picture = LIBERIUM_VETO_eventPicture

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			random_list = {
				10 = { set_country_flag = Cortes_Navy }
				10 = { set_country_flag = Cortes_Trade }
				10 = { set_country_flag = Cortes_Goods }
			}
			random_list = {
				10 = { set_country_flag = Cortes_Manpower }
				10 = { set_country_flag = Cortes_Morale }
				10 = { set_country_flag = Cortes_Discipline }
			}
			random_list = {
				10 = { set_country_flag = Cortes_Piety }
				10 = { set_country_flag = Cortes_Gold }
				10 = { set_country_flag = Cortes_Pope }
			}
		}
	}

	option = {
		name = reform_me_events.1.a

		trigger_switch = {
			on_trigger = has_country_flag
			Cortes_Navy = {
				add_country_modifier = {
					name = "Cortes_Navy"
					duration = 3650
				}
				clr_country_flag = Cortes_Navy
			}
			Cortes_Trade = {
				add_country_modifier = {
					name = "Cortes_Trade"
					duration = 3650
				}
				clr_country_flag = Cortes_Trade
			}
			Cortes_Goods = {
				add_country_modifier = {
					name = "Cortes_Goods"
					duration = 3650
				}
				clr_country_flag = Cortes_Goods
			}
		}
		add_estate_influence_modifier = {
			estate = estate_burghers
			desc = EST_VAL_BURGHERS_ADVANCES
			influence = 10
			duration = 7300
		}
		add_estate_loyalty = {
			estate = estate_burghers
			loyalty = 10
		}
		clr_country_flag = Cortes_Manpower
		clr_country_flag = Cortes_Morale
		clr_country_flag = Cortes_Discipline
		clr_country_flag = Cortes_Piety
		clr_country_flag = Cortes_Pope
		clr_country_flag = Cortes_Gold
	}

	option = {
		name = reform_me_events.1.b

		trigger_switch = {
			on_trigger = has_country_flag
			Cortes_Manpower = {
				add_country_modifier = {
					name = "Cortes_Manpower"
					duration = 7300
				}
				clr_country_flag = Cortes_Manpower
			}
			Cortes_Morale = {
				add_country_modifier = {
					name = "Cortes_Morale"
					duration = 7300
				}
				clr_country_flag = Cortes_Morale
			}
			Cortes_Discipline = {
				add_country_modifier = {
					name = "Cortes_Discipline"
					duration = 7300
				}
				clr_country_flag = Cortes_Discipline
			}
		}
		add_estate_influence_modifier = {
			estate = estate_nobles
			desc = EST_VAL_NOBILITY_ADVANCES
			influence = 10
			duration = 7300
		}
		add_estate_loyalty = {
			estate = estate_nobles
			loyalty = 10
		}
		clr_country_flag = Cortes_Trade
		clr_country_flag = Cortes_Navy
		clr_country_flag = Cortes_Goods
		clr_country_flag = Cortes_Piety
		clr_country_flag = Cortes_Pope
		clr_country_flag = Cortes_Gold
	}

	option = {
		name = reform_me_events.1.c

		trigger_switch = {
			on_trigger = has_country_flag
			Cortes_Piety = {
				add_country_modifier = {
					name = "Cortes_Piety"
					duration = 7300
				}
				clr_country_flag = Cortes_Piety
			}
			Cortes_Pope = {
				add_papal_influence = 10
				clr_country_flag = Cortes_Pope
			}
			Cortes_Gold = {
				add_years_of_income = 0.8
				clr_country_flag = Cortes_Gold
			}
		}
		add_estate_influence_modifier = {
			estate = estate_church
			desc = EST_VAL_CHURCH_ADVANCE
			influence = 10
			duration = 7300
		}
		add_estate_loyalty = {
			estate = estate_church
			loyalty = 10
		}
		clr_country_flag = Cortes_Manpower
		clr_country_flag = Cortes_Morale
		clr_country_flag = Cortes_Discipline
		clr_country_flag = Cortes_Trade
		clr_country_flag = Cortes_Navy
		clr_country_flag = Cortes_Goods
	}
}

country_event = {
	id = reform_me_events.2
	title = reform_me_events.2.t
	desc = reform_me_events.2.d
	picture = WESTERNISATION_eventPicture

	fire_only_once = yes

	trigger = {
		tag = POR
		is_year = 1481
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.2.a

		add_navy_tradition = 40
		add_government_reform = kingdom_of_portugal_and_azures
	}

	option = {
		name = reform_me_events.2.b
	}
}

country_event = {
	id = reform_me_events.5
	title = reform_me_events.5.t
	desc = reform_me_events.5.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_davidic_line
		has_heir = no
	}

	mean_time_to_happen = {
		days = 1825
	}

	immediate = {
		define_heir = {
			dynasty = "Ben-David"
			age = 0
			change_adm = 1
			change_dip = 1
			change_mil = 1
			claim = 100
			male = yes
			religion = jewish
			culture = hebrew
		}
	}

	option = {
		name = reform_me_events.5.a

	}
}

country_event = {
	id = reform_me_events.6
	title = reform_me_events.6.t
	desc = reform_me_events.6.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_hereditary_theocracy
		has_heir = no
	}

	mean_time_to_happen = {
		days = 1825
	}

	immediate = {
		define_heir = {
			dynasty = ROOT
			age = 0
			claim = 100
			male = yes
			religion = ROOT
			culture = ROOT
		}
	}

	option = {
		name = reform_me_events.6.a

	}
}

country_event = {
	id = reform_me_events.7
	title = reform_me_events.7.t
	desc = reform_me_events.7.d
	picture = BURGHER_ESTATE_UPSET_eventPicture

	trigger = {
		has_reform = rule_by_consent_reform
		NOT = { has_reform = andrea_doria_constitution_reform }
	}

	mean_time_to_happen = {
		days = 10950
	}

	option = {
		name = reform_me_events.7.a

		define_ruler = {
			hide_skills = yes
			change_dip = 1
		}
		ai_chance = { factor = 100 }
	}

	option = {
		name = reform_me_events.7.b

		capital_scope = {
			spawn_rebels = {
				type = pretender_rebels
				size = 3
				win = yes
			}
		}
	}
}

country_event = {
	id = reform_me_events.8
	title = reform_me_events.8.t
	desc = reform_me_events.8.d
	picture = ANGRY_MOB_eventPicture

	trigger = {
		has_reform = rule_by_consent_reform
		NOT = { has_reform = andrea_doria_constitution_reform }
	}

	mean_time_to_happen = {
		days = 10950
	}

	option = {
		name = reform_me_events.8.a

		kill_ruler = yes
		add_republican_tradition = 3
		ai_chance = { factor = 100 }
	}

	option = {
		name = reform_me_events.8.b

		capital_scope = {
			spawn_rebels = {
				type = anti_tax_rebels
				size = 3
				win = yes
			}
		}
	}
}

country_event = {
	id = reform_me_events.9
	title = reform_me_events.9.t
	desc = reform_me_events.9.d
	picture = NOBLE_ESTATE_TAKE_OVER_eventPicture

	trigger = {
		has_reform = rule_by_consent_reform
		NOT = { has_reform = andrea_doria_constitution_reform }
	}

	mean_time_to_happen = {
		days = 10950
	}

	option = {
		name = reform_me_events.9.a

		define_ruler = {
			hide_skills = yes
			change_mil = 1
		}
		add_republican_tradition = -3
		ai_chance = { factor = 100 }
	}

	option = {
		name = reform_me_events.9.b

		capital_scope = {
			spawn_rebels = {
				type = noble_rebels
				size = 3
				win = yes
			}
		}
	}
}

country_event = {
	id = reform_me_events.18
	title = reform_me_events.18.t
	desc = reform_me_events.18.d
	picture = FARMING_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_germanization
		any_owned_province = {
			is_territory = no
			NOT = { culture_group = ROOT }
		}
	}

	mean_time_to_happen = {
		days = 7300

		modifier = {
			factor = 1.25
			has_reform = decentralize_reform
		}
		modifier = {
			factor = 0.75
			has_reform = centralize_reform
		}
		modifier = {
			factor = 0.90
			has_reform = letat_cest_moi_reform
		}
		modifier = {
			factor = 0.75
			full_idea_group = religious_ideas
		}
		modifier = {
			factor = 1.25
			full_idea_group = humanist_ideas
		}
		modifier = {
			factor = 0.75
			had_active_policy = {
				policy = cultural_unity
				days = 365
			}
		}
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					is_territory = no
					NOT = { culture_group = ROOT }
				}
				change_culture = ROOT
			}
		}
	}

	option = {
		name = reform_me_events.18.a

	}
}

country_event = {
	id = reform_me_events.23
	title = reform_me_events.23.t
	desc = reform_me_events.23.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_mercenary_markets
		OR = {
			AND = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
				NOT = { has_country_modifier = Mercenary_Markets_1 }
			}
			AND = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
				NOT = { has_country_modifier = Mercenary_Markets_2 }
			}
			AND = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
				NOT = { has_country_modifier = Mercenary_Markets_3 }
			}
			AND = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
				NOT = { has_country_modifier = Mercenary_Markets_4 }
			}
			AND = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
				NOT = { has_country_modifier = Mercenary_Markets_5 }
			}
			AND = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
				NOT = { has_country_modifier = Mercenary_Markets_6 }
			}
			AND = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
				NOT = { has_country_modifier = Mercenary_Markets_7 }
			}
			AND = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
				NOT = { has_country_modifier = Mercenary_Markets_8 }
			}
			AND = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
				NOT = { has_country_modifier = Mercenary_Markets_9 }
			}
			AND = {
				num_of_merchants = 10
				NOT = { has_country_modifier = Mercenary_Markets_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_1
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_2
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_3
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_4
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_5
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_6
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_7
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_8
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_9
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
			}
			add_country_modifier = {
				name = Mercenary_Markets_9
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_10
		}
		else_if = {
			limit = {
				num_of_merchants = 10
			}
			add_country_modifier = {
				name = Mercenary_Markets_10
				duration = -1
			}
			remove_country_modifier = Mercenary_Markets_1
			remove_country_modifier = Mercenary_Markets_2
			remove_country_modifier = Mercenary_Markets_3
			remove_country_modifier = Mercenary_Markets_4
			remove_country_modifier = Mercenary_Markets_5
			remove_country_modifier = Mercenary_Markets_6
			remove_country_modifier = Mercenary_Markets_7
			remove_country_modifier = Mercenary_Markets_8
			remove_country_modifier = Mercenary_Markets_9
		}
	}

	option = {
		name = reform_me_events.23.a

	}
}



country_event = {
	id = reform_me_events.33
	title = reform_me_events.33.t
	desc = reform_me_events.33.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_holy_tithe
		OR = {
			AND = {
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 5
					}
				}
				OR = {
					has_country_modifier = Holy_Tithe_1
					has_country_modifier = Holy_Tithe_2
					has_country_modifier = Holy_Tithe_3
					has_country_modifier = Holy_Tithe_4
					has_country_modifier = Holy_Tithe_5
				}
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 5
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 6
					}
				}
				NOT = { has_country_modifier = Holy_Tithe_2 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 6
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 7
					}
				}
				NOT = { has_country_modifier = Holy_Tithe_3 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 7
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 8
					}
				}
				NOT = { has_country_modifier = Holy_Tithe_4 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 8
				}
				NOT = { has_country_modifier = Holy_Tithe_5 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 5
					}
				}
			}
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_4
			remove_country_modifier = Holy_Tithe_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 5
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 6
					}
				}
			}
			add_country_modifier = {
				name = Holy_Tithe_1
				duration = -1
			}
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_4
			remove_country_modifier = Holy_Tithe_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 6
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 7
					}
				}
			}
			add_country_modifier = {
				name = Holy_Tithe_2
				duration = -1
			}
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_4
			remove_country_modifier = Holy_Tithe_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 7
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 8
					}
				}
			}
			add_country_modifier = {
				name = Holy_Tithe_3
				duration = -1
			}
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_4
			remove_country_modifier = Holy_Tithe_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 8
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 9
					}
				}
			}
			add_country_modifier = {
				name = Holy_Tithe_4
				duration = -1
			}
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 9
				}
			}
			add_country_modifier = {
				name = Holy_Tithe_5
				duration = -1
			}
			remove_country_modifier = Holy_Tithe_1
			remove_country_modifier = Holy_Tithe_2
			remove_country_modifier = Holy_Tithe_3
			remove_country_modifier = Holy_Tithe_4
		}
	}

	option = {
		name = reform_me_events.33.a

	}
}

country_event = {
	id = reform_me_events.35
	title = reform_me_events.35.t
	desc = reform_me_events.35.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_general_connections
		OR = {
			AND = {
				NOT = { num_of_generals = 1 }
				OR = {
					has_country_modifier = General_Connections_1
					has_country_modifier = General_Connections_2
					has_country_modifier = General_Connections_3
					has_country_modifier = General_Connections_4
					has_country_modifier = General_Connections_5
				}
			}
			AND = {
				num_of_generals = 1
				NOT = { num_of_generals = 2 }
				NOT = { has_country_modifier = General_Connections_1 }
			}
			AND = {
				num_of_generals = 2
				NOT = { num_of_generals = 3 }
				NOT = { has_country_modifier = General_Connections_2 }
			}
			AND = {
				num_of_generals = 3
				NOT = { num_of_generals = 4 }
				NOT = { has_country_modifier = General_Connections_3 }
			}
			AND = {
				num_of_generals = 4
				NOT = { num_of_generals = 5 }
				NOT = { has_country_modifier = General_Connections_4 }
			}
			AND = {
				num_of_generals = 5
				NOT = { has_country_modifier = General_Connections_5 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { num_of_generals = 1 }
			}
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_4
			remove_country_modifier = General_Connections_5
		}
		else_if = {
			limit = {
				num_of_generals = 1
				NOT = { num_of_generals = 2 }
			}
			add_country_modifier = {
				name = "General_Connections_1"
				duration = -1
			}
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_4
			remove_country_modifier = General_Connections_5
		}
		else_if = {
			limit = {
				num_of_generals = 2
				NOT = { num_of_generals = 3 }
			}
			add_country_modifier = {
				name = "General_Connections_2"
				duration = -1
			}
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_4
			remove_country_modifier = General_Connections_5
		}
		else_if = {
			limit = {
				num_of_generals = 3
				NOT = { num_of_generals = 4 }
			}
			add_country_modifier = {
				name = "General_Connections_3"
				duration = -1
			}
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_4
			remove_country_modifier = General_Connections_5
		}
		else_if = {
			limit = {
				num_of_generals = 4
				NOT = { num_of_generals = 5 }
			}
			add_country_modifier = {
				name = "General_Connections_4"
				duration = -1
			}
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_5
		}
		else_if = {
			limit = {
				num_of_generals = 5
			}
			add_country_modifier = {
				name = "General_Connections_5"
				duration = -1
			}
			remove_country_modifier = General_Connections_1
			remove_country_modifier = General_Connections_2
			remove_country_modifier = General_Connections_3
			remove_country_modifier = General_Connections_4
		}
	}

	option = {
		name = reform_me_events.35.a

	}
}

country_event = {
	id = reform_me_events.37
	title = reform_me_events.37.t
	desc = reform_me_events.37.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_general_connections
		OR = {
			AND = {
				NOT = { num_of_admirals = 1 }
				OR = {
					has_country_modifier = General_Connections_6
					has_country_modifier = General_Connections_7
					has_country_modifier = General_Connections_8
					has_country_modifier = General_Connections_9
					has_country_modifier = General_Connections_10
				}
			}
			AND = {
				num_of_admirals = 1
				NOT = { num_of_admirals = 2 }
				NOT = { has_country_modifier = General_Connections_6 }
			}
			AND = {
				num_of_admirals = 2
				NOT = { num_of_admirals = 3 }
				NOT = { has_country_modifier = General_Connections_7 }
			}
			AND = {
				num_of_admirals = 3
				NOT = { num_of_admirals = 4 }
				NOT = { has_country_modifier = General_Connections_8 }
			}
			AND = {
				num_of_admirals = 4
				NOT = { num_of_admirals = 5 }
				NOT = { has_country_modifier = General_Connections_9 }
			}
			AND = {
				num_of_admirals = 5
				NOT = { has_country_modifier = General_Connections_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { num_of_admirals = 1 }
			}
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_9
			remove_country_modifier = General_Connections_10
		}
		else_if = {
			limit = {
				num_of_admirals = 1
				NOT = { num_of_admirals = 2 }
			}
			add_country_modifier = {
				name = "General_Connections_6"
				duration = -1
			}
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_9
			remove_country_modifier = General_Connections_10
		}
		else_if = {
			limit = {
				num_of_admirals = 2
				NOT = { num_of_admirals = 3 }
			}
			add_country_modifier = {
				name = "General_Connections_7"
				duration = -1
			}
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_9
			remove_country_modifier = General_Connections_10
		}
		else_if = {
			limit = {
				num_of_admirals = 3
				NOT = { num_of_admirals = 4 }
			}
			add_country_modifier = {
				name = "General_Connections_8"
				duration = -1
			}
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_9
			remove_country_modifier = General_Connections_10
		}
		else_if = {
			limit = {
				num_of_admirals = 4
				NOT = { num_of_admirals = 5 }
			}
			add_country_modifier = {
				name = "General_Connections_9"
				duration = -1
			}
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_10
		}
		else_if = {
			limit = {
				num_of_admirals = 5
			}
			add_country_modifier = {
				name = "General_Connections_10"
				duration = -1
			}
			remove_country_modifier = General_Connections_6
			remove_country_modifier = General_Connections_7
			remove_country_modifier = General_Connections_8
			remove_country_modifier = General_Connections_9
		}
	}

	option = {
		name = reform_me_events.37.a

	}
}

country_event = {
	id = reform_me_events.44
	title = reform_me_events.44.t
	desc = reform_me_events.44.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_pride_of_the_navy
		OR = {
			AND = {
				NOT = {
					navy_tradition = 20
				}
				OR = {
					has_country_modifier = Pride_of_the_Navy_1
					has_country_modifier = Pride_of_the_Navy_2
					has_country_modifier = Pride_of_the_Navy_3
					has_country_modifier = Pride_of_the_Navy_4
				}
			}
			AND = {
				navy_tradition = 20
				NOT = {
					navy_tradition = 40
				}
				NOT = { has_country_modifier = Pride_of_the_Navy_1 }
			}
			AND = {
				navy_tradition = 40
				NOT = {
					navy_tradition = 60
				}
				NOT = { has_country_modifier = Pride_of_the_Navy_2 }
			}
			AND = {
				navy_tradition = 60
				NOT = {
					navy_tradition = 80
				}
				NOT = { has_country_modifier = Pride_of_the_Navy_3 }
			}
			AND = {
				navy_tradition = 80
				NOT = { has_country_modifier = Pride_of_the_Navy_4 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					navy_tradition = 20
				}
			}
			remove_country_modifier = Pride_of_the_Navy_1
			remove_country_modifier = Pride_of_the_Navy_2
			remove_country_modifier = Pride_of_the_Navy_3
			remove_country_modifier = Pride_of_the_Navy_4
		}
		else_if = {
			limit = {
				navy_tradition = 20
				NOT = {
					navy_tradition = 40
				}
			}
			add_country_modifier = {
				name = Pride_of_the_Navy_1
				duration = -1
			}
			remove_country_modifier = Pride_of_the_Navy_2
			remove_country_modifier = Pride_of_the_Navy_3
			remove_country_modifier = Pride_of_the_Navy_4
		}
		else_if = {
			limit = {
				navy_tradition = 40
				NOT = {
					navy_tradition = 60
				}
			}
			add_country_modifier = {
				name = Pride_of_the_Navy_2
				duration = -1
			}
			remove_country_modifier = Pride_of_the_Navy_1
			remove_country_modifier = Pride_of_the_Navy_3
			remove_country_modifier = Pride_of_the_Navy_4
		}
		else_if = {
			limit = {
				navy_tradition = 60
				NOT = {
					navy_tradition = 80
				}
			}
			add_country_modifier = {
				name = Pride_of_the_Navy_3
				duration = -1
			}
			remove_country_modifier = Pride_of_the_Navy_1
			remove_country_modifier = Pride_of_the_Navy_2
			remove_country_modifier = Pride_of_the_Navy_4
		}
		else_if = {
			limit = {
				navy_tradition = 80
			}
			add_country_modifier = {
				name = Pride_of_the_Navy_4
				duration = -1
			}
			remove_country_modifier = Pride_of_the_Navy_1
			remove_country_modifier = Pride_of_the_Navy_2
			remove_country_modifier = Pride_of_the_Navy_3
		}
	}

	option = {
		name = reform_me_events.44.a

	}
}

country_event = {
	id = reform_me_events.52
	title = reform_me_events.52.t
	desc = reform_me_events.52.d
	picture = LIBERIUM_VETO_eventPicture

	trigger = {
		has_government_attribute = enables_royal_council
		NOT = {	has_ruler_flag = council_picked }
	}

	is_triggered_only = yes

	immediate = {
		set_ruler_flag = council_picked
		hidden_effect = {
			if = {
				limit = {
					adm = 5
				}
				random_list = {
					10 = { set_country_flag = Bad_Admin }
					65 = { set_country_flag = Decent_Admin }
					25 = { set_country_flag = Good_Admin }
				}
			}
			else_if = {
				limit = {
					adm = 3
				}
				random_list = {
					40 = { set_country_flag = Bad_Admin }
					50 = { set_country_flag = Decent_Admin }
					10 = { set_country_flag = Good_Admin }
				}
			}
			else = {
				random_list = {
					70 = { set_country_flag = Bad_Admin }
					25 = { set_country_flag = Decent_Admin }
					5 = { set_country_flag = Good_Admin }
				}
			}
			if = {
				limit = {
					dip = 5
				}
				random_list = {
					10 = { set_country_flag = Bad_Diplo }
					65 = { set_country_flag = Decent_Diplo }
					25 = { set_country_flag = Good_Diplo }
				}
			}
			else_if = {
				limit = {
					dip = 3
				}
				random_list = {
					40 = { set_country_flag = Bad_Diplo }
					50 = { set_country_flag = Decent_Diplo }
					10 = { set_country_flag = Good_Diplo }
				}
			}
			else = {
				random_list = {
					70 = { set_country_flag = Bad_Diplo }
					25 = { set_country_flag = Decent_Diplo }
					5 = { set_country_flag = Good_Diplo }
				}
			}
			if = {
				limit = {
					mil = 5
				}
				random_list = {
					10 = { set_country_flag = Bad_Mil }
					65 = { set_country_flag = Decent_Mil }
					25 = { set_country_flag = Good_Mil }
				}
			}
			else_if = {
				limit = {
					mil = 3
				}
				random_list = {
					40 = { set_country_flag = Bad_Mil }
					50 = { set_country_flag = Decent_Mil }
					10 = { set_country_flag = Good_Mil }
				}
			}
			else = {
				random_list = {
					70 = { set_country_flag = Bad_Mil }
					25 = { set_country_flag = Decent_Mil }
					5 = { set_country_flag = Good_Mil }
				}
			}
		}
	}

	option = {
		name = reform_me_events.52.a

		trigger_switch = {
			on_trigger = has_country_flag
			Bad_Admin = {
				add_ruler_modifier = {
					name = "Bad_Admin"
					duration = -1
				}
				clr_country_flag = Bad_Admin
			}
			Decent_Admin = {
				add_ruler_modifier = {
					name = "Decent_Admin"
					duration = -1
				}
				clr_country_flag = Decent_Admin
			}
			Good_Admin = {
				add_ruler_modifier = {
					name = "Good_Admin"
					duration = -1
				}
				clr_country_flag = Good_Admin
			}
		}
		if = {
			limit = {
				has_estate = estate_church
				NOT = { has_reform = states_general_reform }
			}
			add_estate_influence_modifier = {
				estate = estate_church
				desc = EST_VAL_CLERGY_ADVANCES
				influence = 10
				duration = 3650
			}
		}
		clr_country_flag = Bad_Diplo
		clr_country_flag = Decent_Diplo
		clr_country_flag = Good_Diplo
		clr_country_flag = Bad_Mil
		clr_country_flag = Decent_Mil
		clr_country_flag = Good_Mil
	}

	option = {
		name = reform_me_events.52.b

		trigger_switch = {
			on_trigger = has_country_flag
			Bad_Diplo = {
				add_ruler_modifier = {
					name = "Bad_Diplo"
					duration = -1
				}
				clr_country_flag = Bad_Diplo
			}
			Decent_Diplo = {
				add_ruler_modifier = {
					name = "Decent_Diplo"
					duration = -1
				}
				clr_country_flag = Decent_Diplo
			}
			Good_Diplo = {
				add_ruler_modifier = {
					name = "Good_Diplo"
					duration = -1
				}
				clr_country_flag = Good_Diplo
			}
		}
		if = {
			limit = {
				has_estate = estate_burghers
				NOT = { has_reform = states_general_reform }
			}
			add_estate_influence_modifier = {
				estate = estate_burghers
				desc = EST_VAL_BURGHERS_ADVANCES
				influence = 10
				duration = 3650
			}
		}

		clr_country_flag = Bad_Admin
		clr_country_flag = Decent_Admin
		clr_country_flag = Good_Admin
		clr_country_flag = Bad_Mil
		clr_country_flag = Decent_Mil
		clr_country_flag = Good_Mil
	}

	option = {
		name = reform_me_events.52.c

		trigger_switch = {
			on_trigger = has_country_flag
			Bad_Mil = {
				add_ruler_modifier = {
					name = "Bad_Mil"
					duration = -1
				}
				clr_country_flag = Bad_Mil
			}
			Decent_Mil = {
				add_ruler_modifier = {
					name = "Decent_Mil"
					duration = -1
				}
				clr_country_flag = Decent_Mil
			}
			Good_Mil = {
				add_ruler_modifier = {
					name = "Good_Mil"
					duration = -1
				}
				clr_country_flag = Good_Mil
			}
		}
		if = {
			limit = {
				has_estate = estate_nobles
				NOT = { has_reform = states_general_reform }
			}
			add_estate_influence_modifier = {
				estate = estate_nobles
				desc = EST_VAL_NOBILITY_ADVANCES
				influence = 10
				duration = 3650
			}
		}
		clr_country_flag = Bad_Admin
		clr_country_flag = Decent_Admin
		clr_country_flag = Good_Admin
		clr_country_flag = Bad_Diplo
		clr_country_flag = Decent_Diplo
		clr_country_flag = Good_Diplo
	}
}

country_event = {
	id = reform_me_events.59
	title = reform_me_events.59.t
	desc = reform_me_events.59.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_foreign_artists
		OR = {
			AND = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
				NOT = { has_country_modifier = Foreign_Artists_1 }
			}
			AND = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
				NOT = { has_country_modifier = Foreign_Artists_2 }
			}
			AND = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
				NOT = { has_country_modifier = Foreign_Artists_3 }
			}
			AND = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
				NOT = { has_country_modifier = Foreign_Artists_4 }
			}
			AND = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
				NOT = { has_country_modifier = Foreign_Artists_5 }
			}
			AND = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
				NOT = { has_country_modifier = Foreign_Artists_6 }
			}
			AND = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
				NOT = { has_country_modifier = Foreign_Artists_7 }
			}
			AND = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
				NOT = { has_country_modifier = Foreign_Artists_8 }
			}
			AND = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
				NOT = { has_country_modifier = Foreign_Artists_9 }
			}
			AND = {
				num_of_merchants = 10
				NOT = { has_country_modifier = Foreign_Artists_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
			}
			add_country_modifier = {
				name = Foreign_Artists_1
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
			}
			add_country_modifier = {
				name = Foreign_Artists_2
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
			}
			add_country_modifier = {
				name = Foreign_Artists_3
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
			}
			add_country_modifier = {
				name = Foreign_Artists_4
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
			}
			add_country_modifier = {
				name = Foreign_Artists_5
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
			}
			add_country_modifier = {
				name = Foreign_Artists_6
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
			}
			add_country_modifier = {
				name = Foreign_Artists_7
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
			}
			add_country_modifier = {
				name = Foreign_Artists_8
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_9
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
			}
			add_country_modifier = {
				name = Foreign_Artists_9
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_10
		}
		else_if = {
			limit = {
				num_of_merchants = 10
			}
			add_country_modifier = {
				name = Foreign_Artists_10
				duration = -1
			}
			remove_country_modifier = Foreign_Artists_1
			remove_country_modifier = Foreign_Artists_2
			remove_country_modifier = Foreign_Artists_3
			remove_country_modifier = Foreign_Artists_4
			remove_country_modifier = Foreign_Artists_5
			remove_country_modifier = Foreign_Artists_6
			remove_country_modifier = Foreign_Artists_7
			remove_country_modifier = Foreign_Artists_8
			remove_country_modifier = Foreign_Artists_9
		}
	}

	option = {
		name = reform_me_events.59.a

	}
}

country_event = {
	id = reform_me_events.66
	title = reform_me_events.66.t
	desc = reform_me_events.66.d
	picture = WESTERNISATION_eventPicture

	fire_only_once = yes

	trigger = {
		tag = CAS
		senior_union_with = ARA
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.66.a

		add_government_reform = crown_of_castille
	}

	option = {
		name = reform_me_events.66.b
	}
}

country_event = {
	id = reform_me_events.67
	title = reform_me_events.67.t
	desc = reform_me_events.67.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_crusader_order
		OR = {
			AND = {
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 1
					}
				}
				OR = {
					has_country_modifier = Crusader_Order_1
					has_country_modifier = Crusader_Order_2
					has_country_modifier = Crusader_Order_3
					has_country_modifier = Crusader_Order_4
					has_country_modifier = Crusader_Order_5
					has_country_modifier = Crusader_Order_6
					has_country_modifier = Crusader_Order_7
					has_country_modifier = Crusader_Order_8
					has_country_modifier = Crusader_Order_9
					has_country_modifier = Crusader_Order_10
				}
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 1
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 2
					}
				}
				NOT = { has_country_modifier = Crusader_Order_1 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 2
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 3
					}
				}
				NOT = { has_country_modifier = Crusader_Order_2 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 3
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 4
					}
				}
				NOT = { has_country_modifier = Crusader_Order_3 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 4
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 5
					}
				}
				NOT = { has_country_modifier = Crusader_Order_4 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 5
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 6
					}
				}
				NOT = { has_country_modifier = Crusader_Order_5 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 6
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 7
					}
				}
				NOT = { has_country_modifier = Crusader_Order_6 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 7
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 8
					}
				}
				NOT = { has_country_modifier = Crusader_Order_7 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 8
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 9
					}
				}
				NOT = { has_country_modifier = Crusader_Order_8 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 9
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 10
					}
				}
				NOT = { has_country_modifier = Crusader_Order_9 }
			}
			AND = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 10
				}
				NOT = { has_country_modifier = Crusader_Order_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 1
					}
				}
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 1
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 2
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_1
				duration = -1
			}
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 2
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 3
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_2
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 3
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 4
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_3
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 4
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 5
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_4
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 5
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 6
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_5
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 6
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 7
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_6
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 7
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 8
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_7
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 8
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 9
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_8
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_9
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 9
				}
				NOT = {
					has_global_modifier_value = {
						which = tolerance_own
						value = 10
					}
				}
			}
			add_country_modifier = {
				name = Crusader_Order_9
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_10
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = tolerance_own
					value = 10
				}
			}
			add_country_modifier = {
				name = Crusader_Order_10
				duration = -1
			}
			remove_country_modifier = Crusader_Order_1
			remove_country_modifier = Crusader_Order_2
			remove_country_modifier = Crusader_Order_3
			remove_country_modifier = Crusader_Order_4
			remove_country_modifier = Crusader_Order_5
			remove_country_modifier = Crusader_Order_6
			remove_country_modifier = Crusader_Order_7
			remove_country_modifier = Crusader_Order_8
			remove_country_modifier = Crusader_Order_9
		}
	}

	option = {
		name = reform_me_events.67.a

	}
}

country_event = {
	id = reform_me_events.70
	title = reform_me_events.70.t
	desc = reform_me_events.70.d
	picture = FARMING_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_religious_supremacy
	}

	mean_time_to_happen = {
		days = 7300

		modifier = {
			factor = 2
			NOT = {
				has_global_modifier_value = {
					which = tolerance_heathen
					value = 1
				}
			}
		}
		modifier = {
			factor = 0.75
			has_global_modifier_value = {
				which = tolerance_heathen
				value = 2
			}
		}
		modifier = {
			factor = 0.50
			has_global_modifier_value = {
				which = tolerance_heathen
				value = 3
			}
		}
		modifier = {
			factor = 1.5
			full_idea_group = religious_ideas
		}
		modifier = {
			factor = 0.75
			full_idea_group = humanist_ideas
		}
	}

	immediate = {
		hidden_effect = {
			random_owned_province = {
				limit = {
					has_building = temple
					is_territory = no
					NOT = { nationalism = 1 }
					NOT = { religion = ROOT }
				}
				change_religion = ROOT
			}
		}
	}

	option = {
		name = reform_me_events.70.a

	}
}

country_event = {
	id = reform_me_events.71
	title = reform_me_events.71.t
	desc = reform_me_events.71.d
	picture = ACCUSATION_eventPicture

	is_triggered_only = yes

	option = {
		name = reform_me_events.71.a

		define_ruler = {
			dynasty = "Achaemenid"
			culture = ROOT
			religion = ROOT
			change_adm = 2
			change_dip = 2
			change_mil = 2
		}
		hidden_effect = {
			kill_heir = {}
		}
	}

	option = {
		name = reform_me_events.71.b

		add_prestige = 10
		add_legitimacy = 15
	}
}

country_event = {
	id = reform_me_events.78
	title = reform_me_events.78.t
	desc = reform_me_events.78.d
	picture = WESTERNISATION_eventPicture

	fire_only_once = yes

	trigger = {
		NOT = { has_dlc = "Domination"}
		tag = SPA
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.78.a

		add_government_reform = hispanic_kingdom
	}

	option = {
		name = reform_me_events.78.b
	}
}

country_event = {
	id = reform_me_events.79
	title = reform_me_events.79.t
	desc = reform_me_events.79.d
	picture = WESTERNISATION_eventPicture

	fire_only_once = yes

	trigger = {
		NOT = { has_dlc = "Domination"}
		tag = SPA
		absolutism = 50
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.79.a

		add_government_reform = iberian_enlightened_despotism_reform
	}

	option = {
		name = reform_me_events.79.b
	}
}

country_event = {
	id = reform_me_events.81
	title = reform_me_events.81.t
	desc = reform_me_events.81.d
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_settling_tribes
		NOT = { has_country_flag = tatars_integrated }
	}

	is_triggered_only = yes

	immediate = {
		set_country_flag = tatars_integrated
	}

	option = {
		name = reform_me_events.81.a

		random_owned_province = {
			limit = {
				culture_group = tartar
			}
			add_base_manpower = 1
			add_base_tax = 1
		}
		random_owned_province = {
			limit = {
				culture_group = tartar
			}
			add_base_manpower = 1
		}
		random_owned_province = {
			limit = {
				culture_group = tartar
			}
			add_base_manpower = 1
		}
		random_owned_province = {
			limit = {
				culture_group = tartar
			}
			add_base_manpower = 1
			add_base_tax = 1
		}
		random_owned_province = {
			limit = {
				culture_group = tartar
			}
			add_base_manpower = 1
		}
	}
}

country_event = {
	id = reform_me_events.82
	title = reform_me_events.82.t
	desc = reform_me_events.82.d
	picture = WESTERNISATION_eventPicture

	trigger = {
		OR = {
			has_reform = support_ghibbelline_reform
			has_reform = support_guelphs_reform
		}
		is_year = 1490
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.82.a

		if = {
			limit = {
				OR = {
					has_reform = support_ghibbelline_reform
					has_reform = support_guelphs_reform
				}
			}
			remove_government_reform = support_ghibbelline_reform
			remove_government_reform = support_guelphs_reform
		}
	}
}

country_event = {
	id = reform_me_events.8200
	title = reform_me_events.8200.t
	desc = reform_me_events.8200.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_divine_blood
		has_heir = no
	}

	mean_time_to_happen = {
		months = 12
	}

	immediate = {
		random_list = {
			33 = {	define_heir = {
					dynasty = ROOT
					age = 0
					change_adm = 1
					claim = 100
					male = yes
				}
			}
			33 = {	define_heir = {
					dynasty = ROOT
					age = 0
					change_dip = 1
					claim = 100
					male = yes
				}
			}
			33 = {	define_heir = {
					dynasty = ROOT
					age = 0
					change_mil = 1
					claim = 100
					male = yes
				}
			}
		}
	}

	option = {
		name = reform_me_events.8200.a

	}
}

country_event = {
	id = reform_me_events.83
	title = reform_me_events.83.t
	desc = reform_me_events.83.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	is_triggered_only = yes
	fire_only_once = yes

	trigger = {
		has_reform = dynastic_theocracy_reform
	}

	immediate = {
		define_ruler = {
			change_adm = 2
			change_dip = 2
			change_mil = 2
			claim = 100
			male = yes
		}
	}

	option = {
		name = reform_me_events.83.a

	}
}


country_event = {
	id = reform_me_events.88
	title = reform_me_events.88.t
	desc = reform_me_events.88.d
	picture = ELECTION_REPUBLICAN_eventPicture

	trigger = {
		has_government_attribute = enables_burgher_council
		NOT = {
			OR = {
				has_ruler_modifier = Autarky
				has_ruler_modifier = Balanced_Policy
				has_ruler_modifier = Open_Doors
			}
		}
	}

	is_triggered_only = yes

	option = {
		name = reform_me_events.88.a # "Mercantilism and Autarky."
		add_mercantilism = 2
		add_ruler_modifier = {
			name = "Autarky"
			duration = -1
		}
	}
	option = {
		name = reform_me_events.88.b	#"A Balanced Policy."

		add_estate_loyalty = {
			estate = estate_burghers
			loyalty = 10
		}
		add_ruler_modifier = {
			name = "Balanced_Policy"
			duration = -1
		}
	}
	option = {
		name = reform_me_events.88.c	# "Open doors for everyone and everything."

		add_ruler_modifier = {
			name = "Open_Doors"
			duration = -1
		}
	}
}


country_event = {
	id = reform_me_events.100
	title = reform_me_events.100.t
	desc = reform_me_events.100.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_attracting_academics
		OR = {
			AND = {
				NOT = {
					prestige = 20
				}
				OR = {
					has_country_modifier = Hansa_Academics_1
					has_country_modifier = Hansa_Academics_2
					has_country_modifier = Hansa_Academics_3
					has_country_modifier = Hansa_Academics_4
				}
			}
			AND = {
				prestige = 20
				NOT = {
					prestige = 40
				}
				NOT = { has_country_modifier = Hansa_Academics_1 }
			}
			AND = {
				prestige = 40
				NOT = {
					prestige = 60
				}
				NOT = { has_country_modifier = Hansa_Academics_2 }
			}
			AND = {
				prestige = 60
				NOT = {
					prestige = 80
				}
				NOT = { has_country_modifier = Hansa_Academics_3 }
			}
			AND = {
				prestige = 80
				NOT = { has_country_modifier = Hansa_Academics_4 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					prestige = 20
				}
			}
			remove_country_modifier = Hansa_Academics_1
			remove_country_modifier = Hansa_Academics_2
			remove_country_modifier = Hansa_Academics_3
			remove_country_modifier = Hansa_Academics_4
		}
		else_if = {
			limit = {
				prestige = 20
				NOT = {
					prestige = 40
				}
			}
			add_country_modifier = {
				name = Hansa_Academics_1
				duration = -1
			}
			remove_country_modifier = Hansa_Academics_2
			remove_country_modifier = Hansa_Academics_3
			remove_country_modifier = Hansa_Academics_4
		}
		else_if = {
			limit = {
				prestige = 40
				NOT = {
					prestige = 60
				}
			}
			add_country_modifier = {
				name = Hansa_Academics_2
				duration = -1
			}
			remove_country_modifier = Hansa_Academics_1
			remove_country_modifier = Hansa_Academics_3
			remove_country_modifier = Hansa_Academics_4
		}
		else_if = {
			limit = {
				prestige = 60
				NOT = {
					prestige = 80
				}
			}
			add_country_modifier = {
				name = Hansa_Academics_3
				duration = -1
			}
			remove_country_modifier = Hansa_Academics_1
			remove_country_modifier = Hansa_Academics_2
			remove_country_modifier = Hansa_Academics_4
		}
		else_if = {
			limit = {
				prestige = 80
			}
			add_country_modifier = {
				name = Hansa_Academics_4
				duration = -1
			}
			remove_country_modifier = Hansa_Academics_1
			remove_country_modifier = Hansa_Academics_2
			remove_country_modifier = Hansa_Academics_3
		}
	}

	option = {
		name = reform_me_events.44.a

	}
}

country_event = {
	id = reform_me_events.102
	title = reform_me_events.102.t
	desc = reform_me_events.102.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_military_exports
		OR = {
			AND = {
				NOT = { army_professionalism = 0.10 }
				OR = {
					has_country_modifier = Military_Industry_1
					has_country_modifier = Military_Industry_2
					has_country_modifier = Military_Industry_3
					has_country_modifier = Military_Industry_4
					has_country_modifier = Military_Industry_5
					has_country_modifier = Military_Industry_6
					has_country_modifier = Military_Industry_7
					has_country_modifier = Military_Industry_8
					has_country_modifier = Military_Industry_9
					has_country_modifier = Military_Industry_10
				}
			}
			AND = {
				army_professionalism = 0.10
				NOT = { army_professionalism = 0.20 }
				NOT = { has_country_modifier = Military_Industry_1 }
			}
			AND = {
				army_professionalism = 0.20
				NOT = { army_professionalism = 0.30 }
				NOT = { has_country_modifier = Military_Industry_2 }
			}
			AND = {
				army_professionalism = 0.30
				NOT = { army_professionalism = 0.40 }
				NOT = { has_country_modifier = Military_Industry_3 }
			}
			AND = {
				army_professionalism = 0.40
				NOT = { army_professionalism = 0.50 }
				NOT = { has_country_modifier = Military_Industry_4 }
			}
			AND = {
				army_professionalism = 0.50
				NOT = { army_professionalism = 0.60 }
				NOT = { has_country_modifier = Military_Industry_5 }
			}
			AND = {
				army_professionalism = 0.60
				NOT = { army_professionalism = 0.70 }
				NOT = { has_country_modifier = Military_Industry_6 }
			}
			AND = {
				army_professionalism = 0.70
				NOT = { army_professionalism = 0.80 }
				NOT = { has_country_modifier = Military_Industry_7 }
			}
			AND = {
				army_professionalism = 0.80
				NOT = { army_professionalism = 0.90 }
				NOT = { has_country_modifier = Military_Industry_8 }
			}
			AND = {
				army_professionalism = 0.90
				NOT = { army_professionalism = 1 }
				NOT = { has_country_modifier = Military_Industry_9 }
			}
			AND = {
				army_professionalism = 1
				NOT = { has_country_modifier = Military_Industry_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { army_professionalism = 0.1 }
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.10
				NOT = { army_professionalism = 0.20 }
			}
			add_country_modifier = {
				name = Military_Industry_1
				duration = -1
			}
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.20
				NOT = { army_professionalism = 0.30 }
			}
			add_country_modifier = {
				name = Military_Industry_2
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.30
				NOT = { army_professionalism = 0.40 }
			}
			add_country_modifier = {
				name = Military_Industry_3
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.40
				NOT = { army_professionalism = 0.50 }
			}
			add_country_modifier = {
				name = Military_Industry_4
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.50
				NOT = { army_professionalism = 0.60 }
			}
			add_country_modifier = {
				name = Military_Industry_5
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.60
				NOT = { army_professionalism = 0.70 }
			}
			add_country_modifier = {
				name = Military_Industry_6
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.70
				NOT = { army_professionalism = 0.80 }
			}
			add_country_modifier = {
				name = Military_Industry_7
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.80
				NOT = { army_professionalism = 0.90 }
			}
			add_country_modifier = {
				name = Military_Industry_8
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_9
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 0.90
				NOT = { army_professionalism = 1 }
			}
			add_country_modifier = {
				name = Military_Industry_9
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_10
		}
		else_if = {
			limit = {
				army_professionalism = 1
			}
			add_country_modifier = {
				name = Military_Industry_10
				duration = -1
			}
			remove_country_modifier = Military_Industry_1
			remove_country_modifier = Military_Industry_2
			remove_country_modifier = Military_Industry_3
			remove_country_modifier = Military_Industry_4
			remove_country_modifier = Military_Industry_5
			remove_country_modifier = Military_Industry_6
			remove_country_modifier = Military_Industry_7
			remove_country_modifier = Military_Industry_8
			remove_country_modifier = Military_Industry_9
		}
	}

	option = {
		name = reform_me_events.102.a

	}
}

country_event = {
	id = reform_me_events.107
	title = reform_me_events.107.t
	desc = reform_me_events.107.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_regulated_leave
		OR = {
			AND = {
				manpower_percentage = 0.50
				NOT = { has_country_modifier = Regulated_Leave }
			}
			AND = {
				NOT = { manpower_percentage = 0.50 }
				has_country_modifier = Regulated_Leave
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				manpower_percentage = 0.50
			}
			add_country_modifier = {
				name = "Regulated_Leave"
				duration = -1
			}
		}
		else = {
			remove_country_modifier = Regulated_Leave
		}
	}

	option = {
		name = reform_me_events.107.a

	}
}

country_event = {
	id = reform_me_events.111
	title = reform_me_events.111.t
	desc = reform_me_events.111.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_officers_of_the_sword
		OR = {
			AND = {
				army_tradition = 50
				NOT = { has_country_modifier = Officers_Of_The_Sword }
			}
			AND = {
				NOT = { army_tradition = 50 }
				has_country_modifier = Officers_Of_The_Sword
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				army_tradition = 50
				NOT = {	has_country_modifier = Officers_Of_The_Sword }
			}
			add_country_modifier = {
				name = "Officers_Of_The_Sword"
				duration = -1
			}
		}
		if = {
			limit = {
				NOT = { army_tradition = 50 }
				has_country_modifier = Officers_Of_The_Sword
			}
			remove_country_modifier = Officers_Of_The_Sword
		}
	}

	option = {
		name = reform_me_events.111.a

	}
}

country_event = {
	id = reform_me_events.115
	title = reform_me_events.115.t
	desc = reform_me_events.115.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_lingua_franca
		OR = {
			any_country = {
				OR = {
					marriage_with = ROOT
					alliance_with = ROOT
					guaranteed_by = ROOT
				}
				NOT = {
					has_opinion_modifier = {
						who = ROOT
						modifier = opinion_lingua_franca
					}
				}
			}
			any_country = {
				has_opinion_modifier = {
					who = ROOT
					modifier = opinion_lingua_franca
				}
				NOT = {
					OR = {
						marriage_with = ROOT
						alliance_with = ROOT
						guaranteed_by = ROOT
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		every_country = {
			limit = {
				OR = {
					marriage_with = ROOT
					alliance_with = ROOT
					guaranteed_by = ROOT
				}
				NOT = {
					has_opinion_modifier = {
						who = ROOT
						modifier = opinion_lingua_franca
					}
				}
			}
			add_opinion = { who = ROOT modifier = opinion_lingua_franca }
		}
		every_country = {
			limit = {
				has_opinion_modifier = {
					who = ROOT
					modifier = opinion_lingua_franca
				}
				NOT = {
					OR = {
						marriage_with = ROOT
						alliance_with = ROOT
						guaranteed_by = ROOT
					}
				}
			}
			remove_opinion = { who = ROOT modifier = opinion_lingua_franca }
		}
	}

	option = {
		name = reform_me_events.115.a

	}
}

country_event = {
	id = reform_me_events.118
	title = reform_me_events.118.t
	desc = reform_me_events.118.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_home_market
		OR = {
			AND = {
				NOT = { mercantilism = 10 }
				OR = {
					has_country_modifier = Home_Market_1
					has_country_modifier = Home_Market_2
					has_country_modifier = Home_Market_3
					has_country_modifier = Home_Market_4
					has_country_modifier = Home_Market_5
					has_country_modifier = Home_Market_6
					has_country_modifier = Home_Market_7
					has_country_modifier = Home_Market_8
					has_country_modifier = Home_Market_9
					has_country_modifier = Home_Market_10
				}
			}
			AND = {
				mercantilism = 10
				NOT = { mercantilism = 20 }
				NOT = { has_country_modifier = Home_Market_1 }
			}
			AND = {
				mercantilism = 20
				NOT = { mercantilism = 30 }
				NOT = { has_country_modifier = Home_Market_2 }
			}
			AND = {
				mercantilism = 30
				NOT = { mercantilism = 40 }
				NOT = { has_country_modifier = Home_Market_3 }
			}
			AND = {
				mercantilism = 40
				NOT = { mercantilism = 50 }
				NOT = { has_country_modifier = Home_Market_4 }
			}
			AND = {
				mercantilism = 50
				NOT = { mercantilism = 60 }
				NOT = { has_country_modifier = Home_Market_5 }
			}
			AND = {
				mercantilism = 60
				NOT = { mercantilism = 70 }
				NOT = { has_country_modifier = Home_Market_6 }
			}
			AND = {
				mercantilism = 70
				NOT = { mercantilism = 80 }
				NOT = { has_country_modifier = Home_Market_7 }
			}
			AND = {
				mercantilism = 80
				NOT = { mercantilism = 90 }
				NOT = { has_country_modifier = Home_Market_8 }
			}
			AND = {
				mercantilism = 90
				NOT = { mercantilism = 100 }
				NOT = { has_country_modifier = Home_Market_9 }
			}
			AND = {
				mercantilism = 100
				NOT = { has_country_modifier = Home_Market_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { mercantilism = 10 }
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 10
				NOT = { mercantilism = 20 }
			}
			add_country_modifier = {
				name = Home_Market_1
				duration = -1
			}
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 20
				NOT = { mercantilism = 30 }
			}
			add_country_modifier = {
				name = Home_Market_2
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 30
				NOT = { mercantilism = 40 }
			}
			add_country_modifier = {
				name = Home_Market_3
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 40
				NOT = { mercantilism = 50 }
			}
			add_country_modifier = {
				name = Home_Market_4
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 50
				NOT = { mercantilism = 60 }
			}
			add_country_modifier = {
				name = Home_Market_5
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 60
				NOT = { mercantilism = 70 }
			}
			add_country_modifier = {
				name = Home_Market_6
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 70
				NOT = { mercantilism = 80 }
			}
			add_country_modifier = {
				name = Home_Market_7
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 80
				NOT = { mercantilism = 90 }
			}
			add_country_modifier = {
				name = Home_Market_8
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 90
				NOT = { mercantilism = 100 }
			}
			add_country_modifier = {
				name = Home_Market_9
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				mercantilism = 100
			}
			add_country_modifier = {
				name = Home_Market_10
				duration = -1
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
		}
	}

	option = {
		name = reform_me_events.118.a

	}
}

country_event = {
	id = reform_me_events.121
	title = reform_me_events.121.t
	desc = reform_me_events.121.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_economic_block
		OR = {
			AND = {
				NOT = { num_of_allies = 1 }
				OR = {
					has_country_modifier = Home_Market_1
					has_country_modifier = Home_Market_2
					has_country_modifier = Home_Market_3
					has_country_modifier = Home_Market_4
					has_country_modifier = Home_Market_5
					has_country_modifier = Home_Market_6
					has_country_modifier = Home_Market_7
					has_country_modifier = Home_Market_8
					has_country_modifier = Home_Market_9
					has_country_modifier = Home_Market_10
				}
			}
			AND = {
				num_of_allies = 1
				NOT = { num_of_allies = 2 }
				NOT = { has_country_modifier = Home_Market_2 }
			}
			AND = {
				num_of_allies = 2
				NOT = { num_of_allies = 3 }
				NOT = { has_country_modifier = Home_Market_4 }
			}
			AND = {
				num_of_allies = 3
				NOT = { num_of_allies = 4 }
				NOT = { has_country_modifier = Home_Market_6 }
			}
			AND = {
				num_of_allies = 4
				NOT = { num_of_allies = 5 }
				NOT = { has_country_modifier = Home_Market_8 }
			}
			AND = {
				num_of_allies = 5
				NOT = { has_country_modifier = Home_Market_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { num_of_allies = 1 }
			}
			remove_country_modifier = Home_Market_1
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_3
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_5
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_7
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_9
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				num_of_allies = 1
				NOT = { num_of_allies = 2 }
			}
			add_country_modifier = {
				name = Home_Market_2
				duration = -1
			}
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				num_of_allies = 2
				NOT = { num_of_allies = 3 }
			}
			add_country_modifier = {
				name = Home_Market_4
				duration = -1
			}
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				num_of_allies = 3
				NOT = { num_of_allies = 4 }
			}
			add_country_modifier = {
				name = Home_Market_6
				duration = -1
			}
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				num_of_allies = 4
				NOT = { num_of_allies = 5 }
			}
			add_country_modifier = {
				name = Home_Market_8
				duration = -1
			}
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_2
			remove_country_modifier = Home_Market_10
		}
		else_if = {
			limit = {
				num_of_allies = 5
			}
			add_country_modifier = {
				name = Home_Market_10
				duration = -1
			}
			remove_country_modifier = Home_Market_4
			remove_country_modifier = Home_Market_6
			remove_country_modifier = Home_Market_8
			remove_country_modifier = Home_Market_2
		}
	}

	option = {
		name = reform_me_events.121.a

	}
}

country_event = {
	id = reform_me_events.122
	title = reform_me_events.122.t
	desc = reform_me_events.122.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_foreign_worship
		OR = {
			AND = {
				num_of_mercenaries = 10
				NOT = { has_country_modifier = Foreign_Regiments }
			}
			AND = {
				NOT = { num_of_mercenaries = 10 }
				has_country_modifier = Foreign_Regiments
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_mercenaries = 10
				NOT = {	has_country_modifier = Foreign_Regiments }
			}
			add_country_modifier = {
				name = "Foreign_Regiments"
				duration = -1
			}
		}
		else_if = {
			limit = {
				NOT = { num_of_mercenaries = 10 }
				has_country_modifier = Foreign_Regiments
			}
			remove_country_modifier = Foreign_Regiments
		}
	}

	option = {
		name = reform_me_events.122.a

	}
}

country_event = {
	id = reform_me_events.134
	title = reform_me_events.134.t
	desc = reform_me_events.134.d
	picture = SHOGUNATE_AUTHORITY_INCIDENT_eventPicture

	fire_only_once = yes

	trigger = {
		tag = JAP
		NOT = { has_reform = empire_of_japan_reform }
		government = monarchy
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.134.a
		add_government_reform = empire_of_japan_reform
	}

	option = {
		name = reform_me_events.134.b

	}
}

country_event = {
	id = reform_me_events.145
	title = reform_me_events.145.t
	desc = reform_me_events.145.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_long_reign
		months_of_ruling = 120
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		add_ruler_modifier = {
			name = "Long_Reign"
			duration = -1
		}
	}

	option = {
		name = reform_me_events.145.a

	}
}

country_event = {
	id = reform_me_events.146
	title = reform_me_events.146.t
	desc = reform_me_events.146.d
	picture = WESTERNISATION_eventPicture

	fire_only_once = yes

	trigger = {
		tag = POR
		absolutism = 50
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.146.a

		add_government_reform = portuguese_empire_reform
	}

	option = {
		name = reform_me_events.146.b
	}
}

country_event = {
	id = reform_me_events.147
	title = reform_me_events.147.t
	desc = reform_me_events.147.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_silk_traders
		OR = {
			AND = {
				trading_bonus = {
					trade_goods = silk
					value = yes
				}
				NOT = { has_country_modifier = GE_silk_trade }
			}
			AND = {
				trading_bonus = {
					trade_goods = silk
					value = no
				}
				has_country_modifier = GE_silk_trade
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.147.a

		if = {
			limit = {
				trading_bonus = {
					trade_goods = silk
					value = yes
				}
			}
			add_country_modifier = {
				name = GE_silk_trade
				duration = -1
			}
		}
		else = {
			remove_country_modifier = GE_silk_trade
		}
	}
}

country_event = {
	id = reform_me_events.148
	title = reform_me_events.148.t
	desc = reform_me_events.148.d
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_eastern_courts
		NOT = {
			OR = {
				has_ruler_modifier = GE_eastern_courts_incorruptible
				has_ruler_modifier = GE_eastern_courts_corruptible
			}
		}
	}

	is_triggered_only = yes

	option = {
		name = reform_me_events.148.a
		add_ruler_modifier = {
			name = "GE_eastern_courts_corruptible"
			duration = -1
		}
	}

	option = {
		name = reform_me_events.148.b
		add_ruler_modifier = {
			name = "GE_eastern_courts_incorruptible"
			duration = -1
		}
	}
}

country_event = {
	id = reform_me_events.149
	title = reform_me_events.149.t
	desc = reform_me_events.149.d
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_qing_court
		NOT = {
			OR = {
				has_ruler_modifier = GE_qing_court_small
				has_ruler_modifier = GE_qing_court_medium
				has_ruler_modifier = GE_qing_court_large
			}
		}
	}

	is_triggered_only = yes

	option = {
		name = reform_me_events.149.a
		add_ruler_modifier = {
			name = "GE_qing_court_small"
			duration = -1
		}
	}

	option = {
		name = reform_me_events.149.b
		add_ruler_modifier = {
			name = "GE_qing_court_medium"
			duration = -1
		}
		add_years_of_income = -1
	}

	option = {
		name = reform_me_events.149.c
		add_ruler_modifier = {
			name = "GE_qing_court_large"
			duration = -1
		}
		add_years_of_income = -2
	}
}

country_event = {
	id = reform_me_events.153
	title = reform_me_events.153.t
	desc = reform_me_events.153.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_kaza_system
		OR = {
			AND = {
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.1
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_0 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.1
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.2
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_1 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.2
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.3
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_2 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.3
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.4
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_3 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.4
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.5
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_4 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.5
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.6
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_5 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.6
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.7
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_6 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.7
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.8
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_7 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 0.8
				}
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.9
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_8 }
			}
			AND = {
				num_of_religion = {
					religion = sunni
					value = 1
				}
				NOT = { has_country_modifier = GE_Kaza_System_9 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					num_of_religion = {
						religion = sunni
						value = 0.10
					}
				}
				NOT = { has_country_modifier = GE_Kaza_System_0 }
			}
			add_country_modifier = {
				name = GE_Kaza_System_0
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.10
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.20
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_1 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_1
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.20
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.30
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_2 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_2
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.30
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.40
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_3 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_3
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.40
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.50
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_4 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_4
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.50
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.60
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_5 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_5
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.60
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.70
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_6 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_6
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.70
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.80
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_7 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_7
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 0.80
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 0.90
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_8 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_8
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_9
		}
		else_if = {
			limit = {
				AND = {
					num_of_religion = {
						religion = sunni
						value = 1.00
					}
					NOT = {
						num_of_religion = {
							religion = sunni
							value = 1.10
						}
					}
					NOT = { has_country_modifier = GE_Kaza_System_9 }
				}
			}
			add_country_modifier = {
				name = GE_Kaza_System_9
				duration = -1
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
		}
		else_if = {
			limit = {
				NOT = { has_government_attribute = enables_kaza_system }
			}
			remove_country_modifier = GE_Kaza_System_0
			remove_country_modifier = GE_Kaza_System_1
			remove_country_modifier = GE_Kaza_System_2
			remove_country_modifier = GE_Kaza_System_3
			remove_country_modifier = GE_Kaza_System_4
			remove_country_modifier = GE_Kaza_System_5
			remove_country_modifier = GE_Kaza_System_6
			remove_country_modifier = GE_Kaza_System_7
			remove_country_modifier = GE_Kaza_System_8
			remove_country_modifier = GE_Kaza_System_9
		}
	}

	option = {
		name = reform_me_events.153.a

	}
}

country_event = {
	id = reform_me_events.155
	title = reform_me_events.155.t
	desc = reform_me_events.155.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_janissary_guards
		OR = {
			AND = {
				NOT = { janissary_percentage = 0.2 }
				NOT = { has_country_modifier = GE_Janissary_Guards }
			}
			AND = {
				janissary_percentage = 0.2
				has_country_modifier = GE_Janissary_Guards
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.155.a

		if = {
			limit = {
				NOT = { janissary_percentage = 0.2 }
				NOT = { has_country_modifier = GE_Janissary_Guards }
			}
			add_country_modifier = {
				name = GE_Janissary_Guards
				duration = -1
			}
		}
		else = {
			remove_country_modifier = GE_Janissary_Guards
		}
	}
}

country_event = {
	id = reform_me_events.156
	title = reform_me_events.156.t
	desc = reform_me_events.156.d
	picture = WESTERNISATION_eventPicture

	trigger = {
		has_government_attribute = enables_koprulu_dynasty
		OR = {
			had_country_flag = {
				flag = GE_Koprulu_Dynasty_Flag
				days = 9125
			}
			NOT = { has_country_flag = GE_Koprulu_Dynasty_Flag }
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		hidden_effect = {
			clr_country_flag = GE_Koprulu_Dynasty_Flag
			set_country_flag = GE_Koprulu_Dynasty_Flag
			every_owned_province = {
				remove_province_modifier = GE_Koprulu_Defence_Local
				remove_province_modifier = GE_Koprulu_Economy_Local
			}
		}
	}

	option = {
		name = reform_me_events.156.a

		custom_tooltip = GE_Koprulu_Defence_Event
		hidden_effect = {
			every_owned_province = {
				limit = {
					any_neighbor_province = {
						NOT = {
							owned_by = ROOT
						}
					}
				}
				add_province_modifier = {
					name = GE_Koprulu_Defence_Local #15% Fort Defence
					duration = 9125
				}
			}
		}
	}

	option = {
		name = reform_me_events.156.b

		custom_tooltip = GE_Koprulu_Economy_Event
		hidden_effect = {
			every_owned_province = {
				limit = {
					OR = {
						trade_goods = grain
						trade_goods = livestock
					}
				}
				add_province_modifier = {
					name = GE_Koprulu_Economy_Local #10% Goods Produced
					duration = 9125
				}
			}
		}
	}

	option = {
		name = reform_me_events.156.c

		add_country_modifier = {
			name = GE_Koprulu_Court #-0.05 Corruption
			duration = 9125
		}
	}
}

country_event = {
	id = reform_me_events.159
	title = reform_me_events.159.t
	desc = reform_me_events.159.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_kiwi_support
		OR = {
			AND = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
				NOT = { has_country_modifier = Kiwi_Rights_1 }
			}
			AND = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
				NOT = { has_country_modifier = Kiwi_Rights_2 }
			}
			AND = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
				NOT = { has_country_modifier = Kiwi_Rights_3 }
			}
			AND = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
				NOT = { has_country_modifier = Kiwi_Rights_4 }
			}
			AND = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
				NOT = { has_country_modifier = Kiwi_Rights_5 }
			}
			AND = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
				NOT = { has_country_modifier = Kiwi_Rights_6 }
			}
			AND = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
				NOT = { has_country_modifier = Kiwi_Rights_7 }
			}
			AND = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
				NOT = { has_country_modifier = Kiwi_Rights_8 }
			}
			AND = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
				NOT = { has_country_modifier = Kiwi_Rights_9 }
			}
			AND = {
				num_of_merchants = 10
				NOT = { has_country_modifier = Kiwi_Rights_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_merchants = 1
				NOT = { num_of_merchants = 2 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_1
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 2
				NOT = { num_of_merchants = 3 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_2
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 3
				NOT = { num_of_merchants = 4 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_3
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 4
				NOT = { num_of_merchants = 5 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_4
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 5
				NOT = { num_of_merchants = 6 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_5
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 6
				NOT = { num_of_merchants = 7 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_6
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 7
				NOT = { num_of_merchants = 8 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_7
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 8
				NOT = { num_of_merchants = 9 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_8
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_9
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 9
				NOT = { num_of_merchants = 10 }
			}
			add_country_modifier = {
				name = Kiwi_Rights_9
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_10
		}
		else_if = {
			limit = {
				num_of_merchants = 10
			}
			add_country_modifier = {
				name = Kiwi_Rights_10
				duration = -1
			}
			remove_country_modifier = Kiwi_Rights_1
			remove_country_modifier = Kiwi_Rights_2
			remove_country_modifier = Kiwi_Rights_3
			remove_country_modifier = Kiwi_Rights_4
			remove_country_modifier = Kiwi_Rights_5
			remove_country_modifier = Kiwi_Rights_6
			remove_country_modifier = Kiwi_Rights_7
			remove_country_modifier = Kiwi_Rights_8
			remove_country_modifier = Kiwi_Rights_9
		}
	}

	option = {
		name = reform_me_events.159.a

	}
}

country_event = {
	id = reform_me_events.165
	title = reform_me_events.165.t
	desc = reform_me_events.165.d
	picture = WESTERNISATION_eventPicture

	trigger = {
		has_government_attribute = enables_roman_empire
		OR = {
			had_country_flag = {
				flag = GE_Roman_Empire_Flag
				days = 9125
			}
			NOT = { has_country_flag = GE_Roman_Empire_Flag }
		}
	}

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			clr_country_flag = GE_Roman_Empire_Flag
			set_country_flag = GE_Roman_Empire_Flag
		}
	}

	option = {
		name = reform_me_events.165.a
		add_country_modifier = {
			name = GE_Roman_Empire_Administration #-15% State Maintenance
			duration = 9125
		}
		add_faction_influence = {
			faction = GE_Senate
			influence = 25
		}
	}

	option = {
		name = reform_me_events.165.b
		add_country_modifier = {
			name = GE_Roman_Empire_Corruption #-0.05 Corruption
			duration = 9125
		}
		add_faction_influence = {
			faction = GE_Pentarchy
			influence = 25
		}
	}

	option = {
		name = reform_me_events.165.c
		add_country_modifier = {
			name = GE_Roman_Empire_Drill #25% Drill
			duration = 9125
		}
		add_faction_influence = {
			faction = GE_Army
			influence = 25
		}
	}
}

country_event = {
	id = reform_me_events.168
	title = reform_me_events.168.t
	desc = reform_me_events.168.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_jurisprudence
		OR = {
			AND = {
				NOT = { average_autonomy = 10 }
				NOT = { has_country_modifier = Jurisprudence_1 }
			}
			AND = {
				average_autonomy = 10
				NOT = { average_autonomy = 20 }
				NOT = { has_country_modifier = Jurisprudence_2 }
			}
			AND = {
				average_autonomy = 20
				NOT = { average_autonomy = 30 }
				NOT = { has_country_modifier = Jurisprudence_3 }
			}
			AND = {
				average_autonomy = 30
				NOT = { average_autonomy = 40 }
				NOT = { has_country_modifier = Jurisprudence_4 }
			}
			AND = {
				average_autonomy = 40
				NOT = { average_autonomy = 50 }
				NOT = { has_country_modifier = Jurisprudence_5 }
			}
			AND = {
				average_autonomy = 50
				NOT = { average_autonomy = 60 }
				NOT = { has_country_modifier = Jurisprudence_6 }
			}
			AND = {
				average_autonomy = 60
				NOT = { average_autonomy = 70 }
				NOT = { has_country_modifier = Jurisprudence_7 }
			}
			AND = {
				average_autonomy = 70
				NOT = { average_autonomy = 80 }
				NOT = { has_country_modifier = Jurisprudence_8 }
			}
			AND = {
				average_autonomy = 80
				NOT = { average_autonomy = 90 }
				NOT = { has_country_modifier = Jurisprudence_9 }
			}
			AND = {
				average_autonomy = 90
				NOT = { has_country_modifier = Jurisprudence_10 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = { average_autonomy = 10 }
			}
			add_country_modifier = {
				name = Jurisprudence_1
				duration = -1
			}
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 10
				NOT = { average_autonomy = 20 }
			}
			add_country_modifier = {
				name = Jurisprudence_2
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 20
				NOT = { average_autonomy = 30 }
			}
			add_country_modifier = {
				name = Jurisprudence_3
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 30
				NOT = { average_autonomy = 40 }
			}
			add_country_modifier = {
				name = Jurisprudence_4
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 40
				NOT = { average_autonomy = 50 }
			}
			add_country_modifier = {
				name = Jurisprudence_5
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 50
				NOT = { average_autonomy = 60 }
			}
			add_country_modifier = {
				name = Jurisprudence_6
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 60
				NOT = { average_autonomy = 70 }
			}
			add_country_modifier = {
				name = Jurisprudence_7
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 70
				NOT = { average_autonomy = 80 }
			}
			add_country_modifier = {
				name = Jurisprudence_8
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_9
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 80
				NOT = { average_autonomy = 90 }
			}
			add_country_modifier = {
				name = Jurisprudence_9
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_10
		}
		else_if = {
			limit = {
				average_autonomy = 90
			}
			add_country_modifier = {
				name = Jurisprudence_10
				duration = -1
			}
			remove_country_modifier = Jurisprudence_1
			remove_country_modifier = Jurisprudence_2
			remove_country_modifier = Jurisprudence_3
			remove_country_modifier = Jurisprudence_4
			remove_country_modifier = Jurisprudence_5
			remove_country_modifier = Jurisprudence_6
			remove_country_modifier = Jurisprudence_7
			remove_country_modifier = Jurisprudence_8
			remove_country_modifier = Jurisprudence_9
		}
	}

	option = {
		name = reform_me_events.168.a

	}
}

country_event = {
	id = reform_me_events.173
	title = reform_me_events.168.t
	desc = reform_me_events.168.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_peace_development_reduction
		OR = {
			AND = {
				OR = {
					is_at_war = yes
					had_recent_war = 10
				}
				OR = {
					has_country_modifier = Hermit_five
					has_country_modifier = Hermit_ten
					has_country_modifier = Hermit_fifteen
				}
			}
			AND = {
				NOT = { has_country_modifier = Hermit_five }
				NOT = { had_recent_war = 10 }
				had_recent_war = 15
			}
			AND = {
				NOT = { has_country_modifier = Hermit_ten }
				NOT = { had_recent_war = 15 }
				had_recent_war = 20
			}
			AND = {
				NOT = { has_country_modifier = Hermit_fifteen }
				NOT = { had_recent_war = 20 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		remove_country_modifier = Hermit_five
		remove_country_modifier = Hermit_ten
		remove_country_modifier = Hermit_fifteen
		if = {
			limit = {
				NOT = { has_country_modifier = Hermit_five }
				NOT = { had_recent_war = 10 }
				NOT = { is_at_war = yes }
				had_recent_war = 15
			}
			add_country_modifier = {
				name = Hermit_five
				duration = -1
			}
		}
		else_if = {
			limit = {
				NOT = { has_country_modifier = Hermit_ten }
				NOT = { had_recent_war = 15 }
				NOT = { is_at_war = yes }
				had_recent_war = 20
			}
			add_country_modifier = {
				name = Hermit_ten
				duration = -1
			}
		}
		else_if = {
			limit = {
				NOT = { is_at_war = yes }
				NOT = { has_country_modifier = Hermit_five }
				NOT = { had_recent_war = 20 }
			}
			add_country_modifier = {
				name = Hermit_fifteen
				duration = -1
			}
		}
	}

	option = {
		name = reform_me_events.168.a

	}
}

country_event = {
	id = reform_me_events.179
	title = reform_me_events.179.t
	desc = reform_me_events.179.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_masked_monarch
		AND = {
			is_at_war = no
			NOT = {	has_country_modifier = Masked_Monarch }
		}
		AND = {
			is_at_war = yes
			has_country_modifier = Masked_Monarch
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				is_at_war = no
			}
			add_country_modifier = {
				name = Masked_Monarch
				duration = -1
			}
		}
		else = {
			remove_country_modifier = Masked_Monarch
		}
	}

	option = {
		name = reform_me_events.179.a

	}
}



country_event = {
	id = reform_me_events.180
	title = reform_me_events.180.t
	desc = reform_me_events.180.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_noble_service
		AND = {
			any_country = {
				offensive_war_with = ROOT
			}
			NOT = {	has_country_modifier = Noble_Service }
		}
		AND = {
			NOT = {
				any_country = {
					offensive_war_with = ROOT
				}
			}
			has_country_modifier = Noble_Service
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				any_country = {
					offensive_war_with = ROOT
				}
			}
			add_country_modifier = {
				name = Noble_Service
				duration = -1
			}
		}
		else = {
			remove_country_modifier = Noble_Service
		}
	}

	option = {
		name = reform_me_events.180.a

	}
}

country_event = {
	id = reform_me_events.183
	title = reform_me_events.183.t
	desc = reform_me_events.183.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_elephant_cavalry
		OR = {
			AND = {
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.05
					}
				}
				OR = {
					has_country_modifier = GE_Elephant_Cavalry_1
					has_country_modifier = GE_Elephant_Cavalry_2
					has_country_modifier = GE_Elephant_Cavalry_3
					has_country_modifier = GE_Elephant_Cavalry_4
					has_country_modifier = GE_Elephant_Cavalry_5
				}
			}
			AND = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.05
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.10
					}
				}
				NOT = { has_country_modifier = GE_Elephant_Cavalry_1 }
			}
			AND = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.10
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.15
					}
				}
				NOT = { has_country_modifier = GE_Elephant_Cavalry_2 }
			}
			AND = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.15
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.20
					}
				}
				NOT = { has_country_modifier = GE_Elephant_Cavalry_3 }
			}
			AND = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.20
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.25
					}
				}
				NOT = { has_country_modifier = GE_Elephant_Cavalry_4 }
			}
			AND = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.25
				}
				NOT = { has_country_modifier = GE_Elephant_Cavalry_5 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.05
					}
				}
			}
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_4
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.05
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.10
					}
				}
			}
			add_country_modifier = {
				name = GE_Elephant_Cavalry_1
				duration = -1
			}
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_4
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.10
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.15
					}
				}
			}
			add_country_modifier = {
				name = GE_Elephant_Cavalry_2
				duration = -1
			}
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_4
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.15
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.20
					}
				}
			}
			add_country_modifier = {
				name = GE_Elephant_Cavalry_3
				duration = -1
			}
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_4
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.20
				}
				NOT = {
					has_global_modifier_value = {
						which = cavalry_power
						value = 0.25
					}
				}
			}
			add_country_modifier = {
				name = GE_Elephant_Cavalry_4
				duration = -1
			}
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_5
		}
		else_if = {
			limit = {
				has_global_modifier_value = {
					which = cavalry_power
					value = 0.25
				}
			}
			add_country_modifier = {
				name = GE_Elephant_Cavalry_5
				duration = -1
			}
			remove_country_modifier = GE_Elephant_Cavalry_1
			remove_country_modifier = GE_Elephant_Cavalry_2
			remove_country_modifier = GE_Elephant_Cavalry_3
			remove_country_modifier = GE_Elephant_Cavalry_4
		}
	}

	option = {
		name = reform_me_events.183.a

	}
}

country_event = {
	id = reform_me_events.184
	title = reform_me_events.184.t
	desc = reform_me_events.184.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_siamese_honor
		OR = {
			AND = {
				legitimacy = 75
				NOT = { has_country_modifier = siamese_national_pride }
			}
			AND = {
				NOT = { legitimacy = 75 }
				has_country_modifier = siamese_national_pride
			}
			AND = {
				NOT = {	legitimacy = 50	}
				NOT = { has_country_modifier = siamese_national_shame }
			}
			AND = {
				legitimacy = 50
				has_country_modifier = siamese_national_shame
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				legitimacy = 75
			}
			add_country_modifier = {
				name = siamese_national_pride
				duration = -1
			}
		}
		else = {
			remove_country_modifier = siamese_national_pride
		}
		if = {
			limit = {
				NOT = {	legitimacy = 50	}
			}
			add_country_modifier = {
				name = siamese_national_shame
				duration = -1
			}
		}
		else = {
			remove_country_modifier = siamese_national_shame
		}
	}

	option = {
		name = reform_me_events.184.a

	}
}

country_event = {
	id = reform_me_events.185
	title = reform_me_events.185.t
	desc = reform_me_events.185.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_Religious_Fervor
		OR = {
			AND = {
				religious_unity = 0.90
				NOT = { has_country_modifier = GE_Religious_Fervor }
			}
			AND = {
				NOT = { religious_unity = 0.90 }
				has_country_modifier = GE_Religious_Fervor
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				religious_unity = 0.90
				NOT = { has_country_modifier = GE_Religious_Fervor }
			}
			add_country_modifier = {
				name = GE_Religious_Fervor
				duration = -1
			}
		}
		else = {
			remove_country_modifier = GE_Religious_Fervor
		}
	}

	option = {
		name = reform_me_events.185.a

	}
}

country_event = {
	id = reform_me_events.193
	title = reform_me_events.193.t
	desc = reform_me_events.193.d
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_church_policy
		NOT = {
			has_ruler_flag = GE_church_policy_set
		}
	}

	is_triggered_only = yes

	immediate = {
		set_ruler_flag = GE_church_policy_set
	}

	option = {
		name = reform_me_events.193.a
		add_patriarch_authority = 0.05
		add_estate_loyalty = {
			estate = estate_church
			loyalty = 10
		}
	}
	option = {
		name = reform_me_events.193.b
		add_ruler_modifier = {
			name = GE_church_policy_tolerance
			duration = -1
		}
	}
	option = {
		name = reform_me_events.193.c
		add_ruler_modifier = {
			name = GE_church_policy_missionary
			duration = -1
		}
	}
}


country_event = {
	id = reform_me_events.202
	title = reform_me_events.202.t
	desc = reform_me_events.202.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_republican_guard
		OR = {
			AND = {
				NOT = {republican_tradition = 60 }
				OR = {
					has_country_modifier = GE_Republican_Guard_1
					has_country_modifier = GE_Republican_Guard_2
					has_country_modifier = GE_Republican_Guard_3
					has_country_modifier = GE_Republican_Guard_4
					has_country_modifier = GE_Republican_Guard_5
				}
			}
			AND = {
				republican_tradition = 60
				NOT = { republican_tradition = 70 }
				NOT = { has_country_modifier = GE_Republican_Guard_1 }
			}
			AND = {
				republican_tradition = 70
				NOT = { republican_tradition = 80 }
				NOT = { has_country_modifier = GE_Republican_Guard_2 }
			}
			AND = {
				republican_tradition = 80
				NOT = { republican_tradition = 90 }
				NOT = { has_country_modifier = GE_Republican_Guard_3 }
			}
			AND = {
				republican_tradition = 90
				NOT = { republican_tradition = 100 }
				NOT = { has_country_modifier = GE_Republican_Guard_4 }
			}
			AND = {
				republican_tradition = 100
				NOT = { has_country_modifier = GE_Republican_Guard_5 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {republican_tradition = 60 }
			}
			remove_country_modifier = GE_Republican_Guard_1
			remove_country_modifier = GE_Republican_Guard_2
			remove_country_modifier = GE_Republican_Guard_3
			remove_country_modifier = GE_Republican_Guard_4
			remove_country_modifier = GE_Republican_Guard_5
		}
		else_if = {
			limit = {
				republican_tradition = 60
				NOT = { republican_tradition = 70 }
				NOT = { has_country_modifier = GE_Republican_Guard_1 }
			}
			add_country_modifier = {
				name = GE_Republican_Guard_1
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Republican_Guard_2
			remove_country_modifier = GE_Republican_Guard_3
			remove_country_modifier = GE_Republican_Guard_4
			remove_country_modifier = GE_Republican_Guard_5
		}
		else_if = {
			limit = {
				republican_tradition = 70
				NOT = { republican_tradition = 80 }
				NOT = { has_country_modifier = GE_Republican_Guard_2 }
			}
			add_country_modifier = {
				name = GE_Republican_Guard_2
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Republican_Guard_1
			remove_country_modifier = GE_Republican_Guard_3
			remove_country_modifier = GE_Republican_Guard_4
			remove_country_modifier = GE_Republican_Guard_5
		}
		else_if = {
			limit = {
				republican_tradition = 80
				NOT = { republican_tradition = 90 }
				NOT = { has_country_modifier = GE_Republican_Guard_3}
			}
			add_country_modifier = {
				name = GE_Republican_Guard_3
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Republican_Guard_1
			remove_country_modifier = GE_Republican_Guard_2
			remove_country_modifier = GE_Republican_Guard_4
			remove_country_modifier = GE_Republican_Guard_5
		}
		else_if = {
			limit = {
				republican_tradition = 90
				NOT = { republican_tradition = 100 }
				NOT = { has_country_modifier = GE_Republican_Guard_4}
			}
			add_country_modifier = {
				name = GE_Republican_Guard_4
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Republican_Guard_1
			remove_country_modifier = GE_Republican_Guard_2
			remove_country_modifier = GE_Republican_Guard_3
			remove_country_modifier = GE_Republican_Guard_5
		}
		else_if = {
			limit = {
				republican_tradition = 100
				NOT = { has_country_modifier = GE_Republican_Guard_5 }
			}
			add_country_modifier = {
				name = GE_Republican_Guard_5
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Republican_Guard_1
			remove_country_modifier = GE_Republican_Guard_2
			remove_country_modifier = GE_Republican_Guard_3
			remove_country_modifier = GE_Republican_Guard_4
		}
	}

	option = {
		name = reform_me_events.202.a

	}
}

country_event = {
	id = reform_me_events.204
	title = reform_me_events.204.t
	desc = reform_me_events.204.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_presidental_authority
		OR = {
			AND = {
				adm = 4
				NOT = { has_ruler_modifier = GE_Presidential_Adm }
			}
			AND = {
				dip = 4
				NOT = { has_ruler_modifier = GE_Presidential_Dip }
			}
			AND = {
				mil = 4
				NOT = { has_ruler_modifier = GE_Presidential_Mil }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				adm = 4
				NOT = { has_ruler_modifier = GE_Presidential_Adm }
			}
			add_ruler_modifier = {
				name = GE_Presidential_Adm
				duration = -1
			}
		}
		if = {
			limit = {
				dip = 4
				NOT = { has_ruler_modifier = GE_Presidential_Dip }
			}
			add_ruler_modifier = {
				name = GE_Presidential_Dip
				duration = -1
			}
		}
		if = {
			limit = {
				mil = 4
				NOT = { has_ruler_modifier = GE_Presidential_Mil }
			}
			add_ruler_modifier = {
				name = GE_Presidential_Mil
				duration = -1
			}
		}
	}

	option = {
		name = reform_me_events.204.a

	}
}

country_event = {
	id = reform_me_events.212
	title = reform_me_events.212.t
	desc = reform_me_events.212.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_cultural_inspiration
		OR = {
			AND = {
				NOT = {
					num_accepted_cultures = 1
				}
				OR = {
					has_country_modifier = GE_Cultural_Inspiration_1
					has_country_modifier = GE_Cultural_Inspiration_2
					has_country_modifier = GE_Cultural_Inspiration_3
					has_country_modifier = GE_Cultural_Inspiration_4
					has_country_modifier = GE_Cultural_Inspiration_5
				}
			}
			AND = {
				num_accepted_cultures = 1
				NOT = {
					num_accepted_cultures = 2
				}
				NOT = { has_country_modifier = GE_Cultural_Inspiration_1 }
			}
			AND = {
				num_accepted_cultures = 2
				NOT = {
					num_accepted_cultures = 3
				}
				NOT = { has_country_modifier = GE_Cultural_Inspiration_2 }
			}
			AND = {
				num_accepted_cultures = 3
				NOT = {
					num_accepted_cultures = 4
				}
				NOT = { has_country_modifier = GE_Cultural_Inspiration_3 }
			}
			AND = {
				num_accepted_cultures = 4
				NOT = {
					num_accepted_cultures = 5
				}
				NOT = { has_country_modifier = GE_Cultural_Inspiration_4 }
			}
			AND = {
				num_accepted_cultures = 5
				NOT = { has_country_modifier = GE_Cultural_Inspiration_5 }
			}
		}
	}

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					num_accepted_cultures = 1
				}
			}
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_4
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 1
					NOT = {
						num_accepted_cultures = 2
					}
				}
			}
			add_country_modifier = {
				name = GE_Cultural_Inspiration_1
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_4
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 2
					NOT = {
						num_accepted_cultures = 3
					}
				}
			}
			add_country_modifier = {
				name = GE_Cultural_Inspiration_2
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_4
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 3
					NOT = {
						num_accepted_cultures = 4
					}
				}
			}
			add_country_modifier = {
				name = GE_Cultural_Inspiration_3
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_4
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 4
					NOT = {
						num_accepted_cultures = 5
					}
				}
			}
			add_country_modifier = {
				name = GE_Cultural_Inspiration_4
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 5
				}
			}
			add_country_modifier = {
				name = GE_Cultural_Inspiration_5
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Cultural_Inspiration_1
			remove_country_modifier = GE_Cultural_Inspiration_2
			remove_country_modifier = GE_Cultural_Inspiration_3
			remove_country_modifier = GE_Cultural_Inspiration_4
		}
	}

	option = {
		name = reform_me_events.212.a

	}
}

country_event = {
	id = reform_me_events.214
	title = reform_me_events.214.t
	desc = reform_me_events.214.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_coin_over_crown
		OR = {
			AND = {
				NOT = {
					num_of_loans = 1
					has_country_modifier = GE_Coin_over_Crown
				}
			}
			AND = {
				num_of_loans = 1
				has_country_modifier = GE_Coin_over_Crown
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_loans = 1
			}
			remove_country_modifier = GE_Coin_over_Crown

		}
		else = {
			add_country_modifier = {
				name = "GE_Coin_over_Crown"
				duration = -1
			}
		}
	}

	option = {
		name = reform_me_events.214.a

	}
}

country_event = {
	id = reform_me_events.216
	title = reform_me_events.216.t
	desc = reform_me_events.216.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_grand_leader
		OR = {
			AND = {
				mil = 0
				NOT = {
					mil = 1
				}
				NOT = { has_country_modifier = GE_Grand_Leader_0 }
			}
			AND = {
				mil = 1
				NOT = {
					mil = 2
				}
				NOT = { has_country_modifier = GE_Grand_Leader_1 }
			}
			AND = {
				mil = 2
				NOT = {
					mil = 3
				}
				NOT = { has_country_modifier = GE_Grand_Leader_2 }
			}
			AND = {
				mil = 3
				NOT = {
					mil = 4
				}
				NOT = { has_country_modifier = GE_Grand_Leader_3 }
			}
			AND = {
				mil = 4
				NOT = {
					mil = 5
				}
				NOT = { has_country_modifier = GE_Grand_Leader_4 }
			}
			AND = {
				mil = 5
				NOT = {
					mil = 6
				}
				NOT = { has_country_modifier = GE_Grand_Leader_5 }
			}
			AND = {
				mil = 6
				NOT = { has_country_modifier = GE_Grand_Leader_6 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				mil = 0
				NOT = {
					mil = 1
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_0
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_5
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 1
				NOT = {
					mil = 2
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_1
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_5
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 2
				NOT = {
					mil = 3
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_2
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_5
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 3
				NOT = {
					mil = 4
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_3
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_5
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 4
				NOT = {
					mil = 5
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_4
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_5
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 5
				NOT = {
					mil = 6
				}
			}
			add_country_modifier = {
				name = GE_Grand_Leader_5
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_6
		}
		else_if = {
			limit = {
				mil = 6
			}
			add_country_modifier = {
				name = GE_Grand_Leader_6
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Grand_Leader_0
			remove_country_modifier = GE_Grand_Leader_1
			remove_country_modifier = GE_Grand_Leader_2
			remove_country_modifier = GE_Grand_Leader_3
			remove_country_modifier = GE_Grand_Leader_4
			remove_country_modifier = GE_Grand_Leader_5
		}
	}

	option = {
		name = reform_me_events.216.a
	}
}

country_event = {
	id = reform_me_events.217
	title = reform_me_events.217.t
	desc = reform_me_events.217.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_foreign_experts
		OR = {
			AND = {
				NOT = {
					calc_true_if = {
						amount = 1
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
					}
				}
				OR = {
					has_country_modifier = GE_Foreign_Experts_1
					has_country_modifier = GE_Foreign_Experts_2
					has_country_modifier = GE_Foreign_Experts_3
					has_country_modifier = GE_Foreign_Experts_4
					has_country_modifier = GE_Foreign_Experts_5
				}
			}
			AND = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						amount = 2
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Experts_1 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 3
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Experts_2 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 4
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Experts_3 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 4
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 5
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Experts_4 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 5
				}
				NOT = { has_country_modifier = GE_Foreign_Experts_5 }
			}
		}
	}

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 1
					}
				}
			}
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 2
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Experts_1
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 3
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Experts_2
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 4
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Experts_3
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 4
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							NOT = {
								culture_group = ROOT
							}
						}
						amount = 5
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Experts_4
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						NOT = {
							culture_group = ROOT
						}
					}
					amount = 5
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Experts_5
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
		}
		else = {
			remove_country_modifier = GE_Foreign_Experts_1
			remove_country_modifier = GE_Foreign_Experts_2
			remove_country_modifier = GE_Foreign_Experts_3
			remove_country_modifier = GE_Foreign_Experts_4
			remove_country_modifier = GE_Foreign_Experts_5
		}
	}

	option = {
		name = reform_me_events.217.a

	}
}

country_event = {
	id = reform_me_events.218
	title = reform_me_events.218.t
	desc = reform_me_events.218.d
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_foreign_experts
		OR = {
			any_ally = {
				culture_group = germanic
			}
			any_subject_country = {
				culture_group = germanic
			}
		}
		NOT = {
			OR = {
				has_country_modifier = GE_Foreign_Experts_German
				has_country_modifier = GE_Foreign_Experts_Catalan
				has_country_modifier = GE_Foreign_Experts_Italian
				has_country_modifier = GE_Foreign_Experts_Serbian
			}
		}
	}

	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.10
			is_at_war = yes
			NOT = {
				has_country_flag = GE_Foreign_Experts_Denied
			}
		}
		modifier = {
			factor = 4
			has_country_flag = GE_Foreign_Experts_Denied
		}

	}

	immediate = {
		clr_country_flag = GE_Foreign_Experts_Denied
	}

	option = {
		name = reform_me_events.218.a
		add_years_of_income = -1
		add_country_modifier = {
			name = GE_Foreign_Experts_German
			duration = 9125
		}
	}
	option = {
		name = reform_me_events.218.b
		set_country_flag = GE_Foreign_Experts_Denied
	}
}

country_event = {
	id = reform_me_events.219
	title = reform_me_events.218.t
	desc = reform_me_events.218.Catalan
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_foreign_experts
		# any_owned_province = {
			# is_capital = yes
			# continent = europe
		# }
		OR = {
			any_ally = {
				culture_group = iberian
			}
			any_subject_country = {
				culture_group = iberian
			}
		}
		NOT = {
			OR = {
				has_country_modifier = GE_Foreign_Experts_German
				has_country_modifier = GE_Foreign_Experts_Catalan
				has_country_modifier = GE_Foreign_Experts_Italian
				has_country_modifier = GE_Foreign_Experts_Serbian
			}
		}
	}

	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.10
			is_at_war = yes
			NOT = {
				has_country_flag = GE_Foreign_Experts_Denied
			}
		}
		modifier = {
			factor = 5
			has_country_flag = GE_Foreign_Experts_Denied
		}

	}

	immediate = {
		clr_country_flag = GE_Foreign_Experts_Denied
	}

	option = {
		name = reform_me_events.218.a
		add_years_of_income = -1
		add_country_modifier = {
			name = GE_Foreign_Experts_Catalan
			duration = 9125
		}
	}
	option = {
		name = reform_me_events.218.b
		set_country_flag = GE_Foreign_Experts_Denied
	}
}

country_event = {
	id = reform_me_events.220
	title = reform_me_events.218.t
	desc = reform_me_events.218.Italian
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_foreign_experts
		# any_owned_province = {
			# is_capital = yes
			# continent = europe
		# }
		OR = {
			any_ally = {
				culture_group = latin
			}
			any_subject_country = {
				culture_group = latin
			}
		}
		NOT = {
			OR = {
				has_country_modifier = GE_Foreign_Experts_German
				has_country_modifier = GE_Foreign_Experts_Catalan
				has_country_modifier = GE_Foreign_Experts_Italian
				has_country_modifier = GE_Foreign_Experts_Serbian
			}
		}
	}

	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.10
			is_at_war = yes
			NOT = {
				has_country_flag = GE_Foreign_Experts_Denied
			}
		}
		modifier = {
			factor = 5
			has_country_flag = GE_Foreign_Experts_Denied
		}

	}

	immediate = {
		clr_country_flag = GE_Foreign_Experts_Denied
	}

	option = {
		name = reform_me_events.218.a
		add_years_of_income = -1
		add_country_modifier = {
			name = GE_Foreign_Experts_Italian
			duration = 9125
		}
	}
	option = {
		name = reform_me_events.218.b
		set_country_flag = GE_Foreign_Experts_Denied
	}
}

country_event = {
	id = reform_me_events.221
	title = reform_me_events.218.t
	desc = reform_me_events.218.Serbian
	picture = WESTERNISATION_eventPicture


	trigger = {
		has_government_attribute = enables_foreign_experts
		# any_owned_province = {
			# is_capital = yes
			# continent = europe
		# }
		OR = {
			any_ally = {
				culture_group = south_slavic
			}
			any_subject_country = {
				culture_group = south_slavic
			}
		}
		NOT = {
			OR = {
				has_country_modifier = GE_Foreign_Experts_German
				has_country_modifier = GE_Foreign_Experts_Catalan
				has_country_modifier = GE_Foreign_Experts_Italian
				has_country_modifier = GE_Foreign_Experts_Serbian
			}
		}
	}

	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.10
			is_at_war = yes
			NOT = {
				has_country_flag = GE_Foreign_Experts_Denied
			}
		}
		modifier = {
			factor = 5
			has_country_flag = GE_Foreign_Experts_Denied
		}

	}

	immediate = {
		clr_country_flag = GE_Foreign_Experts_Denied
	}

	option = {
		name = reform_me_events.218.a
		add_years_of_income = -1
		add_country_modifier = {
			name = GE_Foreign_Experts_Serbian
			duration = 9125
		}
	}
	option = {
		name = reform_me_events.218.b
		set_country_flag = GE_Foreign_Experts_Denied
	}
}

country_event = {
	id = reform_me_events.222
	title = reform_me_events.222.t
	desc = reform_me_events.222.d
	picture = WESTERNISATION_eventPicture

	trigger = {
		has_government_attribute = enables_iberian_harem
		NOT = {
			OR = {
				has_heir = yes
				has_country_flag = GE_Iberian_Harem_Flag
			}
		}
		ruler_age = 30
	}

	mean_time_to_happen = {
		months = 30
	}

	immediate = {
		set_country_flag = GE_Iberian_Harem_Flag
	}

	option = {
		name = reform_me_events.222.a
		define_heir = {
			culture = castillian
			dynasty = root
			adm = -1
			dip = -1
			mil = 3
		}
		set_heir_flag = GE_Iberian_Harem_Castillian
		custom_tooltip = GE_Iberian_Harem_Castillian_TT
	}
	option = {
		name = reform_me_events.222.b
		define_heir = {
			culture = andalucian
			dynasty = root
			adm = 3
			dip = -1
			mil = -1
		}
		set_heir_flag = GE_Iberian_Harem_Andalucian
		custom_tooltip = GE_Iberian_Harem_Andalucian_TT
	}
	option = {
		name = reform_me_events.222.c
		define_heir = {
			culture = portugese
			dynasty = root
			adm = -1
			dip = 3
			mil = -1
		}
		set_heir_flag = GE_Iberian_Harem_Portugese
		custom_tooltip = GE_Iberian_Harem_Portugese_TT
	}
	option = {
		name = reform_me_events.222.e
		define_heir = {
			culture = catalan
			dynasty = root
			adm = -1
			dip = 3
			mil = -1
		}
		set_heir_flag = GE_Iberian_Harem_Catalan
		custom_tooltip = GE_Iberian_Harem_Catalan_TT
	}

	after = {
		clr_country_flag = GE_Iberian_Harem_Flag
	}
}

country_event = {
	id = reform_me_events.223
	title = reform_me_events.223.t
	desc = reform_me_events.223.d
	picture = WESTERNISATION_eventPicture

	trigger = {
		has_government_attribute = enables_iberian_harem
		OR = {
			AND = {
				has_ruler_flag = GE_Iberian_Harem_Castillian
				NOT = {
					has_country_modifier = GE_Iberian_Harem_Castillian
				}
			}
			AND = {
				has_ruler_flag = GE_Iberian_Harem_Andalucian
				NOT = {
					has_country_modifier = GE_Iberian_Harem_Andalucian
				}
			}
			AND = {
				has_ruler_flag = GE_Iberian_Harem_Portugese
				NOT = {
					has_country_modifier = GE_Iberian_Harem_Portugese
				}
			}
			AND = {
				has_ruler_flag = GE_Iberian_Harem_Catalan
				NOT = {
					has_country_modifier = GE_Iberian_Harem_Catalan
				}
			}
		}
	}

	is_triggered_only = yes

	option = {
		name = reform_me_events.223.a
		trigger = {
			has_ruler_flag = GE_Iberian_Harem_Castillian
		}
		add_ruler_modifier = {
			name = GE_Iberian_Harem_Castillian
			duration = -1
		}
	}
	option = {
		name = reform_me_events.223.b
		trigger = {
			has_ruler_flag = GE_Iberian_Harem_Andalucian
		}
		add_ruler_modifier = {
			name = GE_Iberian_Harem_Andalucian
			duration = -1
		}
	}
	option = {
		name = reform_me_events.223.c
		trigger = {
			has_ruler_flag = GE_Iberian_Harem_Portugese
		}
		add_ruler_modifier = {
			name = GE_Iberian_Harem_Portugese
			duration = -1
		}
	}
	option = {
		name = reform_me_events.223.e
		trigger = {
			has_ruler_flag = GE_Iberian_Harem_Catalan
		}
		add_ruler_modifier = {
			name = GE_Iberian_Harem_Catalan
			duration = -1
		}
	}
}

country_event = {
	id = reform_me_events.224
	title = reform_me_events.224.t
	desc = reform_me_events.224.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_influencial_ties
		OR = {
			AND = {
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 1
					}
				}
				OR = {
					has_country_modifier = GE_Influencial_Ties_1
					has_country_modifier = GE_Influencial_Ties_2
					has_country_modifier = GE_Influencial_Ties_3
					has_country_modifier = GE_Influencial_Ties_4
					has_country_modifier = GE_Influencial_Ties_5
				}
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 2
					}
				}
				NOT = { has_country_modifier = GE_Influencial_Ties_1 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 3
					}
				}
				NOT = { has_country_modifier = GE_Influencial_Ties_2 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 4
					}
				}
				NOT = { has_country_modifier = GE_Influencial_Ties_3 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 4
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 5
					}
				}
				NOT = { has_country_modifier = GE_Influencial_Ties_4 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 4
				}
				NOT = { has_country_modifier = GE_Influencial_Ties_5 }
			}
		}
	}

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 1
					}
				}
			}
			remove_country_modifier = GE_Influencial_Ties_1
			remove_country_modifier = GE_Influencial_Ties_2
			remove_country_modifier = GE_Influencial_Ties_3
			remove_country_modifier = GE_Influencial_Ties_4
			remove_country_modifier = GE_Influencial_Ties_5
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 1
					}
					NOT = {
						calc_true_if = {
							all_ally = {
								OR = {
									is_great_power = yes
									tag = PAP
									is_emperor = yes
								}
							}
							amount = 2
						}
					}
				}
			}
			add_country_modifier = {
				name = GE_Influencial_Ties_1
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Influencial_Ties_2
			remove_country_modifier = GE_Influencial_Ties_3
			remove_country_modifier = GE_Influencial_Ties_4
			remove_country_modifier = GE_Influencial_Ties_5
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 2
					}
					NOT = {
						calc_true_if = {
							all_ally = {
								OR = {
									is_great_power = yes
									tag = PAP
									is_emperor = yes
								}
							}
							amount = 3
						}
					}
				}
			}
			add_country_modifier = {
				name = GE_Influencial_Ties_2
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Influencial_Ties_1
			remove_country_modifier = GE_Influencial_Ties_3
			remove_country_modifier = GE_Influencial_Ties_4
			remove_country_modifier = GE_Influencial_Ties_5
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 3
					}
					NOT = {
						calc_true_if = {
							all_ally = {
								OR = {
									is_great_power = yes
									tag = PAP
									is_emperor = yes
								}
							}
							amount = 4
						}
					}
				}
			}
			add_country_modifier = {
				name = GE_Influencial_Ties_3
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Influencial_Ties_1
			remove_country_modifier = GE_Influencial_Ties_2
			remove_country_modifier = GE_Influencial_Ties_4
			remove_country_modifier = GE_Influencial_Ties_5
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						all_ally = {
							OR = {
								is_great_power = yes
								tag = PAP
								is_emperor = yes
							}
						}
						amount = 4
					}
					NOT = {
						calc_true_if = {
							all_ally = {
								OR = {
									is_great_power = yes
									tag = PAP
									is_emperor = yes
								}
							}
							amount = 5
						}
					}
				}
			}
			add_country_modifier = {
				name = GE_Influencial_Ties_4
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Influencial_Ties_1
			remove_country_modifier = GE_Influencial_Ties_2
			remove_country_modifier = GE_Influencial_Ties_3
			remove_country_modifier = GE_Influencial_Ties_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							is_great_power = yes
							tag = PAP
							is_emperor = yes
						}
					}
					amount = 5
				}
			}
			add_country_modifier = {
				name = GE_Influencial_Ties_5
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Influencial_Ties_1
			remove_country_modifier = GE_Influencial_Ties_2
			remove_country_modifier = GE_Influencial_Ties_3
			remove_country_modifier = GE_Influencial_Ties_4
		}
	}

	option = {
		name = reform_me_events.224.a

	}
}

country_event = {
	id = reform_me_events.226
	title = reform_me_events.226.t
	desc = reform_me_events.226.d
	picture = WESTERNISATION_eventPicture

	is_triggered_only = yes

	option = {
		name = reform_me_events.226.a
		set_country_flag = GE_burgher_autonomy_AI
		if = {
			limit = {
				calc_true_if = {
					all_owned_province = {
						#is_state = yes
						has_urban_goods = yes
					}
					amount = 5
				}
			}
			custom_tooltip = GE_burgher_autonomy_event
				tooltip = {
					add_base_production = 1
					add_province_modifier = {
						name = GE_Burgher_Autonomy
						duration = 9125
					}
				}
			hidden_effect = {
				set_variable = {
					which = GE_burgher_counter
					value = 5
				}
				while = {
					limit = {
						check_variable = {
							which = GE_burgher_counter
							value = 1
						}
					}
					change_variable = {
						which = GE_burgher_counter
						value = -1
					}
					random_owned_province = {
						limit = {
							#is_state = yes
							has_urban_goods = yes
							NOT = {
								has_province_modifier = GE_Burgher_Autonomy
							}
						}
						add_base_production = 1
						add_province_modifier = {
							name = GE_Burgher_Autonomy
							duration = 9125
						}
					}
				}
			}
		}
		else = {
			every_owned_province = {
				limit = {
					#is_state = yes
					has_urban_goods = yes
				}
				add_base_production = 1
				add_province_modifier = {
					name = GE_Burgher_Autonomy
					duration = 9125
				}
			}
		}
	}
	option = {
		name = reform_me_events.226.b
		remove_estate_privilege = estate_burghers_burgher_autonomy
	}
}

country_event = {
	id = reform_me_events.227
	title = reform_me_events.227.t
	desc = reform_me_events.227.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		OR = {
			AND = {
				overlord = {
					has_government_attribute = enables_colonial_plantations
				}
				is_colonial_nation = yes
			}
			AND = {
				has_country_modifier = GE_colonial_plantations
				NOT = { is_subject = yes }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				AND = {
					overlord = {
						has_government_attribute = enables_colonial_plantations
					}
					is_colonial_nation = yes
				}
			}
			add_country_modifier = {
				name = GE_colonial_plantations
				duration = -1
			}
		}
	}
	option = {
		name = reform_me_events.227.a
	}
}

country_event = {
	id = reform_me_events.229
	title = reform_me_events.229.t
	desc = reform_me_events.229.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_landsknecht_sergeants
		OR = {
			AND = {
				num_of_mercenaries = 1
				NOT = { has_country_modifier = GE_Landsknecht_Sergeants }
			}
			AND = {
				NOT = { num_of_mercenaries = 1 }
				has_country_modifier = GE_Landsknecht_Sergeants
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				num_of_mercenaries = 1
			}
			add_country_modifier = {
				name = "GE_Landsknecht_Sergeants"
				duration = -1
			}
		}
		else = {
			remove_country_modifier = GE_Landsknecht_Sergeants
		}
	}

	option = {
		name = reform_me_events.229.a

	}
}

country_event = {
	id = reform_me_events.231
	title = reform_me_events.231.t
	desc = reform_me_events.231.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_foreign_drill_masters
		OR = {
			AND = {
				NOT = {
					calc_true_if = {
						amount = 1
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
					}
				}
				OR = {
					has_country_modifier = GE_Foreign_Drill_Masters_1
					has_country_modifier = GE_Foreign_Drill_Masters_2
					has_country_modifier = GE_Foreign_Drill_Masters_3
					has_country_modifier = GE_Foreign_Drill_Masters_4
					has_country_modifier = GE_Foreign_Drill_Masters_5
				}
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						amount = 2
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Drill_Masters_1 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 3
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Drill_Masters_2 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 4
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Drill_Masters_3 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 4
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 5
					}
				}
				NOT = { has_country_modifier = GE_Foreign_Drill_Masters_4 }
			}
			AND = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 5
				}
				NOT = { has_country_modifier = GE_Foreign_Drill_Masters_5 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 1
					}
				}
			}
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 2
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Drill_Masters_1
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 3
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Drill_Masters_2
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 4
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Drill_Masters_3
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 4
				}
				NOT = {
					calc_true_if = {
						all_ally = {
							OR = {
								total_development = ROOT
								tech_difference = 1
							}
						}
						amount = 5
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Drill_Masters_4
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
		else_if = {
			limit = {
				calc_true_if = {
					all_ally = {
						OR = {
							total_development = ROOT
							tech_difference = 1
						}
					}
					amount = 5
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Drill_Masters_5
				duration = -1

			}
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
		}
		else = {
			remove_country_modifier = GE_Foreign_Drill_Masters_1
			remove_country_modifier = GE_Foreign_Drill_Masters_2
			remove_country_modifier = GE_Foreign_Drill_Masters_3
			remove_country_modifier = GE_Foreign_Drill_Masters_4
			remove_country_modifier = GE_Foreign_Drill_Masters_5
		}
	}

	option = {
		name = reform_me_events.217.a

	}
}

country_event = {
	id = reform_me_events.232
	title = reform_me_events.232.t
	desc = reform_me_events.232.d
	picture = ACCUSATION_eventPicture

	fire_only_once = yes

	trigger = {
		has_reform = wattasid_viziers_reform
		has_regency = yes
		heir_age = 12
	}

	mean_time_to_happen = {
		days = 30
	}

	option = {
		name = reform_me_events.232.a
		random_list = {
			50 = {
				define_ruler = {
					culture = berber
					dynasty = "Wattasid"
					age = 25
					male = yes
					change_adm = 1
					change_dip = 1
					change_mil = 1
					claim = 50
					hide_skills = yes
				}
				kill_heir = {}
			}
			50 = {
				add_reform_progress_small_effect = yes
			}
		}
	}
	option = {
		name = reform_me_events.232.b
		add_stability = -1
		set_country_flag = Killed_the_Wattasids
		remove_government_reform = wattasid_viziers_reform
		custom_tooltip = GE_Killing_the_Wattasids_tooltip
	}
}

country_event = {
	id = reform_me_events.235
	title = reform_me_events.235.t
	desc = reform_me_events.235.d
	picture = ACCUSATION_eventPicture
	hidden = yes

	trigger = {
		has_government_attribute = enables_italian_grain_treaties
		OR = {
			AND = {
				any_country = {
					culture_group = latin
					has_country_flag = GE_Rural_Trade_Deal_With_@Root
				}
				NOT = {
					has_country_modifier = GE_Italian_Grain_Treaties
				}
			}
			AND = {
				has_country_modifier = GE_Italian_Grain_Treaties
				NOT = {
					any_country = {
						culture_group = latin
						has_country_flag = GE_Rural_Trade_Deal_With_@Root
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				any_country = {
					culture_group = latin
					has_country_flag = GE_Rural_Trade_Deal_With_@Root
				}
			}
			add_country_modifier = {
				name = GE_Italian_Grain_Treaties
				duration = -1
			}
		}
		else = {
			remove_country_modifier = GE_Italian_Grain_Treaties
		}
	}

	option = {
		name = reform_me_events.235.a

	}
}

country_event = {
	id = reform_me_events.2360
	title = reform_me_events.2360.t
	desc = reform_me_events.2360.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_baltic_sea_trade
		OR = {
			AND = {
				NOT = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 1
					}
				}
				OR = {
					has_country_modifier = GE_baltic_sea_trade_1
					has_country_modifier = GE_baltic_sea_trade_2
					has_country_modifier = GE_baltic_sea_trade_3
					has_country_modifier = GE_baltic_sea_trade_4
				}
			}
			AND = {
				calc_true_if = {
					any_country = {
						any_owned_province = {
							OR = {
								region = baltic_region
								region = scandinavia_region
							}
						}
						OR = {
							has_country_flag = GE_Trade_Deal_With_@Root
							has_country_flag = GE_Trade_Deal_From_@Root
						}
					}
					amount = 1
				}
				NOT = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 2
					}
				}
				NOT = { has_country_modifier = GE_baltic_sea_trade_1 }
			}
			AND = {
				calc_true_if = {
					any_country = {
						any_owned_province = {
							OR = {
								region = baltic_region
								region = scandinavia_region
							}
						}
						OR = {
							has_country_flag = GE_Trade_Deal_With_@Root
							has_country_flag = GE_Trade_Deal_From_@Root
						}
					}
					amount = 2
				}
				NOT = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 3
					}
				}
				NOT = { has_country_modifier = GE_baltic_sea_trade_2 }
			}
			AND = {
				calc_true_if = {
					any_country = {
						any_owned_province = {
							OR = {
								region = baltic_region
								region = scandinavia_region
							}
						}
						OR = {
							has_country_flag = GE_Trade_Deal_With_@Root
							has_country_flag = GE_Trade_Deal_From_@Root
						}
					}
					amount = 3
				}
				NOT = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 4
					}
				}
				NOT = { has_country_modifier = GE_baltic_sea_trade_3 }
			}
			AND = {
				calc_true_if = {
					any_country = {
						any_owned_province = {
							OR = {
								region = baltic_region
								region = scandinavia_region
							}
						}
						OR = {
							has_country_flag = GE_Trade_Deal_With_@Root
							has_country_flag = GE_Trade_Deal_From_@Root
						}
					}
					amount = 4
				}
				NOT = { has_country_modifier = GE_baltic_sea_trade_4 }
			}
		}
	}

	mean_time_to_happen = {
		days = 30
	}

	immediate = {
		if = {
			limit = {
				AND = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 1
					}
					NOT = {
						calc_true_if = {
							any_country = {
								any_owned_province = {
									OR = {
										region = baltic_region
										region = scandinavia_region
									}
								}
								OR = {
									has_country_flag = GE_Trade_Deal_With_@Root
									has_country_flag = GE_Trade_Deal_From_@Root
								}
							}
							amount = 2
						}
					}
					NOT = { has_country_modifier = GE_baltic_sea_trade_1 }
				}
			}
			add_country_modifier = {
				name = GE_baltic_sea_trade_1
				duration = -1
			}
			remove_country_modifier = GE_baltic_sea_trade_2
			remove_country_modifier = GE_baltic_sea_trade_3
			remove_country_modifier = GE_baltic_sea_trade_4
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 2
					}
					NOT = {
						calc_true_if = {
							any_country = {
								any_owned_province = {
									OR = {
										region = baltic_region
										region = scandinavia_region
									}
								}
								OR = {
									has_country_flag = GE_Trade_Deal_With_@Root
									has_country_flag = GE_Trade_Deal_From_@Root
								}
							}
							amount = 3
						}
					}
					NOT = { has_country_modifier = GE_baltic_sea_trade_2 }
				}
			}
			add_country_modifier = {
				name = GE_baltic_sea_trade_2
				duration = -1
			}
			remove_country_modifier = GE_baltic_sea_trade_1
			remove_country_modifier = GE_baltic_sea_trade_3
			remove_country_modifier = GE_baltic_sea_trade_4
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 3
					}
					NOT = {
						calc_true_if = {
							any_country = {
								any_owned_province = {
									OR = {
										region = baltic_region
										region = scandinavia_region
									}
								}
								OR = {
									has_country_flag = GE_Trade_Deal_With_@Root
									has_country_flag = GE_Trade_Deal_From_@Root
								}
							}
							amount = 4
						}
					}
					NOT = { has_country_modifier = GE_baltic_sea_trade_3 }
				}
			}
			add_country_modifier = {
				name = GE_baltic_sea_trade_3
				duration = -1
			}
			remove_country_modifier = GE_baltic_sea_trade_1
			remove_country_modifier = GE_baltic_sea_trade_2
			remove_country_modifier = GE_baltic_sea_trade_4
		}
		else_if = {
			limit = {
				AND = {
					calc_true_if = {
						any_country = {
							any_owned_province = {
								OR = {
									region = baltic_region
									region = scandinavia_region
								}
							}
							OR = {
								has_country_flag = GE_Trade_Deal_With_@Root
								has_country_flag = GE_Trade_Deal_From_@Root
							}
						}
						amount = 4
					}
					NOT = { has_country_modifier = GE_baltic_sea_trade_4 }
				}
			}
			add_country_modifier = {
				name = GE_baltic_sea_trade_4
				duration = -1
			}
			remove_country_modifier = GE_baltic_sea_trade_1
			remove_country_modifier = GE_baltic_sea_trade_2
			remove_country_modifier = GE_baltic_sea_trade_3
		}
	}

	option = {
		name = reform_me_events.2360.a

	}
}

country_event = {
	id = reform_me_events.238
	title = reform_me_events.238.t
	desc = reform_me_events.238.d
	picture = WESTERNISATION_eventPicture
	hidden = yes


	trigger = {
		has_government_attribute = enables_foreign_students
		OR = {
			AND = {
				NOT = {
					num_accepted_cultures = 1
				}
				OR = {
					has_country_modifier = GE_Foreign_Students_1
					has_country_modifier = GE_Foreign_Students_2
					has_country_modifier = GE_Foreign_Students_3
					has_country_modifier = GE_Foreign_Students_4
					has_country_modifier = GE_Foreign_Students_5
				}
			}
			AND = {
				num_accepted_cultures = 1
				NOT = {
					num_accepted_cultures = 2
				}
				NOT = { has_country_modifier = GE_Foreign_Students_1 }
			}
			AND = {
				num_accepted_cultures = 2
				NOT = {
					num_accepted_cultures = 3
				}
				NOT = { has_country_modifier = GE_Foreign_Students_2 }
			}
			AND = {
				num_accepted_cultures = 3
				NOT = {
					num_accepted_cultures = 4
				}
				NOT = { has_country_modifier = GE_Foreign_Students_3 }
			}
			AND = {
				num_accepted_cultures = 4
				NOT = {
					num_accepted_cultures = 5
				}
				NOT = { has_country_modifier = GE_Foreign_Students_4 }
			}
			AND = {
				num_accepted_cultures = 5
				NOT = { has_country_modifier = GE_Foreign_Students_5 }
			}
		}
	}

	is_triggered_only = yes

	immediate = {
		if = {
			limit = {
				NOT = {
					num_accepted_cultures = 1
				}
			}
			remove_country_modifier = GE_Foreign_Students_1
			remove_country_modifier = GE_Foreign_Students_2
			remove_country_modifier = GE_Foreign_Students_3
			remove_country_modifier = GE_Foreign_Students_4
			remove_country_modifier = GE_Foreign_Students_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 1
					NOT = {
						num_accepted_cultures = 2
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Students_1
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Foreign_Students_2
			remove_country_modifier = GE_Foreign_Students_3
			remove_country_modifier = GE_Foreign_Students_4
			remove_country_modifier = GE_Foreign_Students_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 2
					NOT = {
						num_accepted_cultures = 3
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Students_2
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Foreign_Students_1
			remove_country_modifier = GE_Foreign_Students_3
			remove_country_modifier = GE_Foreign_Students_4
			remove_country_modifier = GE_Foreign_Students_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 3
					NOT = {
						num_accepted_cultures = 4
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Students_3
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Foreign_Students_1
			remove_country_modifier = GE_Foreign_Students_2
			remove_country_modifier = GE_Foreign_Students_4
			remove_country_modifier = GE_Foreign_Students_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 4
					NOT = {
						num_accepted_cultures = 5
					}
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Students_4
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Foreign_Students_1
			remove_country_modifier = GE_Foreign_Students_2
			remove_country_modifier = GE_Foreign_Students_3
			remove_country_modifier = GE_Foreign_Students_5
		}
		else_if = {
			limit = {
				AND = {
					num_accepted_cultures = 5
				}
			}
			add_country_modifier = {
				name = GE_Foreign_Students_5
				duration = -1
				hidden = yes
			}
			remove_country_modifier = GE_Foreign_Students_1
			remove_country_modifier = GE_Foreign_Students_2
			remove_country_modifier = GE_Foreign_Students_3
			remove_country_modifier = GE_Foreign_Students_4
		}
	}

	option = {
		name = reform_me_events.238.a

	}
}

country_event = {
	id = reform_me_events.240
	title = reform_me_events.240.t
	desc = reform_me_events.240.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	is_triggered_only = yes

	trigger = {
		has_government_attribute = enables_disputed_succession
	}

	immediate = {
		random_owned_province = {
			spawn_rebels = {
				type = pretender_rebels
				size = 3
			}
		}
		if = {
			limit = {
				total_development = 500
			}
			random_owned_province = {
				spawn_rebels = {
					type = pretender_rebels
					size = 3
				}
			}
		}
	}

	option = {
		name = reform_me_events.239.a

	}
}

country_event = {
	id = reform_me_events.250
	title = reform_me_events.250.t
	desc = reform_me_events.250.d
	picture = WESTERNISATION_eventPicture
	hidden = yes

	is_triggered_only = yes

	trigger = {
		OR = {
			has_government_mechanic = italian_dinasties_mechanic
			has_government_mechanic = sicilian_kingdom_mechanic
		}
	}

	immediate = {
		hidden_effect = {
			GE_calculate_dinastic_power = yes
		}
	}

	option = {
		name = reform_me_events.250.a

		ai_chance = { factor = 100 }
	}
}