namespace = dutch_republic

########################################
# Dutch Republic Events
#
# written by Rufus Tronde
########################################

########################################
# When Orangists are in power
########################################

# Absolute Power
country_event = {
	id = dutch_republic.1
	title = "dutch_republic.1.t"
	desc = "dutch_republic.1.d"
	picture = GOOD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		OR = {
			current_age = age_of_absolutism
			current_age = age_of_revolutions
		}
		has_government_attribute = has_dutch_election
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
		any_neighbor_country = {
			government = monarchy
			absolutism = 20
			absolutism = root
			NOT = {
				has_opinion_modifier = {
					who = ROOT
					modifier = embraced_absolutism
				}
			}
			NOT = {
				has_opinion_modifier = {
					who = ROOT
					modifier = rejected_absolutism
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# Approve of absolutism
	option = {
		name = "dutch_republic.1.a"
		change_statists_vs_orangists = 0.25
		add_absolutism = 2
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		every_neighbor_country = {
			limit = {
				government = monarchy
			}
			add_opinion = {
				who = ROOT
				modifier = embraced_absolutism
			}
		}
		ai_chance = {
			factor = 3
		}
	}

	# Reject absolutism
	option = {
		name = "dutch_republic.1.b"
		change_statists_vs_orangists = -0.25
		add_absolutism = -2
		add_legitimacy = 20
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		every_neighbor_country = {
			limit = {
				government = monarchy
			}
			add_opinion = {
				who = ROOT
				modifier = rejected_absolutism
			}
		}
		ai_chance = {
			factor = 1
			modifier = {
				factor = 6
				NOT = { legitimacy = 50 }
			}
		}
	}
}

# Political Maxims of the Republc
country_event = {
	id = dutch_republic.2
	title = "dutch_republic.2.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.2.da
	}
	
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.2.db
	}
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
		OR = {
			advisor = statesman
			advisor = diplomat
			advisor = trader
			advisor = colonial_governor
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# Fire the author
	option = {
		name = "dutch_republic.2.a"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		remove_advisor = statesman
		remove_advisor = diplomat
		remove_advisor = trader
		remove_advisor = colonial_governor
	}

	# Give him credit for his work
	option = {
		name = "dutch_republic.2.b"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		add_dip_power = -50
	}
}

# Sermons for Princes
country_event = {
	id = dutch_republic.3
	title = "dutch_republic.3.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.3.da
	}
	
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.3.db
	}
	picture = RELIGIOUS_TURMOIL_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
		OR = {
			religion = protestant
			religion = reformed
		}
		NOT = { religious_unity = 1.0 }
	}

	mean_time_to_happen = {
		days = 1
	}

	# Strengthen pulpit propaganda
	option = {
		name = "dutch_republic.3.a"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		if = {
			limit = { has_government_attribute = has_dutch_election }
			add_country_modifier = {
				name = sermons_for_princes
				duration = 1825
			}
		}
		else = {
			add_country_modifier = {
				name = sermons_for_princes_monarchist
				duration = 1825
			}
		}
	}

	# Tone down pulpit propaganda
	option = {
		name = "dutch_republic.3.b"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		add_country_modifier = {
			name = no_sermons_for_princes
			duration = 1825
		}
	}
}

# The Republic and Free Trade
country_event = {
	id = dutch_republic.4
	title = "dutch_republic.4.t"
	desc = "dutch_republic.4.d"
	picture = ACCUSATION_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	# Tell traders to comply with the ruler
	option = {
		name = "dutch_republic.4.a"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		add_country_modifier = {
			name = angered_traders
			duration = 1825
		}
	}

	# Concede some of their points and reform accordingly
	option = {
		name = "dutch_republic.4.b"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		add_adm_power = -25
		add_dip_power = -25
	}
}

# The King in Orange
country_event = {
	id = dutch_republic.5
	title = "dutch_republic.5.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.5.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.5.db
	}

	picture = RELIGION_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_country_flag = supported_orangists
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	# Make sure people know who saved them
	option = {
		name = "dutch_republic.5.a"
		clr_country_flag = supported_orangists
		add_adm_power = 25
		add_prestige = 10
		add_republican_tradition = -5
		add_legitimacy = -10
	}

	# Retain modesty
	option = {
		name = "dutch_republic.5.b"
		clr_country_flag = supported_orangists
		add_papal_influence = 10
		add_prestige = -5
	}
}

