# Aztec Events #
# By AlanC9    #

#The Tlaxcalan Revolt
event = { 
        id = 82000 
        trigger = { owned = {	province = 29 data = -1 }
                   control = { province = 29 data = SPA } 
              } 
        random = NO 
        country = AZT 
        name = "EVENTNAME82000" 
        desc = "EVENTHIST82000"
        date = { day = 1 month = september year = 1419 } 
	deathdate = { day = 1 month = january year = 1600 }
        style = 1 

        action_a = { 
		name = "ACTIONNAME40098A" 
		command = { type = secedeprovince which = SPA value = 29 } 
		command = { type = stability value = -6 } 
		command = { type = trigger which = 82001 }
               } 
        } 
 
event = {  
	id = 82001 
	random = no 
	country = SPA 
	name = "EVENTNAME82001" 
	desc = "EVENTHIST82001"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME5848A" 
		command = { type = treasury value = 500 } 
		command = { type = INF which = 29 value = 15000 } 
		command = { type = CAV which = 29 value = 500 } 
		command = { type = ART which = 29 value = 30 } 
		} 
}

#The Zapotecs ally with Spain
event = { 
     id = 82002 
     trigger = {
		war = { country = SPA country = AZT } 
         	NOT = { 
			relation = { country = AZT value = -100 } 
		}
		war = { country = ZAP country = AZT }
		OR =  { owned = { province = 29 data = -1 }
		        owned = { province = 29 data = SPA } 
  		      }
		NOT = { war = { country = ZAP country = SPA }
  }

		} 
        random = NO 
        country = ZAP 
        name = "EVENTNAME82002" 
        desc = "EVENTHIST82002"
        date = { day = 1 month = september year = 1419 } 
	deathdate = { day = 1 month = january year = 1600 }
        style = 1 

        action_a = { 
		name = "ACTIONNAME82002A" 
		command = { type = secedeprovince which = SPA value = 29 } 
		command = { type = religion which = catholic }
                command = { type = INF which = 29 value = 15000 } 
		command = { type = stability value = 2 }
		command = { type = trigger which = 82003 }
		} 

        action_b = { 
		name = "ACTIONNAME82002B" 
		command = { type = stability value = -1 }                   
		} 
} 

event = { 
	id = 82003 
	random = no 
	country = SPA 
	name = "EVENTNAME82003" 
	desc = "EVENTHIST82003"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME5848A" 
		command = { type = INF which = 29 value = 15000 } 
		command = { type = CAV which = 29 value = 500 } 
		command = { type = ART which = 29 value = 30 }
		command = { type = vassal which = ZAP }
		command = { type = relation which = ZAP value = 150 }
		command = { type = alliance which = ZAP } 
		} 
}

#The Fall of Tenochtitlan
event = { 
	id = 82004 
	trigger = { 
		control = { province = 1880 data = SPA }
		}
	random = no 
	country = AZT 
	name = "EVENTNAME82004" 
	desc = "EVENTHIST82004"
	date = { day = 1 month = january year = 1419 } 
	deathdate = { day = 1 month = january year = 1600 } 
	style = 2 

	action_a ={ 
		name = "ACTIONNAME82004A"
		command = { type = vp value = 200 }
		command = { type = trigger which = 82005 }
		} 
	action_b ={ 
		name = "ACTIONNAME82004B"
		command = { type = religion which = catholic }
		command = { type = trigger which = 82006 }
		command = { type = treasury value = -3000 }
 command = { type = provincereligion which = 1880 value = catholic }
command = { type = provincereligion which = 25 value = catholic }
command = { type = provincereligion which = 26 value = catholic }
		} 
	action_c ={ 
		name = "ACTIONNAME82004C"
		command = { type = stability value = -2 } 
		command = { type = manpower value = -10 }
		command = { type = treasury value = -1000 }
		} 
} 

event ={ 
	id = 82005 
	random = no 
	country = SPA 
	name = "EVENTNAME82005" 
	desc = "EVENTHIST82005"
	style = 2 
	action_a ={ 
		name = "ACTIONNAME82005A" 
		command = { type = inherit which = AZT } 
                command = { type = treasury value = 1000 }
		command = { type = removecore which = 29 }
		command = { type = removecore which = 1880 }
		} 
} 

