############################################
# Allied intervention in German-Polish War
############################################
event = { 
	id = 999999
	random = no 
	country = ENG

	trigger = {
		war = { country = GER country = POL }
	}

	name = CEVTNAME_999999 # "Declare war on Germany"
	desc = CEVTDESC_999999 # "As the German invasion of Poland began it became obvious that a diplomatic solution would not be possible.  Another Great War had to be fought to contain German aggression in Europe."
	style = 0

	date = { day = 2 month = september year = 1939 }

	action_a = {
		name = CEVTACTA_999999 # "Declare war!"
		command = { type = war which = GER }
		command = { type = dissent value = -50 }
	}

}

############################################
# AI Event for German annexation of Poland
############################################

event = { 
	id = 999998
	random = no 
	country = GER

	trigger = {
		war = { country = GER country = POL }
		lost_VP = { country = POL value = 16 }
		control = { province = 643 data = GER }
		ai = yes
		NOT = {
			event = 1500322
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 10 month = september year = 1939 }
	offset = 1
	deathdate = { day = 29 month = december year = 1940 }

	action_a = {
		name = "Annex them!"
		command = { type = inherit which = POL }
		command = { type = ai which = core_GER_39_2.ai }
		command = { type = influence value = 20 }
	}
}


############################################
# AI switches for Germany
############################################
event = { 
	id = 999997
	random = no 
	country = GER

	trigger = {
		ai = yes
		OR = {
			AND = {
				war = { country = GER country = FRA }
				event = 999998
				random = 15
			}
		war = { country = GER country = BEL }
		war = { country = GER country = HOL }
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = april year = 1940 }
	offset = 3
	deathdate = { day = 29 month = december year = 1940 }

	action_a = {
		command = { type = ai which = core_GER_39_3.ai }
		command = { type = influence value = 20 }
	}

}

############################################
# AI switches for Germany
############################################
event = { 
	id = 999996
	random = no 
	country = GER

	trigger = {
		ai = yes
		OR = {
			event = 2800
			AND = {
				control = { province = 527 data = GER }
				control = { province = 538 data = GER }
				control = { province = 929 data = GER }
			}
		}
		random = 15
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = april year = 1940 }
	offset = 3
	deathdate = { day = 29 month = december year = 1942 }

	action_a = {
		command = { type = ai which = core_GER_39_4.ai }
		command = { type = influence value = 20 }
	}

}


############################################
# AI switches for Germany
############################################
event = { 
	id = 999995
	random = no 
	country = GER

	trigger = {
		ai = yes
		control = { province = 891 data = GER }
		random = 15
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = september year = 1940 }
	offset = 3
	deathdate = { day = 29 month = december year = 1943 }

	action_a = {
		command = { type = ai which = core_GER_39_5.ai }
		command = { type = influence value = 50 }
	}

}

############################################
# AI switches for Germany
############################################
event = { 
	id = 999994
	random = no 
	country = GER

	trigger = {
		ai = yes
		random = 15
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = march year = 1941 }
	offset = 5
	deathdate = { day = 29 month = december year = 1943 }

	action_a = {
		command = { type = ai which = core_GER_39_6.ai }
		command = { type = influence value = 20 }
	}

}

############################################
# AI switches for Italy
############################################
event = { 
	id = 999993
	random = no 
	country = ITA

	trigger = {
		ai = yes
		random = 25
		OR = {
			control = { province = 518 data = GER }
			control = { province = 520 data = GER }
			control = { province = 556 data = GER }
			control = { province = 543 data = GER }
			control = { province = 544 data = GER }
			event = 2021
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = september year = 1939 }
	offset = 2
	deathdate = { day = 29 month = december year = 1943 }

	action_a = {
		command = { type = ai which = core_ITA_39_2.ai }
		command = { type = alignment which = fascist value = 25 }
		command = { type = influence value = 10 }
	}

}


############################################
# AI switches for UK
############################################
event = { 
	id = 999980
	random = no 
	country = ENG

	trigger = {
		ai = yes
		OR = {
			war = { country = GER country = SOV }
			war = { country = GER country = USA }
		}
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 15 month = september year = 1939 }
	offset = 2
	deathdate = { day = 29 month = december year = 1947 }

	action_a = {
		command = { type = ai which = core_ENG_39_2.ai }
		command = { type = influence value = 10 }
	}

}