# Nobles Look to Other Houses
country_event = {
	id = dutch_republic.6
	title = "dutch_republic.6.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.6.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.6.db
	}
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_country_flag = supported_statists
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	# Let them leave
	option = {
		name = "dutch_republic.6.a"
		clr_country_flag = supported_statists
		add_army_tradition = -10
	}

	# Try to appease them
	option = {
		name = "dutch_republic.6.b"
		clr_country_flag = supported_statists
		add_mil_power = -50
	}
}

# True Freedom
country_event = {
	id = dutch_republic.7
	title = "dutch_republic.7.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.7.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.7.db
	}
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_country_flag = supported_statists
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	# Perhaps one day...
	option = {
		name = "dutch_republic.7.a"
		clr_country_flag = supported_statists
		change_statists_vs_orangists = -0.1
		add_republican_tradition = 5
		add_legitimacy = 10
	}
}

# No Taxes for Tyrants
country_event = {
	id = dutch_republic.8
	title = "dutch_republic.8.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.8.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.8.db
	}
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_country_flag = supported_orangists
		has_states_general_mechanic = yes
		is_orangists_in_power = yes
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.8.a"
		clr_country_flag = supported_orangists
		add_country_modifier = {
			name = no_taxes_for_tyrants
			duration = 1825
		}
	}
}

# Sic Semper Tyrannis
country_event = {
	id = dutch_republic.9
	title = "dutch_republic.9.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.9.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.9.db
	}
	picture = ASSASSINATION_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		statists_vs_orangists = 0.9
		advisor = spymaster
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	# For the Republican cause...
	option = {
		name = "dutch_republic.9.a"
		ai_chance = { factor = 20 }
		change_statists_vs_orangists = -0.75
		kill_ruler = yes
		add_republican_tradition = -10
		add_legitimacy = -20
	}

	# High treason must be punished
	option = {
		name = "dutch_republic.9.b"
		ai_chance = { factor = 80 }
		custom_tooltip = "dutch_republic.9.b.tt"
		kill_advisor = spymaster
		add_republican_tradition = 3
		add_legitimacy = 5
	}
}

# Republican Ideals Betrayed
country_event = {
	id = dutch_republic.10
	title = "dutch_republic.10.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.10.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.10.db
	}
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		statists_vs_orangists = 0.9
		is_eligible_for_statists_monarchist_events = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.10.a"
		add_republican_tradition = -5
		add_legitimacy = -10
	}
}

########################################
# When Statists are in power
########################################

# Suggest Act of Seclusion
country_event = {
	id = dutch_republic.11
	title = "dutch_republic.11.t"
	desc = "dutch_republic.11.d"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		had_recent_war = 3
		has_truce = yes
		any_known_country = {
			truce_with = ROOT
			has_government_attribute = has_dutch_election
			is_statists_in_power = yes
			NOT = { has_country_flag = accepted_act_of_seclusion }
			NOT = { num_of_cities = root }
			ROOT = {
				army_strength = {
					who = prev
					value = 1.25
				}
			}
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.11.a"
		random_known_country = {
			limit = {
				truce_with = ROOT
				has_government_attribute = has_dutch_election
				is_statists_in_power = yes
				NOT = { has_country_flag = accepted_act_of_seclusion }
				NOT = { num_of_cities = root }
				ROOT = {
					army_strength = {
						who = prev
						value = 1.25
					}
				}
			}
			country_event = {
				id = dutch_republic.12
				days = 7
				tooltip = "dutch_republic.11.a.tt"
			}
		}
	}

	option = {
		name = "dutch_republic.11.b"
		add_prestige = 5
	}
}

