####################################
# France 21000 - 21999 by Lothos
####################################
# Air AI Flags
#	FRAAirAIStrategic	= Stragegic Bombing is a priority
#	FRAAirAIGround		= Ground support is a priority
#	FRAAirAINaval		= Stragegic Bombing is a priority

# Defense Flags
#	FRASpanishFront		= SPR or SPA has allied with either the Axis or Comminterm

# Homeland Defense Flags
#	FRAHomeland			= Homeland under attack

# Unit building AI
#	FRABuildStandard	= Standard Building of units 
#	FRABuildLand		= Priority Building land units

################
# Poland Invasion AI
#############################################
event = {
	id = 21000
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		event = 2027 # Danzig or War AI
		war = { country = POL country = GER }
	}

	name = "AI_EVENT"
	style = 0	
	
	date = { day = 29 month = august year = 1939 }
	offset = 1

	action_a = {
		command = { type = ai which = "switch/FRA_Poland.ai" }
		command = { type = ai which = "Air_Strategic.ai" }
	}
}
################
# France Invasion AI
#############################################
event = {
	id = 21001
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		war = { country = FRA country = GER }
		war = { country = BEL country = GER }
	}

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

	action_a = {
		command = { type = ai which = "switch/FRA_Germany.ai" }
		command = { type = ai which = "Air_Ground.ai" }
		command = { type = sleepevent which = 21000 }
		command = { type = sleepevent which = 21004 }
	}
}
################
# Free France AI
#############################################
event = {
	id = 21002
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		exists = VIC
	}

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

	action_a = {
		command = { type = ai which = "switch/FRA_Free.ai" }
		command = { type = ai which = "Air_Supremecy.ai" }
		command = { type = sleepevent which = 21000 }
		command = { type = sleepevent which = 21001 }
	}
}
################
# France loads possible war with Germany AI
#############################################
event = {
	id = 21003
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		OR = {
			atwar = GER
			atwar = yes
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/FRA_GER_Atwar.ai" }
	}
}
################
# France goes on the offensive AI but protects Belgium Border
#############################################
event = {
	id = 21004
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		war = { country = FRA country = GER }
		OR = {
			AND = {
				month = 5 # June
				NOT = {	month = 6 } # July
				random = 20
			}
			AND = {
				month = 6 # July
				NOT = {	month = 7 } # August
				random = 50
			}
			AND = {
				month = 7 # August
				NOT = {	month = 8 } # September
				random = 2
			}
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/FRA_Offensive.ai" }
		command = { type = ai which = "Air_Ground.ai" }
	}
}
################
# France loads EXP Force Ratio for war with SOV
#############################################
event = {
	id = 21005
	random = no 
	country = FRA
	
	trigger = {
		ai = yes
		war = { country = FRA country = SOV }
	}

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

	action_a = {
		command = { type = ai which = "switch/EXP_ALIvsSOV.ai" }
		command = { type = ai which = "Air_Ground.ai" }
	}
}
################
# France guards the Spanish Border
#############################################
event = { 
	id = 21006
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = FRASpanishFront }
		OR = {
			alliance = { country = SPR country = SOV }
			alliance = { country = SPA country = SOV }
			alliance = { country = SPR country = GER }
			alliance = { country = SPA country = GER }
			alliance = { country = SPR country = ITA }
			alliance = { country = SPA country = ITA }
			control = { province = 331 data = ITA }
			control = { province = 329 data = ITA }
			control = { province = 357 data = ITA }
		}
	}

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

	action_a = {
		command = { type = local_setflag which = FRASpanishFront }
		command = { type = ai which = "switch/FRA_Defense_Spain.ai" }
	}
}
################
# France removes guards on the Spanish Border
#############################################
event = { 
	id = 21007
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = FRASpanishFront
		NOT = {
			alliance = { country = SPR country = SOV }
			alliance = { country = SPA country = SOV }
			alliance = { country = SPR country = GER }
			alliance = { country = SPA country = GER }
			alliance = { country = SPR country = ITA }
			alliance = { country = SPA country = ITA }
			control = { province = 331 data = ITA }
			control = { province = 329 data = ITA }
			control = { province = 357 data = ITA }
		}
	}

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

	action_a = {
		command = { type = local_clrflag which = FRASpanishFront }
		command = { type = ai which = "switch/FRA_Defense_Standard.ai" }
	}
}
################
# Unit building AI
#	fra_build_inf		= Priority Building Infantry
#	fra_build_land		= Priority Building land units
#	fra_build_standard	= Standard Building of units 
################
# France loads Infantry builds AI
#############################################
event = {
	id = 21008
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = fra_build_inf_1936 }
		OR = {
			AND = {
				manpower = 20
				NOT = { army = 5 }
			}
			AND = {
				manpower = 40
				NOT = { army = 10 }
			}
			AND = {
				manpower = 60
				NOT = { army = 15 }
			}
			AND = {
				manpower = 80
				NOT = { army = 20 }
			}
			AND = {
				manpower = 100
				NOT = { army = 25 }
			}
			AND = {
				manpower = 120
				NOT = { army = 30 }
			}
			AND = {
				manpower = 140
				NOT = { army = 35 }
			}
			AND = {
				manpower = 160
				NOT = { army = 40 }
			}
			AND = {
				manpower = 180
				NOT = { army = 45 }
			}
			AND = {
				manpower = 200
				NOT = { army = 50 }
			}
			AND = {
				manpower = 220
				NOT = { army = 55 }
			}
			AND = {
				manpower = 240
				NOT = { army = 60 }
			}
			AND = {
				manpower = 260
				NOT = { army = 65 }
			}
			AND = {
				manpower = 280
				NOT = { army = 70 }
			}
			AND = {
				manpower = 300
				NOT = { army = 75 }
			}
			AND = {
				manpower = 320
				NOT = { army = 80 }
			}
			AND = {
				manpower = 340
				NOT = { army = 85 }
			}
			AND = {
				manpower = 360
				NOT = { army = 90 }
			}
			AND = {
				manpower = 380
				NOT = { army = 95 }
			}
			AND = {
				manpower = 400
				NOT = { army = 100 }
			}
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/fra_build_inf.ai" }
		command = { type = local_setflag which = fra_build_inf_1936 }
		command = { type = local_clrflag which = fra_build_land_1936 }
		command = { type = local_clrflag which = fra_build_standard_1936 }
		command = { type = local_clrflag which = fra_build_standard_1948 }
	}
}
################
# France loads Land builds AI
#############################################
event = {
	id = 21009
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = fra_build_land_1936 }
		army = 100
		OR = {
			AND = {
				manpower = 420
				NOT = { army = 105 }
			}
			AND = {
				manpower = 440
				NOT = { army = 110 }
			}
			AND = {
				manpower = 460
				NOT = { army = 115 }
			}
			AND = {
				manpower = 480
				NOT = { army = 120 }
			}
			AND = {
				manpower = 500
				NOT = { army = 125 }
			}
			AND = {
				manpower = 520
				NOT = { army = 130 }
			}
			AND = {
				manpower = 540
				NOT = { army = 135 }
			}
			AND = {
				manpower = 560
				NOT = { army = 140 }
			}
			AND = {
				manpower = 580
				NOT = { army = 145 }
			}
			AND = {
				manpower = 600
				NOT = { army = 150 }
			}
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/fra_build_land.ai" }
		command = { type = local_clrflag which = fra_build_inf_1936 }
		command = { type = local_setflag which = fra_build_land_1936 }
		command = { type = local_clrflag which = fra_build_standard_1936 }
		command = { type = local_clrflag which = fra_build_standard_1948 }
	}
}
################
# France loads Standard builds AI
#############################################
event = {
	id = 21021
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { technology = 7210 } # 1948 Nuclear Sub
		NOT = { local_flag = fra_build_standard_1936 }
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 20 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 40 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 80 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 100 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 140 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 160 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 200 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 220 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 260 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 280 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 320 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 340 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 380 }
			}
			AND = {
				army = 100 
				NOT = { manpower = 400 }
			}
			AND = {
				army = 105 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 110 
				NOT = { manpower = 440 }
			}
			AND = {
				army = 115 
				NOT = { manpower = 460 }
			}
			AND = {
				army = 120 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 125 
				NOT = { manpower = 500 }
			}
			AND = {
				army = 130 
				NOT = { manpower = 520 }
			}
			AND = {
				army = 135 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 140 
				NOT = { manpower = 560 }
			}
			AND = {
				army = 145 
				NOT = { manpower = 580 }
			}
			army = 150
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/fra_build_standard.ai" }
		command = { type = local_clrflag which = fra_build_inf_1936 }
		command = { type = local_clrflag which = fra_build_land_1936 }
		command = { type = local_setflag which = fra_build_standard_1936 }
		command = { type = local_clrflag which = fra_build_standard_1948 }
	}
}

