on_actions = {
	on_state_control_changed = {
		effect = {
			#for battle events, FROM is winner, ROOT is loser
			#if = {
				# Battle of Pyongyang
				#limit = {
				#	FROM.FROM = {
				#		state = 1043
				#	}
				#	OR = {
				#		FROM = {
				#			tag = PRC
				#		}
				#		FROM = {
				#			tag = VIN
				#		}
				#		FROM = {
				#			tag = CAM
				#		}
				#		FROM = {
				#			tag = PAK
				#		}
				#		FROM = {
				#			tag = PRK
				#		}
				#		FROM = {
				#			tag = SIA
				#		}
				#	}
				#	OR = {
				#		ROOT = {
				#			tag = PHI
				#		}
				#		ROOT = {
				#			tag = PRC
				#		}
				#		ROOT = {
				#			tag = VIN
				#		}
				#		ROOT = {
				#			tag = CAM
				#		}
				#		ROOT = {
				#			tag = PAK
				#		}
				#		ROOT = {
				#			tag = KOR
				#		}
				#		ROOT = {
				#			tag = SIA
				#		}
				#	}
				#	not = {
				#		has_global_flag = battle_of_pyongyang
				#	}
				#	has_global_flag = pan_asian_war_ongoing
				#}
				#set_global_flag = battle_of_pyongyang
				#news_event = {
				#	id = news.347
				#}
				#PRC = { #will de done after release
				#	random_list = {
				#		70 = {
				#			PRC = {
				#				country_event = {
				#					id = china.220
				#					days = 5
				#				}
				#			}
				#		}
				#		30 = {
				#			PRC = {
				#				country_event = {
				#					id = china.221
				#					days = 5
				#				}
				#			}
				#		}
				#	}
				#}
			#}
			#if = {
			#	# Battle of Manila
			#	limit = {
			#		FROM.FROM = {
			#			state = 1274
			#		}
			#		OR = {
			#			FROM = {
			#				tag = PRC
			#			}
			#			FROM = {
			#				tag = VIN
			#			}
			#			FROM = {
			#				tag = CAM
			#			}
			#			FROM = {
			#				tag = PAK
			#			}
			#			FROM = {
			#				tag = PRK
			#			}
			#			FROM = {
			#				tag = SIA
			#			}
			#		}
			#		OR = {
			#			ROOT = {
			#				tag = PHI
			#			}
			#			ROOT = {
			#				tag = PRC
			#			}
			#			ROOT = {
			#				tag = VIN
			#			}
			#			ROOT = {
			#				tag = CAM
			#			}
			#			ROOT = {
			#				tag = PAK
			#			}
			#			ROOT = {
			#				tag = PRK
			#			}
			#			ROOT = {
			#				tag = SIA
			#			}
			#		}
			#		not = {
			#			has_global_flag = battle_of_manila
			#		}
			#		has_global_flag = pan_asian_war_ongoing
			#	}
			#	set_global_flag = battle_of_manila
			#	news_event = {
			#		id = news.329
			#	}
			#}
			#if = {
			#	# Battle of Hanoi
			#	limit = {
			#		FROM.FROM = {
			#			state = 671
			#		}
			#		OR = {
			#			FROM = {
			#				tag = JAP
			#			}
			#			FROM = {
			#				tag = KOR
			#			}
			#			FROM = {
			#				tag = AST
			#			}
			#			FROM = {
			#				tag = CHI
			#			}
			#			FROM = {
			#				tag = IND
			#			}
			#			FROM = {
			#				tag = MAL
			#			}
			#			FROM = {
			#				tag = RAJ
			#			}
			#			FROM = {
			#				tag = VIN
			#			}
			#		}
			#		OR = {
			#			ROOT = {
			#				tag = VIN
			#			}
			#			ROOT = {
			#				tag = JAP
			#			}
			#			ROOT = {
			#				tag = KOR
			#			}
			#			ROOT = {
			#				tag = AST
			#			}
			#			ROOT = {
			#				tag = CHI
			#			}
			#			ROOT = {
			#				tag = IND
			#			}
			#			ROOT = {
			#				tag = MAL
			#			}
			#			ROOT = {
			#				tag = RAJ
			#			}
			#		}
			#		not = {
			#			has_global_flag = battle_of_hanoi
			#		}
			#		has_global_flag = pan_asian_war_ongoing
			#	}
			#	set_global_flag = battle_of_manila
			#	news_event = {
			#		id = news.330
			#	}
			#}
			if = {
				#Anti Communist/Anti Russian Uprising
				limit = {
					FROM.FROM = {
						state = 91
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = ITA
						}
						FROM = {
							tag = GRE
						}
						FROM = {
							tag = SNS
						}
						FROM = {
							tag = FAF
						}
						FROM = {
							tag = FRA
						}
						FROM = {
							tag = UK2
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = GRK
						}
						FROM = {
							tag = PRS
						}
						FROM = {
							tag = PRS
						}
						FROM = {
							tag = MLD
						}
						FROM = {
							tag = PLD
						}
						FROM = {
							tag = HUN
						}
						FROM = {
							tag = ROM
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = NOV
						}
					}
					NOT = {
						has_global_flag = UKR_bandera_uprising
					}
					has_global_flag = second_nato_war_flag
					NOT = {
						UFA = {
							exists = yes
						}
						GER = {
							OR = {
								has_government = fascist
								has_government = nationalist
							}
						}
					}
				}
				#GER = { #honestly it just doesn't work very well -IAVL
				#	country_event = { id = germany.183 days = 20 }
				#	set_global_flag = UKR_bandera_uprising
				#}
			}
			if = {
				#Ukrainian Uprising
				limit = {
					FROM.FROM = {
						state = 196
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = FAF
						}
						FROM = {
							tag = ITA
						}
						FROM = {
							tag = GRE
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = SNS
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
					}
					not = {
						has_global_flag = SOV_ukrainian_uprising
					}
					has_global_flag = second_nato_war_flag
					GER = {
						OR = {
							has_government = fascist
							has_government = nationalist
						}
					}
				}
				set_global_flag = SOV_ukrainian_uprising
				#GER = { # neither does this one
				#	country_event = {
				#		id = germany.181
				#		days = 20
				#	}
				#}
			}
			if = {
				#Heinrich Kills himself or sieged by Soviets
				limit = {
					FROM.FROM = {
						state = 65
					}
					OR = {
						FROM = {
							tag = GER
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = MLD
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
						ROOT = {
							tag = CZE
						}
						ROOT = {
							tag = PLD
						}
					}
					not = {
						has_global_flag = GER_saxony
					}
					has_global_flag = second_nato_war_flag
					GER = {
						has_government = nationalist
					}
				}
				set_global_flag = GER_saxony
				GER = {
					country_event = {
						id = germany.209
					}
					random_list = {
						70 = {
							country_event = {
								id = germany.212
								days = 25
							}
						}
						30 = {
							country_event = {
								id = germany.213
								days = 25
							}
						}
					}
				}
			}
			if = {
				#Lafayette dies in seige of Paris
				limit = {
					FROM.FROM = {
						state = 16
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = MLD
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BLR
						}
						FROM = {
							tag = CZE
						}
						FROM = {
							tag = PLD
						}
					}
					OR = {
						ROOT = {
							tag = FAF
						}
					}
					has_country_leader = {
						character = FRA_Lafayette_char
						ruling_only = yes
					}
				}
				FAF = {
					country_event = {
						id = Nationalist_France.45
					}
				}
			}
			if = {
				#Autumn
				limit = {
					FROM.FROM = {
						state = 51
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
						ROOT = {
							tag = MLD
						}
						ROOT = {
							tag = PLD
						}
						ROOT = {
							tag = CZE
						}
						ROOT = {
							tag = ROM
						}
						ROOT = {
							tag = HUN
						}
						ROOT = {
							tag = BUL
						}
					}
					OR = {
						FROM = {
							tag = GER
						}
					}
					not = {
						has_global_flag = battle_of_cologne
					}
					GER = {
						has_global_flag = GER_cologne_capital
					}
				}
				set_global_flag = battle_of_cologne
				GER = {
					if = {
						limit = {
							has_government = fascist
						}
						country_event = {
							id = germany.996
						}
						SOV = {
							random_list = {
								70 = {
									country_event = {
										id = germany.210
										days = 5
									}
								}
								30 = {
									country_event = {
										id = germany.214
										days = 5
									}
								}
							}
						}
					}
					else_if = {
						limit = {
							has_government = nationalist
						}
						country_event = {
							id = germany.995
						}
					}
				}
			}
			if = {
				#Autumn
				limit = {
					FROM.FROM = {
						state = 55
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
						ROOT = {
							tag = MLD
						}
						ROOT = {
							tag = PLD
						}
						ROOT = {
							tag = CZE
						}
						ROOT = {
							tag = ROM
						}
						ROOT = {
							tag = HUN
						}
						ROOT = {
							tag = BUL
						}
					}
					OR = {
						FROM = {
							tag = GER
						}
					}
					not = {
						has_global_flag = battle_of_frankfurt
					}
					GER = {
						has_global_flag = GER_frankfurt_capital
					}
				}
				set_global_flag = battle_of_frankfurt
				GER = {
					if = {
						limit = {
							has_government = fascist
						}
						country_event = {
							id = germany.996
						}
						SOV = {
							random_list = {
								70 = {
									country_event = {
										id = germany.210
										days = 5
									}
								}
								30 = {
									country_event = {
										id = germany.214
										days = 5
									}
								}
							}
						}
					}
					else_if = {
						limit = {
							has_government = nationalist
						}
						country_event = {
							id = germany.995
						}
					}
				}
			}
			if = {
				#Autumn
				limit = {
					FROM.FROM = {
						state = 52
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
						ROOT = {
							tag = MLD
						}
						ROOT = {
							tag = PLD
						}
						ROOT = {
							tag = CZE
						}
						ROOT = {
							tag = ROM
						}
						ROOT = {
							tag = HUN
						}
						ROOT = {
							tag = BUL
						}
					}
					OR = {
						FROM = {
							tag = GER
						}
					}
					not = {
						has_global_flag = battle_of_munich
					}
					GER = {
						has_global_flag = GER_munich_capital
					}
				}
				set_global_flag = battle_of_munich
				GER = {
					if = {
						limit = {
							has_government = fascist
						}
						country_event = {
							id = germany.996
						}
						SOV = {
							random_list = {
								70 = {
									country_event = {
										id = germany.210
										days = 5
									}
								}
								30 = {
									country_event = {
										id = germany.214
										days = 5
									}
								}
							}
						}
					}
					else_if = {
						limit = {
							has_government = nationalist
						}
						country_event = {
							id = germany.995
						}
					}
				}
			}
			if = {
				#Third Battle of Kiev fascist
				limit = {
					FROM.FROM = {
						state = 1285
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = FAF
						}
						FROM = {
							tag = ITA
						}
						FROM = {
							tag = GRE
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = SNS
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
					}
					not = {
						has_global_flag = third_battle_of_kiev_fascist
					}
					has_global_flag = second_nato_war_flag
					has_global_flag = second_battle_of_kiev_fascist
					GER = {
						OR = {
							has_government = fascist
							has_government = nationalist
						}
					}
				}
				set_global_flag = third_battle_of_kiev_fascist
				news_event = {
					id = news.301
				}
			}
			if = {
				#Second Battle of Kiev fascist
				limit = {
					FROM.FROM = {
						state = 1285
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BLR
						}
					}
					OR = {
						ROOT = {
							tag = GER
						}
						ROOT = {
							tag = FAF
						}
						ROOT = {
							tag = ITA
						}
						ROOT = {
							tag = GRE
						}
						ROOT = {
							tag = ENG
						}
						ROOT = {
							tag = SPR
						}
					}
					not = {
						has_global_flag = second_battle_of_kiev_fascist
					}
					has_global_flag = second_nato_war_flag
					has_global_flag = battle_of_kiev_fascist
					GER = {
						OR = {
							has_government = fascist
							has_government = nationalist
						}
					}
				}
				set_global_flag = second_battle_of_kiev_fascist
				news_event = {
					id = news.300
				}
			}
			if = {
				#Battle of Kiev fascist
				limit = {
					FROM.FROM = {
						state = 1285
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = FAF
						}
						FROM = {
							tag = ITA
						}
						FROM = {
							tag = GRE
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = SNS
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
					}
					not = {
						has_global_flag = battle_of_kiev_fascist
					}
					has_global_flag = second_nato_war_flag
				}
				set_global_flag = battle_of_kiev_fascist
				news_event = {
					id = news.299
				}
				GER = {
					country_event = {
						id = germany.171
						days = 2
					}
				}
			}
			if = {
				#Check for communist uprising
				limit = {
					FROM.FROM = {
						state = 743
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = MLD
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BLR
						}
					}
					OR = {
						ROOT = {
							tag = GER
						}
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = MLD
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = BLR
						}
					}
					not = {
						has_global_flag = soviets_crossed_oder
					}
					has_war_with = SOV
					has_global_flag = second_nato_war_flag
					GER = {
						OR = {
							has_government = fascist
							has_government = nationalist
						}
					}
				}
				set_global_flag = soviets_crossed_oder
			}
			if = {
				#Battle of Istanbul
				limit = {
					FROM.FROM = {
						state = 341
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = GRE
						}
					}
					OR = {
						ROOT = {
							tag = TUR
						}
					}
					not = {
						has_global_flag = battle_of_ankara
					}
				}
				GER = {
					country_event = {
						id = germany.130
						days = 5
					}
				}
				set_global_flag = battle_of_ankara
			}
			if = {
				#Vittorio Veneto
				limit = {
					FROM.FROM = {
						state = 234
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BLR
						}
						FROM = {
							tag = AUS
						}
						FROM = {
							tag = GER
						}
					}
					OR = {
						ROOT = {
							tag = ITA
						}
					}
					has_global_flag = second_nato_war_flag
					not = {
						has_global_flag = SOV_battle_of_venice
					}
				}
				set_global_flag = SOV_battle_of_venice
				if = {
					limit = {
						GER = {
							has_cosmetic_tag = EUU
						}
					}
					add_stability = -0.1
				}
			}
			if = {
				#Vistula Line Breached
				limit = {
					FROM.FROM = {
						state = 234
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BLR
						}
					}
					OR = {
						ROOT = {
							tag = PLD
						}
					}
					has_global_flag = second_nato_war_flag
					not = {
						has_global_flag = SOV_vistula_collapse
					}
				}
				GER = {
					random_list = {
						60 = {
						}
						40 = {
							country_event = {
								id = germany.105
								days = 5
							}
						}
					}
				}
				set_global_flag = SOV_vistula_collapse
			}
			if = {
				#Circassian Defenses Collapse
				limit = {
					FROM.FROM = {
						state = 234
					}
					OR = {
						FROM = {
							tag = SOV
						}
					}
					OR = {
						ROOT = {
							tag = FER
						}
					}
					NOT = {
						has_global_flag = SOV_kuban_collapse
					}
					has_global_flag = second_nato_war_flag
				}
				GER = {
					country_event = {
						id = germany.102
						days = 5
					}
				}
				set_global_flag = SOV_kuban_collapse
			}
			if = {
				#Ukrainian Defenses Collapse
				limit = {
					FROM.FROM = {
						OR = {
							state = 197
							state = 226
							state = 203
							state = 202
							state = 1285
						}
					}
					OR = {
						FROM = {
							tag = SOV
						}
					}
					OR = {
						ROOT = {
							tag = UKR
						}
					}
					not = {
						has_global_flag = SOV_dniper_collapse
					}
					has_global_flag = second_nato_war_flag
				}
				GER = {
					country_event = {
						id = germany.103
						days = 5
					}
				}
				set_global_flag = SOV_dniper_collapse
			}
			if = {
				#Point Salah
				limit = {
					FROM.FROM = {
						OR = {
							state = 462
							state = 461
							state = 290
							state = 459
							state = 460
							state = 458
							state = 665
							state = 448
							state = 449
							state = 450
							state = 451
						}
					}
					OR = {
						FROM = {
							tag = GER
						}
						FROM = {
							tag = FRA
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = ITA
						}
						FROM = {
							tag = SPR
						}
						FROM = {
							tag = GRE
						}
						FROM = {
							tag = SWE
						}
						FROM = {
							tag = CZE
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = BEL
						}
						FROM = {
							tag = POR
						}
						FROM = {
							tag = HOL
						}
						FROM = {
							tag = DEN
						}
						FROM = {
							tag = HUN
						}
						FROM = {
							tag = TUR
						}
					}
					OR = {
						ROOT = {
							tag = HRL
						}
					}
					NOT = {
						has_global_flag = HRL_point_salah
					}
				}
				GER = {
					if = {
						limit = {
							has_completed_focus = GER_european_officer_corps
						}
						random_list = {
							60 = {
							}
							40 = {
								GER = {
									GER_claudio_graziano = {
										unit_leader_event = {
											id = germany.99
											days = 5
										}
									}
								}
							}
						}
					}
				}
			}
			if = {
				#Riyadh Nuke
				limit = {
					FROM.FROM = {
						state = 1126
					}
					OR = {
						FROM = {
							tag = ARR
						}
						FROM = {
							tag = JAH
						}
					}
					OR = {
						ROOT = {
							tag = ARR
						}
						ROOT = {
							tag = JAH
						}
					}
					NOT = {
						has_global_flag = JAH_nuke
					}
					ARR = {
						has_cosmetic_tag = ARR_khalid
					}
				}
				random_list = {
					60 = {
					}
					40 = {
						GER = {
							country_event = {
								id = germany.95
								days = 10
							}
						}
						news_event = {
							id = news.275
						}
						every_country = {
							goto_province = 13790
						}
						launch_nuke = {
							state = 1032
							controller = ARR
							use_nuke = no
						}
						sound_effect = siren_sound_effect
						set_global_flag = JAH_nuke
					}
				}
			}
			if = {
				#Paradise Incident
				limit = {
					FROM.FROM = {
						state = 947
					}
					OR = {
						FROM = {
							tag = APA
						}
						FROM = {
							tag = CLM
						}
					}
					OR = {
						ROOT = {
							tag = APA
						}
						ROOT = {
							tag = CLM
						}
					}
					not = {
						has_global_flag = APA_paradize_raized
					}
				}
				APA = {
					random_country_division = {
						limit = {
							division_has_battalion_in_template = militia
							is_unit_template_reserves = no
							unit_strength > 0.5
						}
						add_history_entry = {
							key = "Partook in the cleansing of Paradise."
							subject = "Division Honor"
							allow = yes
						}
					}
				}
				set_global_flag = APA_paradize_raized
			}
			if = {
				#San Francisco Prysner Death Event
				limit = {
					FROM.FROM = {
						state = 932
					}
					OR = {
						FROM = {
							tag = APA
						}
					}
					OR = {
						ROOT = {
							tag = PTF
						}
					}
					not = {
						has_global_flag = PTF_prysner_death
					}
				}
				PTF = {
					country_event = {
						id = ptf.155
					}
				}
				APA = {
					country_event = {
						id = apla.88
					}
				}
				set_global_flag = PTF_prysner_death
			}
			if = {
				#Looting the  Crown
				limit = {
					FROM.FROM = {
						state = 947
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
					}
					OR = {
						ROOT = {
							tag = ROM
						}
					}
					not = {
						has_global_flag = SOV_crown_looted
					}
				}
				SOV = {
					country_event = {
						id = russia.245
					}
				}
				set_global_flag = SOV_crown_looted
			}
			if = {
				#Notice of Conduct
				limit = {
					FROM.FROM = {
						state = 226
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
					}
					not = {
						has_global_flag = SOV_notice_of_conduct
					}
				}
				SOV = {
					SOV_dmitry_bulgakov = {
						unit_leader_event = {
							id = russia.235
						}
					}
					SOV_Mikhail_Mizintsev = {
						unit_leader_event = {
							id = russia.236
							days = 3
						}
					}
				}
				set_global_flag = SOV_notice_of_conduct
			}
			if = {
				#Battle of Frankfurt
				limit = {
					FROM.FROM = {
						state = 55
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = GER_battle_of_frankfurt
					}
				}
				news_event = {
					id = news.238
				}
				set_global_flag = GER_battle_of_frankfurt
			}
			if = {
				#Battle of Prague
				limit = {
					FROM.FROM = {
						state = 9
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = CZE_battle_of_prague
					}
				}
				news_event = {
					id = news.239
				}
				set_global_flag = CZE_battle_of_prague
			}
			if = {
				#Battle of Berlin
				limit = {
					FROM.FROM = {
						state = 1378
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = GER_battle_of_berlin
					}
				}
				NEP = {
					country_event = {
						id = nep.1
					}
				}
				GER = {
					if = {
						limit = {
							has_country_flag = GER_defend_berlin
							has_global_flag = {
								flag = soviets_crossed_oder
								days > 25
							}
							NOT = {
								DDR = {
									exists = yes
								}
							}
						}
						country_event = {
							id = germany.153
							days = 5
						}
					}
					GER = {
						GER_andreas_marlow = {
							unit_leader_event = {
								id = germany.205
								days = 2
							}
						}
					}
				}
				set_global_flag = GER_battle_of_berlin
			}
			if = {
				#Battle of Milan
				limit = {
					FROM.FROM = {
						state = 159
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					NOT = {
						has_global_flag = ITA_battle_of_milan
						GER = {
							has_war = no
						}
					}
				}
				news_event = {
					id = news.241
				}
				set_global_flag = ITA_battle_of_milan
			}
			if = {
				#Battle of Paris
				limit = {
					FROM.FROM = {
						state = 16
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = FRA_battle_of_paris
					}
				}
				news_event = {
					id = news.327
				}
				set_global_flag = FRA_battle_of_paris
				if = {
					limit = {
						FROM = {
							tag = SOV
						}
					}
					country_event = {
						id = germany.219
					}
				}
			}
			if = {
				#Battle of Brussels
				limit = {
					FROM.FROM = {
						state = 1364
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = SOV_battle_of_brussels
					}
				}
				news_event = {
					id = news.328
				}
				set_global_flag = SOV_battle_of_brussels
				if = {
					limit = {
						FROM = {
							tag = SOV
						}
					}
					GER = {
						country_event = {
							id = germany.225
						}
					}
				}
			}
			if = {
				#Bandera Statue Destroyed
				limit = {
					FROM.FROM = {
						state = 91
					}
					OR = {
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = NOV
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = NOV
						}
					}
					not = {
						has_global_flag = UKR_destroyed_bandera
					}
				}
				SOV = {
					country_event = {
						id = russia.119
						hours = 5
					}
					set_global_flag = UKR_destroyed_bandera
				}
			}
			if = {
				#Zaporozhye NPP
				limit = {
					FROM.FROM = {
						state = 200
					}
					OR = {
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = NOV
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = NOV
						}
					}
					NOT = {
						OR = {
							has_global_flag = UKR_destroyed_zaporozhye
							SOV = {
								controls_state = 200
							}
							NOV = {
								controls_state = 200
							}
						}
					}
				}
				SOV = {
					random_list = {
						60 = {
						}
						40 = {
							country_event = {
								id = russia.89
								days = 2
							}
							set_global_flag = UKR_destroyed_zaporozhye
						}
					}
				}
			}
			if = {
				#Cobasna Ammunition Depot Explosion
				limit = {
					FROM.FROM = {
						state = 857
					}
					OR = {
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = TRA
						}
						FROM = {
							tag = MOL
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = TRA
						}
						ROOT = {
							tag = MOL
						}
					}
					NOT = {
						OR = {
							has_global_flag = TRA_destroyed_cobasna
							SOV = {
								controls_state = 857
							}
							TRA = {
								controls_state = 857
							}
						}
					}
				}
				SOV = {
					random_list = {
						30 = {
						}
						70 = {
							set_global_flag = TRA_destroyed_cobasna
							every_country = {
								goto_province = 13213
								news_event = {
									id = news.276
								}
							}
							launch_nuke = {
								province = 13213
								use_nuke = no
							}
							78 = {
								damage_building = {
									type = infrastructure
									damage = 5
								}
							}
							192 = {
								damage_building = {
									type = infrastructure
									damage = 5
								}
							}
							TRA = {
								remove_ideas = {
									TRA_cobasna_ammunition_depot
								}
							}
						}
					}
				}
			}
			if = {
				#Tallin
				limit = {
					FROM.FROM = {
						state = 13
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = EST
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = EST
						}
					}
					not = {
						has_global_flag = SOV_taken_tallin
					}
				}
				SOV = {
					if = {
						limit = {
							OR = {
								has_government = communist
								has_government = libertarian_socialist
							}
							NOT = {
								has_completed_focus = SOV_operation_suvorov
							}
						}
						complete_national_focus = SOV_operation_suvorov
					}
					else_if = {
						limit = {
							has_government = authoritarian_democrat
							NOT = {
								has_completed_focus = SOV_operation_rokossovsky_UR
							}
						}
						complete_national_focus = SOV_operation_rokossovsky_UR
					}
					else_if = {
						limit = {
							has_government = fascist
							NOT = {
								has_completed_focus = SOV_operation_rokossovsky_LDPR
							}
						}
						complete_national_focus = SOV_operation_rokossovsky_LDPR
					}
					set_global_flag = SOV_taken_tallin
				}
				13 = {
					add_extra_state_shared_building_slots = -2
				}
			}
			if = {
				#Polish resistance Podlasie
				limit = {
					FROM.FROM = {
						state = 97
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = POL
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = POL
						}
					}
					not = {
						has_global_flag = POL_resistance_podlasie
					}
				}
				ROOT = {
					country_event = {
						id = russia.61
					}
				}
				random_country = {
					if = {
						limit = {
							97 = {
								is_core_of = FROM
							}
						}
						97 = {
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = POL_resistance_podlasie
			}
			if = {
				#Polish resistance mazuria
				limit = {
					FROM.FROM = {
						state = 5
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = POL
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = POL
						}
					}
					not = {
						has_global_flag = POL_resistance_mazuria
					}
				}
				ROOT = {
				}
				random_country = {
					if = {
						limit = {
							5 = {
								is_core_of = FROM
							}
						}
						5 = {
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = POL_resistance_mazuria
			}
			if = {
				#Polish resistance Lublin
				limit = {
					FROM.FROM = {
						state = 92
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = POL
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = POL
						}
					}
					not = {
						has_global_flag = POL_resistance_lublin
					}
				}
				ROOT = {
				}
				random_country = {
					if = {
						limit = {
							92 = {
								is_core_of = FROM
							}
						}
						92 = {
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = POL_resistance_lublin
			}
			if = {
				#Polish resistance Kielce
				limit = {
					FROM.FROM = {
						state = 90
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = POL
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = POL
						}
					}
					not = {
						has_global_flag = POL_resistance_kielce
					}
				}
				ROOT = {
				}
				random_country = {
					if = {
						limit = {
							90 = {
								is_core_of = FROM
							}
						}
						90 = {
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Territorial Defence Brigade\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = POL_resistance_kielce
			}
			if = {
				#Bahkmut
				limit = {
					FROM.FROM = {
						state = 1091
					}
					FROM.FROM = {
						controls_province = 3479
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = NOV
						}
					}
					ROOT = {
						OR = {
							tag = GER
							tag = ITA
							tag = FAF
						}
					}
					not = {
						has_global_flag = captured_bakhmut
					}
				}
				ROOT = {
					add_war_support = 0.03
				}
				set_global_flag = captured_bakhmut
				news_event = {
					id = news.270
					hours = 7
				}
			}
			if = {
				#Vilnuis
				limit = {
					FROM.FROM = {
						state = 96
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = BLR
						}
						FROM = {
							tag = LIT
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = BLR
						}
						ROOT = {
							tag = LIT
						}
					}
					not = {
						has_global_flag = captured_vilnuis
					}
				}
				SOV = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 35
					}
					modify_timed_idea = {
						idea = SOV_russian_storm
						days = 35
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 25
					}
				}
				random_country = {
					if = {
						limit = {
							96 = {
								is_core_of = FROM
							}
						}
						BLR = {
							load_oob = "BLR_militia"
						}
						96 = {
							create_unit = {
								division = "name = \"Savanorių Brigada\" division_template = \"National defence brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Savanorių Brigada\" division_template = \"National defence brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Savanorių Brigada\" division_template = \"National defence brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = captured_vilnuis
				news_event = {
					id = news.193
					hours = 4
				}
			}
			if = {
				#Minsk
				limit = {
					FROM.FROM = {
						state = 206
					}
					FROM = {
						OR = {
							tag = SOV
							tag = BLR
						}
					}
					ROOT = {
						OR = {
							tag = UKR
							tag = POL
							tag = LIT
							tag = LAT
						}
					}
					not = {
						has_global_flag = captured_minsk
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				ROOT = {
					add_war_support = 0.03
				}
				SOV = {
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				random_country = {
					if = {
						limit = {
							206 = {
								is_core_of = FROM
							}
						}
						BLR = {
							load_oob = "BLR_militia"
						}
						206 = {
							create_unit = {
								division = "name = \"Dobraachvotnickaja Bryhada\" division_template = \"Dobraachvotnickaja Bryhada\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobraachvotnickaja Bryhada\" division_template = \"Dobraachvotnickaja Bryhada\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobraachvotnickaja Bryhada\" division_template = \"Dobraachvotnickaja Bryhada\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				NATO_escalate_the_war_effect = yes
				set_global_flag = captured_minsk
				news_event = {
					id = news.194
					hours = 5
				}
			}
			if = {
				#Second Battle of Minsk
				limit = {
					FROM.FROM = {
						state = 206
					}
					FROM = {
						OR = {
							tag = UKR
							tag = POL
							tag = LIT
							tag = LAT
						}
					}
					ROOT = {
						OR = {
							tag = SOV
							tag = BLR
						}
					}
					not = {
						has_global_flag = captured_minsk_second
					}
					has_global_flag = captured_minsk
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 25
					}
					modify_timed_idea = {
						idea = SOV_russian_storm
						days = 35
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 15
					}
				}
				set_global_flag = captured_minsk_second
				news_event = {
					id = news.200
					hours = 5
				}
			}
			if = {
				#SOV event The Hunt
				limit = {
					FROM.FROM = {
						OR = {
							state = 5
							state = 97
							state = 92
							state = 98
							state = 10
							state = 88
							state = 90
						}
					}
					FROM = {
						tag = PLD
					}
					ROOT = {
						OR = {
							tag = SOV
							tag = BLR
							tag = UKR
						}
					}
					not = {
						has_global_flag = SOV_the_hunt
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				set_global_flag = SOV_the_hunt
				SOV = {
					country_event = {
						id = russia.782
						days = 10
						random_days = 7
					}
				}
			}
			if = {
				#Odessa
				limit = {
					FROM.FROM = {
						state = 192
					}
					FROM = {
						OR = {
							tag = UKR
						}
					}
					ROOT = {
						OR = {
							tag = NOV
							tag = SOV
							tag = BLR
						}
					}
					NOT = {
						has_global_flag = captured_odessa
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 25
					}
				}
				set_global_flag = captured_odessa
				news_event = {
					id = news.208
					hours = 7
				}
			}
			if = {
				#Second Battle of Odessa
				limit = {
					FROM.FROM = {
						state = 192
					}
					FROM = {
						OR = {
							tag = SOV
							tag = UKR
							tag = NOV
						}
					}
					ROOT = {
						OR = {
							tag = GER
							tag = ROM
							tag = HUN
							tag = FRA
							tag = GRE
							tag = TUR
							tag = MOL
						}
					}
					not = {
						has_global_flag = captured_odessa_second
					}
					has_global_flag = captured_odessa
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.03
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -30
					}
				}
				set_global_flag = captured_odessa_second
				news_event = {
					id = news.209
					hours = 7
				}
			}
			if = {
				#Sevastopol
				limit = {
					FROM.FROM = {
						state = 1059
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = UKR
						}
						FROM = {
							tag = GER
						}
						FROM = {
							tag = ENG
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = UKR
						}
						ROOT = {
							tag = GER
						}
						ROOT = {
							tag = ENG
						}
					}
					not = {
						has_global_flag = captured_sevastopol
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.05
					focus_unlock = yes
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_sevastopol
				news_event = {
					id = news.199
					hours = 7
				}
			}
			if = {
				#Rosotv
				limit = {
					FROM.FROM = {
						state = 853
					}
					ROOT = {
						is_ally_with = GER
					}
					FROM = {
						tag = SOV
					}
					not = {
						has_global_flag = captured_rostov
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.05
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_rostov
				news_event = {
					id = news.233
					hours = 7
				}
			}
			if = {
				#Kaliningrad
				limit = {
					FROM.FROM = {
						state = 741
					}
					ROOT = {
						is_ally_with = GER
					}
					FROM = {
						tag = SOV
					}
					not = {
						has_global_flag = captured_kaliningrad
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.05
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_kaliningrad
				news_event = {
					id = news.232
					hours = 7
				}
			}
			if = {
				#St Petersburg
				limit = {
					FROM.FROM = {
						state = 195
					}
					ROOT = {
						is_ally_with = GER
					}
					FROM = {
						tag = SOV
					}
					not = {
						has_global_flag = captured_petersburg
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.05
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_petersburg
				news_event = {
					id = news.236
					hours = 7
				}
			}
			if = {
				#Volgograd
				limit = {
					FROM.FROM = {
						state = 217
					}
					ROOT = {
						is_ally_with = GER
					}
					FROM = {
						tag = SOV
					}
					not = {
						has_global_flag = captured_volgograd
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = -0.05
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_volgograd
				news_event = {
					id = news.234
					hours = 7
				}
			}
			if = {
				#POL
				limit = {
					FROM.FROM = {
						state = 88
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = captured_krakow
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 25
					}
				}
				set_global_flag = captured_krakow
				news_event = {
					id = news.235
					hours = 5
				}
			}
			if = {
				#Kiev
				limit = {
					FROM.FROM = {
						state = 1285
					}
					FROM = {
						OR = {
							tag = UKR
							tag = SOV
							tag = BLR
							tag = NOV
						}
					}
					ROOT = {
						OR = {
							tag = UKR
							tag = SOV
							tag = BLR
							tag = NOV
						}
					}
					not = {
						has_global_flag = captured_kiev
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				ROOT = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 35
					}
					modify_timed_idea = {
						idea = SOV_russian_storm
						days = 35
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 35
					}
					random_list = {
						70 = {
							news_event = {
								id = news.230
								hours = 7
							}
							UKR = {
								add_timed_idea = {
									idea = UKR_kiev_counter_offensive
									days = 60
								}
							}
						}
						30 = {
							country_event = {
								id = russia.76
								days = 15
							}
						}
					}
					random_list = {
						100 = {
							country_event = {
								id = russia.83
								days = 7
							}
							NEP = {
								country_event = {
									id = russia.217
									days = 15
								}
							}
						}
					}
				}
				random_country = {
					if = {
						limit = {
							1285 = {
								is_core_of = FROM
							}
						}
						1285 = {
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Dobrovolʹcha Bryhada Militsiyi\" division_template = \"Natsionalna Hvardiya 2\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = captured_kiev
				news_event = {
					id = news.195
				}
				GER = {
					NATO_escalate_the_war_effect = yes
				}
				ROOT = {
					1285 = {
						add_extra_state_shared_building_slots = -2
					}
				}
			}
			if = {
				#Second Battle of Kiev
				limit = {
					FROM.FROM = {
						state = 1285
					}
					FROM = {
						is_ally_with = SOV
					}
					ROOT = {
						OR = {
							is_ally_with = GER
							is_ally_with = UKR
						}
					}
					NOT = {
						OR = {
							has_global_flag = captured_kiev_second
							UKR = {
								is_puppet_of = SOV
							}
						}
					}
					has_global_flag = captured_kiev
				}
				SOV = {
					add_war_support = -0.03
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = -25
					}
				}
				set_global_flag = captured_kiev_second
				news_event = {
					id = news.201
					hours = 7
				}
				ROOT = {
					1285 = {
						add_extra_state_shared_building_slots = -2
					}
				}
			}
			if = {
				#Budapest
				limit = {
					FROM.FROM = {
						state = 854
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = captured_budapest
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 40
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 25
					}
				}
				random_country = {
					if = {
						limit = {
							43 = {
								is_core_of = FROM
							}
						}
						43 = {
							create_unit = {
								division = "name = \"Mozgósított Tartalékdandár\" division_template = \"Gyalogdandár\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Mozgósított Tartalékdandár\" division_template = \"Gyalogdandár\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Mozgósított Tartalékdandár\" division_template = \"Gyalogdandár\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = captured_budapest
				news_event = {
					id = news.196
				}
				43 = {
					add_extra_state_shared_building_slots = -2
				}
			}
			if = {
				#Bucharest
				limit = {
					FROM.FROM = {
						state = 835
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = captured_bucharest
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 35
					}
					modify_timed_idea = {
						idea = SOV_russian_storm
						days = 35
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 35
					}
				}
				random_country = {
					if = {
						limit = {
							46 = {
								is_core_of = FROM
							}
						}
						46 = {
							create_unit = {
								division = "name = \"Brigada Vantori de Munte\" division_template = \"Brigada Vantori de Munte\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Brigada Vantori de Munte\" division_template = \"Brigada Vantori de Munte\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Brigada Vantori de Munte\" division_template = \"Brigada Vantori de Munte\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Brigada Infanterie Blindata\" division_template = \"Brigada Infanterie Blindata\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = captured_bucharest
				news_event = {
					id = news.215
					hours = 6
				}
				ROOT = {
					835 = {
						add_extra_state_shared_building_slots = -2
					}
				}
			}
			if = {
				#Warsaw
				limit = {
					FROM.FROM = {
						state = 855
					}
					ROOT = {
						is_ally_with = SOV
					}
					FROM = {
						is_ally_with = GER
					}
					not = {
						has_global_flag = captured_warsaw
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				SOV = {
					add_war_support = 0.03
					modify_timed_idea = {
						idea = SOV_soviet_storm
						days = 40
					}
					modify_timed_idea = {
						idea = SOV_russian_storm
						days = 40
					}
					add_days_mission_timeout = {
						mission = SOV_nato_war_deadline
						days = 25
					}
				}
				POL = {
					add_ideas = POL_not_yet_lost_idea
				}
				random_country = {
					if = {
						limit = {
							10 = {
								is_core_of = FROM
							}
						}
						10 = {
							create_unit = {
								division = "name = \"Ochotnicza Brygada Armii Krajowej\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Ochotnicza Brygada Armii Krajowej\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Ochotnicza Brygada Armii Krajowej\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Ochotnicza Brygada Armii Krajowej\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
							create_unit = {
								division = "name = \"Ochotnicza Brygada Armii Krajowej\" division_template = \"Territorial Defence Brigade\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = FROM
							}
						}
					}
				}
				set_global_flag = captured_warsaw
				news_event = {
					id = news.197
					hours = 6
				}
			}
			if = {
				#Novgorod
				limit = {
					FROM.FROM = {
						state = 263
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = EST
						}
						FROM = {
							tag = LAT
						}
						FROM = {
							tag = LIT
						}
						FROM = {
							tag = GER
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = FRA
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = EST
						}
						ROOT = {
							tag = LAT
						}
						ROOT = {
							tag = LIT
						}
						ROOT = {
							tag = GER
						}
						ROOT = {
							tag = ENG
						}
						ROOT = {
							tag = FRA
						}
					}
					not = {
						has_global_flag = captured_novgorod
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				random_country = {
					if = {
						limit = {
							263 = {
								is_core_of = ROOT
							}
						}
						263 = {
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
						}
					}
				}
				set_global_flag = captured_novgorod
			}
			if = {
				#Moscow
				limit = {
					FROM.FROM = {
						state = 219
					}
					OR = {
						FROM = {
							tag = SOV
						}
						FROM = {
							tag = EST
						}
						FROM = {
							tag = LAT
						}
						FROM = {
							tag = LIT
						}
						FROM = {
							tag = GER
						}
						FROM = {
							tag = ENG
						}
						FROM = {
							tag = FRA
						}
					}
					OR = {
						ROOT = {
							tag = SOV
						}
						ROOT = {
							tag = EST
						}
						ROOT = {
							tag = LAT
						}
						ROOT = {
							tag = LIT
						}
						ROOT = {
							tag = GER
						}
						ROOT = {
							tag = ENG
						}
						ROOT = {
							tag = FRA
						}
					}
					not = {
						has_global_flag = captured_moscow
					}
				}
				random_country = {
					if = {
						limit = {
							219 = {
								is_core_of = ROOT
							}
						}
						219 = {
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
							create_unit = {
								division = "name = \"Batal'on Opolcheniya\" division_template = \"Batal'on Opolcheniya\"  start_experience_factor = 0.2"
								allow_spawning_on_enemy_provs = yes
								owner = SOV
							}
						}
					}
				}
				set_global_flag = captured_moscow
			}
			if = {
				#shebekino
				limit = {
					FROM.FROM = {
						state = 1283
					}
					FROM = {
						OR = {
							tag = SOV
							tag = BLR
						}
					}
					ROOT = {
						OR = {
							tag = UKR
							tag = POL
							tag = MOL
							tag = FRA
							tag = GER
							tag = ENG
						}
					}
					NOT = {
						has_global_flag = captured_shebekino
					}
					has_global_flag = SOV_nato_war_begins_global
				}
				set_global_flag = captured_shebekino
				SOV = {
					country_event = {
						id = russia.766
						hours = 5
					}
				}
			}
			if = {
				#Palmetto State Armory
				limit = {
					FROM.FROM = {
						state = 1024
					}
					ROOT = {
						NOT = {
							has_country_flag = USA_OWNS_PALMETTO_STATE_ARMORY
						}
					}
				}
				ROOT = {
					if = {
						limit = {
							USA_is_civil_war_faction = yes
						}
						set_country_flag = USA_OWNS_PALMETTO_STATE_ARMORY
						country_event = {
							id = states.66
							hours = 1
						}
					}
				}
				FROM = {
					if = {
						limit = {
							has_war = yes
						}
						clr_country_flag = USA_OWNS_PALMETTO_STATE_ARMORY
						country_event = {
							id = states.67
							hours = 1
						}
					}
				}
			}
			if = {
				#Hoover Dam
				limit = {
					FROM.FROM = {
						state = 992
					}
					ROOT = {
						NOT = {
							has_country_flag = USA_OWNS_HOOVER_DAM
						}
					}
				}
				ROOT = {
					if = {
						limit = {
							USA_is_civil_war_faction = yes
						}
						set_country_flag = USA_OWNS_HOOVER_DAM
						country_event = {
							id = states.68
							hours = 1
						}
					}
				}
				FROM = {
					if = {
						limit = {
							has_war = yes
						}
						clr_country_flag = USA_OWNS_HOOVER_DAM
						country_event = {
							id = states.69
							hours = 1
						}
					}
				}
			}
			if = {
				#Hanscom Airforce Base
				limit = {
					FROM.FROM = {
						state = 1078
					}
				}
				ROOT = {
					if = {
						limit = {
							USA_is_civil_war_faction = yes
						}
						country_event = {
							id = states.90
						}
					}
				}
			}
			if = {
				#Alb PD
				limit = {
					FROM.FROM = {
						state = 1235
					}
					ROOT = {
						NOT = {
							has_country_flag = USA_OWNS_ALBURQUERQUE
						}
					}
				}
				ROOT = {
					if = {
						limit = {
							USA_is_civil_war_faction = yes
						}
						set_country_flag = USA_OWNS_ALBURQUERQUE
						country_event = {
							id = states.70
							hours = 1
						}
					}
				}
				FROM = {
					if = {
						limit = {
							has_war = yes
						}
						clr_country_flag = USA_OWNS_ALBURQUERQUE
						country_event = {
							id = states.71
							hours = 1
						}
					}
				}
			}
			if = {
				#Lockheed Martin Facility
				limit = {
					FROM.FROM = {
						state = 1039
					}
					ROOT = {
						NOT = {
							has_country_flag = USA_OWNS_LOCKHEED
						}
					}
				}
				ROOT = {
					if = {
						limit = {
							USA_is_civil_war_faction = yes
						}
						set_country_flag = USA_OWNS_LOCKHEED
						country_event = {
							id = states.74
							hours = 1
						}
					}
				}
				FROM = {
					if = {
						limit = {
							has_war = yes
						}
						clr_country_flag = USA_OWNS_LOCKHEED
						country_event = {
							id = states.75
							hours = 1
						}
					}
				}
			}
			if = {
				#Rock Island Arsenal
				limit = {
					FROM.FROM = {
						state = 1121
					}
					ROOT = {
						NOT = {
							has_country_flag = USA_OWNS_ROCK_ISLAND
						}
					}
				}
				ROOT = {
					if = {
						limit = {
							has_idea = USA_battle_for_america_idea
						}
						set_country_flag = USA_OWNS_ROCK_ISLAND
						country_event = {
							id = states.76
							hours = 1
						}
					}
				}
				FROM = {
					if = {
						limit = {
							has_war = yes
						}
						clr_country_flag = USA_OWNS_ROCK_ISLAND
						country_event = {
							id = states.77
							hours = 1
						}
					}
				}
			}
			if = {
				#HRL Takes Tripoli
				limit = {
					FROM.FROM = {
						state = 448
					}
					OR = {
						FROM = {
							tag = LBA
						}
						FROM = {
							tag = HRL
						}
					}
					OR = {
						ROOT = {
							tag = LBA
						}
						ROOT = {
							tag = HRL
						}
					}
				}
			}
			if = {
				#PRC Invades Okinawa
				limit = {
					FROM.FROM = {
						state = 526
					}
					OR = {
						FROM = {
							tag = JAP
						}
						FROM = {
							tag = PRC
						}
					}
					OR = {
						ROOT = {
							tag = JAP
						}
						ROOT = {
							tag = PRC
						}
					}
					not = {
						has_global_flag = battle_of_okinawa
					}
				}
				set_global_flag = battle_of_okinawa
				news_event = {
					id = news.155
				}
				PRC = {
					country_event = china.441
				}
			}
			if = {
				#PRC Invades Australia
				limit = {
					FROM.FROM = {
						OR = {
							region = 156
							region = 193
							region = 194
							region = 195
						}
					}
					OR = {
						FROM = {
							tag = AST
						}
						FROM = {
							tag = PRC
						}
					}
					OR = {
						ROOT = {
							tag = AST
						}
						ROOT = {
							tag = PRC
						}
					}
					not = {
						has_global_flag = battle_of_darwin
					}
				}
				set_global_flag = battle_of_darwin
				news_event = {
					id = news.156
				}
			}
			if = {
				#Coalition Takes Hong Kong
				limit = {
					FROM.FROM = {
						state = 326
					}
					OR = {
						FROM = {
							tag = PRC
						}
						FROM = {
							tag = AST
						}
						FROM = {
							tag = JAP
						}
						FROM = {
							tag = CHI
						}
					}
					OR = {
						ROOT = {
							tag = PRC
						}
						ROOT = {
							tag = AST
						}
						ROOT = {
							tag = JAP
						}
						ROOT = {
							tag = CHI
						}
					}
					not = {
						has_global_flag = battle_of_hong_kong
					}
				}
				set_global_flag = battle_of_hong_kong
				news_event = {
					id = news.157
				}
			}
			if = {
				#Coalition Takes Dam
				limit = {
					FROM.FROM = {
						state = 1140
					}
					OR = {
						FROM = {
							tag = EGY
						}
						FROM = {
							tag = SUD
						}
					}
					OR = {
						ROOT = {
							tag = ETH
						}
					}
					not = {
						has_global_flag = ETH_dam_destroyed
					}
				}
				set_global_flag = ETH_dam_destroyed
				EGY = {
					remove_mission = EGY_ethiopia_war_countdown
				}
			}
			if = {
				#EADI Forces Land in Japan
				limit = {
					FROM.FROM = {
						region = 154
					}
					FROM = {
						tag = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_land_jap
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_land_jap
				news_event = {
					id = news.499
					hours = 5
				}
			}
			if = {
				#seoul
				limit = {
					FROM.FROM = {
						state = 1041
					}
					FROM = {
						tag = KOR
					}
					ROOT = {
						tag = PRK
					}
					not = {
						has_global_flag = captured_seoul
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
				}
				set_global_flag = captured_seoul
				news_event = {
					id = news.349
					hours = 5
				}
				PRC = {
					country_event = china.444
				}
				KOR = {
					add_timed_idea = {
						idea = KOR_the_last_stand
						days = 180
					}
				}
			}
			if = {
				#Second Battle of seoul
				limit = {
					FROM.FROM = {
						state = 1041
					}
					FROM = {
						tag = PRK
					}
					ROOT = {
						tag = KOR
					}
					not = {
						has_global_flag = captured_seoul_second
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
					has_global_flag = captured_seoul
				}
				set_global_flag = captured_seoul_second
				news_event = {
					id = news.416
					hours = 5
				}
			}
			if = {
				#Pyongyang
				limit = {
					FROM.FROM = {
						state = 1043
					}
					FROM = {
						OR = {
							tag = PRK
							is_ally_with = PRC
						}
					}
					ROOT = {
						OR = {
							tag = KOR
							is_ally_with = JAP
						}
					}
					not = {
						has_global_flag = captured_pyongyang
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
				}
				set_global_flag = captured_pyongyang
				news_event = {
					id = news.347
					hours = 5
				}
				PRC = {
					country_event = china.453
				}
			}
			if = {
				#Second Battle of Pyongyang
				limit = {
					FROM.FROM = {
						state = 1043
					}
					FROM = {
						OR = {
							tag = KOR
							is_ally_with = JAP
						}
					}
					ROOT = {
						OR = {
							tag = PRK
							is_ally_with = PRC
						}
					}
					not = {
						has_global_flag = captured_pyongyang_second
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
					has_global_flag = captured_pyongyang
				}
				set_global_flag = captured_pyongyang_second
				news_event = {
					id = news.500
					hours = 5
				}
			}
			if = {
				#Busan
				limit = {
					FROM.FROM = {
						state = 1409
					}
					FROM = {
						OR = {
							tag = KOR
							is_ally_with = JAP
						}
					}
					ROOT = {
						OR = {
							tag = PRK
							is_ally_with = PRC
						}
					}
					not = {
						has_global_flag = captured_busan
					}
					OR = {
						has_global_flag = GAW_soon
						has_global_flag = pan_asian_war_ongoing
					}
				}
				set_global_flag = captured_busan
				news_event = {
					id = news.501
					hours = 5
				}
				PRC = {
					country_event = china.445
				}
			}
			if = {
				#Osaka
				limit = {
					FROM.FROM = {
						state = 1340
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = captured_osaka
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = captured_osaka
				news_event = {
					id = news.502
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
					country_event = china.447
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#Kyoto
				limit = {
					FROM.FROM = {
						state = 531
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = captured_kyoto
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = captured_kyoto
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
					country_event = china.449
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -10
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -10
					}
				}
			}
			if = {
				#Tokyo
				limit = {
					FROM.FROM = {
						state = 1332
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = captured_tokyo
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = captured_tokyo
				news_event = {
					id = news.503
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 25
					}
					country_event = china.446
					if = {
						limit = {
							has_country_flag = PRC_nationalist_win
							has_global_flag = PRC_tokyo_nuked_flag
						}
						country_event = {
							id = china.1034
							days = 5
						}
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -25
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -25
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -25
					}
				}
			}
			if = {
				#Second Battle of Tokyo
				limit = {
					FROM.FROM = {
						state = 1332
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = captured_tokyo_second
					}
					has_global_flag = pan_asian_war_ongoing
					has_global_flag = captured_tokyo
				}
				set_global_flag = captured_tokyo_second
				news_event = {
					id = news.504
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -25
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 25
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 25
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 25
					}
				}
			}
			if = {
				#Sydney
				limit = {
					FROM.FROM = {
						state = 285
					}
					FROM = {
						tag = AST
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = captured_sydney
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = captured_sydney
				PRC = {
					country_event = china.443
				}
			}
			if = {
				#EADI Takes Singapore
				limit = {
					FROM.FROM = {
						state = 336
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_sig
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_sig
				news_event = {
					id = news.505
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Singapore
				limit = {
					FROM.FROM = {
						state = 336
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_sig
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_sig
				news_event = {
					id = news.506
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
					country_event = { id = jap.176 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#EADI Takes Bangkok
				limit = {
					FROM.FROM = {
						state = 289
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_bang
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_bang
				news_event = {
					id = news.507
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Bangkok
				limit = {
					FROM.FROM = {
						state = 289
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_bang
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_bang
				news_event = {
					id = news.508
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#EADI Takes Hanoi
				limit = {
					FROM.FROM = {
						state = 671
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_hanoi
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_hanoi
				news_event = {
					id = news.546
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
					country_event = { id = jap.179 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Hanoi
				limit = {
					FROM.FROM = {
						state = 671
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_hanoi
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_hanoi
				news_event = {
					id = news.547
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#EADI Takes Ho Chi Minh City
				limit = {
					FROM.FROM = {
						state = 783
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_hcmc
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_hcmc
				news_event = {
					id = news.548
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Ho Chi Minh City
				limit = {
					FROM.FROM = {
						state = 783
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_hcmc
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_hcmc
				news_event = {
					id = news.549
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
					country_event = { id = jap.178 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#EADI Takes Kuala Lumpur
				limit = {
					FROM.FROM = {
						state = 1386
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_kl
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_kl
				news_event = {
					id = news.550
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Kuala Lumpur
				limit = {
					FROM.FROM = {
						state = 1386
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_kl
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_kl
				news_event = {
					id = news.551
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#EADI Takes Dhaka
				limit = {
					FROM.FROM = {
						state = 430
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_dhaka
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_dhaka
				news_event = {
					id = news.509
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#EADI Takes Chennai
				limit = {
					FROM.FROM = {
						state = 1418
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_chennai
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_chennai
				news_event = {
					id = news.510
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#EADI Takes Delhi
				limit = {
					FROM.FROM = {
						state = 1379
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_delhi
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_delhi
				news_event = {
					id = news.511
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 20
					}
					country_event = china.448
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
			}
			if = {
				#EADI Takes Jakarata
				limit = {
					FROM.FROM = {
						state = 1387
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_jakarata
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_jakarata
				news_event = {
					id = news.512
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 20
					}
					if = {
						limit = {
							has_country_flag = PRC_nationalist_win
							has_completed_focus = PRC_conduct_ultra_war_to_enemies
						}
						country_event = {
							id = china.1035
							days = 5
						}
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
			}
			if = {
				#EADI Takes Manila
				limit = {
					FROM.FROM = {
						state = 1274
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = eadi_captured_manila
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = eadi_captured_manila
				news_event = {
					id = news.513
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -15
					}
				}
			}
			if = {
				#PDTO Takes Manila
				limit = {
					FROM.FROM = {
						state = 1274
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_manila
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_manila
				news_event = {
					id = news.514
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
					country_event = { id = jap.181 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#PDTO Takes Islamabad
				limit = {
					FROM.FROM = {
						state = 440
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_islamabad
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_islamabad
				news_event = {
					id = news.515
					hours = 10
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
					country_event = china.454
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#PDTO Takes Hong Kong
				limit = {
					FROM.FROM = {
						state = 326
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_hong_kong
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_hong_kong
				news_event = {
					id = news.516
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#PDTO Takes Guangzhou
				limit = {
					FROM.FROM = {
						state = 592
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_guangzhou
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_guangzhou
				news_event = {
					id = news.517
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
					country_event = china.450
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
					country_event = jap.141
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#PDTO Takes Fuzhou
				limit = {
					FROM.FROM = {
						state = 595
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_fuzhou
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_fuzhou
				news_event = {
					id = news.518
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#Battle of Shanghai
				limit = {
					FROM.FROM = {
						state = 1215
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = battle_of_shanghai
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = battle_of_shanghai
				news_event = {
					id = news.519
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
					country_event = china.451
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
					country_event = jap.140
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#Second Battle of Shanghai
				limit = {
					FROM.FROM = {
						state = 1215
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = second_battle_of_shanghai
					}
					has_global_flag = pan_asian_war_ongoing
					has_global_flag = battle_of_shanghai
				}
				set_global_flag = second_battle_of_shanghai
				news_event = {
					id = news.520
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 20
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
			}
			if = {
				#Battle of Nanjing
				limit = {
					FROM.FROM = {
						state = 1222
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = battle_of_nanjing
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = battle_of_nanjing
				news_event = {
					id = news.521
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
					country_event = { id = jap.165 }
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
					country_event = { id = jap.165 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#Second Battle of Nanjing
				limit = {
					FROM.FROM = {
						state = 1222
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = second_battle_of_nanjing
					}
					has_global_flag = pan_asian_war_ongoing
					has_global_flag = battle_of_nanjing
				}
				set_global_flag = second_battle_of_nanjing
				news_event = {
					id = news.522
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 20
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -20
					}
				}
			}
			if = {
				#PDTO Takes Qingdao
				limit = {
					FROM.FROM = {
						state = 1420
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_qingdao
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_qingdao
				news_event = {
					id = news.523
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#PDTO Takes Tianjin
				limit = {
					FROM.FROM = {
						state = 1157
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_captured_tianjin
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_captured_tianjin
				news_event = {
					id = news.524
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -20
					}
					country_event = { id = jap.166 }
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
					country_event = { id = jap.166 }
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 20
					}
				}
			}
			if = {
				#Eternal Capital defense units
				limit = {
					FROM.FROM = {
						OR = {
							state = 1157
							state = 609
							state = 610
							state = 611
							state = 1154
							state = 1421
							state = 1232
						}
					}
					FROM = {
						tag = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = gaw_eternal_capital_defense_units
					}
					has_global_flag = pan_asian_war_ongoing
					PRC = {
						has_country_flag = PRC_eternal_capital_project_is_finished_flag
					}
				}
				set_global_flag = gaw_eternal_capital_defense_units
				PRC = {
					load_oob = PRC_beijing_defense_forces
				}
			}
			if = {
				#Battle of Beijing
				limit = {
					FROM.FROM = {
						state = 608
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = battle_of_beijing
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = battle_of_beijing
				news_event = {
					id = news.525
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -30
					}
					country_event = china.452
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 30
					}
					country_event = jap.142
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 30
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 30
					}
				}
			}
			if = {
				#Second Battle of Beijing
				limit = {
					FROM.FROM = {
						state = 608
					}
					FROM = {
						is_ally_with = JAP
					}
					ROOT = {
						is_ally_with = PRC
					}
					not = {
						has_global_flag = second_battle_of_beijing
					}
					has_global_flag = pan_asian_war_ongoing
					has_global_flag = battle_of_beijing
				}
				set_global_flag = second_battle_of_beijing
				news_event = {
					id = news.526
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = 30
					}
					if = {
						limit = {
							has_country_flag = PRC_eternal_capital_project_is_finished_flag
						}
						add_ideas = PRC_heart_of_china_idea
					}
					if = {
						limit = {
							has_country_flag = PRC_pla_pyramid_is_finished_flag
						}
						add_ideas = PRC_headquarters_of_the_new_era_idea
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -30
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -30
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = -30
					}
				}
			}
			if = {
				#PDTO Entered Manchuria
				limit = {
					FROM.FROM = {
						OR = {
							state = 1413
							state = 1417
							state = 1414
							state = 1415
						}
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_entered_manchuria
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_entered_manchuria
				news_event = {
					id = news.527
					hours = 5
				}
				PRC = {
					add_days_mission_timeout = {
						mission = PRC_GAW_war_exhaustion
						days = -15
					}
				}
				JAP = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				AST = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
				RAJ = {
					add_days_mission_timeout = {
						mission = JAP_GAW_war_exhaustion
						days = 15
					}
				}
			}
			if = {
				#PDTO takes state 1413_1414
				limit = {
					FROM.FROM = {
						OR = {
							state = 1413
							state = 1414
						}
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_takes_1413_1414
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_takes_1413_1414
			}
			if = {
				#PDTO takes state 1415
				limit = {
					FROM.FROM = {
						state = 1414
					}
					FROM = {
						is_ally_with = PRC
					}
					ROOT = {
						is_ally_with = JAP
					}
					not = {
						has_global_flag = pdto_takes_1415
					}
					has_global_flag = pan_asian_war_ongoing
				}
				set_global_flag = pdto_takes_1415
			}
		}
	}
	# From is owner country
	on_army_leader_won_combat = {
		effect = {
			if = {
				limit = {
					set_temp_variable = {
						chance = 0.001
					}
					set_temp_variable = {
						factor = 1
					}
					add_to_temp_variable = {
						factor = leader_modifier@wounded_chance_factor
					}
					multiply_temp_variable = {
						chance = factor
					}
					check_variable = {
						random < chance
					}
					NOT = {
						has_trait = wounded
					}
				}
				add_timed_unit_leader_trait = {
					trait = wounded
					days = 90
				}
				unit_leader_event = {
					id = generic.19
				}
			}
		}
	}
	# From is owner country
	on_army_leader_lost_combat = {
		effect = {
			if = {
				limit = {
					set_temp_variable = {
						chance = 0.005
					}
					set_temp_variable = {
						factor = 1
					}
					add_to_temp_variable = {
						factor = leader_modifier@wounded_chance_factor
					}
					multiply_temp_variable = {
						chance = factor
					}
					check_variable = {
						random < chance
					}
					NOT = {
						has_trait = wounded
					}
				}
				add_timed_unit_leader_trait = {
					trait = wounded
					days = 90
				}
				unit_leader_event = {
					id = generic.19
				}
			}
		}
	}
	on_capitulation = {
		effect = {
			if = {
				limit = {
					AND = {
						tag = KOR
						1041 = {
							is_fully_controlled_by = PRK
						}
					}
				}
				news_event = {
					id = korea.6
				}
			}
			if = {
				limit = {
					tag = GRA
				}
				BLA = {
					country_event = {
						id = bla.3
						days = 5
					}
				}
			}
			if = {
				limit = {
					tag = TUN
				}
				HRL = {
					remove_ideas = low_covid_cases
					add_research_slot = 1
					HRL_arab_world_increase = yes
					every_state = {
						limit = {
							is_core_of = TUN
						}
						add_core_of = HRL
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"2. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
					}
					ALG = {
						country_event = {
							id = algeria.1
							days = 45
						}
					}
				}
			}
			if = {
				limit = {
					tag = ALG
				}
				HRL = {
					HRL_arab_world_increase = yes
					every_state = {
						limit = {
							is_core_of = ALG
						}
						add_core_of = HRL
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"4. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"5. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"6. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"7. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
					}
					add_ai_strategy = {
						type = prepare_for_war
						id = MOR
						value = 100
					}
					country_event = {
						id = libya.16
						days = 10
					}
				}
			}
			if = {
				limit = {
					tag = MOR
				}
				HRL = {
					add_research_slot = 1
					HRL_arab_world_increase = yes
					every_state = {
						limit = {
							is_core_of = MOR
						}
						add_core_of = HRL
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"8. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
						create_unit = {
							division = "name = \"9. Firqat Mudaraeat Bialharas Aljumhurii\" division_template = \"Main Battle Tank template 3\"  start_experience_factor = 0.2"
							allow_spawning_on_enemy_provs = yes
							owner = HRL
						}
					}
					#country_event = { id = libya.18 days = 365 }
					#disabled until egyptian collapse programed
				}
			}
			if = {
				limit = {
					tag = NMX
				}
			}
			if = {
				limit = {
					tag = BMF
				}
				BMF = {
					remove_state_core = 1075
					remove_state_core = 1076
					remove_state_core = 1073
					remove_state_core = 1074
					remove_state_core = 1093
					remove_state_core = 393
				}
				NSM = {
					country_event = {
						id = nsm.3
					}
				}
			}
			if = {
				limit = {
					tag = MIM
				}
				MIM = {
					remove_state_core = 1075
					remove_state_core = 1076
					remove_state_core = 1073
					remove_state_core = 1074
					remove_state_core = 1093
					remove_state_core = 393
				}
				NSM = {
					country_event = {
						id = nsm.4
						days = 35
					}
					country_event = {
						id = nsm.8
						days = 105
					}
				}
			}
			if = {
				limit = {
					tag = HUM
					NOT = {
						has_global_flag = HUM_first_capitulation
					}
				}
				HUM = {
					remove_state_core = 1075
					remove_state_core = 1076
					remove_state_core = 1073
					remove_state_core = 1074
					remove_state_core = 1093
					remove_state_core = 393
				}
				NSM = {
					country_event = {
						id = nsm.9
						days = 200
					}
					set_global_flag = HUM_first_capitulation
				}
			}
			if = {
				limit = {
					tag = ARR
				}
				ARR = {
					remove_state_core = 1063
					remove_state_core = 893
					remove_state_core = 894
					remove_state_core = 1064
					remove_state_core = 1061
					remove_state_core = 1065
					remove_state_core = 1067
					remove_state_core = 292
					remove_state_core = 679
					remove_state_core = 1126
					remove_state_core = 895
					remove_state_core = 1062
					remove_state_core = 678
				}
			}
			if = {
				limit = {
					tag = ROC
				}
				ROC = {
					remove_state_core = 1063
					remove_state_core = 893
					remove_state_core = 894
					remove_state_core = 1064
					remove_state_core = 1061
					remove_state_core = 1065
					remove_state_core = 1067
					remove_state_core = 292
					remove_state_core = 679
					remove_state_core = 1126
					remove_state_core = 895
					remove_state_core = 1062
					remove_state_core = 678
				}
			}
			if = {
				limit = {
					tag = JAH
				}
				JAH = {
					remove_state_core = 1063
					remove_state_core = 893
					remove_state_core = 894
					remove_state_core = 1064
					remove_state_core = 1061
					remove_state_core = 1065
					remove_state_core = 1067
					remove_state_core = 292
					remove_state_core = 679
					remove_state_core = 1126
					remove_state_core = 895
					remove_state_core = 1062
					remove_state_core = 678
				}
			}
			if = {
				limit = {
					tag = SAR
				}
				SAR = {
					remove_state_core = 1063
					remove_state_core = 893
					remove_state_core = 894
					remove_state_core = 1064
					remove_state_core = 1061
					remove_state_core = 1065
					remove_state_core = 1067
					remove_state_core = 292
					remove_state_core = 679
					remove_state_core = 1126
					remove_state_core = 895
					remove_state_core = 1062
					remove_state_core = 678
				}
			}
			if = {
				limit = {
					tag = ARZ
				}
				BRN = {
					country_event = {
						id = brown.2
						days = 5
					}
					country_event = {
						id = brown.5
						days = 20
					}
					country_event = {
						id = brown.20
						days = 120
					}
				}
			}
		}
	}
	on_startup = {
		effect = {
			every_country = {
				if = {
					limit = {
						or = {
							tag = CHA
						}
					}
					set_variable = {
						sahara_project_min = 0
					}
					set_variable = {
						sahara_project = 8
					}
					set_variable = {
						sahara_project_max = 100
					}
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
						NOT = {
							OR = {
								tag = USA
								tag = SOV
								tag = FRA
								tag = GER
								tag = ENG
								tag = PRC
								tag = RAJ
								tag = JAP
								tag = SAU
								tag = ROC
								tag = ARR
								tag = JAH
								tag = PER
								tag = COL
								tag = AST
							}
						}
					}
					create_equipment_variant = {
						name = "T-72A"
						type = modern_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_high_velocity_cannon
							turret_type_slot = tank_modern_tank_turret
							suspension_type_slot = tank_torsion_bar_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
							special_type_slot_3 = auto_loader
							special_type_slot_4 = sloped_armor
							special_type_slot_5 = gunner_optical_sight
						}
						upgrades = {
							tank_nsb_engine_upgrade = 9
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/armor/MBT_1980_T-72.dds"
					}
					create_equipment_variant = {
						name = "BRM-1K"
						type = light_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_small_cannon
							turret_type_slot = tank_light_two_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = extra_ammo_storage
							special_type_slot_3 = smoke_launchers
							special_type_slot_4 = empty
							special_type_slot_5 = gunner_optical_sight
						}
						upgrades = {
							tank_nsb_engine_upgrade = 3
							tank_nsb_armor_upgrade = 2
						}
						icon = "gfx/interface/technologies/armor/LT_1980_BRM_1k.dds"
					}
				}
				if = {
					limit = {
						has_dlc = "No Step Back"
						NOT = {
							OR = {
								tag = USA
								tag = SOV
							}
						}
						any_country_division = {
							division_has_battalion_in_template = amphibious_armor
						}
					}
					create_equipment_variant = {
						name = "PT-76"
						type = amphibious_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_small_cannon
							turret_type_slot = tank_light_two_man_tank_turret
							suspension_type_slot = tank_christie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
							special_type_slot_3 = empty
							special_type_slot_4 = empty
						}
						upgrades = {
							tank_nsb_engine_upgrade = 2
							tank_nsb_armor_upgrade = 3
						}
						icon = "gfx/interface/technologies/armor/gen_amphibious_tank1.png"
					}
				}
			}
			TAL = {
				add_manpower = 300000
			}
			HEZ = {
				add_manpower = 300000
			}
			HRL = {
				add_manpower = 10000
			}
			PAL = {
				add_manpower = 200000
			}
			CPC = {
				add_manpower = 200000
			}
			CHI = {
				country_event = {
					# Taiwan Elections
					id = taiwan.4
					days = 11
				}
			}
			USA = {
				country_event = {
					#BYE ESPER
					id = usa.203
					days = 313
				}
			}
			PHI = {
				#country_event = {
				#	id = philipines.1
				#	days = 1715
				#}
			}
			PRK = {
				#country_event = {
				#	id = nk.2
				#	days = 1898
				#}
			}
			PRC = {
				country_event = {
					#chinese opening event
					id = china.43
					days = 2
				}
				country_event = {
					#chinese opening event
					id = china.12
					days = 4
				}
				country_event = {
					# first COVID identified
					id = china.10
					days = 9
				}
				country_event = {
					#Day of Mourning
					id = china.75
					days = 63
				}
				country_event = {
					# first COVID death
					id = china.5
					days = 11
				}
				country_event = {
					# Myanmar State Visit
					id = china.3
					days = 17
				}
				country_event = {
					# Pandas
					id = china.76
					days = 547
				}
				country_event = {
					# 100 years of CPC
					id = china.147
					days = 553
				}
				country_event = {
					# National Day of PRC
					id = china.146
					days = 274
				}
				country_event = {
					# Genshin Impact
					id = china.257
					days = 270
				}
				country_event = {
					# Genshin Impact
					id = china.293
					days = 346
				}
				country_event = {
					# Jiang Zemin umer
					id = china.279
					days = 1064
				}
				country_event = {
					# Award of the Medal of the Republic to Zhong Nanshan
					id = china.298
					days = 223
				}
				country_event = {
					# Li Wenliang Passed Away
					id = china.299
					days = 37
				}
				country_event = {
					# Segregated Transfer Bus Rollover
					id = china.301
					days = 200
				}
				country_event = {
					# status report on america
					id = china.311
					days = 180
				}
				country_event = {
					# The Rural Bank Crisis
					id = china.317
					days = 830
				}
				country_event = {
					# Evergrande Debt Crisis
					id = china.318
					days = 1322
				}
				country_event = {
					# Jack Ma's Bund Speech
					id = china.319
					days = 306
				}
				country_event = {
					# Henan Flood Disaster
					id = china.320
					days = 566
				}
				country_event = {
					# Enactment of Hong Kong National Security Law
					id = china.321
					days = 181
				}
				country_event = {
					# National Poverty Alleviation Summary and Commendation Conference
					id = china.322
					days = 423
				}
				country_event = {
					# 110th Anniversary of the Xinhai Revolution
					id = china.323
					days = 648
				}
				country_event = {
					id = china.326
					days = 1440
				}
				country_event = {
					# Ne Zha 2 Impact
					id = china.373
					days = 1855
				}
				country_event = {
					# Xinjiang Leadership Change
					id = china.386
					days = 724
				}
				country_event = {
					# Tibet Leadership Change
					id = china.387
					days = 656
				}
				country_event = {
					# Inner Mongolia Leadership Change
					id = china.388
					days = 850
				}
				country_event = {
					# Ningxia Leadership Change
					id = china.389
					days = 817
				}
				country_event = {
					# Guangxi Leadership Change
					id = china.390
					days = 657
				}
				country_event = {
					# Results of Hong Kong Election Announced
					id = china.391
					days = 912
				}
				activate_mission = PRC_control_the_coronavirus_mission
				activate_mission = PRC_environmental_engineering_acceptance_mission
			}
			SAU = {
				country_event = {
					# Oil Deal Fails
					id = saudi.12
					days = 68
				}
				country_event = {
					# War in Yemen Failing
					id = saudi.2
					days = 41
				}
				country_event = {
					# Salman Infected with COVID
					id = saudi.1
					days = 89
				}
				country_event = {
					# Salman's Health Fails
					id = saudi.3
					days = 115
				}
				country_event = {
					# Salman Croaks
					id = saudi.4
					days = 156
				}
				country_event = {
					# Abdulaziz Assassinated
					id = saudi.5
					days = 190
				}
				country_event = {
					# Mohammed's Coronation
					id = saudi.6
					days = 180
				}
				country_event = {
					# Princes Protest
					id = saudi.7
					days = 214
				}
			}
			CAN = {
				country_event = {
					id = canada.2
					days = 740
				}
			}
			UKR = {
				country_event = {
					id = ukraine.13
					days = 1300
				}
			}
			IRQ = {
				country_event = {
					# Iraqi 2021 elections
					id = iraq.1
					days = 649
				}
			}
			BLR = {
				country_event = {
					# 2020 elections
					id = belarus.1
					days = 221
				}
			}
			LEB = {
				country_event = {
					# Beirut Bombing
					id = lebanon.1
					days = 217
				}
			}
			ENG = {
				country_event = {
					# UK leaves EU
					id = uk.666
					days = 31
				}
				country_event = {
					# 2025 elections
					id = uk.777
					days = 1840
				}
			}
			SAF = {
				country_event = {
					# Elections
					id = saf.1
					days = 800
				}
			}
			FRA = {
				country_event = {
					# First COVID Cases
					id = france.15
					days = 35
				}
				country_event = {
					# Nice Attack
					id = france.1
					days = 277
				}
				country_event = {
					# Bastille Day
					id = france.82
					days = 195
				}
				country_event = {
					#flag choice
					id = france.304
					days = 181
				}
				country_event = {
					#Bloc Identity banned
					id = france.90
					days = 462
				}
				country_event = {
					id = france.199
					days = 807
				}
				country_event = {
					id = france.223
					days = 220
				}
			}
			ITA = {
				country_event = {
					id = italy.10
					days = 998
				}
				country_event = {
					id = italy.11
					days = 391
				}
			}
			ETH = {
				country_event = {
					# Dam talks with Egypt
					id = ethiopia.1
					days = 114
				}
				country_event = {
					# Dam Opens
					id = ethiopia.2
					days = 214
				}
				country_event = {
					# Tigray Skirmishes
					id = ethiopia.11
					days = 230
				}
			}
			MLI = {
				country_event = {
					# 2020 Coup
					id = mali.9
					days = 232
				}
			}
			LBA = {
				country_event = {
					# Turkish Volunteers
					id = libya.8
					days = 152
				}
				country_event = {
					# Military Commission
					id = libya.10
					days = 307
				}
			}
			HRL = {
				country_event = {
					# Gaddafist Rally
					id = libya.9
					days = 252
				}
			}
			SUD = {
				country_event = {
					# Army Coup
					id = sudan.1
					days = 580
				}
				country_event = {
					# RSF Uprising
					id = sudan.3
					days = 1168
				}
			}
			TUN = {
				country_event = {
					# President Coup
					id = tunisia.1
					days = 490
				}
			}
			TUR = {
				country_event = {
					# President Election 2023 Turkey
					id = turkey.5
					days = 1229
				}
			}
			CHL = {
				country_event = {
					# President Election 2021
					id = latin_america.1
					days = 718
				}
			}
			BOL = {
				country_event = {
					# President Election 2020
					id = latin_america.2
					days = 219
				}
			}
			PRU = {
				country_event = {
					# President Election 2021
					id = latin_america.3
					days = 522
				}
			}
			BRA = {
				country_event = {
					# President Election 2022
					id = latin_america.4
					days = 1033
				}
			}	
			KOR = {
				country_event = {
					# President Election 2022
					id = korea.10
					days = 798
				}
			}
			HON = {
				country_event = {
					# Honduras election 2021
					id = latin_america.5
					days = 697
				}
			}
			CUB = {
				country_event = {
					# castro retiring
					id = latin_america.6
					days = 471
				}
			}
			MON = {
				country_event = {
					# mongolia elections
					id = MON.1
					days = 525
				}
			}
			SYR = {
				country_event = {
					# Daraa Uprising
					id = syria.3
					days = 18
				}
				country_event = {
					# Protests
					id = syria.13
					days = 183
				}
			}
			SER = {
				country_event = {
					# SPS Influence
					id = serbia.21
					days = 20
				}
			}
			NEP = {
				country_event = {
					# Nepale election
					id = nep.3
					days = 1167
				}
			}
			ARG = {
				country_event = {
					# Argentina election
					id = latin_america.7
					days = 1419
				}
			}
			UKR = {
				country_event = {
					# Hohol election
					id = ukraine.13
					days = 1551
				}
			}
			PER = {
				country_event = {
					# iran elections
					id = iran.22
					days = 534
				}
			}
			NGR = {
				country_event = {
					# 2023 coup de'tat
					id = nigeria.12
					days = 1299
				}
			}
			VOL = {
				country_event = {
					# 2022 coup de'tat
					id = nigeria.10
					days = 1003
				}
			}
			GNA = {
				country_event = {
					# 2021 coup de'tat
					id = nigeria.11
					days = 613
				}
			}
			SEN = {
				country_event = {
					# 2024 elections
					id = nigeria.13
					days = 1544
				}
			}
			GNB = {
				country_event = {
					# 2024 elections
					id = nigeria.14
					days = 1795
				}
			}
			SOV = {
				country_event = {
					# New Government
					id = russia.142
					days = 16
				}
				country_event = {
					# Death of Zhidko
					id = russia.564
					days = 1323
					hours = 5
				}
				country_event = {
					# kartopolov resiging?
					id = russia.540
					days = 530
					random_days = 15
				}
				country_event = {
					# Main Cathedral of Russian Army
					id = russia.486
					days = 165
				}
				country_event = {
					# Death of Limonov
					id = russia.193
					days = 75
				}
				country_event = {
					# Navalny Gets Poisoned
					id = russia.1
					days = 245
				}
				country_event = {
					# Khabarovsk Protests
					id = russia.11
					days = 200
				}
				country_event = {
					# Revolution in Kirgizia
					id = russia.180
					days = 278
				}
				country_event = {
					# Stalinist Shaurma
					id = russia.576
					days = 377
					hours = 6
				}
				country_event = {
					# Merging of Just Russia with For Truth
					id = russia.192
					days = 417
					hours = 7
				}
				country_event = {
					# Death Of Admiral Vladimir Vysotskiy
					id = russia.202
					days = 405
				}
				country_event = {
					# Polish border crisis
					id = russia.55
					days = 650
				}
				country_event = {
					#sergei furgal arrested
					id = russia.66
					days = 190
				}
				country_event = {
					#russia opening event
					id = russia.62
					days = 2
				}	
				country_event = {
					#makfa case
					id = russia.741
					days = 1569
				}
				country_event = {
					#Kazakh Riots
					id = russia.70
					days = 735
				}
				country_event = {
					# Navalny Protests
					id = russia.96
					days = 390
				}
				country_event = {
					# Rashkin Protests
					id = russia.252
					days = 633
				}
				country_event = {
					# Putin coronavirus
					id = russia.20
					days = 690
				}
				country_event = {
					# Victory Parade
					id = russia.108
					days = 127
				}
				country_event = {
					# Rogun Dam
					id = tajikistan.1
					days = 400
				}
				country_event = {
					# SVETOV DEATH EVENT IMPORTANTEEEEEE
					id = russia.536
					days = 216
				}
				country_event = {
					# noviy god check
					id = russia.141
					days = 365
				}
			}
			BRM = {
				country_event = {
					# Get couped nerd!!!!
					id = bur.1
					days = 396
				}
			}
			NEP = {
				country_event = {
					# Debug
					id = tech.2
				}
			}
			AUS = {
				country_event = {
					# Vienna Attack
					id = austria.1
					days = 284
				}
			}
			JAP = {
				country_event = {
					# Abe go bye-bye
					id = jap.13
					days = 238
				}
				country_event = {
					# Election very soon!!!
					id = jap.16
					days = 530
				}
			}
			PER = {
				country_event = {
					# Ukrainian Airliner Shotdown
					id = iran.2
					days = 3
				}
				country_event = {
					# Earthquake
					id = iran.3
					days = 3
				}
				country_event = {
					# First COVID Cases
					id = iran.4
					days = 49
				}
				country_event = {
					# Prime Minister Gets COVID
					id = iran.5
					days = 55
				}
				country_event = {
					# Man Tests Positive on TV
					id = iran.6
					days = 66
				}
				country_event = {
					# COVID Unemployment Protests
					id = iran.11
					days = 120
				}
			}
			PRK = {
				#country_event = { # Kim Jong-un gets Surgery
				#	id = nk.1
				#	days = 112
				#}
				#country_event = { # 2nd Surgery
				#	id = nk.19
				#	days = 270
				#}
				every_country = {
					limit = {
						tag = PRK
					}
					set_variable = {
						jong_legitimacy = 65
					}
					set_variable = {
						jong_legitimacy_max = 100
					}
					set_variable = {
						pak_legitimacy = 20
					}
					set_variable = {
						pak_legitimacy_max = 100
					}
					set_variable = {
						cho_legitimacy = 45
					}
					set_variable = {
						cho_legitimacy_max = 100
					}
				}
				every_country = {
					limit = {
						has_idea = SYR_war_exhaustion
					}
					country_lock_all_division_template = yes
				}
			}
			AUS = {
				country_event = {
					# Kurtz eleected
					id = austria.2
					days = 6
				}
			}
			MAL = {
				country_event = {
					# New king
					id = asean.1
					days = 1491
				}
			}
			PLD = {
				country_event = {
					id = poland.2
					days = 1978
				}
			}
			SWI = {
				country_event = {
					id = Swiss.9
					days = 365
				}
			}
		}
	}
	on_leave_faction = {
		effect = {
			PREV = {
				add_opinion_modifier = {
					modifier = faction_traitor
					target = ROOT
					days = 365
				}
				add_opinion_modifier = {
					modifier = faction_traitor_trade
					target = ROOT
					days = 365
				}
			}
		}
	}
	on_declare_war = { #3EW superevent - Germany attacks France
		effect = {
			if = {
				limit = {
					ROOT = {
						original_tag = GER
					}
					FROM = {
						OR = {
							original_tag = FAF
							original_tag = FPR
						}
					}
				}
				set_global_flag = FAF_third_euro_war_global
				CUB = { activate_mission = third_euro_war_mission }
				if = {
					limit = {
						FROM = {
							original_tag = FAF
							has_country_leader = {
								character = FRA_Lafayette_char
								ruling_only = yes
							}
						}
					}
					news_event = {
						id = news.559
					}
				}
				else_if = {
					limit = {
						FROM = {
							original_tag = FAF
							NOT = {
								has_country_leader = {
									character = FRA_Lafayette_char
									ruling_only = yes
								}
							}
						}
					}
					news_event = {
						id = news.560
					}
				}
				else_if = {
					limit = {
						FROM = {
							original_tag = FPR
						}
					}
					news_event = {
						id = germany.297
					}
				}
			}
		}
	}
	on_declare_war = { #3EW superevent - France attacks Germany
		effect = {
			if = {
				limit = {
					FROM = {
						original_tag = GER
					}
					ROOT = {
						OR = {
							original_tag = FAF
							original_tag = FPR
						}
					}
				}
				set_global_flag = FAF_third_euro_war_global
				CUB = { activate_mission = third_euro_war_mission }
				if = {
					limit = {
						ROOT = {
							original_tag = FAF
							has_country_leader = {
								character = FRA_Lafayette_char
								ruling_only = yes
							}
						}
					}
					news_event = {
						id = news.559
					}
				}
				else_if = {
					limit = {
						ROOT = {
							original_tag = FAF
							NOT = {
								has_country_leader = {
									character = FRA_Lafayette_char
									ruling_only = yes
								}
							}
						}
					}
					news_event = {
						id = news.560
					}
				}
				else_if = {
					limit = {
						ROOT = {
							original_tag = FPR
						}
					}
					news_event = {
						id = germany.297
					}
				}
			}
		}
	}
	on_nuke_drop = {
		effect = {
			FROM = {
				add_dynamic_modifier = {
					modifier = fallout_atomic
					days = 730
				}
			}
		}
	}
}