# Act of Seclusion
country_event = {
	id = dutch_republic.12
	title = "dutch_republic.12.t"
	desc = "dutch_republic.12.d"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes

	option = {
		name = "dutch_republic.12.a"
		change_statists_vs_orangists = -0.75
		ai_chance = { 
			factor = 75 
			modifier = {
				factor = 0.1
				NOT = { stability = 1 }
			}
		}
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		add_stability = -1
		if = {
			limit = { has_government_attribute = has_dutch_election }
			add_country_modifier = {
				name = act_of_seclusion
				duration = 7300
			}
		}
		else = {
			add_country_modifier = {
				name = act_of_seclusion_monarchists
				duration = 7300
			}
		}
		set_country_flag = accepted_act_of_seclusion
	}

	option = {
		name = "dutch_republic.12.b"
		ai_chance = { factor = 25 }
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		add_prestige = 10
	}
}

# Unbreakable Bonds
country_event = {
	id = dutch_republic.13
	title = "dutch_republic.13.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.13.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.13.db
	}
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		num_of_royal_marriages = 1
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.13.a"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		every_known_country = {
			limit = {
				marriage_with = ROOT
			}
			add_opinion = {
				who = ROOT
				modifier = uncertain_marriage_ties
			}
		}
	}

	option = {
		name = "dutch_republic.13.b"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		every_known_country = {
			limit = {
				marriage_with = ROOT
			}
			add_opinion = {
				who = ROOT
				modifier = ensured_stable_rule
			}
		}
	}
}

# Orangist Ties in the Army
country_event = {
	id = dutch_republic.14
	title = "dutch_republic.14.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.14.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.14.db
	}
	picture = CONQUEST_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		OR = {
			num_of_generals = 1
			num_of_conquistadors = 1
		}
		is_monarch_leader = no
		NOT = { num_of_admirals = 1 }
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.14.a"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		kill_leader = {
			type = random
		}
		add_mil_power = 50
	}

	option = {
		name = "dutch_republic.14.b"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		create_advisor = commandant
	}
}

# Nobles Look to the House of Orange
country_event = {
	id = dutch_republic.15
	title = "dutch_republic.15.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.15.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.15.db
	}
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.15.a"
		change_statists_vs_orangists = -0.25
		set_country_flag = supported_statists
		clr_country_flag = supported_orangists
		random_owned_province = {
			spawn_rebels = {
				type = noble_rebels
				size = 1
			}
		}
	}

	option = {
		name = "dutch_republic.15.b"
		change_statists_vs_orangists = 0.25
		set_country_flag = supported_orangists
		clr_country_flag = supported_statists
		add_country_modifier = {
			name = aristocracy_modifier
			duration = 1825
		}
	}
}

# Successes of the Republic
country_event = {
	id = dutch_republic.16
	title = "dutch_republic.16.t"
	desc = "dutch_republic.16.d"
	picture = FEAST_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		has_country_flag = supported_statists
	}

	mean_time_to_happen = {
		days = 1
	}

	# Let it go
	option = {
		name = "dutch_republic.16.a"
		add_prestige = 20
		add_adm_power = -25
		add_dip_power = -25
		clr_country_flag = supported_statists
	}

	# Let it goooo
	option = {
		name = "dutch_republic.16.b"
		add_republican_tradition = 5
		add_legitimacy = 10
		add_adm_power = -50
		add_dip_power = -50
		clr_country_flag = supported_statists
	}
}

# A Country Without a King
country_event = {
	id = dutch_republic.17
	title = "dutch_republic.17.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.17.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.17.db
	}
	picture = BAD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		has_country_flag = supported_orangists
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.17.a"
		add_prestige = -5
		clr_country_flag = supported_orangists
	}

	option = {
		name = "dutch_republic.17.b"
		add_adm_power = -10
		add_dip_power = -10
		add_mil_power = -10
		clr_country_flag = supported_orangists
	}
}

# The Orange Road to Glory
country_event = {
	id = dutch_republic.18
	title = "dutch_republic.18.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.18.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.18.db
	}
	picture = CONQUEST_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		has_country_flag = supported_orangists
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.18.a"
		add_army_tradition = 10
		change_statists_vs_orangists = 0.1
		clr_country_flag = supported_orangists
	}

	option = {
		name = "dutch_republic.18.b"
		add_navy_tradition = 10
		change_statists_vs_orangists = 0.1
		clr_country_flag = supported_orangists
	}
}

