# Mexico

#########################################################################
#  The USA claims Texas
#########################################################################
event = {
	id = 14800
	random = no
	country = MEX

	# Triggered by USA 14100

	name = "EVT_14800_NAME"
	desc = "EVT_14800_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME14800B" # Protest Violently
		command = { type = relation which = USA value = -100 }
	}

	action_b = {
		name = "ACTIONNAME14800A" # Invade Texas
		command = { type = war which = TEX } # TEX
		command = { type = pop_militancy which = 100 value = 5 where = 514 } # California
		command = { type = trigger which = 14403 } # TEX
	}
}

#########################################################################
#  USA offers to buy Texas (Good Relations)
#########################################################################
event = {
	id = 14801
	random = no
	country = MEX

	# Triggered by USA 14124

	name = "EVT_14124_NAME"
	desc = "EVT_14124_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 1000 }

		command = { type = secedeprovince which = USA value = 1144 }
		command = { type = secedeprovince which = USA value = 1185 }
		command = { type = secedeprovince which = USA value = 1186 }
		command = { type = secedeprovince which = USA value = 1187 }
		command = { type = secedeprovince which = USA value = 1188 }
		command = { type = secedeprovince which = USA value = 1190 }
		command = { type = secedeprovince which = USA value = 1191 }
		command = { type = secedeprovince which = USA value = 2859 }

		command = { type = trigger which = 14125 } # USA
	}
	action_b = {
		name = "DECLINE" # Decline
		command = { type = setflag which = flg_USA_MEX_tension }
	}
}
#########################################################################
#  USA offers to buy Texas (Bad Relations)
#########################################################################
event = {
	id = 14802
	random = no
	country = MEX

	# Triggered by USA 14198

	name = "EVT_14124_NAME"
	desc = "EVT_14124_DESC"
	style = 0

	action_a = {
		name = "DECLINE" # Decline
		command = { type = setflag which = flg_USA_MEX_tension }
	}
	action_b = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 1000 }

		command = { type = secedeprovince which = USA value = 1144 }
		command = { type = secedeprovince which = USA value = 1185 }
		command = { type = secedeprovince which = USA value = 1186 }
		command = { type = secedeprovince which = USA value = 1187 }
		command = { type = secedeprovince which = USA value = 1188 }
		command = { type = secedeprovince which = USA value = 1190 }
		command = { type = secedeprovince which = USA value = 1191 }
		command = { type = secedeprovince which = USA value = 2859 }

		command = { type = trigger which = 14125 } # USA
	}
}

#########################################################################
#  USA offers to buy New Mexico and Arizona (Good Relations)
#########################################################################
event = {
	id = 14803
	random = no
	country = MEX

	# Triggered by USA 14102

	name = "EVT_14803_NAME"
	desc = "EVT_14102_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 1000 }

		command = { type = secedeprovince which = USA value = 540 }
		command = { type = secedeprovince which = USA value = 1165 }
		command = { type = secedeprovince which = USA value = 1166 }

		command = { type = secedeprovince which = USA value = 523 }
		command = { type = secedeprovince which = USA value = 531 }
		command = { type = secedeprovince which = USA value = 532 }
		command = { type = secedeprovince which = USA value = 1153 }

		command = { type = trigger which = 14126 } # USA
	}
	action_b = {
		name = "DECLINE" # Decline
		command = { type = setflag which = flg_USA_MEX_tension }
	}
}
#########################################################################
#  USA offers to buy New Mexico and Arizona (Bad Relations)
#########################################################################
event = {
	id = 14804
	random = no
	country = MEX

	# Triggered by USA 14199

	name = "EVT_14803_NAME"
	desc = "EVT_14102_DESC"
	style = 0

	action_a = {
		name = "DECLINE" # Decline
		command = { type = setflag which = flg_USA_MEX_tension }
	}
	action_b = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 1000 }

		command = { type = secedeprovince which = USA value = 540 }
		command = { type = secedeprovince which = USA value = 1165 }
		command = { type = secedeprovince which = USA value = 1166 }

		command = { type = secedeprovince which = USA value = 523 }
		command = { type = secedeprovince which = USA value = 531 }
		command = { type = secedeprovince which = USA value = 532 }
		command = { type = secedeprovince which = USA value = 1153 }

		command = { type = trigger which = 14126 } # USA
	}
}

#########################################################################
#  The US-Mexican Border Dispute
#########################################################################
event = {
	id = 14805
	random = no
	country = MEX

	# Triggered by USA 14103

	name = "EVT_14103_NAME"
	desc = "EVT_14805_DESC"
	style = 0

	action_a = {
		name = "DECLINE" # This mean war!
		command = { type = war which = USA }
	}
	action_b = {
		name = "ACCEPT" # Let them rattle their sabers
		command = { type = prestige value = -5 }
	}
}


