####Conquista del Chaco####

#Argentinian Chaco
country_event = {
	id = 112836
	title = "EVTNAME112836"
	desc = "EVTDESC112836"
	picture = "chaco"
	
	trigger = {
		year = 1862
		owns = 2376
		war = no
		NOT = {
				has_country_flag = Chaco_is_ours
		}
	}

	mean_time_to_happen = { months = 2 }

	fire_only_once = yes

	option = {
		name = "EVTOPTA106000"
		set_country_flag = Chaco_is_ours
			2364 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = ARG }
			2372 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = ARG }
			2377 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = ARG }
			2362 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = ARG }	
	}
}

#Paraguayan Chaco
country_event = {
	id = 112837
	title = "EVTNAME112837"
	desc = "EVTDESC112837"
	picture = "chaco"
	
	trigger = {
		year = 1862
		NOT = {
				has_country_flag = Chaco_is_ours_prg}
		owns = 2339
	}

	mean_time_to_happen = { months = 4 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112837"
		set_country_flag = Chaco_is_ours_prg
			2367 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG  }
			2366 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG  }
			2365 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG  }	
	}
}

#Bolivian Chaco
country_event = {
	id = 1128378
	title = "EVTNAME112837"
	desc = "EVTDESC112837"
	picture = "chaco"
	
	trigger = {
		year = 1862
		NOT = {
				has_country_flag = Chaco_is_ours_prg}
		owns = 2318
	}

	mean_time_to_happen = { months = 4 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112837"
		set_country_flag = Chaco_is_ours_prg
			2338 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG add_core = BOL }	
			2337 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG add_core = BOL }	
	}
}

#Bolivian Chaco1
country_event = {
	id = 4128378
	title = "EVTNAME112837"
	desc = "EVTDESC112837"
	picture = "chaco"
	
	trigger = {
		year = 1857
		NOT = {
				has_country_flag = Chaco_is_ours_prg}
		owns = 2317
	}

	mean_time_to_happen = { months = 4 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112837"
		set_country_flag = Chaco_is_ours_prg
			2318 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = PRG add_core = BOL }	
	}
}
#Fix borders Chaco
country_event = {
	id = 112838
	title = "EVTNAME112838"
	desc = "EVTDESC112838"
	picture = "chaco"
	
	trigger = {
		tag = ARG
		NOT = {
				has_country_flag = chaco_is_organized}
		owns = 2364
		owns = 2367
		owns = 2554
	}

	mean_time_to_happen = { months = 2 }
	fire_only_once = yes

	option = {
		name = "EVTOPTA112838"
		set_country_flag = chaco_is_organized
			2367 = { remove_core = PRG }	
			2366 = { remove_core = PRG }
			2554 = { remove_core = PRG }	
	}
}

####COnquista del desierto####
#Argentinian first part
country_event = {
	id = 112839
	title = "EVTNAME112839"
	desc = "EVTDESC112839"
	picture = "conquistadeldesi"
	
	trigger = {
		year = 1881
		NOT = {
				has_country_flag = the_north_of_patagonia_is_ours}
		owns = 2352
	}

	mean_time_to_happen = { months = 6 }
	option = {
		name = "EVTOPTA112839"
		set_country_flag = the_north_of_patagonia_is_ours
			2355 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }	
			2395 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2393 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2354 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2353 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }	
	}
}

#Argentinian second part
country_event = {
	id = 112840
	title = "EVTNAME112839"
	desc = "EVTDESC112840"
	picture = "conquistadeldesi"
	
	trigger = {
		year = 1882
		NOT = { PTG = { has_country_flag = pat_is_ours } }
		NOT = { CHL = { has_country_flag = yes_claim1 } }
		NOT = {
				has_country_flag = mid_patagonia_is_ours}
		owns = 2393
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112840"
		set_country_flag = mid_patagonia_is_ours
			2391 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2394 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }		
	}
}

#Argentinian last part
country_event = {
	id = 112841
	title = "EVTNAME112839"
	desc = "EVTDESC112841"
	picture = "conquistadeldesi"
	
	trigger = {
		year = 1883
		NOT = { PTG = { has_country_flag = pat_is_ours } }
		NOT = { CHL = { has_country_flag = yes_claim1 } }
		NOT = {
				has_country_flag = the_south_of_patagonia_is_ours}
		owns = 2391
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112841"
		set_country_flag = the_south_of_patagonia_is_ours
			2392 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }	
			2396 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2397 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2398 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }
			2399 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = ARG }	
	}
}
####Ocupación de la Araucanía####

#Punta Arenas
country_event = {
	id = 112842
	title = "EVTNAME112842"
	desc = "EVTDESC112842"
	picture = "araucania"
	
	trigger = {
		owns = 2325
		year = 1843
		NOT = {
				has_country_flag = punta_arenas_is_ours}
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112842"
		set_country_flag = punta_arenas_is_ours
			2334 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 15 add_core = CHL }		
	}
}

####Connect Chile
country_event = {
	id = 112843
	title = "EVTNAME112842"
	desc = "EVTDESC112843"
	picture = "araucania"
	
	fire_only_once = yes
	
	trigger = {
		NOT = { PTG = { has_country_flag = pat_is_ours } }
		owns = 2325
		year = 1870
		NOT = {
				has_country_flag = french_protection}
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112843"
		set_country_flag = middle_chile_is_ours
			2333 = { secede_province = THIS any_pop = { literacy = 0.49 } add_core = CHL }	
	}
}


####Connect Chile
country_event = {
	id = 1128430
	title = "Kingdom of Araucania"
	desc = "Antoine de Tounens was fascinated by the Mapuche culture so decided to create a kingdom that would represent the Mapuche people."
	picture = "araucania"
	
	fire_only_once = yes
	
	trigger = {
		owns = 2324
		year = 1860
	}

	mean_time_to_happen = { months = 2 }
	
	option = {
		name = "If we allow this for long, France might intervene"
		set_country_flag = middle_chile_is_ours
			2329 = { secede_province = THIS }
			2329 = { secede_province = PTG any_pop = { literacy = 0.49 } add_core = CHL add_core = PTG}
	}
}

####South Chile
country_event = {
	id = 112844
	title = "EVTNAME112842"
	desc = "EVTDESC112844"
	picture = "araucania"
	
	fire_only_once = yes
	
	trigger = {
		NOT = { PTG = { has_country_flag = pat_is_ours } }
		owns = 2334
		year = 1883
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112843"
			2335 = { secede_province = THIS any_pop = { literacy = -0.99 } add_core = CHL}
			2400 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 21 add_core = CHL add_core = ARG}		
	}
}

#Fix borders Araucanía
country_event = {
	id = 112845
	title = "EVTNAME112845"
	desc = "EVTDESC112845"
	picture = "araucania"
	
	fire_only_once = yes
	
	trigger = {
		NOT = { PTG = { has_country_flag = pat_is_ours } }
		owns = 2400
		owns = 2335
	}

	mean_time_to_happen = { months = 6 }
	fire_only_once = yes
	option = {
		name = "EVTOPTA112845"
			2400 = { secede_province = ARG remove_core = CHL }	 	
	}
}
country_event = {
	id = 1008090
	title = "Occupation of Patagonia"
	desc = "We deserve to control the land that Argetina also claims because we got here first!"
	
	is_triggered_only = yes
	
	option = {
		name = "YAY"
			2391 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2394 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2392 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2396 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2397 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }
			2398 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2399 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2400 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2335 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2391 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }	
			2391 = { secede_province = THIS any_pop = { literacy = -0.99 } life_rating = 25 }		
	}
}