####################################
# POLivia AI events 36900 - 36999 by Lothos
####################################
################
# Minister of Security Section 36900 - 36909
#############################################
event = { # Witold Grabowski takes power
	id = 36900
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 13103 # Witold Grabowski
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLSecurityGrabowski }
		}
	}

	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 = POLSecurityGrabowski }
		command = { type = local_clrflag which = POLSecurityRose }
		command = { type = ministerofsecurity which = 13103 }
		command = { type = dissent value = -1 }
	}
}
event = { # Adam Rose takes power
	id = 36901
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 13090 # Adam Rose
		NOT = { minister = 13103 } # Witold Grabowski
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLSecurityRose }
		}
	}

	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 = POLSecurityForoughi }
		command = { type = local_setflag which = POLSecurityRose }
		command = { type = ministerofsecurity which = 13090 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Staff Section 36910 - 36919
#############################################
event = { # Waclaw Stachiewicz takes power
	id = 36910
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = no
		minister = 13115 # Waclaw Stachiewicz
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLChiefStachiewicz }
		}
	}

	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 = POLChiefStachiewicz }
		command = { type = local_clrflag which = POLChiefMoczar }
		command = { type = chiefofstaff which = 13115 }
		command = { type = dissent value = -1 }
	}
}
event = { # Wladyslaw Moczar takes power
	id = 36911
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		minister = 13017 # Wladyslaw Moczar
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLChiefMoczar }
		}
	}

	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 = POLChiefStachiewicz }
		command = { type = local_setflag which = POLChiefMoczar }
		command = { type = chiefofstaff which = 13017 }
		command = { type = dissent value = -1 }
	}
}
################
# Head of Intelligence Section 36920 - 36929
#############################################
event = { # Wieslaw Domaniewski takes power
	id = 36920
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 13114 # Wieslaw Domaniewski
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLIntelligenceDomaniewski }
		}
	}

	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 = POLIntelligenceDomaniewski }
		command = { type = ministerofintelligence which = 13114 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of the Army Section 36930 - 36939
#############################################
################
# Armament Minister Section 36940 - 36949
#############################################
event = { # Eugeniusz Kwiatkowski takes power
	id = 36940
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 13072 # Eugeniusz Kwiatkowski
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLArmamentKwiatkowski }
		}
	}

	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 = POLArmamentKwiatkowski }
		command = { type = armamentminister which = 13072 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Air Minister Section 36950 - 36959
#############################################
event = { # Sadegh Khan Koopal takes power
	id = 36950
	random = no 
	country = POL
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 53106 # Sadegh Khan Koopal
		OR = {
			AND = {
				day = 1
				NOT = { day = 2 }
			}
			NOT = { local_flag = POLChiefAirKoopal }
		}
	}

	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 = POLChiefAirKoopal }
		command = { type = chiefofair which = 53106 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Navy Minister Section 36960 - 36969
#############################################




#############################################
# Regular AI Events 36970 - 36999
#############################################
################
# Shift Production
#############################################
event = {
	id = 36970
	random = no 
	country = POL
	
	trigger = {
		ai = yes
		OR = {
			atwar = yes
			atwar = GER
			atwar = SOV
			year = 1937
		}
	}

	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 = ai which = "switch/Minor_Gear_Up.ai" }
	}
}
################
# Shift Upgrading
#############################################
event = {
	id = 36971
	random = no 
	country = POL
	
	trigger = {
		ai = yes
		OR = {
			atwar = yes
			year = 1938
		}
	}

	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 = ai which = "switch/POL_Upg_War.ai" }
	}
}