#########################################################################
#  The Gadsen Purchase (Good Relations)
#########################################################################
event = {
	id = 14807
	random = no
	country = MEX

	# Triggered by USA 14105

	name = "EVT_14105_NAME"
	desc = "EVT_14105_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 400 }

		command = { type = secedeprovince which = USA value = 1153 }
		command = { type = trigger which = 14127 } # USA
	}
	action_b = {
		name = "DECLINE" # Decline
		command = { type = trigger which = 14128 } # USA
	}
}
#########################################################################
#  The Gadsen Purchase (Bad Relations)
#########################################################################
event = {
	id = 14808
	random = no
	country = MEX

	# Triggered by USA 14197

	name = "EVT_14105_NAME"
	desc = "EVT_14105_DESC"
	style = 0

	action_a = {
		name = "DECLINE" # Decline
		command = { type = trigger which = 14128 } # USA
	}
	action_b = {
		name = "ACCEPT" # Accept
		command = { type = treasury value = 400 }

		command = { type = secedeprovince which = USA value = 1153 }
		command = { type = trigger which = 14127 } # USA
	}
}

#########################################################################
#  US Border Incursions
#########################################################################
event = {
	id = 14809
	random = no
	country = MEX

	# Triggered by USA 14128

	name = "EVT_14809_NAME"
	desc = "EVT_14809_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME14805A" # This mean war!
		command = { type = war which = USA }
	}
	action_b = {
		name = "ACTIONNAME14809B" # Just hold them off
		command = { type = relation which = USA value = -100 }
	}
}

#########################################################################
#  The Mexican Civil War
#########################################################################
event = {
	id = 14815
	random = no
	country = MEX

	trigger = {
		won_war = { country = USA country = MEX }
		random = 5
	}

	name = "EVT_14141_NAME"
	desc = "EVT_14141_DESC"
	style = 0

	date = { day = 1 month = january year = 1857 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }

	action_a = {
		name = "ACTIONNAME14815A" # The lost war reduces the legitimacy of the government
		command = { type = pop_militancy which = 100 value = 5 }
		command = { type = pop_consciousness which = 100 value = 5 }
	}
}

#########################################################################
#  The Progressive Government Financial Crisis
#########################################################################
event = {
	id = 14810
	random = no
	country = MEX

	trigger = {
		NOT = {
			OR = {
				constitution = { country = MEX type = monarchy }
				constitution = { country = MEX type = constitutional_monarchy }
			}
		}
	}

	name = "EVT_14810_NAME"
	desc = "EVT_5800_DESC"
	style = 0

	date = { day = 2 month = january year = 1860 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }

	action_a = {
		name = "ACTIONNAME14810A" # Terminate National Debt
		command = { type = terminate_loans }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = AUS value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = setflag which = flg_euro_intervention }
	}
	action_b = {
		name = "ACTIONNAME14810B" # Create repay funds
		command = { type = treasury value = -100000 }
	}
}

#########################################################################
#  The Emperor of Mexico
#########################################################################
event = {
	id = 14806
	random = no
	country = MEX
	picture = maximexico

	# Triggered by FRA 7201

	name = "EVT_1501_NAME"
	desc = "EVT_1501_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME14806A" # A Victory for the Reaction!
		command = { type = pop_militancy which = 100 value = -2 }
		command = { type = pop_consciousness which = 100 value = -2 }
		command = { type = constitution which = monarchy }
		command = { type = executive_designation which = hms_government }
		command = { type = party_system which = multi_party }
		command = { type = national_value which = order }
		command = { type = force_ruling_party which = reactionary }
	}
}