event = {
	id = 21022
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		technology = 7210 # 1948 Nuclear Sub
		NOT = { local_flag = fra_build_standard_1948 }
		OR = {
			AND = {
				army = 5 
				NOT = { manpower = 20 }
			}
			AND = {
				army = 10 
				NOT = { manpower = 40 }
			}
			AND = {
				army = 15 
				NOT = { manpower = 60 }
			}
			AND = {
				army = 20 
				NOT = { manpower = 80 }
			}
			AND = {
				army = 25 
				NOT = { manpower = 100 }
			}
			AND = {
				army = 30 
				NOT = { manpower = 120 }
			}
			AND = {
				army = 35 
				NOT = { manpower = 140 }
			}
			AND = {
				army = 40 
				NOT = { manpower = 160 }
			}
			AND = {
				army = 45 
				NOT = { manpower = 180 }
			}
			AND = {
				army = 50 
				NOT = { manpower = 200 }
			}
			AND = {
				army = 55 
				NOT = { manpower = 220 }
			}
			AND = {
				army = 60 
				NOT = { manpower = 240 }
			}
			AND = {
				army = 65 
				NOT = { manpower = 260 }
			}
			AND = {
				army = 70 
				NOT = { manpower = 280 }
			}
			AND = {
				army = 75 
				NOT = { manpower = 300 }
			}
			AND = {
				army = 80 
				NOT = { manpower = 320 }
			}
			AND = {
				army = 85 
				NOT = { manpower = 340 }
			}
			AND = {
				army = 90 
				NOT = { manpower = 360 }
			}
			AND = {
				army = 95 
				NOT = { manpower = 380 }
			}
			AND = {
				army = 100 
				NOT = { manpower = 400 }
			}
			AND = {
				army = 105 
				NOT = { manpower = 420 }
			}
			AND = {
				army = 110 
				NOT = { manpower = 440 }
			}
			AND = {
				army = 115 
				NOT = { manpower = 460 }
			}
			AND = {
				army = 120 
				NOT = { manpower = 480 }
			}
			AND = {
				army = 125 
				NOT = { manpower = 500 }
			}
			AND = {
				army = 130 
				NOT = { manpower = 520 }
			}
			AND = {
				army = 135 
				NOT = { manpower = 540 }
			}
			AND = {
				army = 140 
				NOT = { manpower = 560 }
			}
			AND = {
				army = 145 
				NOT = { manpower = 580 }
			}
			army = 150
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/fra_build_standard_1948.ai" }
		command = { type = local_clrflag which = fra_build_inf_1936 }
		command = { type = local_clrflag which = fra_build_land_1936 }
		command = { type = local_clrflag which = fra_build_standard_1936 }
		command = { type = local_setflag which = fra_build_standard_1948 }
	}
}

