# La Plata's quest for independence
country_event = {

	id = 1032
	
	trigger = {
		NOT = { exists = LAP }
		NOT = { has_country_flag = argentine_nationalism }
		LAP = {
			NOT = {
				OR = {
					is_core = 777		# Parana
					is_core = 778		# Rio de la Plata
					is_core = 779		# Serranos
					is_core = 780		# Tehuelmapu
					is_core = 785		# Pehuenmapu
					is_core = 786		# Salinas Grande
					is_core = 788		# Cuyo
					is_core = 789		# Pampas
					is_core = 790		# Chaco Austral
					is_core = 791		# Catamarca
				}
			}
		}		
		OR = {
			owns = 778		# Rio de la Plata
			owns = 779		# Serranos
			owns = 786		# Salinas Grande
			owns = 788		# Pampas
		}
		year = 1750
	}
	
	mean_time_to_happen = {
		months = 480

		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = 0 }
		}
		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = { centralization_decentralization = -4 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 1
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 5
		}
		modifier = {
			factor = 0.9
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.9
			NOT = { stability = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = { stability = -2 }
		}
		modifier = {
			factor = 1.1
			stability = 1
		}
		modifier = {
			factor = 1.1
			stability = 2
		}
		modifier = {
			factor = 1.1
			stability = 3
		}
		modifier = {
			factor = 0.9
			year = 1760
		}
		modifier = {
			factor = 0.8
			year = 1780
		}
	}
	
	title = "EVTNAME1032"
	desc = "EVTDESC1032"
	
	option = {
		name = "EVTOPTA1032"
		set_country_flag = argentine_nationalism
		LAP = {
			add_core = 777		# Parana
			add_core = 778		# Rio de la Plata
			add_core = 779		# Serranos
			add_core = 780		# Tehuelmapu
			add_core = 785		# Pehuenmapu
			add_core = 786		# Salinas Grande
			add_core = 788		# Cuyo
			add_core = 789		# Pampas
			add_core = 790		# Chaco Austral
			add_core = 791		# Catamarca
		}
		colonists = -1
		random_owned = {
			limit = { is_colony = yes }
			create_revolt = 1
		}
	}
}


# Colonial assembly
province_event = {

	id = 1037
	
	trigger = {
		is_colony = yes
		owner = {
			has_country_flag = argentine_nationalism
			NOT = { stability = 0 }
			NOT = { advisor = colonial_governor }
		}
	}
	
	mean_time_to_happen = {
		months = 60

		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -1 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -2 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { advisor = statesman } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { ADM = 4 } }
		}
		modifier = {
			factor = 0.9
			owner = { NOT = { DIP = 4 } }
		}
		modifier = {
			factor = 1.1
			owner = { ADM = 8 }
		}
		modifier = {
			factor = 1.1
			owner = { DIP = 8 }
		}
		modifier = {
			factor = 1.1
			owner = { advisor = statesman }
		}
	}
	
	title = "EVTNAME1023"
	desc = "EVTDESC1023"
	
	option = {
		name = "EVTOPTA1023"		# Attempt to find a diplomatic solution
		owner = {
			clr_country_flag = argentine_nationalism
			add_country_modifier = {
				name = "diplomatic_negotiation"
				duration = 300
			}
		}
	}
		
	option = {
		name = "EVTOPTB1023"		# The days of diplomacy are over
		owner = { stability = -1 }
		add_province_modifier = {
			name = "colonial_tensions"
			duration = 300
		}
	}
}