#########################################################################
#  Benito Juarez kicks out the foreigners
#########################################################################
event = {
	id = 14811
	random = no
	country = MEX

	trigger = {
		OR = {
			event = 14806
			event = 14816
			event = 14812
		}
		random = 1
	}

	name = "EVT_14811_NAME"
	desc = "EVT_14811_DESC"
	style = 0

	date = { day = 4 month = january year = 1865 }
	offset = 30
	deathdate = { day = 1 month = january year = 1875 }

	action_a = {
		name = "ACTIONNAME14813A" # Societal unrest spreads
		command = { type = pop_militancy which = 100 value = 3 }
		command = { type = pop_consciousness which = 100 value = 3 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
		command = { type = revolt where = -1 }
	}
}
#########################################################################
#  The Emperor returns in Glory
#########################################################################
event = {
	id = 14812
	random = no
	country = MEX
	picture = maximexico

	trigger = {
		event = 14203
		constitution = { country = MEX type = monarchy }
	}

	name = "EVT_14812_NAME"
	desc = "EVT_14812_DESC"
	style = 0

	date = { day = 5 month = january year = 1861 }
	offset = 30
	deathdate = { day = 30 month = december year = 1920 }

	action_a = {
		name = "ACTIONNAME14812A" # Return to Order
		command = { type = executive_designation which = hms_government }
		command = { type = party_system which = multi_party }
		command = { type = national_value which = order }
		command = { type = pop_militancy which = 100 value = -2 }
		command = { type = pop_consciousness which = 100 value = -2 }
		command = { type = relation which = CSA value = 200 }
	}
}
#########################################################################
#  The 2nd Mexican Civil War
#########################################################################
event = {
	id = 14813
	random = no
	country = MEX

	trigger = {
		NOT = { reform = { type = press_rights level = censorship } }
		NOT = { reform = { type = political_parties level = right_to_ban } }
		NOT = { reform = { type = voting_rights level = wealth } }
		NOT = { reform = { type = voting_rights level = suffrage } }
	}

	name = "EVT_14813_NAME"
	desc = "EVT_14108_DESC"
	style = 0

	date = { day = 1 month = january year = 1900 }
	offset = 29
	deathdate = { day = 30 month = december year = 1920 }

	action_a = {
		name = "ACTIONNAME14813A" # Societal Unrest spreads
		command = { type = pop_militancy which = 100 value = 5 }
		command = { type = pop_consciousness which = 100 value = 5 }
	}
}
#########################################################################
#  The Zimmermann Protocol
#########################################################################
event = {
	id = 14814
	random = no
	country = MEX

	# Triggered by PRU #2

	name = "EVT_4601_NAME"
	desc = "EVT_4601_DESC"
	style = 0

	action_a = {
		name = "DECLINE" # Decline
		command = { type = relation which = USA value = 100 }
	}
	action_b = {
		name = "ACTIONNAME14814B" # Let's ally with Germany
		command = { type = relation which = GER value = 200 }
		command = { type = alliance which = GER }
	}
}
#########################################################################
#  Liberating Mexico
#########################################################################
event = {
	id = 14816
	random = no
	country = MEX

	# Triggered by USA 14129

	name = "EVT_14129_NAME"
	desc = "EVT_14129_DESC"
	style = 0

	action_a = {
		name = "ARGH"
		command = { type = constitution which = democracy }
		command = { type = executive_designation which = parliamentarism }
		command = { type = party_system which = multi_party }
		command = { type = national_value which = liberty }
		command = { type = force_ruling_party which = liberal }

		command = { type = relation which = USA value = 200 }
		command = { type = prestige value = -100 }
	}
}

#########################################################################
#  The USA claims Texas (via event 14101)
#########################################################################
event = {
	id = 14817
	random = no
	country = MEX

	trigger = {
		ai = yes
		atwar = no
		event = 14101 #US inherits Texas
		NOT = {
			won_war = { country = USA country = MEX }
			}
		}

	date = { day = 1 month = january year = 1836 }
	offset = 15
	deathdate = { day = 30 month = december year = 1920 }

	name = "AI_EVENT"
	desc = "AI_EVENT"
	style = 0

	action_a = {
		name = "OK" # Invade Texas
		command = { type = war which = USA } # TEX
	}
	action_b = {
		name = "OK" # Protest Violently
		command = { type = relation which = USA value = -50 }
	}
}

################################################## 
# The Treaty Of Guadalupe Hidalgo (US or MEX is human) (by OHGamer)
################################################## 
event = {
	id = 14818
	random = no
	country = MEX

	#triggered by 14293 

	name = "EVT_14293_NAME"
	desc = "EVT_14818_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = secedestate which = USA value = 512 when = 0  } 
		command = { type = secedestate which = USA value = 527 when = 0  } 
		command = { type = secedestate which = USA value = 2859 when = 0  } 
		command = { type = secedestate which = USA value = 537 when = 0  } 
		command = { type = secedestate which = USA value = 1165 when = 0  } 
		command = { type = secedestate which = USA value = 567 when = 0 }
		command = { type = secedeprovince  which = USA  value = 523 }
		command = { type = secedeprovince  which = USA  value = 531 }
		command = { type = secedeprovince  which = USA  value = 532 }
		command = { type = secedeprovince  which = USA  value = 514 }
		command = { type = secedeprovince  which = USA  value = 515 }
		command = { type = secedeprovince  which = USA  value = 516 }
		command = { type = secedeprovince  which = USA  value = 517 }
		command = { type = secedeprovince  which = USA  value = 518 }
		command = { type = secedeprovince  which = USA  value = 519 }
		command = { type = secedeprovince  which = USA  value = 520 }
		command = { type = secedeprovince  which = USA  value = 521 }
		command = { type = secedeprovince  which = USA  value = 522 }
		command = { type = secedeprovince  which = USA  value = 1143 }
		command = { type = treasury value = 30000 }
		command = { type = secedestate which = USA value = 130 when = 0  } #Washington (if Mex had won in earlier war, but gets defeated, should retreat back to modern borders)
		command = { type = secedestate which = USA value = 131 when = 0  } #Oregon
		command = { type = secedestate which = USA value = 140 when = 0  } #Idaho
		command = { type = secedestate which = USA value = 536 when = 0  } #Wyoming
		command = { type = secedestate which = USA value = 526 when = 0  } #Montana
		command = { type = secedestate which = USA value = 1181 when = 0  } #Louisiana
		command = { type = secedestate which = USA value = 1179 when = 0  } #Arkansas
		command = { type = secedestate which = USA value = 541 when = 0  } #Missouri
		command = { type = secedestate which = USA value = 526 when = 0  } #Kansas
		command = { type = secedestate which = USA value = 561 when = 0  } #Nebraska
		command = { type = trigger which = 14294 } # Mexico
	}
}