################
# UK helps military build up of France against germany
################
event = {
	id = 21023
	random = no 
	country = ENG
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { flag = EngNotLowOnSupplies }
		supplies = 2500
	}

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

	action_a = {
		command = { type = setflag which = EngNotLowOnSupplies }
	}
}

event = {
	id = 21024
	random = no 
	country = ENG
	persistent = yes
	
	trigger = {
		ai = yes
		flag = EngNotLowOnSupplies
		NOT = { supplies = 1500 }
	}

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

	action_a = {
		command = { type = clrflag which = EngNotLowOnSupplies }
	}
}

event = {
	id = 21025
	random = no 
	country = ENG
	persistent = yes
	# triggered by various events
	name = "AI_EVENT"
	style = 0
	
	action_a = {
		command = { type = supplies value = -500 } # should amount to about 6000 ICD in total.
	}
}

event = {
	id = 21026
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		ai = ENG
		flag = EngNotLowOnSupplies
		alliance = { country = FRA country = ENG } 
		control = { province = 56 data = FRA } # Paris
		OR = {
			AND = {
				manpower = 400
				ic = 100
				NOT = { supplies = 7500 }
				atwar = no
				event = 2050 # MR-Pact
				NOT = { year = 1940 }
			}
			AND = {
				manpower = 500
				ic = 140
				NOT = { supplies = 9500 }
				NOT = {	lost_national = { country = FRA value = 5 } }
				war = { country = FRA country = GER } 
			}
			AND = {
				manpower = 400
				ic = 120
				NOT = { supplies = 7500 }
				NOT = {	lost_national = { country = FRA value = 10 } }
				war = { country = FRA country = GER } 
			}
			AND = {
				manpower = 300
				ic = 100
				NOT = { supplies = 5500 }
				NOT = {	lost_national = { country = FRA value = 15 } }
				war = { country = FRA country = GER } 
			}
		}
	}

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

	action_a = {
		command = { type = supplies value = 500 } # ~15 infantry divisions in total.
		command = { type = trigger which = 21025 }
	}
}