# Generals Doubt the Administration
country_event = {
	id = dutch_republic.19
	title = "dutch_republic.19.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.19.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.19.db
	}
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_statists_in_power = yes
		has_country_flag = supported_statists
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "dutch_republic.19.a"
		if = {
			limit = { has_government_attribute = has_dutch_election }
			add_country_modifier = {
				name = distrust_among_nobles
				duration = 1825
			}
		}
		else = {
			add_country_modifier = {
				name = distrust_among_nobles_monarchists
				duration = 1825
			}
		}
		clr_country_flag = supported_orangists
	}
}

# The Coup
country_event = {
	id = dutch_republic.20
	title = "dutch_republic.20.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.20.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.20.db
	}
	
	picture = ASSASSINATION_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		if = {
			limit = {
				has_country_flag = ned_buff_statists_candidates_flag
			}
			is_statists_in_power = no
		}
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		NOT = { statists_vs_orangists = 0.1 }
		OR = {
			advisor = army_organiser
			advisor = commandant
			advisor = quartermaster
			advisor = grand_captain
			advisor = recruitmaster
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# For the House of Orange!
	option = {
		trigger = { has_government_attribute = has_dutch_election }
		name = "dutch_republic.20.a"
		ai_chance = { factor = 20 }
		change_statists_vs_orangists = 1.0
		kill_ruler = yes
		add_republican_tradition = -15
		add_legitimacy = -30
	}

	# For the Republic!
	option = {
		trigger = { has_government_attribute = has_dutch_election }
		name = "dutch_republic.20.b"
		ai_chance = { factor = 80 }
		if = {
			limit = { advisor = army_organiser }
			kill_advisor = army_organiser
		}
		if = {
			limit = { advisor = commandant }
			kill_advisor = commandant
		}
		if = {
			limit = { advisor = quartermaster }
			kill_advisor = quartermaster
		}
		if = {
			limit = { advisor = grand_captain }
			kill_advisor = grand_captain
		}
		if = {
			limit = { advisor = recruitmaster }
			kill_advisor = recruitmaster
		}
		capital_scope = {
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
		}
		add_republican_tradition = 5
		add_legitimacy = 10
	}

	# For the Kingdom!
	option = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		name = "dutch_republic.20.c"
		ai_chance = { factor = 20 }
		change_statists_vs_orangists = 1.0
		kill_ruler = yes
		add_republican_tradition = -15
		add_legitimacy = -30
	}

	# For the Union!
	option = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		name = "dutch_republic.20.d"
		ai_chance = { factor = 80 }
		if = {
			limit = { advisor = army_organiser }
			kill_advisor = army_organiser
		}
		if = {
			limit = { advisor = commandant }
			kill_advisor = commandant
		}
		if = {
			limit = { advisor = quartermaster }
			kill_advisor = quartermaster
		}
		if = {
			limit = { advisor = grand_captain }
			kill_advisor = grand_captain
		}
		if = {
			limit = { advisor = recruitmaster }
			kill_advisor = recruitmaster
		}
		capital_scope = {
			spawn_rebels = {
				type = noble_rebels
				size = 2
			}
		}
		add_republican_tradition = 5
		add_legitimacy = 10
	}
}

# No Consensus
country_event = {
	id = dutch_republic.21
	title = "dutch_republic.21.t"
	desc = "dutch_republic.21.d"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		NOT = { statists_vs_orangists = 0.1 }
	}

	mean_time_to_happen = {
		days = 1
	}

	# Is the republic descending into anarchy?
	option = {
		name = "dutch_republic.21.a"
		add_adm_power = -25
		add_dip_power = -25
		add_mil_power = -25
	}
}

