# United States of Central America

#########################################################################
#  Dissolution of United Central America
#########################################################################
event = { 
	id = 15200
	random = no
	country = UCA
	
	trigger = {
		NOT = {
			prestige = 10
		}
	}
	
	name = "EVT_15200_NAME"
	desc = "EVT_15200_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1837 } 
	offset = 10
	deathdate = { day = 1 month = january year = 1840 }
	
	action_a = {
		name = "ARGH"
		command = { type = pop_consciousness which = 100 value = 10  }
		command = { type = pop_militancy which = 100 value = 10  }
		command = { type = reliability which = infantry value = -5 }
		command = { type = reliability which = cavalry value = -5 }
		command = { type = reliability which = dragoon value = -5 }
		command = { type = reliability which = irregular value = -5 }
	}
}

#########################################################################
#  The US of Central America Survives
#########################################################################
event = { 
	id = 15201
	random = no
	country = UCA

	picture = UCA
	
	trigger = {
		NOT = {
			event = 15202
			event = 15203
		}
		event = 15200
		NOT = { exists = HON }
		NOT = { exists = ELS }
		NOT = { exists = GUA }
		NOT = { exists = NIC }
		NOT = { exists = COS }
	}
	
	name = "EVT_15201_NAME"
	desc = "EVT_15201_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1850 }
	offset = 31
	deathdate = { day = 1 month = january year = 1852 }
	
	action_a = {
		name = "ACTIONNAME15201A" # Viva El Presidente
		command = { type = pop_consciousness which = 100 value = -3  }
		command = { type = pop_militancy which = 100 value = -3  }
	}
}

#########################################################################
#  The Death of the Central American Union (human)
#########################################################################
event = { 
	id = 15202
	random = no
	country = UCA
	
	trigger = {
		ai = no
		NOT = {
			event = 15201
			exists = GUA
		}
		event = 15200
		OR = {
			AND = {
			exists = HON
			exists = ELS
			}
			AND = {
			exists = HON
			exists = NIC
			}
			AND = {
			exists = HON
			exists = COS
			}
			AND = {
			exists = ELS
			exists = NIC
			}
			AND = {
			exists = ELS
			exists = COS
			}
			AND = {
			exists = NIC
			exists = COS
			}
		}
	}
	
	name = "EVT_15202_NAME"
	desc = "EVT_15202_DESC"
	style = 0
	
	date = { day = 2 month = january year = 1837 }
	offset = 5
	deathdate = { day = 1 month = january year = 1852 }
	
	action_a = {
		name = "ACTIONNAME15202A" # Let us be realistic!
		command = { type = pop_consciousness which = 100 value = -8  }
		command = { type = pop_militancy which = 100 value = -8  }
		command = { type = independence  which = ELS value = 1 }
		command = { type = independence  which = COS value = 1 }
		command = { type = independence  which = NIC value = 1 }
		command = { type = independence  which = HON value = 1 }
		command = { type = secedeprovince  which = HON  value = 1713 } 
		command = { type = secedeprovince  which = HON  value = 1714 } 
		command = { type = secedeprovince  which = HON  value = 1715 } 
		command = { type = secedeprovince  which = HON  value = 1685 } 
		command = { type = secedeprovince  which = NIC  value = 1684 } 
		command = { type = secedeprovince  which = NIC  value = 1716 } 
		command = { type = secedeprovince  which = NIC  value = 1717 } 
		command = { type = secedeprovince  which = NIC  value = 1718 } 
		command = { type = secedeprovince  which = COS  value = 1719 } 
		command = { type = secedeprovince  which = COS  value = 1686 } 
		command = { type = prestige value = 5 }
		command = { type = country which = GUA }
		command = { type = sleepevent which = 15203 }
	}
	action_b = {
		name = "ACTIONNAME15202B" # No the ideal will never die!
		command = { type = pop_consciousness which = 100 value = 3 where = 1713  }
		command = { type = pop_consciousness which = 100 value = 3 where = 1717  }
		command = { type = pop_consciousness which = 100 value = 3 where = 1719  }
		command = { type = pop_consciousness which = 100 value = 3 where = 1712  }
		command = { type = pop_militancy which = 100 value = 3 where = 1713  }
		command = { type = pop_militancy which = 100 value = 3 where = 1717  }
		command = { type = pop_militancy which = 100 value = 3 where = 1719  }
		command = { type = pop_militancy which = 100 value = 3 where = 1712  }
		command = { type = prestige value = -100 }
		command = { type = sleepevent which = 15203 }
	}
}	

#########################################################################
#  The Death of the Central American Union (AI)
#########################################################################
event = { 
	id = 15203
	random = no
	country = UCA
	
	trigger = {
		ai = yes
		NOT = {
			event = 15201
			exists = GUA
		}
		event = 15200
		OR = {
			exists = HON
			exists = NIC
			exists = COS
			exists = ELS
			}
	}
	
	name = "EVT_15202_NAME"
	desc = "EVT_15202_DESC"
	style = 0
	
	date = { day = 2 month = january year = 1837 }
	offset = 5
	deathdate = { day = 1 month = january year = 1852 }
	
	action_a = {
		name = "ACTIONNAME15202A" # Let us be realistic!
		command = { type = pop_consciousness which = 100 value = -8  }
		command = { type = pop_militancy which = 100 value = -8  }
		command = { type = independence  which = ELS value = 1 }
		command = { type = independence  which = COS value = 1 }
		command = { type = independence  which = NIC value = 1 }
		command = { type = independence  which = HON value = 1 }
		command = { type = secedeprovince  which = HON  value = 1713 } 
		command = { type = secedeprovince  which = HON  value = 1714 } 
		command = { type = secedeprovince  which = HON  value = 1715 } 
		command = { type = secedeprovince  which = HON  value = 1685 } 
		command = { type = secedeprovince  which = NIC  value = 1684 } 
		command = { type = secedeprovince  which = NIC  value = 1716 } 
		command = { type = secedeprovince  which = NIC  value = 1717 } 
		command = { type = secedeprovince  which = NIC  value = 1718 } 
		command = { type = secedeprovince  which = COS  value = 1719 } 
		command = { type = secedeprovince  which = COS  value = 1686 } 
		command = { type = prestige value = 5 }
		command = { type = country which = GUA }
		command = { type = sleepevent which = 15202 }
	}
}	
									