################
# Homeland Defense Flags
#	FRAHomeland			= Homeland under attack
################
# France loads Homeland Defense AI
#############################################
event = {
	id = 21010
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes	
		NOT = { local_flag = FRAHomeland }
		OR = {
			lost_national = { country = FRA value = 2 }
			AND = {
				OR = {
					war = { country = BEL country = GER }
					war = { country = BEL country = SOV }
				}
				OR = {
					# Belgium
					NOT = { control = { province = 45 data = BEL } }
					NOT = { control = { province = 52 data = BEL } }
					NOT = { control = { province = 51 data = BEL } }
					NOT = { control = { province = 50 data = BEL } }
					NOT = { control = { province = 68 data = BEL } }
					NOT = { control = { province = 65 data = BEL } }
					NOT = { control = { province = 69 data = BEL } }
					NOT = { control = { province = 70 data = BEL } }
				}
			}
		}
	}

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

	action_a = {
		command = { type = local_setflag which = FRAHomeland }
		command = { type = ai which = "switch/FRA_Homeland.ai" }
	}
}
################
# France Rescinds Homeland Defense AI
#############################################
event = {
	id = 21011
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		local_flag = FRAHomeland
		NOT = {
			lost_national = { country = FRA value = 2 }
			AND = {
				OR = {
					war = { country = BEL country = GER }
					war = { country = BEL country = SOV }
				}
				OR = {
					# Belgium
					NOT = { control = { province = 45 data = BEL } }
					NOT = { control = { province = 52 data = BEL } }
					NOT = { control = { province = 51 data = BEL } }
					NOT = { control = { province = 50 data = BEL } }
					NOT = { control = { province = 68 data = BEL } }
					NOT = { control = { province = 65 data = BEL } }
					NOT = { control = { province = 69 data = BEL } }
					NOT = { control = { province = 70 data = BEL } }
				}
			}
		}
	}

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

	action_a = {
		command = { type = local_clrflag which = FRAHomeland }
		command = { type = ai which = "switch/FRA_Homeland_Rescind.ai" }
	}
}
################
# France AI Slider manipulation
#
#	Interventionism
#############################################
event = { # Interventionism
	id = 21012
	random = no
	country = FRA
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = interventionism value = 1}
		#NOT = { domestic = { type = interventionism value = 9 } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = interventionism value = 1 }
	}
}
################
#	Standing Army
#############################################
event = { # Standing Army
	id = 21013
	random = no
	country = FRA
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = professional_army value = 1}
		#NOT = { domestic = { type = professional_army value = 9 } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = professional_army value = 1 }
	}
}
################
#	Hawk Lobby
#############################################
event = { # Hawk Lobby
	id = 21014
	random = no
	country = FRA
	persistent = yes

	trigger = {
		ai = yes
		can_change_policy = {type = defense_lobby value = 1}
		#NOT = { domestic = { type = defense_lobby value = 9 } }
	}

	name = "AI_EVENT"
	style = 0

	date = { day = 1 month = january year = 1936 }
	offset = 7
	deathdate = { day = 29 month = december year = 1955 }

	action_a = {
		command = { type = change_policy which = defense_lobby value = 1 }
	}
}

