####################################
# Cuba AI events 34600 - 34699 by Lothos
####################################
################
# Minister of Security Section 34600 - 34609
#############################################
event = { # A. Odero y Garcia takes power
	id = 34600
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 33078 # A. Odero y Garcia
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBSecurityGarcia }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = CUBSecurityGarcia }
		command = { type = ministerofsecurity which = 33078 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Staff Section 34610 - 34619
#############################################
event = { # Fulgencio Batista takes power
	id = 34610
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 33097 # Fulgencio Batista
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBChiefBatista }
		}
		OR = {
			atwar = no
			NOT = { manpower = 20 }
			AND = {
				atwar = yes
				NOT = { minister = 33007 } # Julio Sanguily
			}
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = CUBChiefBatista }
		command = { type = local_clrflag which = CUBChiefSanguily }
		command = { type = chiefofstaff which = 33097 }
		command = { type = dissent value = -1 }
	}
}
event = { # Julio Sanguily takes power
	id = 34611
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		manpower = 20
		minister = 33007 # Julio Sanguily
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBChiefSanguily }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_clrflag which = CUBChiefBatista }
		command = { type = local_setflag which = CUBChiefSanguily }
		command = { type = chiefofstaff which = 33007 }
		command = { type = dissent value = -1 }
	}
}
################
# Head of Intelligence Section 34620 - 34629
#############################################
event = { # Carlos Hevia takes power
	id = 34620
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 33090 # Carlos Hevia
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBIntelligenceHevia }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = CUBIntelligenceHevia }
		command = { type = ministerofintelligence which = 33090 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of the Army Section 34630 - 34639
#############################################
event = { # Fulgencio Batista takes power
	id = 34630
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 33103 # Fulgencio Batista
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBArmyBatista }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = CUBArmyBatista }
		command = { type = chiefofarmy which = 33103 }
		command = { type = dissent value = -1 }
	}
}
################
# Armament Minister Section 34640 - 34649
#############################################
event = { # Carlos Prio takes power
	id = 34640
	random = no 
	country = CUB
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 33004 # Carlos Prio
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = CUBArmamentPrio }
		}
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 1 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1948 }

	action_a = {
		command = { type = local_setflag which = CUBArmamentPrio }
		command = { type = armamentminister which = 33004 }
		command = { type = dissent value = -1 }
	}
}







#############################################
# Regular AI Events 34660 - 34699
#############################################