# General Demands Control
country_event = {
	id = dutch_republic.22
	title = "dutch_republic.22.t"
	desc = "dutch_republic.22.d"
	picture = BATTLE_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_at_war = yes
		OR = {
			num_of_generals = 1
			num_of_conquistadors = 1
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# Comply as necessary to secure victory
	option = {
		name = "dutch_republic.22.a"
		add_country_modifier = {
			name = supported_orangists_in_war
			duration = 3650
			hidden = yes
		}
		change_statists_vs_orangists = 0.25
		add_army_tradition = 10
		add_mil_power = 100
	}

	# We will hold on to our ideals in the face of terror
	option = {
		name = "dutch_republic.22.b"
		change_statists_vs_orangists = -0.1
		add_war_exhaustion = -2.5
		add_republican_tradition = 2
		add_legitimacy = 5
	}
}

# Orangists Rally Nobles To War
country_event = {
	id = dutch_republic.23
	title = "dutch_republic.23.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.23.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.23.db
	}
	picture = BATTLE_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_at_war = yes
		any_rival_country = {
			war_with = ROOT
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# Let them lead us to glory!
	option = {
		trigger = { has_government_attribute = has_dutch_election }
		name = "dutch_republic.23.a"
		add_country_modifier = {
			name = supported_orangists_in_war
			duration = 3650
			hidden = yes
		}
		change_statists_vs_orangists = 0.25
		if = {
			limit = { has_government_attribute = has_dutch_election }
			add_country_modifier = {
				name = orangists_rally_against_rival
				duration = 1825
			}
		}
		else = {
			add_country_modifier = {
				name = monarchists_rally_against_rival
				duration = 1825
			}
		}
	}

	# Let them lead us to glory! (Non dutch)
	option = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		name = "dutch_republic.23.c"
		add_country_modifier = {
			name = supported_orangists_in_war
			duration = 3650
			hidden = yes
		}
		change_statists_vs_orangists = 0.25
		add_country_modifier = {
			name = orangists_rally_against_rival
			duration = 1825
		}
	}

	# We will hold on to our ideals in the face of terror
	option = {
		name = "dutch_republic.23.b"
		change_statists_vs_orangists = -0.1
		add_war_exhaustion = -2.5
	}
}

# Statists Demand Return to Status Quo
country_event = {
	id = dutch_republic.24
	title = "dutch_republic.24.t"
	desc = {
		trigger = { has_government_attribute = has_dutch_election }
		desc = dutch_republic.24.da
	}
	desc = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		desc = dutch_republic.24.db
	}
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_at_war = no
		has_country_modifier = supported_orangists_in_war
	}

	mean_time_to_happen = {
		days = 1
	}

	# Things must return to how they were
	option = {
		name = "dutch_republic.24.a"
		change_statists_vs_orangists = -0.25
		add_mil_power = -100
	}

	# They faught our war, let them keep their power
	option = {
		name = "dutch_republic.24.b"
		add_republican_tradition = -5
		add_legitimacy = -10
	}
}

# Rebuilding the Republic
country_event = {
	id = dutch_republic.25
	title = "dutch_republic.25.t"
	desc = "dutch_republic.25.d"
	picture = WOUNDED_SOLDIERS_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		is_at_war = no
		war_exhaustion = 7
	}

	mean_time_to_happen = {
		days = 1
	}

	# Let us rebuild these ideals, for the people of [Country].
	option = {
		name = "dutch_republic.25.a"
		change_statists_vs_orangists = -0.25
		add_war_exhaustion = -5
	}

	# The Prince of Orange could lead us to victory in the future.
	option = {
		trigger = { has_government_attribute = has_dutch_election }
		name = "dutch_republic.25.b"
		change_statists_vs_orangists = -0.1
	}

	# The Prince of [Root.GetName] could lead us to victory in the future. (Non dutch)
	option = {
		trigger = { NOT = { has_government_attribute = has_dutch_election } }
		name = "dutch_republic.25.c"
		change_statists_vs_orangists = -0.1
	}
}

# Interest van [Province]
province_event = {
	id = dutch_republic.26
	title = "dutch_republic.26.t"
	desc = "dutch_republic.26.d"
	picture = MERCHANTS_TALKING_eventPicture

	is_mtth_scaled_to_size = 1

	trigger = {
		has_dlc = "Res Publica"
		OR = {
			province_has_center_of_trade_of_level = 1
			has_river_estuary_trigger = yes
		}
		owner = {
			has_states_general_mechanic = yes
			is_eligible_for_statists_monarchist_events = yes
		}		
	}

	mean_time_to_happen = {
		months = 1000
	}

	# Listen to the locals
	option = {
		name = "dutch_republic.26.a"
		owner = {
			change_statists_vs_orangists = -0.15
		}
	}

	# Ignore the locals
	option = {
		name = "dutch_republic.26.b"
		add_province_modifier = {
			name = local_regenten_upset
			duration = 1095
		}
	}
}