################
# Reinforcements balance events by Pang Bingxun
#############################################

event = { 
	id = 21015
	random = no 
	country = FRA
	persistent = yes

	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_020 }
		NOT = { manpower = 1 }
	}

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

	action_a = {
		command = { type = ai which = "switch/reinforcement_020.ai" }
		command = { type = local_clrflag which = reinforcement_000 }
		command = { type = local_setflag which = reinforcement_020 }
		command = { type = local_clrflag which = reinforcement_050 }
	}
}

event = { 
	id = 21016
	random = no 
	country = FRA
	persistent = yes

	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_050 }
		manpower = 3
	}

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

	action_a = {
		command = { type = ai which = "switch/reinforcement_050.ai" }
		command = { type = local_clrflag which = reinforcement_000 }
		command = { type = local_clrflag which = reinforcement_020 }
		command = { type = local_setflag which = reinforcement_050 }
	}
}

event = {
	id = 21017
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_000 }
		atwar = no
		NOT = { year = 1938 }
	}

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

	action_a = {
		command = { type = ai which = "switch/reinforcement_000.ai" }
		command = { type = local_setflag which = reinforcement_000 }
		command = { type = local_clrflag which = reinforcement_020 }
		command = { type = local_clrflag which = reinforcement_050 }
	}
}

event = {
	id = 21018
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = reinforcement_020 }
		NOT = { local_flag = reinforcement_050 }
		OR = {
			atwar = yes
			year = 1938
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/reinforcement_050.ai" }
		command = { type = local_clrflag which = reinforcement_000 }
		command = { type = local_clrflag which = reinforcement_020 }
		command = { type = local_setflag which = reinforcement_050 }
	}
}

event = {
	id = 21019
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = Upgrading_000 }
		atwar = no
		NOT = { technology = 1030 } # 1939 Inf
		OR = {
			NOT = { year = 1938 }
			NOT = { month = 8 } # september
		}
		NOT = { year = 1939 }
	}

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

	action_a = {
		command = { type = ai which = "switch/Upgrading_000.ai" }
		command = { type = local_setflag which = Upgrading_000 }
		command = { type = local_clrflag which = Upgrading_035 }
	}
}

event = {
	id = 21020
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		NOT = { local_flag = Upgrading_035 }
		OR = {
			atwar = yes
			technology = 1030 # 1939 Inf
			AND = {
				year = 1938
				month = 8 # september
			}
			year = 1939
		}
	}

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

	action_a = {
		command = { type = ai which = "switch/Upgrading_035.ai" }
		command = { type = local_clrflag which = Upgrading_000 }
		command = { type = local_setflag which = Upgrading_035 }
	}
}