#The Aztecs yield to Spain
event = { 
	id = 82006 
	random = no 
	country = SPA 
	name = "EVENTNAME82006" 
	desc = "EVENTHIST82006"
	style = 2 

	action_a ={ 
		name = "ACTIONNAME82006A" 
		command = { type = vassal which = AZT }
		command = { type = relation which = AZT value = 150 }
		command = { type = alliance which = AZT }
		command = { type = treasury value = 3000 }
		command = { type = removecore which = 29 }
		command = { type = removecore which = 1880 }
		} 
       action_b ={ 
		name = "ACTIONNAME82006B" 
		command = { type = inherit which = AZT } 
		command = { type = removecore which = 29 }
		command = { type = removecore which = 1880 }
		} 
}

#The Fall of Atlixico
event = { 
	id = 82007 
	trigger = { 
		control = { province = 31 data = SPA }
		}
	random = no 
	country = ZAP 
	name = "EVENTNAME82007" 
	desc = "EVENTHIST82007"
	date = { day = 1 month = january year = 1419 } 
	deathdate = { day = 1 month = january year = 1600 } 
	style = 2 

	action_a ={ 
		name = "ACTIONNAME82007A"
		command = { type = vp value = 200 }
		command = { type = trigger which = 82008 }
		} 
	action_b ={ 
		name = "ACTIONNAME82007B"
		command = { type = trigger which = 82008 }
		} 
	action_c ={ 
		name = "ACTIONNAME82007C"
		command = { type = stability value = -2 } 
		command = { type = manpower value = -10 }
		command = { type = treasury value = -1000 }
		} 	
} 

#The Conquest of the Zapotecs
event ={ 
	id = 82008 
	random = no 
	country = SPA 
	name = "EVENTNAME82008" 
	desc = "EVENTHIST82008" 	
	style = 2 
	action_a ={ 
		name = "ACTIONNAME82005A" 
		command = { type = inherit which = ZAP } 
		} 
} 


#Plague in the Aztec Empire
event = { 
	id = 82009 
	trigger = { 
		OR = { neighbour = SPA 
			neighbour = CAS
			neighbour = POR
			neighbour = ENG
			neighbour = FRA
			neighbour = HOL 
			war = { country = AZT country = SPA }
			war = { country = AZT country = CAS }
			war = { country = AZT country = POR }
			war = { country = AZT country = FRA }
			war = { country = AZT country = ENG }
			war = { country = AZT country = HOL }
		}
}
	random = no 
	country = AZT 
	name = "EVENTNAME82009" 
	desc = "EVENTHIST82009"
	style = 2 
	date = { day = 15 month = january year = 1419 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }

	action_a ={ 
		name = "ACTIONNAME40098A" 
                command = { type = population which = 1880 value = -50000}  
                command = { type = population which = 21 value = -10000} 
		command = { type = population which = 24 value = -10000} 
		command = { type = population which = 25 value = -10000} 
		command = { type = population which = 26 value = -10000} 
		command = { type = population which = 27 value = -10000}  
		command = { type = population which = 28 value = -10000} 
		command = { type = population which = 29 value = -15000} 
		command = { type = population which = 30 value = -10000} 
		command = { type = population which = 31 value = -30000} 
                command = { type = population which = 32 value = -10000}  
		command = { type = population which = 1879 value = -10000} 
                command = { type = population which = 1877 value = -10000} 
		command = { type = population which = 1878 value = -10000} 
		command = { type = population which = 33 value = -10000} 
		command = { type = population which = 34 value = -10000} 
		command = { type = population which = 35 value = -20000} 
		command = { type = stability value = -6 } 
		} 
} 
#Plague among the Zapotecs
event = { 
	id = 82010 
	trigger = { 
		OR = { neighbour = SPA 
			neighbour = CAS
			neighbour = POR
			neighbour = ENG
			neighbour = FRA
			neighbour = HOL 
			war = { country = ZAP country = SPA }
			war = { country = ZAP country = CAS }
			war = { country = ZAP country = POR }
			war = { country = ZAP country = FRA }
			war = { country = ZAP country = ENG }
			war = { country = ZAP country = HOL }
		}
}
	random = no 
	country = ZAP 
	name = "EVENTNAME82009" 
	desc = "EVENTHIST82009"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 1880 value = -50000}  
                command = { type = population which = 21 value = -10000} 
		command = { type = population which = 24 value = -10000} 
		command = { type = population which = 25 value = -10000} 
		command = { type = population which = 26 value = -10000} 
		command = { type = population which = 27 value = -10000}  
		command = { type = population which = 28 value = -10000} 
		command = { type = population which = 29 value = -15000} 
		command = { type = population which = 30 value = -10000} 
		command = { type = population which = 31 value = -30000} 
                command = { type = population which = 32 value = -10000}  
		command = { type = population which = 1879 value = -10000} 
                command = { type = population which = 1877 value = -10000} 
		command = { type = population which = 1878 value = -10000} 
		command = { type = population which = 33 value = -10000} 
		command = { type = population which = 34 value = -10000} 
		command = { type = population which = 35 value = -20000} 
		command = { type = stability value = -6 }   
		} 
}