# Concerns from our Border
country_event = {
	id = dutch_republic.27
	title = "dutch_republic.27.t"
	desc = "dutch_republic.27.d"
	picture = BORDER_TENSION_eventPicture

	is_triggered_only = yes

	trigger = {
		has_dlc = "Res Publica"
		has_states_general_mechanic = yes
		is_eligible_for_statists_monarchist_events = yes
		any_neighbor_country = {
			NOT = { has_opinion = { who = ROOT value = 0 } }
			ROOT = { is_threat = PREV }
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	# Listen to the locals
	option = {
		name = "dutch_republic.27.a"
		change_statists_vs_orangists = -0.15
	}

	# Ignore the locals
	option = {
		name = "dutch_republic.27.b"
		random_owned_province = {
			limit = {
				any_neighbor_province = {
					owner = {
						NOT = { has_opinion = { who = ROOT value = 0 } }
						ROOT = { is_threat = PREV }
					}
				}
			}
			add_province_modifier = {
				name = local_regenten_upset
				duration = 1095
			}
		}
	}
}

# The Ambitions of [Province]
province_event = {
	id = dutch_republic.28
	title = "dutch_republic.28.t"
	desc = {
		trigger = {
			owner = {
				has_government_attribute = has_dutch_election
			}
		}
		desc = dutch_republic.28.da
	}
	desc = {
		trigger = {
			owner = {
				NOT = { has_government_attribute = has_dutch_election }
			}
		}
		desc = dutch_republic.28.db
	}
	picture = BORDER_TENSION_eventPicture

	is_mtth_scaled_to_size = 1

	trigger = {
		has_dlc = "Res Publica"
		owner = {
			has_states_general_mechanic = yes
			is_eligible_for_statists_monarchist_events = yes
		}
		any_neighbor_province = {
			owner = {
				NOT = { has_opinion = { who = ROOT value = 0 } }
				is_threat = ROOT
			}
		}
	}

	mean_time_to_happen = {
		months = 1000
	}

	# Listen to the locals
	option = {
		name = "dutch_republic.28.a"
		owner = {
			change_statists_vs_orangists = 0.15
		}
	}

	# Ignore the locals
	option = {
		name = "dutch_republic.28.b"
		add_province_modifier = {
			name = local_nobles_upset
			duration = 1095
		}
	}
}

# The Plans of [Province]
province_event = {
	id = dutch_republic.29
	title = "dutch_republic.29.t"
	desc = "dutch_republic.29.d"
	picture = MILITARY_CAMP_eventPicture

	is_mtth_scaled_to_size = 1

	trigger = {
		has_dlc = "Res Publica"
		owner = {
			has_states_general_mechanic = yes
			is_eligible_for_statists_monarchist_events = yes
		}
		any_neighbor_province = {
			owner = {
				NOT = { has_opinion = { who = ROOT value = 0 } }
				is_enemy = ROOT
			}
		}
	}

	mean_time_to_happen = {
		months = 1000
	}

	# Listen to the locals
	option = {
		name = "dutch_republic.29.a"
		owner = {
			change_statists_vs_orangists = 0.15
		}
	}

	# Ignore the locals
	option = {
		name = "dutch_republic.29.b"
		add_province_modifier = {
			name = local_nobles_upset
			duration = 1095
		}
	}
}

# Debate in [Province]
province_event = {
	id = dutch_republic.30
	title = "dutch_republic.30.t"
	desc = {
		trigger = {
			owner = {
				has_government_attribute = has_dutch_election
			}
		}
		desc = dutch_republic.30.da
	}
	desc = {
		trigger = {
			owner = {
				NOT = { has_government_attribute = has_dutch_election }
			}
		}
		desc = dutch_republic.30.db
	}
	picture = DEBATE_REPUBLICAN_eventPicture

	is_mtth_scaled_to_size = 1

	trigger = {
		has_dlc = "Res Publica"
		owner = {
			has_states_general_mechanic = yes
			is_eligible_for_statists_monarchist_events = yes
		}
		OR = {
			AND = {
				NOT = {
					owner = { has_government_attribute = has_dutch_election }
				}
				development = 15
				is_core = owner
			}
			province_id = 96
			province_id = 97
			province_id = 98
			province_id = 99
			province_id = 100
		}
	}

	mean_time_to_happen = {
		months = 1000
	}

	# Send someone to argue in favor of Orangists
	option = {
		trigger = { owner = { has_government_attribute = has_dutch_election } }
		name = "dutch_republic.30.a"
		owner = {
			change_statists_vs_orangists = 0.15
		}
		if = {
			limit = {
				owner = {
					is_statists_in_power = no
				}
			}
			add_province_modifier = {
				name = local_regenten_upset
				duration = 1095
			}
		}
	}

	# Send someone to argue in favor of Monarchists
	option = {
		trigger = {
			NOT = {
				owner = { has_government_attribute = has_dutch_election }
			}
		}
		name = "dutch_republic.30.c"
		owner = {
			change_statists_vs_orangists = 0.15
		}
		if = {
			limit = {
				owner = {
					is_statists_in_power = no
				}
			}
			add_province_modifier = {
				name = local_regenten_upset
				duration = 1095
			}
		}
	}

	# Send someone to argue in favor of Statists
	option = {
		name = "dutch_republic.30.b"
		owner = {
			change_statists_vs_orangists = -0.15
		}
		if = {
			limit = {
				owner = {
					is_orangists_in_power = no
				}
			}
			add_province_modifier = {
				name = local_nobles_upset
				duration = 1095
			}
		}
	}
}

########################################
# When States General Falls under PU
########################################
# Hidden Bounce Event
country_event = {
	id = dutch_republic.31
	title = dutch_republic.31.t
	desc = dutch_republic_31.d
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	hidden = yes

	immediate = {
		FROM = {
			country_event = { id = dutch_republic.32 }
		}
	}

	option = {
		name = EXCELLENT
	}
}

# Real Event
country_event = {
	id = dutch_republic.32
	title = dutch_republic.32.t
	desc = dutch_republic.32.d
	picture = BAD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	trigger = {
		is_lesser_in_union = yes
		has_government_attribute = states_general_mechanic
	}

	option = {
		name = "dutch_republic.32.a"
		hidden_effect = {
			change_statists_vs_monarchists = 2
		}
		custom_tooltip = STATES_GENERAL_PU_ELECTION_DISABLED
	}
}

########################################
# When States General is abolished
########################################
country_event = {
	id = dutch_republic.33
	title = dutch_republic.33.t
	desc = {
		trigger = { 
			exiled_same_dynasty_as_current = "states_general_abolished_@ROOT"
		}
		desc = dutch_republic.33.d1
	}
	desc = {
		trigger = { 
			NOT = { exiled_same_dynasty_as_current = "states_general_abolished_@ROOT" }
		}
		desc = dutch_republic.33.d2
	}
	picture = BAD_WITH_MONARCH_eventPicture

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			if = {
				limit = { NOT = { tag = NED }}
				define_exiled_ruler = {
					dynasty = "historic_dynasty"
					exiled_as = "states_general_abolished_@ROOT"
				}
			}
			else = {
				define_exiled_ruler = {
					dynasty = "00000000"
					exiled_as = "states_general_abolished_@ROOT"
				}
			}
		}
	}

	after = {
		clear_exiled_ruler = "states_general_abolished_@ROOT"
	}

	option = {
		name = "dutch_republic.33.a"
		trigger = {
			exiled_same_dynasty_as_current = "states_general_abolished_@ROOT"
		}
	}

	option = {
		name = "dutch_republic.33.b"
		trigger = {
			NOT = { exiled_same_dynasty_as_current = "states_general_abolished_@ROOT" }
		}
		set_ruler = "states_general_abolished_@ROOT"
	}
}