# Peru

#########################################################################
# Friction within the Union  
#########################################################################
event = { 
	id = 16800
	random = no
	country = PEU
	
	name = "EVT_16800_NAME"
	desc = "EVT_16800_DESC"
	style = 0
	
	date = { day = 16 month = february year = 1837 }
	
	action_a = {
		name = "ARGH"
		command = { type = pop_consciousness which = 100 value = 7 where = 2404 }
		command = { type = pop_consciousness which = 100 value = 7 where = 2410 }
		command = { type = pop_consciousness which = 100 value = 7 where = 2411 }
		command = { type = pop_consciousness which = 100 value = 7 where = 2424 }
		command = { type = pop_militancy which = 100 value = 7 where = 2404 }
		command = { type = pop_militancy which = 100 value = 7 where = 2410 }
		command = { type = pop_militancy which = 100 value = 7 where = 2411 }
		command = { type = pop_militancy which = 100 value = 7 where = 2424 }
	}
}

#########################################################################
#  Union Peru-Bolivia dissolves
#########################################################################
event = { 
	id = 16801
	random = no
	country = PEU
	
	trigger = {
		ai = no
		exists = BOL  
		NOT = {
			is_dominion = BOL
			is_satellite = BOL			
			}
		}
	
	name = "EVT_16801_NAME"
	desc = "EVT_16801_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1836 }
	offset = 15
	deathdate = { day = 30 month = december year = 1920 }
	
	action_a = {
		name = "OK"
		ai_chance = 97
		command = { type = pop_consciousness which = 100 value = -7 where = 2404 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2410 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2411 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2424 }
		command = { type = pop_militancy which = 100 value = -7 where = 2404 }
		command = { type = pop_militancy which = 100 value = -7 where = 2410 }
		command = { type = pop_militancy which = 100 value = -7 where = 2411 }
		command = { type = pop_militancy which = 100 value = -7 where = 2424 }
		command = { type = prestige value = -25 }
		command = { type = peace  which = BOL value = 0  }
		command = { type = secedeprovince which = BOL value = 2389 }
		command = { type = secedeprovince which = BOL value = 2402 }
		command = { type = secedeprovince which = BOL value = 2403 }
		command = { type = secedeprovince which = BOL value = 2404 }
		command = { type = secedestate which = BOL value = 2410 when = 0 }
		command = { type = secedestate which = BOL value = 2411 when = 0 }
		command = { type = secedestate which = BOL value = 2421 when = 0 }
		command = { type = relation which = BOL value = 200 }
		command = { type = sleepevent which = 16803 }
	}

	action_b = {
		name = "ACTIONNAME7226B" #Fight!
		ai_chance = 3
		command = { type = pop_militancy which = 100 value = 3 } 
		command = { type = war which = BOL }
		command = { type = sleepevent which = 16803 }
	}
}

#########################################################################
#  Union Peru-Bolivia survives*
#########################################################################
event = { 
	id = 16802
	random = no
	country = PEU
	
	trigger = {
		NOT = { exists = BOL }
	}
	
	name = "EVT_16802_NAME"
	desc = "EVT_16802_DESC"
	style = 0
	
	date = { day = 16 month = february year = 1845 }
	
	action_a = {
		name = "GREAT"
		command = { type = pop_consciousness which = 100 value = -7 where = 2404 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2410 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2411 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2424 }
		command = { type = pop_militancy which = 100 value = -7 where = 2404 }
		command = { type = pop_militancy which = 100 value = -7 where = 2410 }
		command = { type = pop_militancy which = 100 value = -7 where = 2411 }
		command = { type = pop_militancy which = 100 value = -7 where = 2424 }
		command = { type = prestige value = 50 }
	}
}	

#########################################################################
#  Union Peru-Bolivia dissolves
#########################################################################
event = { 
	id = 16803
	random = no
	country = PEU
	
	trigger = {
		ai = yes
		event = 16800 
		}
	
	name = "EVT_16801_NAME"
	desc = "EVT_16801_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1840 }
	offset = 15
	deathdate = { day = 30 month = december year = 1920 }
	
	action_a = {
		name = "OK"
		ai_chance = 85
		command = { type = pop_consciousness which = 100 value = -7 where = 2404 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2410 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2411 }
		command = { type = pop_consciousness which = 100 value = -7 where = 2424 }
		command = { type = pop_militancy which = 100 value = -7 where = 2404 }
		command = { type = pop_militancy which = 100 value = -7 where = 2410 }
		command = { type = pop_militancy which = 100 value = -7 where = 2411 }
		command = { type = pop_militancy which = 100 value = -7 where = 2424 }
		command = { type = prestige value = -25 }
		command = { type = independence which = BOL }
		command = { type = peace  which = BOL value = 0  }
		command = { type = relation which = BOL value = 200 }
		command = { type = sleepevent which = 16801 }
	}

	action_b = {
		name = "ACTIONNAME7226B" #Fight!
		ai_chance = 15
		command = { type = independence which = BOL }
		command = { type = prestige value = -25 }
		command = { type = pop_militancy which = 100 value = 3 } 
		command = { type = war which = BOL }
		command = { type = sleepevent which = 16801 }
	}
}
								