#The European rule in Tlaxcala
event = { 
	id = 82011 
	trigger = { owned = { province = 29 data = -1 } }
	country = SPA
	random = no 
	name = "EVENTNAME82011" 
	desc = "EVENTHIST82011"
	style = 2 

	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 29 value = -3000} 
		command = { type = losebuilding   which = 29 value = bailiff } 
		command = { type = losemanufactory   which = 29 } 
		} 
}
 

#The European rule in Jalisco
event = { 
	id = 82012 
	trigger = { owned = { province = 24 data = -1 } }
	country = SPA
	random = no 
	name = "EVENTNAME82012" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 24 value = -3000} 
		command = { type = losebuilding   which = 24 value = bailiff } 
		command = { type = losemanufactory   which = 24 } 
                command = { type = population which = 21 value = -3000} 
		command = { type = losebuilding   which = 21 value = bailiff } 
		command = { type = losemanufactory   which = 21 } 
		} 
}

#The European rule in Saltillo
event = { 
	id = 82013 
	trigger = { owned = { province = 25 data = -1 } }
	random = no 
	country = SPA
	name = "EVENTNAME82013" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 25 value = -3000} 
		command = { type = losebuilding   which = 25 value = bailiff } 
		command = { type = losemanufactory   which = 25 } 
		} 
}

#The European rule in Michoagan 
event = { 
	id = 82014 
	trigger = { owned = { province = 26 data = -1 } }
	random = no 
	country = SPA
	name = "EVENTNAME82014" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 26 value = -3000} 
		command = { type = losebuilding   which = 26 value = bailiff } 
		command = { type = losemanufactory   which = 26 } 
		} 
}

#The European rule in Zacatecas
event = { 
	id = 82015 
	trigger = { owned = { province = 27 data = -1 }}
	random = no 
	country = SPA
	name = "EVENTNAME82015" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 27 value = -3000} 
		command = { type = losebuilding   which = 27 value = bailiff } 
		command = { type = losemanufactory   which = 27 } 
                command = { type = population which = 28 value = -3000} 
		command = { type = losebuilding   which = 28 value = bailiff } 
		command = { type = losemanufactory   which = 28 } 
		} 
}
#The European rule in Atlixico
event = { 
	id = 82016 
	trigger = { owned = { province = 30 data = -1 }}
	random = no 
	country = SPA
	name = "EVENTNAME82016" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 30 value = -3000} 
		command = { type = losebuilding   which = 30 value = bailiff } 
		command = { type = losemanufactory   which = 30 } 
		} 
}

#The European rule in Tehuantepec
event = { 
	id = 82017 
	trigger = { owned = { province = 31 data = -1 }}
	random = no 
	country = SPA
	name = "EVENTNAME82017" 
	desc = "EVENTHIST82011"
	style = 2 
	date = { day = 1 month = April year = 1419 } 
	deathdate = { day = 1 month = january year = 1800 } 
	action_a ={ 
		name = "ACTIONNAME40098A" 
		command = { type = population which = 31 value = -3000} 
		command = { type = losebuilding   which = 31 value = bailiff } 
		command = { type = losemanufactory   which = 31 } 
		} 
}