####################################
# France 21500 - 21599 = Minister Change Events
####################################
################
# Minister of Security Section 22500 - 22509
#############################################
event = { # Pierre Pené takes power
	id = 21500
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		manpower = 200
		minister = 2105 # Pierre Pené
		NOT = { InCabinet = 2105 }
	}

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

	action_a = {
		command = { type = ministerofsecurity which = 2105 }
		command = { type = dissent value = -1 }
	}
}
event = { # Henri Roy takes power
	id = 21501
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 2107 # Henri Roy
		NOT = { InCabinet = 2107 }
		OR = {
			NOT = { manpower = 200 }
			NOT = { minister = 2105 } # Pierre Pené
		}
	}

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

	action_a = {
		command = { type = ministerofsecurity which = 2107 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Staff Section 21510 - 21519
#############################################
event = { # Paul Le Gentilhomme takes power
	id = 21510
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			atwar = yes
			NOT = { minister = 2144 } # Jean-Marie Lattre de Tassigny
		}
		minister = 2148 # Paul Le Gentilhomme
		NOT = { InCabinet = 2148 }
	}

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

	action_a = {
		command = { type = chiefofstaff which = 2148 }
		command = { type = dissent value = -1 }
	}
}
event = { # Jean-Marie Lattre de Tassigny takes power
	id = 21511
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			atwar = no
			NOT = { minister = 2148 } # Paul Le Gentilhomme
		}
		minister = 2144 # Jean-Marie Lattre de Tassigny
		NOT = { InCabinet = 2144 }
	}

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

	action_a = {
		command = { type = chiefofstaff which = 2144 }
		command = { type = dissent value = -1 }
	}
}
################
# Head of Intelligence Section 21520 - 21529
#############################################
event = { # Roger Salengro takes power
	id = 21520
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 2123 # Roger Salengro
		NOT = { InCabinet = 2123 }
	}

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

	action_a = {
		command = { type = ministerofintelligence which = 2123 }
		command = { type = dissent value = -1 }
	}
}
event = { # Felix Gouin takes power
	id = 21521
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 2124 # Felix Gouin
		NOT = { InCabinet = 2124 }
		NOT = { minister = 2123 } # Roger Salengro
	}

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

	action_a = {
		command = { type = ministerofintelligence which = 2124 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of the Army Section 21530 - 21539
#############################################
event = { # Leon Victor Bourgeois takes power
	id = 21530
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = no
		minister = 2157 # Leon Victor Bourgeois
		NOT = { InCabinet = 2157 }
	}

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

	action_a = {
		command = { type = chiefofarmy which = 2157 }
		command = { type = dissent value = -1 }
	}
}
event = { # Maurice Gamelin takes power
	id = 21531
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		atwar = yes
		minister = 2008 # Maurice Gamelin
		NOT = { InCabinet = 2008 }
	}

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

	action_a = {
		command = { type = chiefofarmy which = 2008 }
		command = { type = dissent value = -1 }
	}
}
################
# Armament Minister Section 21540 - 21549
#############################################
event = { # Edouard Daladier takes power
	id = 21540
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			atwar = no
			NOT = { minister = 2069 } # Jean Louis Barthou
		}
		minister = 2068 # Edouard Daladier
		NOT = { InCabinet = 2068 }
	}

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

	action_a = {
		command = { type = armamentminister which = 2068 }
		command = { type = dissent value = -1 }
	}
}
event = { # Jean Louis Barthou takes power
	id = 21541
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		OR = {
			atwar = yes
			NOT = { minister = 2068 } # Edouard Daladier
		}
		minister = 2069 # Jean Louis Barthou
		NOT = { InCabinet = 2069 }
	}

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

	action_a = {
		command = { type = armamentminister which = 2069 }
		command = { type = dissent value = -1 }
	}
}
################
# Chief of Air Minister Section 21550 - 21559
#############################################
event = { # Marcel Deat takes power
	id = 21550
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 2183 # Marcel Deat
		NOT = { InCabinet =  2183 }
	}

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

	action_a = {
		command = { type = chiefofair which = 2183 }
		command = { type = dissent value = -1 }
	}
}
event = { # Joseph Vuillemin takes power
	id = 21551
	random = no 
	country = FRA
	persistent = yes
	
	trigger = {
		ai = yes
		minister = 2187 # Joseph Vuillemin
		NOT = { InCabinet =  2187 }
		NOT = { minister = 2183 } # Marcel Deat
	}

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

	action_a = {
		command = { type = chiefofair which = 2187 }
		command = { type = dissent value = -1 }
	}
}
