on_actions = {
	#### PEACE/WAR VICTORY ON_CAPITULATION BLOCK ####
	#### PUT YOUR SHIT HERE
	# At the end of each global block, set the skip_default_capitulation GLOBAL flag
	# go away stinky vanilla peace
	# FROM = winner 
	# ROOT = country being capitulated/loser
	# DO NOT FUCKING TOUCH THIS
	# I AM DEATHLY FUCKING SERIOUS RIGHT NOW
	# XOXO - Grestin
	# John Titor and Alfred were here
	# Pi was here too!
	# This file is still an absolute mystery, some annexations used to work, then they broke for unknown reasons.
	# DO NOT EDIT THIS FILE UNLESS YOU ARE JOHN TTIOR REASON: THE MOTHER FUCKER BELOW ME
	# Мне реально насрать на эти предупреждения (С) RedOtaku
	# НУ И ПИС ДИЛЫ  БОУЛЛИН! (С) Sudin
	# Hello - Munchies
	# Nothing better than a glass of #RedWine... Except maybe #Bubblebowls #Yep #ImFreaky - Warposting
	on_capitulation = {
		effect = {
			log = "[GetDateText]: FROM: [From.GetName] ROOT: [Root.GetName] on_capitulation"
			set_global_flag = show_peace_popup_alert
			FROM = {
				save_global_event_target_as = winning_country
			}
			ROOT = {
				save_global_event_target_as = losing_country
			}
			log = "[GetDateText]: winner/loser: FROM: [winning_country.GetName] ROOT: [losing_country.GetName] on_capitulation"
			if = {
				limit = {
					event_target:losing_country = {
						any_allied_country = {
							has_war_together_with = event_target:losing_country
						}
					}
				}
				set_global_flag = losing_country_multiple
			}
			if = {
				limit = {
					event_target:winning_country = {
						any_allied_country = {
							has_war_together_with = event_target:winning_country
						}
					}
				}
				set_global_flag = winning_country_multiple
			}
			#Annexation block
			# this will only trigger ROOT (the loser) is in a faction and is NOT the only survivor of said faction
			# if ROOT is the only survivor then it will trigger the proper effects below
			if = {
				limit = {
					NOT = {
						ROOT = {
							is_in_faction = yes
							any_other_country = {
								is_in_faction_with = PREV
								has_capitulated = no
							}
						}
					}
				}
				set_global_flag = war_won
				# normal peace stuff
				if = {
					# Anti cheese 
					limit = {
						FROM = {
							OR = {
								original_tag = BLA
								original_tag = BRN
								original_tag = CAL
								original_tag = WAS
								original_tag = ORE
								original_tag = ARZ
								original_tag = NMX
								original_tag = TEX
								original_tag = LOU
								original_tag = MSS
								original_tag = ALA
								original_tag = GRA
								original_tag = STC
								original_tag = FLA
								original_tag = VER
								original_tag = FLM
								original_tag = CLM
								original_tag = WLF
								original_tag = TFM
							}
						}
						ROOT = {
							OR = {
								original_tag = USC
								original_tag = USB
								original_tag = APA
								original_tag = ATW
								original_tag = PTF
								original_tag = NSM
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# TAR kill TIB
					limit = {
						FROM = {
							original_tag = TAR
						}
						ROOT = {
							original_tag = TIB
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						PRC = {
							country_event = { id = china.155 days = 10 }
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FPR kill CYP
					limit = {
						FROM = {
							OR = {
								original_tag = FPR
								is_ally_with = FPR
							}
						}
						ROOT = {
							original_tag = CYP
						}
					}
					FROM = {
						white_peace = ROOT
						FPR = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FRA kill CYP
					limit = {
						FROM = {
							OR = {
								original_tag = FRA
								is_ally_with = FRA
							}
						}
						ROOT = {
							original_tag = CYP
						}
					}
					FROM = {
						white_peace = ROOT
						FRA = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill CYP
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								is_ally_with = FAF
							}
						}
						ROOT = {
							original_tag = CYP
						}
					}
					FROM = {
						white_peace = ROOT
						FAF = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FRA kill Regionalists
					limit = {
						FROM = {
							original_tag = FRA
							has_country_leader = {
								character = FRA_Christine_Lambart_char
								ruling_only = yes
							}
						}
						ROOT = {
							OR = {
								original_tag = NMD
								original_tag = SAX
								original_tag = BRI
								original_tag = FCM
								original_tag = PIC
								original_tag = OCT
								original_tag = LIM
								original_tag = PRV
							}
						}
					}
					FROM = {
						white_peace = ROOT
						FRA = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FRA kill Regionalists
					limit = {
						FROM = {
							original_tag = GER
						}
						ROOT = {
							OR = {
								original_tag = NMD
								original_tag = SAX
								original_tag = BRI
								original_tag = FCM
								original_tag = PIC
								original_tag = OCT
								original_tag = LIM
								original_tag = PRV
							}
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Regionalists kill FRA
					limit = {
						FROM = {
							OR = {
								original_tag = NMD
								original_tag = SAX
								original_tag = BRI
								original_tag = FCM
								original_tag = PIC
								original_tag = OCT
								original_tag = LIM
								original_tag = PRV
							}
						}
						ROOT = {
							original_tag = FRA
							has_country_leader = {
								character = FRA_Christine_Lambart_char
								ruling_only = yes
							}
						}
					}
					FROM = {
						white_peace = ROOT
						ROOT = {
							every_core_state = {
								add_core_of = GER
							}
							transfer_navy = {
							    target = GER
							}
							every_unit_leader = {
								remove_unit_leader_trait = trait_FRA_Neutral_with_Regime
								remove_unit_leader_trait = trait_FRA_Happy_with_Regime
								remove_unit_leader_trait = trait_FRA_Disgusted_with_Regime
								remove_unit_leader_trait = trait_FRA_Political_Retirement
								remove_unit_leader_trait = trait_FRA_Loyal_to_Military
								remove_unit_leader_trait = trait_FRA_Loyal_to_Republic
								set_nationality = GER
							}
							transfer_units_fraction= {
								target = GER
								size = 1
								stockpile_ratio = 1
								army_ratio = 1
								navy_ratio = 1
								air_ratio = 1
							}
						}
						GER = {
							annex_country = {
								target = ROOT
								transfer_troops = yes
							}
							news_event = {
								id = news.558
							}
							declare_war_on = { 
								target = NMD
								type = civil_war 
							}
							declare_war_on = { 
								target = SAX
								type = civil_war 
							}
							declare_war_on = { 
								target = BRI
								type = civil_war 
							}
							declare_war_on = { 
								target = FCM
								type = civil_war 
							}
							declare_war_on = { 
								target = PIC
								type = civil_war 
							}
							declare_war_on = { 
								target = OCT
								type = civil_war 
							}
							declare_war_on = { 
								target = LIM
								type = civil_war 
							}
							declare_war_on = { 
								target = PRV
								type = civil_war 
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FPR kill anarchists
					limit = {
						FROM = {
							OR = {
								original_tag = FPR
								is_ally_with = FPR
							}
						}
						ROOT = {
							original_tag = OCC
						}
					}
					FROM = {
						white_peace = ROOT
						FPR = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#XIN was killed
					limit = {
						NOT = {
							has_global_flag = pan_asian_war_ongoing
							has_global_flag = PRC_china_collapse
						}
						FROM = {
							OR = {
								original_tag = HUT
								original_tag = ETL
								original_tag = SIK
							}
						}
						ROOT = {
							original_tag = XIN
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						annex_country = {
							target = HUT
							transfer_troops = no
						}
						annex_country = {
							target = ETL
							transfer_troops = no
						}
						PRC = {
							set_country_flag = PRC_Xinjiang_Autonomy_exploded_flag
							country_event = { id = china.501 }
						}
						set_global_flag = skip_default_capitulation
					}
				}
				if = {
					# XIN kill SIK
					limit = {
						NOT = {
							has_global_flag = PRC_china_collapse
						}
						FROM = {
							original_tag = XIN
						}
						ROOT = {
							OR = {
								original_tag = HUT
								original_tag = ETL
								original_tag = SIK
							}
						}
					}
					ROOT = {
						leave_faction = yes
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						annex_country = {
							target = HUT
							transfer_troops = no
						}
						annex_country = {
							target = ETL
							transfer_troops = no
						}
						set_global_flag = skip_default_capitulation
						if = {
							limit = {
								ROOT = {
									tag = HUT
								}
								NOT = {
									ETL = {
										exists = yes
									}
									SIK = {
										exists = yes
									}
								}
							}
							PRC = {
								country_event = { id = china.156 days = 10 }
							}
						}
						else_if = {
							limit = {
								ROOT = {
									tag = ETL
								}
								NOT = {
									HUT = {
										exists = yes
									}
									SIK = {
										exists = yes
									}
								}
							}
							PRC = {
								country_event = { id = china.156 days = 10 }
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = SIK
								}
								NOT = {
									ETL = {
										exists = yes
									}
									HUT = {
										exists = yes
									}
								}
							}
							PRC = {
								country_event = { id = china.156 days = 10 }
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRC kill SIK
					limit = {
						has_global_flag = pan_asian_war_ongoing
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							OR = {
								original_tag = TIB
								original_tag = SIK
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								ROOT = {
									tag = SIK
								}
							}
							country_event = { id = china.1024 days = 10 }
						}
						if = {
							limit = {
								ROOT = {
									tag = TIB
								}
							}
							country_event = { id = china.1024 days = 10 }
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MUS kill EGY
					limit = {
						FROM = {
							original_tag = MUS
						}
						ROOT = {
							original_tag = EGY
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						set_cosmetic_tag = MUS_egy
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RRR Lose
					limit = {
						FROM = {
							OR = {
								original_tag = NCA
								original_tag = LWK
								original_tag = IKA
								original_tag = GRA
								original_tag = STC
							}
						}
						ROOT = {
							original_tag = RRR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						RRR = {
							set_nationality = {
								target_country = APA
								character = RRR_Kevin_Smith_char
							}
							set_nationality = {
								target_country = APA
								character = RRR_Sherrie_Smith_char
							}
							set_nationality = {
								target_country = APA
								character = RRR_Andrew_Hunt_char
							}
							set_nationality = {
								target_country = APA
								character = RRR_Dwayne_Dixon_char
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# TRG Lose
					limit = {
						FROM = {
							OR = {
								original_tag = TEX
								original_tag = TFM
								original_tag = BSK
								original_tag = ATF
								original_tag = ATH
								original_tag = BND
							}
						}
						ROOT = {
							original_tag = TRG
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						TRG = {
							set_nationality = {
								target_country = APA
								character = TRG_Dallas
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}	
				if = {
					# ACP Lose
					limit = {
						FROM = {
							OR = {
								original_tag = USC
								original_tag = USB
								original_tag = APC
								original_tag = UC1
								original_tag = CIA
								original_tag = RGP
								original_tag = AYN
								original_tag = RGC
								original_tag = CHQ
							}
						}
						ROOT = {
							original_tag = ACP
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						ACP = {
							remove_country_leader_role = {
								character = ACP_Edward_Liger_char
								ideology = jacobinism
							}
							set_nationality = {
								target_country = APA
								character = ACP_Edward_Liger_char
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRK kill KOR
					limit = {
						FROM = {
							original_tag = PRK
						}
						ROOT = {
							original_tag = KOR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						add_ideas = PRK_triumphant_revolution
						add_timed_idea = {
							idea = PRK_korean_unification
							days = 720
						}
						PRC = {
							country_event = { id = china.219 days = 20 }
							country_event = china.455
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# KOR kill PRK
					limit = {
						FROM = {
							original_tag = KOR
						}
						ROOT = {
							original_tag = PRK
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						add_timed_idea = {
							idea = PRK_korean_unification
							days = 720
						}
						JAP = {
							country_event = { id = jap.59 days = 20 }
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PAK kill RAJ
					limit = {
						PRC = {
							has_country_flag = PRC_indo_pakistan_war_ongoing
						}
						FROM = {
							original_tag = PAK
						}
						ROOT = {
							original_tag = RAJ
						}
					}
					FROM = {
						white_peace = ROOT
						transfer_state = 441
						transfer_state = 1131
						SAJ = {
							set_cosmetic_tag = SAJ_pakistan_military
							add_state_core = 1373
							add_state_core = 439
							add_state_core = 428
							add_state_core = 1381
							transfer_state = 1373
							transfer_state = 439
							transfer_state = 428
							transfer_state = 1381
						}
						puppet = SAJ
						SAJ = {
							set_politics = {
								ruling_party = nationalist
								elections_allowed = no
								last_election = "1935.12.17"
								election_frequency = 48
							}
							add_popularity = {
								ideology = nationalist
								popularity = 0.65
							}
							create_country_leader = {
								name = PAK_Syed_Aamer_Raza
								picture = "gfx/leaders/EGY/Mohamed Ahmed Zaki.png"
								ideology = military_junta
								traits = {
								}
							}
						}
					}
					PAK = {
						set_country_flag = PAK_won_indo_pakistan_war
						if = {
							limit = {
								has_character = PRC_Lin_Xiangyang
							}
							PAK = {
								set_nationality = {
									target_country = PRC
									character = PRC_Lin_Xiangyang
								}
							}
						}
					}
					433 = {
						set_demilitarized_zone = yes
					}
					1379 = {
						set_demilitarized_zone = yes
					}
					437 = {
						set_demilitarized_zone = yes
					}
					PRC = {
						clr_country_flag = PRC_indo_pakistan_war_ongoing
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RAJ kill PAK
					limit = {
						PRC = {
							has_country_flag = PRC_indo_pakistan_war_ongoing
						}
						FROM = {
							original_tag = RAJ
						}
						ROOT = {
							original_tag = PAK
						}
					}
					FROM = {
						white_peace = ROOT
						remove_ideas = RAJ_clash_of_the_millions
						remove_ideas = RAJ_clash_of_the_millions2
						transfer_state = 787
						SAJ = {
							set_cosmetic_tag = SAJ_indian_military
							add_state_core = 443
							add_state_core = 1380
							transfer_state = 443
							transfer_state = 1380
						}
						puppet = SAJ
						SAJ = {
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "1935.12.17"
								election_frequency = 48
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.65
							}
							create_country_leader = {
								name = RAJ_Manoj_Kumar_Katiyar
								picture = "gfx/leaders/RAJ/RAJ_Manoj_Kumar_Katiyar.png"
								ideology = military_democracy
								traits = {
								}
							}
						}
					}
					PAK = {
						set_country_flag = PAK_lost_indo_pakistan_war
						remove_ideas = PAK_clash_of_the_millions
						country_event = { id = pak.10 days = 100 }
						if = {
							limit = {
								has_character = PRC_Lin_Xiangyang
							}
							PAK = {
								set_nationality = {
									target_country = PRC
									character = PRC_Lin_Xiangyang
								}
							}
						}
					}
					1324= {
						set_demilitarized_zone = yes
					}
					440 = {
						set_demilitarized_zone = yes
					}
					PRC = {
						clr_country_flag = PRC_indo_pakistan_war_ongoing
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# PRC kill VIN
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							original_tag = VIN
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						clr_country_flag = PRC_spread_chinese_influence
					}
					ROOT = {
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						add_ideas = PRC_unwilling_ally
						JAP_leave_PEC = yes
						create_country_leader = {
							name = PRC_Wang_Xiubin
							picture = "gfx/leaders/PRC/generals/Wang xiubin.png"
							ideology = military_junta
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# PRC kill SIA
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							original_tag = SIA
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						clr_country_flag = PRC_spread_chinese_influence
					}
					ROOT = {
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						add_ideas = PRC_unwilling_ally
						JAP_leave_PEC = yes
						create_country_leader = {
							name = PRC_Huang_Ming
							picture = "gfx/leaders/PRC/generals/Huang Ming.png"
							ideology = military_junta
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# PRC kill CAM
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							original_tag = CAM
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						clr_country_flag = PRC_spread_chinese_influence
					}
					ROOT = {
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						add_ideas = PRC_unwilling_ally
						JAP_leave_PEC = yes
						create_country_leader = {
							name = PRC_Wu_Yanan
							picture = "gfx/leaders/PRC/generals/Wu Yanan.png"
							ideology = military_junta
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# PRC kill LAO
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							original_tag = LAO
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						clr_country_flag = PRC_spread_chinese_influence
					}
					ROOT = {
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						add_ideas = PRC_unwilling_ally
						JAP_leave_PEC = yes
						create_country_leader = {
							name = PRC_Han_Weiguo
							picture = "gfx/leaders/PRC/generals/Han Weiguo.png"
							ideology = military_junta
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRC kill PAK
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							original_tag = PAK
						}
						NOT = {
							has_global_flag = pan_asian_war_ongoing
						}
						PRC = {
							has_country_flag = PRC_destroy_pakistan_flag
						}
					}
					FROM = {
						white_peace = PAK
						puppet = PAK
						add_to_faction = PAK
						if = {
							limit = {
								PAK = {
									has_country_flag = PAK_won_indo_pakistan_war
								}
							}
							transfer_state = 787
							transfer_state = 1131
							transfer_state = 441
						}
						set_nationality = {
							target_country = PAK
							character = PRC_Zhao_Zongqi
						}
					}
					ROOT = {
						set_politics = {
							ruling_party = fascist
							elections_allowed = no
						}
						add_country_leader_role = {
						    character = PRC_Zhao_Zongqi
						    promote_leader = yes
						    country_leader = {
						        ideology = ethno_nationalism
						        expire = "1.1.1.1"
						    }
						}
						add_popularity = {
							ideology = fascist
							popularity = 0.35
						}
						set_party_name = {
							ideology = fascist
							long_name = PRC_nationalist_military_administration_fascist_long
							name = PRC_nationalist_military_administration_fascist
						}
						remove_all_national_spirits = yes
						set_cosmetic_tag = PRC_nationalist_military_administration_PAK
						add_ideas = PRC_ASIA_chinese_purification_zone_idea
						if = {
							limit = {
								PAK = {
									has_country_flag = PAK_won_indo_pakistan_war
								}
							}
							transfer_state = 1381
							transfer_state = 439
							transfer_state = 1373
						}
						division_template = {			
							name = "Chinese Occupation Forces"
							priority = 1
							regiments = {
							    infantry = { x = 0 y = 0 }
								infantry = { x = 0 y = 1 }
								infantry = { x = 0 y = 2 }
								infantry = { x = 1 y = 0 }
								infantry = { x = 1 y = 1 }
								infantry = { x = 1 y = 2 }
						    }
							support = {
								recon = { x = 0 y = 0 }
								engineer = { x = 0 y = 1 }
							}
						}
						capital_scope = {
							create_unit = {
								division = "division_template = \"Chinese Occupation Forces\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
								owner = ROOT
								count = 10
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRC kill Indian Warlords
					limit = {
						FROM = {
							OR = {
								original_tag = PRC
								original_tag = PAK
								original_tag = PRJ
							}
						}
						ROOT = {
							OR = {
								original_tag = MPJ
								original_tag = LRJ
								original_tag = RAJ
								original_tag = UPJ
								original_tag = NAX
								original_tag = SLJ
								original_tag = SAJ
								original_tag = RSS
								original_tag = DRV
								original_tag = RJN
								original_tag = BAN
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					if = {
						limit = {
							country_exists = PRJ
						}
						PRJ = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						every_state = {
							limit = {
								is_core_of = ROOT
							}
							add_core_of = PRJ
						}
					}
					else = {
						PAK = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						every_state = {
							limit = {
								is_core_of = ROOT
							}
							add_core_of = PAK
						}
					}
					if = {
						limit = {
							NOT = {
								country_exists = MPJ
								country_exists = LRJ
								country_exists = RAJ
								country_exists = UPJ
								country_exists = NAX
								country_exists = SLJ
								country_exists = SAJ
								country_exists = RSS
								country_exists = DRV
								country_exists = RJN
								country_exists = BAN
							}
						}
						PRC = {
							set_country_flag = PRC_hindustan_was_fully_conquered
						}
						if = {
							limit = {
								country_exists = PRJ
							}
							PRJ = {
								set_cosmetic_tag = PRJ_eadi_occupation_forces
								set_capital = {
									state = 1379
								}
							}
						}
						SRL = {
							transfer_state = 281
							transfer_state = 733
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# BRM kill Minorities
					limit = {
						FROM = {
							original_tag = BRM
						}
						ROOT = {
							OR = {
								original_tag = PDF
								original_tag = KNU
								original_tag = CNF
								original_tag = KLA
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								OR = {
									AND = {
										ROOT = {
											original_tag = PDF
										}
										NOT = {
											KNU = {
												exists = yes
											}
											CNF = {
												exists = yes
											}
											KLA = {
												exists = yes
											}
										}
									}
									AND = {
										ROOT = {
											original_tag = KNU
										}
										NOT = {
											PDF = {
												exists = yes
											}
											CNF = {
												exists = yes
											}
											KLA = {
												exists = yes
											}
										}
									}
									AND = {
										ROOT = {
											original_tag = KLA
										}
										NOT = {
											PDF = {
												exists = yes
											}
											CNF = {
												exists = yes
											}
											KNU = {
												exists = yes
											}
										}
									}
									AND = {
										ROOT = {
											original_tag = CNF
										}
										NOT = {
											PDF = {
												exists = yes
											}
											KNU = {
												exists = yes
											}
											KLA = {
												exists = yes
											}
										}
									}
								}
							}
							every_state = {
								limit = {
									is_core_of = BRM
								}
								remove_core_of = PDF
								remove_core_of = CNF
								remove_core_of = KLA
								remove_core_of = KNU
								remove_core_of = SSA
								remove_core_of = MOA
								remove_core_of = MND
								remove_core_of = WAT
								remove_dynamic_modifier = { modifier = BRM_peoples_war }
							}
							annex_country = {
								target = SSA
								transfer_troops = no
							}
							annex_country = {
								target = MOA
								transfer_troops = no
							}
							annex_country = {
								target = MND
								transfer_troops = no
							}
							annex_country = {
								target = WAT
								transfer_troops = no
							}
							remove_ideas = {
								BRM_ethnic_tensions
								BRM_national_ceasefire
								BRM_unstable_junta
								BRM_civil_war_idea
							}
							BRM = {
								country_event = { id = bur.5 }
							}
							PRC = {
								clr_country_flag = PRC_myanmar_negotiations_flag
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Minorities Kill BRM
					limit = {
						FROM = {
							OR = {
							    original_tag = PRC
								original_tag = PDF
								original_tag = KNU
								original_tag = CNF
								original_tag = KLA
							}
						}
						ROOT = {
							original_tag = BRM
						}
					}
					BRM = {
						white_peace = FROM
						delete_unit = {}
						annex_country = {
							target = PDF
							transfer_troops = yes
						}
						annex_country = {
							target = CNF
							transfer_troops = yes
						}
						annex_country = {
							target = KLA
							transfer_troops = yes
						}
						annex_country = {
							target = KNU
							transfer_troops = yes
						}
						annex_country = {
							target = SSA
							transfer_troops = no
						}
						annex_country = {
							target = MOA
							transfer_troops = no
						}
						annex_country = {
							target = MND
							transfer_troops = no
						}
						annex_country = {
							target = WAT
							transfer_troops = no
						}
						every_state = {
							limit = {
								is_core_of = BRM
							}
							remove_core_of = PDF
							remove_core_of = CNF
							remove_core_of = KLA
							remove_core_of = KNU
							remove_core_of = SSA
							remove_core_of = MOA
							remove_core_of = MND
							remove_core_of = WAT
							remove_dynamic_modifier = { modifier = BRM_peoples_war }
						}
						set_politics = {
							ruling_party = social_democrat
							elections_allowed = yes
							election_frequency = 48
						}
						add_popularity = {
							ideology = social_democrat 
							popularity = 0.35
						}
						add_popularity = {
							ideology = market_liberal 
							popularity = 0.1
						}
						add_popularity = {
							ideology = conservative 
							popularity = 0.15
						}
						add_popularity = {
							ideology = social_liberal 
							popularity = 0.1
						}
						remove_ideas = {
							BRM_ethnic_tensions
							BRM_national_ceasefire
							BRM_unstable_junta
							BRM_civil_war_idea
						}
						BRM = {
							country_event = { id = bur.5 }
						}
						set_cosmetic_tag = BRM_PDF
						PRC = {
							clr_country_flag = PRC_myanmar_negotiations_flag
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# MND kill all
					limit = {
						FROM = {
							OR = {
								original_tag = MND
								original_tag = PRC
							}
						}
						ROOT = {
							OR = {
								original_tag = PDF
								original_tag = BRM
								original_tag = KNU
								original_tag = CNF
								original_tag = SSA
								original_tag = MOA
							}
						}
					}
					MND = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					if = {
						limit = {
							OR = {
								AND = {
									ROOT = {
										original_tag = PDF
									}
									NOT = {
										BRM = {
											exists = yes
										}
										KNU = {
											exists = yes
										}
										CNF = {
											exists = yes
										}
										SSA = {
											exists = yes
										}
										MOA = {
											exists = yes
										}
									}
								}
								AND = {
									ROOT = {
										original_tag = BRM
									}
									NOT = {
										PDF = {
											exists = yes
										}
										KNU = {
											exists = yes
										}
										CNF = {
											exists = yes
										}
										SSA = {
											exists = yes
										}
										MOA = {
											exists = yes
										}
									}
								}
								AND = {
									ROOT = {
										original_tag = CNF
									}
									NOT = {
										PDF = {
											exists = yes
										}
										BRM = {
											exists = yes
										}
										KNU = {
											exists = yes
										}
										SSA = {
											exists = yes
										}
										MOA = {
											exists = yes
										}
									}
								}
								AND = {
									ROOT = {
										original_tag = KNU
									}
									NOT = {
										PDF = {
											exists = yes
										}
										BRM = {
											exists = yes
										}
										CNF = {
											exists = yes
										}
										SSA = {
											exists = yes
										}
										MOA = {
											exists = yes
										}
									}
								}
								AND = {
									ROOT = {
										original_tag = SSA
									}
									NOT = {
										PDF = {
											exists = yes
										}
										BRM = {
											exists = yes
										}
										CNF = {
											exists = yes
										}
										KNU = {
											exists = yes
										}
										MOA = {
											exists = yes
										}
									}
								}
								AND = {
									ROOT = {
										original_tag = MOA
									}
									NOT = {
										PDF = {
											exists = yes
										}
										BRM = {
											exists = yes
										}
										CNF = {
											exists = yes
										}
										KNU = {
											exists = yes
										}
										SSA = {
											exists = yes
										}
									}
								}
							}
						}
						PRC = {
							puppet = BRM
						}
						BRM = {
							white_peace = FROM
							if = {
								limit = {
									PRC = {
										has_country_leader = {
											character = PRC_li_zuocheng
											ruling_only = yes
										}
									}
								}
								set_politics = {
									ruling_party = totalitarian_socialist
									elections_allowed = yes
									election_frequency = 48
								}
								set_popularities = {
									totalitarian_socialist = 45
									communist = 15
									social_liberal = 4
									social_democrat = 6
									nationalist = 10
									authoritarian_democrat = 20
								}
							}
							else = {
								set_politics = {
									ruling_party = communist
									elections_allowed = yes
									election_frequency = 48
								}
								set_popularities = {
									totalitarian_socialist = 15
									communist = 45
									social_liberal = 4
									social_democrat = 6
									nationalist = 10
									authoritarian_democrat = 20
								}
							}
							annex_country = {
								target = MND
								transfer_troops = yes
							}
							every_state = {
								limit = {
									is_core_of = BRM
								}
								remove_core_of = PDF
								remove_core_of = CNF
								remove_core_of = KLA
								remove_core_of = KNU
								remove_core_of = SSA
								remove_core_of = MOA
								remove_core_of = MND
								remove_core_of = WAT
							}
							remove_ideas = {
								BRM_ethnic_tensions
								BRM_national_ceasefire
								BRM_unstable_junta
								BRM_civil_war_idea
							}
							set_cosmetic_tag = PDF_burma
							PRC = {
								clr_country_flag = PRC_myanmar_negotiations_flag
								add_to_faction = BRM
							}
							set_global_flag = BRM_prochinese_asian_cold_war
							BRM = {
								country_event = { id = bur.5 }
								clr_country_flag = pdto_member
								set_country_flag = eadi_member
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# SIA kill Students
					limit = {
						FROM = {
							original_tag = SIA
						}
						ROOT = {
							OR = {
								original_tag = ETI
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								OR = {
									AND = {
										ROOT = {
											original_tag = ETI
										}
									}
								}
							}
							every_state = {
								limit = {
									is_core_of = SIA
								}
								remove_core_of = ETI
								remove_dynamic_modifier = { modifier = BRM_peoples_war }
							}
							annex_country = {
								target = ETI
								transfer_troops = no
							}
						}
					}
					SIA = {
						drop_cosmetic_tag = yes
						add_popularity = { ideology = nationalist popularity = 0.05 }
						remove_country_leader_role = {
							character = SIA_rama_x_char
							ideology = military_junta
						}
						set_party_name = { ideology = nationalist long_name = SIA_nationalist_party_absolutist_long name = SIA_nationalist_party_absolutist }
						set_portraits = {
							character = SIA_rama_x_char
							civilian = { large ="GFX_portrait_SIA_rama_2" }
						}
						set_country_flag = SIA_royal_victory_flag
						declare_war_on = { 
							target = BRU
							type = civil_war 
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Students Kill SIA
					limit = {
						FROM = {
							OR = {
								original_tag = ETI
							}
						}
						ROOT = {
							original_tag = SIA
						}
					}
					SIA = {
						white_peace = FROM
						delete_unit = {}
						annex_country = {
							target = ETI
							transfer_troops = yes
						}
						every_state = {
							limit = {
								is_core_of = SIA
							}
							remove_core_of = ETI
							remove_dynamic_modifier = { modifier = BRM_peoples_war }
						}
						retire_character = SIA_rama_x_char
						retire_character = SIA_dipangkorn_rasmijoti_char
						retire_character = SIA_vacharaesorn_vivacharawongse_char
						retire_character = SIA_maha_chakri_sirindhorn_char
						promote_character = SIA_peoples_coaltion_char
						promote_character = SIA_thanathorn_juangroongruangkit_char
						promote_character = SIA_jurin_lakasanawisit_char
						promote_character = SIA_sereepisuth_temeeyaves_char
						clr_country_flag = head_of_gov_ui_enabled
						set_politics = {
							ruling_party = conservative
							elections_allowed = yes
							election_frequency = 48
						}
						add_popularity = {
							ideology = social_democrat 
							popularity = 0.15
						}
						add_popularity = {
							ideology = market_liberal 
							popularity = 0.1
						}
						add_popularity = {
							ideology = conservative 
							popularity = 0.35
						}
						add_popularity = {
							ideology = social_liberal 
							popularity = 0.1
						}
						set_cosmetic_tag = ETI_thailand
						set_country_flag = SIA_republican_victory_flag
						country_event = { id = thailand.19 days = 14 }
						declare_war_on = { 
							target = BRU
							type = civil_war 
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# BRU kills SIA or ETI
					limit = {
						FROM = {
							original_tag = BRU
						}
						ROOT = {
							OR = {
								original_tag = SIA
								original_tag = ETI
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					BRU = {
						set_cosmetic_tag = BRU_victory
						set_country_flag = BRU_victory_flag
						country_event = { id = patani.1 days = 14 }
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# SIA or ETI kills BRU
					limit = {
						FROM = {
							OR = {
								original_tag = SIA
								original_tag = ETI
							}
						}
						ROOT = {
							original_tag = BRU
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					SIA = {
						country_event = { id = patani.3 days = 14 }
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Syrian Civil War - Victory
					limit = {
						FROM = {
							original_tag = SYR
						}
						ROOT = {
							original_tag = HTS
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Syrian Civil War - Defeat
					limit = {
						FROM = {
							OR = {
								original_tag = HTS
								original_tag = ROJ
							}
						}
						ROOT = {
							original_tag = SYR
						}
					}
					FROM = {
						white_peace = ROOT
						every_state = {
							limit = {
								is_core_of = ROOT
							}
        					add_core_of = FROM
    					}
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								original_tag = HTS
							}
							country_event = { id = syria.36 }
						}
						if = {
							limit = {
								original_tag = ROJ
							}
							country_event = { id = syria.37 }
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.12
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Nicaragua victory Central American War
					limit = {
						FROM = {
							OR = {
								original_tag = NIC
								original_tag = HON
							}
						}
						ROOT = {
							OR = {
								original_tag = GUA
								original_tag = ELS
								original_tag = BLZ
							}
						}
					}
					FROM = {
						NIC = {
							puppet = ROOT
						}
						white_peace = ROOT
					}
					ROOT = {
						set_cosmetic_tag = NIC_puppet
						set_popularities = {
							totalitarian_socialist = 5
							communist = 35
							libertarian_socialist = 10
							market_liberal = 4
							conservative = 6
							nationalist = 10
							authoritarian_democrat = 20
							fascist = 10
						}
						set_politics = {
							ruling_party = totalitarian_socialist
							last_election = "2013.5.12"
							election_frequency = 48
							elections_allowed = no
						}
						create_country_leader = {
							name = CEN_gobierno_provisional_republica
							picture = "gfx/Leaders/NIC/NIC_Gobierno_Provisional_de_la_Republica.png"
							ideology = left_wing_junta
						}
						set_party_name = {
							ideology = totalitarian_socialist
							long_name = NIC_puppet_party_long
							name = NIC_puppet_party
						}
						if = {
							limit = {
								has_idea = CEN_banana_republic
							}
							swap_ideas = {
								remove_idea = CEN_banana_republic
								add_idea = CEN_banana_republic_red
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# El Salvador victory Central American War
					limit = {
						FROM = {
							OR = {
								original_tag = GUA
								original_tag = ELS
								original_tag = BLZ
							}
						}
						ROOT = {
							OR = {
								original_tag = NIC
								original_tag = HON
							}
						}
					}
					FROM = {
						ELS = {
							puppet = ROOT
						}
						white_peace = ROOT
					}
					ROOT = {
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.3
						}
						set_politics = {
							ruling_party = authoritarian_democrat
							last_election = "2013.5.12"
							election_frequency = 48
							elections_allowed = no
						}
						create_country_leader = {
							name = CEN_gobierno_provisional_republica
							picture = "gfx/Leaders/NIC/NIC_Gobierno_Provisional_de_la_Republica.png"
							ideology = military_democracy
						}
						set_party_name = {
							ideology = authoritarian_democrat
							long_name = ELS_puppet_party_long
							name = ELS_puppet_party
						}
						if = {
							limit = {
								original_tag = NIC
							}
							set_cosmetic_tag = ELS_puppet
						}
						if = {
							limit = {
								original_tag = HON
							}
							drop_cosmetic_tag = yes
						}
						if = {
							limit = {
								has_idea = CEN_banana_republic_red
							}
							swap_ideas = {
								remove_idea = CEN_banana_republic_red
								add_idea = CEN_banana_republic
							}
						}
						if = {
							limit = {
								has_idea = NIC_revolutionary_spirit
							}
							remove_ideas = NIC_revolutionary_spirit
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Canada kill quebec
					limit = {
						FROM = {
							original_tag = CAN
						}
						ROOT = {
							original_tag = QUE
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						add_popularity = {
							ideology = nationalist
							popularity = 0.10
						}
						add_stability = 0.1
					}
				}
				if = {
					# quebec kill canada
					limit = {
						FROM = {
							original_tag = QUE
						}
						ROOT = {
							original_tag = CAN
						}
					}
					FROM = {
						transfer_state = 468
						transfer_state = 465
						transfer_state = 464
						transfer_state = 331
						transfer_state = 332
						transfer_state = 276
						transfer_state = 682
						puppet = CAN
					}
					CAN = {
						set_cosmetic_tag = CAN_quebecois_puppet_costag
						set_politics = {
							ruling_party = nationalist
							elections_allowed = no
						}
						create_country_leader = {
							name = FRA_mathys_brouillette_char
							picture = "gfx/Leaders/FRA/generic/FRA_generic_general_5.png" 
							ideology = military_junta
							traits = {
							}
						}
					}
				}
				if = {
					# NDC Victory
					limit = {
						FROM = {
							original_tag = CAN
						}
						ROOT = {
							OR = {
								original_tag = PTF
								original_tag = GMA
							}
						}
					}
					GOP = {
						transfer_state = 795
						transfer_state = 1077
						transfer_state = 357
						transfer_state = 794
						transfer_state = 1114
						transfer_state = 1078
						transfer_state = 1080
						transfer_state = 793
						transfer_state = 1079
						transfer_state = 792
						transfer_state = 1115
						transfer_state = 358
						transfer_state = 1116
						transfer_state = 1117
						transfer_state = 1118
						transfer_state = 918
						transfer_state = 1259
						set_politics = {
							ruling_party = social_liberal
							elections_allowed = yes
						}
						set_popularities = {
							social_liberal = 70
							authoritarian_democrat = 30
						}
						set_cosmetic_tag = GOP_puppet
					}
					news_event = {
						id = ptf.108
					}
					set_global_flag = skip_default_capitulation
				}
				#if = {
					# South African Civil War FUCK YOU COBBLESTONE FUCK YOU FUCK YOU
					#limit = {
					#	FROM = {
					#		OR = {
					#			original_tag = SWZ
					#			original_tag = EFF
					#			original_tag = SAF
					#			original_tag = CFF
					#		}
					#	}
					#	ROOT = {
					#		OR = {
					#			original_tag = SWZ
					#			original_tag = EFF
					#			original_tag = SAF
					#			original_tag = CFF
					#		}
					#	}
					#}
					#FROM = {
					#	white_peace = ROOT
					#	annex_country = {
					#		target = ROOT
					#		transfer_troops = no
					#	}
					#}
					#set_global_flag = skip_default_capitulation
				#}
				
				if = {
					# SWD kill SWE
					limit = {
						FROM = {
							original_tag = SWD
						}
						ROOT = {
							original_tag = SWE
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						set_cosmetic_tag = SWD_sweden
						GER = {
							add_to_faction = SWD
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# NWY kill NOR
					limit = {
						FROM = {
							original_tag = NWY
						}
						ROOT = {
							original_tag = NOR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						set_cosmetic_tag = NWY_norway
						GER = {
							add_to_faction = NWY
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Daraa Uprising Supressed
					limit = {
						FROM = {
							original_tag = SYR
						}
						ROOT = {
							original_tag = FSA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# HRL kill LBA
					limit = {
						FROM = {
							original_tag = HRL
						}
						ROOT = {
							original_tag = LBA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						load_oob = "HRL_ai"
						army_experience = 500
						random_owned_controlled_state = {
							if = {
								limit = {
									free_building_slots = {
										building = arms_factory
										size > 3
										include_locked = yes
									}
								}
								add_extra_state_shared_building_slots = 3
								add_building_construction = {
									type = arms_factory
									level = 3
									instant_build = yes
								}
							}
						}
						HRL_increase_gaddafi = yes
						HRL = {
							country_event = { id = libya.4 days = 10 }
							set_capital = {
								state = 448
								remember_old_capital = no
							}
						}
					}
					news_event = news.542
					set_global_flag = skip_default_capitulation
				}
				if = {
					# LBA kill HRL
					limit = {
						FROM = {
							original_tag = LBA
						}
						ROOT = {
							original_tag = HRL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = libya.29 days = 60 }
					}
					news_event = news.542
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FLORIDA
					limit = {
						FROM = {
							OR = {
								original_tag = ATW
								original_tag = FLM
								original_tag = LRA
								original_tag = FLA
							}
						}
						ROOT = {
							OR = {
								original_tag = ATW
								original_tag = FLM
								original_tag = LRA
								original_tag = FLA
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#
					limit = {
						FROM = {
							OR = {
								original_tag = ATW
								original_tag = FLA
								original_tag = FLM
								original_tag = LRA
							}
						}
						ROOT = {
							OR = {
								original_tag = FLA
							}
						}
					}
					ATW = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SRP kill Bosnia
					limit = {
						FROM = {
							original_tag = SRP
						}
						ROOT = {
							original_tag = BOS
						}
					}
					FROM = {
						white_peace = ROOT
					}
					SRP = {
						transfer_state = 848
						transfer_state = 849
						if = {
							limit = {
								SER = {
									owns_state = 105
									owns_state = 785
								}
							}
							SER = {
								country_event = {
									id = serbia.12
									days = 10
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Fuck you Biden
					limit = {
						FROM = {
							original_tag = TAL
						}
						ROOT = {
							original_tag = AFG
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					TAL = {
						set_capital = {
							state = 1355
							remember_old_capital = no
						}
						add_ideas = TAL_grave_yard_of_empires
					}
					news_event = {
						id = news.229
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MICHIGAN
					limit = {
						FROM = {
							OR = {
								original_tag = NSM
								original_tag = BMF
								original_tag = HWM
								original_tag = MIM
								original_tag = HUM
							}
						}
						ROOT = {
							OR = {
								original_tag = NSM
								original_tag = BMF
								original_tag = HWM
								original_tag = MIM
								original_tag = HUM
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Oregon
					limit = {
						FROM = {
							OR = {
								original_tag = APA
								original_tag = ORE
								original_tag = ATP
								original_tag = BBC
								original_tag = PCR
							}
						}
						ROOT = {
							OR = {
								original_tag = APA
								original_tag = ORE
								original_tag = ATP
								original_tag = BBC
								original_tag = PCR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Washington
					limit = {
						FROM = {
							OR = {
								original_tag = CAC
								original_tag = WAS
								original_tag = WLF
							}
						}
						ROOT = {
							OR = {
								original_tag = CAC
								original_tag = WAS
								original_tag = WLF
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Washington
					limit = {
						FROM = {
							OR = {
								original_tag = APA
								original_tag = WAS
								original_tag = WLF
							}
						}
						ROOT = {
							OR = {
								original_tag = APA
								original_tag = WAS
								original_tag = WLF
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ETH kill TDF
					limit = {
						FROM = {
							original_tag = ETH
						}
						ROOT = {
							original_tag = TDF
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						remove_ideas = ETH_tigray_insurgency
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ETH kill SHB
					limit = {
						FROM = {
							OR = {
								original_tag = SOM
								original_tag = ETH
								original_tag = EGY
								is_ally_with = ETH
								is_ally_with = SOM
								is_ally_with = EGY
							}
						}
						ROOT = {
							original_tag = SHB
						}
					}
					FROM = {
						white_peace = ROOT
						SOM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							transfer_state = 955
							transfer_state = 559
							transfer_state = 807
							remove_ideas = SOM_failed_state
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ETH kill SML
					limit = {
						FROM = {
							original_tag = ETH
						}
						ROOT = {
							original_tag = SML
						}
					}
					FROM = {
						white_peace = ROOT
						SOM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							remove_ideas = SOM_piratry
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill UAE
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								original_tag = HOU
							}
						}
						ROOT = {
							original_tag = UAE
						}
					}
					FROM = {
						white_peace = ROOT
						ZET = {
							add_state_core = 826
							add_state_core = 658
							transfer_state = 826
							transfer_state = 658
							set_country_flag = AOR_Member
						}
						PER = {
							add_to_faction = ZET
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill QAT
					limit = {
						FROM = {
							original_tag = PER
						}
						ROOT = {
							original_tag = QAT
						}
					}
					FROM = {
						white_peace = ROOT
						ZET = {
							add_state_core = 825
							add_state_core = 856
							transfer_state = 856
							transfer_state = 825
						}
						PER = {
							add_to_faction = ZET
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill KUW
					limit = {
						FROM = {
							original_tag = PER
						}
						ROOT = {
							original_tag = KUW
						}
					}
					FROM = {
						white_peace = ROOT
						ZET = {
							add_state_core = 656
							transfer_state = 656
						}
						PER = {
							add_to_faction = ZET
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill OMA
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								original_tag = HOU
							}
						}
						ROOT = {
							original_tag = OMA
						}
					}
					FROM = {
						white_peace = ROOT
						ZET = {
							add_state_core = 294
							transfer_state = 294
						}
						PER = {
							add_to_faction = ZET
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill YEM
					limit = {
						FROM = {
							original_tag = PER
						}
						ROOT = {
							original_tag = YEM
						}
					}
					FROM = {
						white_peace = ROOT
						HOU = {
							add_state_core = 293
							add_state_core = 919
							add_state_core = 659
							add_state_core = 922
							add_state_core = 923
							add_state_core = 920
							add_state_core = 921
							add_state_core = 925
							add_state_core = 924
							add_state_core = 926
							transfer_state = 293
							transfer_state = 919
							transfer_state = 659
							transfer_state = 922
							transfer_state = 923
							transfer_state = 920
							transfer_state = 921
							transfer_state = 925
							transfer_state = 924
							transfer_state = 926
							if = {
								limit = {
									NOT = {
										HOU = {
											is_puppet_of = PER
										}
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# HNG kill HUN
					limit = {
						FROM = {
							original_tag = HNG
						}
						ROOT = {
							original_tag = HUN
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						43 = {
							add_core_of = HNG
						}
						154 = {
							add_core_of = HNG
						}
						155 = {
							add_core_of = HNG
						}
						854 = {
							add_core_of = HNG
						}
						76 = {
							add_claim_by = HNG
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PER kill BAL
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								original_tag = IRB
							}
						}
						ROOT = {
							original_tag = BAL
						}
					}
					FROM = {
						white_peace = ROOT
						IRB = {
							transfer_state = 444
							transfer_state = 1322
							if = {
								limit = {
									NOT = {
										IRB = {
											is_puppet_of = PER
										}
									}
								}
								PER = {
									puppet = IRB
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# NATO Kill PER
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = PER
							is_ally_with = PER
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = GER
						white_peace = FRA
						white_peace = ENG
						KUR = {
							transfer_state = 421
						}
						RIF = {
							add_state_core = 1327
							add_state_core = 417
							transfer_state = 1327
							transfer_state = 417
							load_oob = "Rif_2020"
						}
						UAE = {
							transfer_state = 826
							transfer_state = 658
						}
						QAT = {
							transfer_state = 825
							transfer_state = 856
						}
						AFA = {
							add_state_core = 1326
							add_state_core = 913
							transfer_state = 1326
							transfer_state = 913
							load_oob = "AFA_2020"
						}
						BAL = {
							add_state_core = 912
							add_state_core = 916
							add_state_core = 410
							transfer_state = 912
							transfer_state = 916
							transfer_state = 410
							load_oob = "BAL_nato"
						}
						AOI = {
							add_state_core = 419
							transfer_state = 419
							AZR = {
								puppet = AOI
							}
						}
						QEM = {
							add_state_core = 413
							transfer_state = 413
							load_oob = "QEM_2020"
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = ZET
							add_to_faction = ZET
						}
						ZET = {
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
								JAM_unruly_populace
								JAM_black_gold
							}
							set_cosmetic_tag = ZET_nato
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.4
							}
							create_country_leader = {
								name = ZET_albert_safar_char
								picture = "Albert Safar.dds"
								ideology = military_democracy
								traits = {
								}
							}
							add_state_core = 414
							transfer_state = 414
							load_oob = "ZET_nato"
						}
						if = {
							limit = {
								HEZ = {
									is_in_faction_with = PER
								}
							}
							LEB = {
							    annex_country = {
								    target = HEZ
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
								HOU = {
									is_in_faction_with = PER
								}
							}
							YEM = {
							    annex_country = {
								    target = HOU
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
							    OR = {
								    IRQ = {
								    	is_in_faction_with = PER
								    }
								    FIA = {
								    	is_in_faction_with = PER
								    }
								}
							}
							PER = {
							    end_puppet = IRQ
							}
							IRQ = {
							    annex_country = {
								    target = FIA
									transfer_troops = no
								}
								drop_cosmetic_tag = yes
							}
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = PER
							add_to_faction = PER
						}
						remove_all_national_spirits = yes
						add_ideas = {
							SOV_eu_dominated_economy_idea
							SOV_nato_peacekeepers_idea
							NATO_unstable_administration
							NATO_devestated_economy
						}
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.4
						}
						create_country_leader = {
							name = NATO_interim_government
							picture = "NATO Mandate Council.dds"
							ideology = military_democracy
							traits = {
							}
						}
						set_cosmetic_tag = PER_nato
						dismantle_faction = yes
						load_oob = "PER_nato"
						clr_country_flag = AOR_Member
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = BIA
						}
						ROOT = {
							original_tag = NGA
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = NGA
						NGA = {
							set_country_flag = ASD_member
							set_cosmetic_tag = NGA_Abuja_Military_Administration
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.3
							}
							add_country_leader_role = {
								character = NGA_Lucky_Irabor_char
								promote_leader = yes
								country_leader = {
									ideology = hybrid_regime
									traits = {
										Africa_Disgruntled_Despot
									}
								}
							}
						}
						EBN = {
							transfer_state = 558
							set_country_flag = ASD_member
						}
						puppet = EBN
						EBN = {
							set_politics = {
								ruling_party = nationalist
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = nationalist
								popularity = 1
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NDC Victory
					limit = {
						FROM = {
							original_tag = NDC
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = MMK
								original_tag = DRO
								original_tag = COG
								original_tag = M23
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = BDK
									country_exists = DRO
									country_exists = COG
									country_exists = M23
									country_exists = RCG
									country_exists = RCO
									country_exists = CAR
									country_exists = CPC
								}
								has_country_leader = {
									character = NDC_Shimiray_Mwissa_Guidon_char
									ruling_only = yes
								}
							}
							set_cosmetic_tag = NDC_great_congo
							NDC = {
								set_capital ={
									state = 1363
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# BDK Victory
					limit = {
						FROM = {
							original_tag = BDK
						}
						ROOT = {
							OR = {
								original_tag = NDC
								original_tag = MMK
								original_tag = DRO
								original_tag = COG
								original_tag = M23
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = NDC
									country_exists = DRO
									country_exists = COG
									country_exists = M23
									country_exists = RCG
									country_exists = RCO
									country_exists = CAR
									country_exists = CPC
								}
							}
							white_peace = MMK
							set_cosmetic_tag = BDK_Kongo_Empire
							BDK = {
								set_capital ={
									state = 1363
								}
							}
							TZN = {
								puppet = M23
								puppet = DRO
							}
							M23 = {
								transfer_state = 718
								transfer_state = 1357
								transfer_state = 1356
								transfer_state = 862
								set_cosmetic_tag = M23_EAF_northern_zone
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								create_country_leader = {
									name = TZN_venance_salvatory_mabeyo_char
									picture = GFX_portrait_TZN_venance_salvatory_mabeyo
									ideology = supervised_democracy
								}
								set_popularities = {
									conservative = 44
									authoritarian_democrat = 28
									nationalist = 28
								}
								set_party_name = {
									ideology = conservative
									long_name = EAF_occupation_long
									name = EAF_occupation_short
								}
								every_owned_state = {
									set_demilitarized_zone = yes
								}
								change_government_type_military_dictatorship = yes
							}
							DRO = {
								transfer_state = 863
								transfer_state = 862
								transfer_state = 864
								set_cosmetic_tag = DRO_EAF_kivu_zone
								create_country_leader = {
									name = TZN_salum_haji_othman_char
									picture = GFX_portrait_TZN_salum_haji_othman
									ideology = supervised_democracy
								}
								set_popularities = {
									conservative = 44
									authoritarian_democrat = 28
									nationalist = 28
								}
								set_party_name = {
									ideology = conservative
									long_name = EAF_occupation_long
									name = EAF_occupation_short
								}
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								every_owned_state = {
									set_demilitarized_zone = yes
								}
								change_government_type_military_dictatorship = yes
							}
							release = CAR
							CAR = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									popularity = 0.65
									ideology = nationalist
								}
								set_cosmetic_tag = CAR_Central_African_Empire
								remove_ideas = {
									african_union_member
									FRA_CFA_Franc
								}
								change_government_type_absolute_monarchy = yes
							}
							MMK = {
								transfer_state = 865
								transfer_state = 1358
								1358 = {
									set_demilitarized_zone = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Angola kills BDK
					limit = {
						FROM = {
							original_tag = ANG
						}
						ROOT = {
							original_tag = BDK
						}
					}
					FROM = {
						white_peace = ROOT
						RCG = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# CONGO MURDERS ANGOLA
					limit = {
						FROM = {
							OR = {
								original_tag = NDC
								original_tag = BDK
								original_tag = DRO
								original_tag = COG
								original_tag = M23
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
						ROOT = {
							original_tag = ANG
						}
					}
					FROM = {
						ANG = {
							leave_faction = yes
							white_peace = var:enemies
						}
						transfer_state = 842
						842 = {
							add_core_of = FROM
						}

					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# M23 Victory
					limit = {
						FROM = {
							original_tag = M23
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = MMK
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = BDK
									country_exists = DRO
									country_exists = COG
									country_exists = RCG
									country_exists = RCO
									country_exists = NDC
									country_exists = CAR
									country_exists = CPC
								}
							}
							set_cosmetic_tag = M23_victory
							M23 = {
								set_capital ={
									state = 1363
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# M23 Victory
					limit = {
						FROM = {
							original_tag = TZN
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = MMK
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						M23 = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							IF = {
								LIMIT = {
									NOT = {
										country_exists = BDK
										country_exists = DRO
										country_exists = COG
										country_exists = RCG
										country_exists = RCO
										country_exists = NDC
										country_exists = CAR
										country_exists = CPC
									}
								}
								set_cosmetic_tag = M23_victory
								M23 = {
									set_capital ={
										state = 1363
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# DRC Victory
					limit = {
						FROM = {
							original_tag = COG
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = MMK
								original_tag = DRO
								original_tag = M23
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = BDK
									country_exists = DRO
									country_exists = M23
									country_exists = RCG
									country_exists = RCO
									country_exists = NDC
									country_exists = CAR
								}
								OR = {
									NOT = {
										country_exists = CPC
									}
									is_ally_with = CPC
								}
							}
							set_cosmetic_tag = COG_DRGC
							annex_country = {
								target = CPC
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Congo-Kinshasa Victory
					limit = {
						FROM = {
							original_tag = DRO
							is_in_faction_with = DRO
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = MMK
								original_tag = M23
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
							}
						}
					}
					DRO = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = BDK
									country_exists = COG
									country_exists = M23
									country_exists = RCG
									country_exists = RCO
									country_exists = NDC
									country_exists = CPC
								}
								OR = {
									NOT = {
										country_exists = CAR
									}
									is_ally_with = CAR
								}
							}
							set_cosmetic_tag = DRO_US_of_Central_Africa
							DRO = {
								set_capital = {
									state = 1363
								}
							}
							add_ideas = african_union_member
							annex_country = {
								target = CAR
								transfer_troops = yes
							}
							dismantle_faction = yes
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MMK Victory
					limit = {
						FROM = {
							original_tag = MMK
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = M23
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
							}
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								NOT = {
									has_war_with = var:neighbors_owned
								}
							}
							white_peace = var:enemies
							set_cosmetic_tag = MMK_Katanga_independent_state
							transfer_state = 1358
							1358 = {
								add_core_of = MMK
							}
							add_country_leader_role = {
								character = MMK_Gedeon_Kyungu_char
								promote_leader = yes
								country_leader = {
									ideology = constitutionalist
									traits = {
									}
								}
							}
							set_politics = {
								ruling_party = conservative
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = no
							}
							add_popularity = {
								ideology = conservative
								popularity = 0.35
							}
							ZAM = {
								give_guarantee = MMK
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Commie Congo Victory
					limit = {
						FROM = {
							OR = {
								original_tag = RCG
								original_tag = ANG
							}
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = M23
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCO
								original_tag = CAR
								original_tag = CPC
								original_tag = MMK
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						RCG = {
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							IF = {
								LIMIT = {
									NOT = {
										country_exists = BDK
										country_exists = DRO
										country_exists = COG
										country_exists = M23
										country_exists = RCO
										country_exists = NDC
										country_exists = CAR
										country_exists = CPC
									}
								}
								set_cosmetic_tag = RCG_PR_of_CAfrica
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Auth Dem Congo Victory
					limit = {
						FROM = {
							original_tag = RCO
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = M23
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = CAR
								original_tag = CPC
								original_tag = MMK
							}
						}
					}
					FROM = {
						IF = {
							LIMIT = {
								ROOT = {
									is_in_faction = yes
								}
							}
							ROOT = {
								leave_faction = yes
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = BDK
									country_exists = DRO
									country_exists = COG
									country_exists = M23
									country_exists = RCG
									country_exists = NDC
									country_exists = CAR
									country_exists = CPC
								}
							}
							set_cosmetic_tag = RCO_greater_congo_republic
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Coalition for Partriots victory
					limit = {
						FROM = {
							original_tag = CPC
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = M23
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
							}
						}
					}
					FROM = {
						if = {
							limit = {
								has_country_leader = {
									character = CPC_Joseph_Kony
									ruling_only = yes
								}
							}
							IF = {
								LIMIT = {
									ROOT = {
										is_in_faction = yes
									}
								}
								ROOT = {
									leave_faction = yes
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						else = {
							DRO = {
								white_peace = ROOT
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Central Africa victory
					limit = {
						FROM = {
							original_tag = CAR
						}
						ROOT = {
							OR = {
								original_tag = BDK
								original_tag = M23
								original_tag = DRO
								original_tag = COG
								original_tag = NDC
								original_tag = RCG
								original_tag = RCO
							}
						}
					}
					FROM = {
						if = {
							limit = {
								CAR = {
									has_country_leader = {
										character = CAR_Gleb
										ruling_only = yes
									}
								}
							}
							IF = {
								LIMIT = {
									ROOT = {
										is_in_faction = yes
									}
								}
								ROOT = {
									leave_faction = yes
								}
							}
							set_cosmetic_tag = Gleb_Central_Africa
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								CAR = {
									has_cosmetic_tag = Gleb_Central_Africa
								}
							}
							IF = {
								LIMIT = {
									ROOT = {
										is_in_faction = yes
									}
								}
								ROOT = {
									leave_faction = yes
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						else = {
							DRO = {
								white_peace = ROOT
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# CPC kill CAR
					limit = {
						FROM = {
							original_tag = CPC
						}
						ROOT = {
							original_tag = CAR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						random_list = {
							40 = {
								modifier = {
									factor = 0
									OR = {
										has_game_rule = {
											rule = CPC_CHOICE_GOV
											option = CPC_CHOICE_GOV
										}
									}
								}
								country_event = {
									id = car.2
									days = 10
								}
							}
							60 = {
								modifier = {
									factor = 0
									OR = {
										has_game_rule = {
											rule = CPC_CHOICE_GOV
											option = CPC_CHOICE_GOD
										}
									}
								}
								add_stability = 0.08
								set_cosmetic_tag = CAR
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.15
								}
								add_ideas = {
									african_union_member
									FRA_CFA_Franc
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# French Communists Gut Turkey
					limit = {
						FROM = {
							OR = {
								original_tag = FPR
								original_tag = GER
								original_tag = UK2
								original_tag = ITA
								original_tag = PRS
								original_tag = PRP
								original_tag = GRE
							}
							OR = {
								is_in_faction_with = FPR
								original_tag = FPR
							}
						}
						ROOT = {
							original_tag = TUR
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								FPR = {
									has_country_leader = {
										character = FPR_Didier_Daeninckx_char
										ruling_only = yes
									}
								}
							}
							LAZ = {
								transfer_state = 354
								354 = {
									add_core_of = LAZ
								}
								add_country_leader_role = {
									character = LAZ_Aydemir_Guler_char
									promote_leader = yes
									country_leader = {
										ideology = marxism_leninism
										traits = {
										}
									}
								}
							}
							PKK = {
								transfer_state = 345
								345 = {
									add_core_of = PKK
								}
								transfer_state = 353
								353 = {
									add_core_of = PKK
								}
								transfer_state = 352
								352 = {
									add_core_of = PKK
								}
								transfer_state = 348
								348 = {
									add_core_of = PKK
								}
								transfer_state = 350
								350 = {
									add_core_of = PKK
								}
								set_cosmetic_tag = PKK_Workers_Republic
							}
							ADA = {
								transfer_state = 344
								344 = {
									add_core_of = ADA
								}
								add_country_leader_role = {
									character = ADA_Erkan_Bas_char
									promote_leader = yes
									country_leader = {
										ideology = left_populism
										traits = {
										}
									}
								}
							}
							puppet = ADA
							add_to_faction = PKK
							puppet = LAZ
							puppet = TUR
							TUR = {
								set_cosmetic_tag = TUR_Peoples_Republic
								set_politics = {
									ruling_party = communist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.35
								}
							}
							ADA = {
								set_politics = {
									ruling_party = social_democrat
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = social_democrat
									popularity = 0.35
								}
							}
							LAZ = {
								set_politics = {
									ruling_party = communist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.35
								}
							}
						}
						else_if = {
							LIMIT = {
								FPR = {
									OR = {
										has_country_leader = {
											character = FPR_Antoine_Leaument_char
											ruling_only = yes
										}
										has_country_leader = {
											character = FRA_Nicolas_Casanova
											ruling_only = yes
										}
									}
								}
							}
							puppet = TUR
							TUR = { #Fehriye Erdal
								set_cosmetic_tag = TUR_Rev_Repub_of_Turkey
								set_politics = {
									ruling_party = totalitarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.35
								}
							}
						}
						else_if = {
							LIMIT = {
								FPR = {
									has_country_leader = {
										character = FPR_julien_coupat_char
										ruling_only = yes
									}
								}
							}
							puppet = TUR
							TUR = {
								set_cosmetic_tag = TUR_Turkish_Free_Territory
								add_popularity = {
									ideology = libertarian_socialist
									popularity = 0.35
								}
								add_country_leader_role = {
									character = TUR_Sureyyya_Evren_char
									promote_leader = yes
									country_leader = {
										ideology = left_anarchist
										traits = {
										}
									}
								}
							}
						}
						else_if = {
							LIMIT = {
								FPR = {
									has_country_leader = {
										character = FPR_Natalie_Arthaud_char
										ruling_only = yes
									}
								}
							}
							puppet = TUR
							TUR = {
								set_cosmetic_tag = TUR_Workers_Repub_of_Turkey
								set_politics = {
									ruling_party = communist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.35
								}
								add_country_leader_role = {
									character = TUR_senol_Karakas_char
									promote_leader = yes
									country_leader = {
										ideology = trotskyism
										traits = {
										}
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Fra or allies Kill COR
					limit = {
						FROM = {
							OR = {
								original_tag = FRA
								is_ally_with = FRA
							}
						}
						ROOT = {
							original_tag = COR
						}
					}
					FROM = {
						FRA = {
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
				}
				if = {
					# GER Kill FRA
					limit = {
						FROM = {
							original_tag = GER
						}
						ROOT = {
							original_tag = FRA
						}
					}
					FROM = {
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
									NOT = { has_completed_focus = GER_democracy_now }
								}
							}
							FSP = {
								annex_country = {
									target = FRA
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = FRA
									}
									add_core_of = FSP
								}
								set_cosmetic_tag = FSP_eu
								create_country_leader = {
									name = FRA_European_Commission_char
									picture = "European Commission.dds"
									ideology = ultra_liberalism
									traits = {
									}
								}
							}
							puppet = FSP
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# French Nationalists Gut Turkey
					limit = {
						FROM = {
							OR = {
								is_in_faction_with = FAF
								original_tag = FAF
							}
						}
						ROOT = {
							original_tag = TUR
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								FAF = {
									AND = {
										has_country_leader = {
											character = FRA_Louis_XX_char
											ruling_only = yes
										}
										fascist > 0.20
									}
								}
							}
							FAF = {
								puppet = TUR
							}
							TUR = {
								set_cosmetic_tag = LAZ_Kingdom_of_Anatolia
								retire_character = TUR_Ahmet_Yigit_Yildirim_char
								add_country_leader_role = {
									character = TUR_Marc_de_cacqueray_Valmenier
									promote_leader = yes
									country_leader = {
										ideology = ethno_nationalism
										traits = {
											hos_crusader_king
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								set_popularities = {
									national_socialist = 0
									fascist = 42
									nationalist = 35
									authoritarian_democrat = 0
									conservative = 10
									market_liberal = 12
									social_liberal = 0
									social_democrat = 0
									libertarian_socialist = 0
									communist = 0
									totalitarian_socialist = 1
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_completed_focus = FAF_Hold_Elections
								}
							}
							LAZ = {
								transfer_state = 339
								transfer_state = 342
								transfer_state = 346
								transfer_state = 344
								transfer_state = 345
								set_cosmetic_tag = LAZ_Anatolian_Occupational_Force
								add_country_leader_role = {
									character = LAZ_Bertrand_de_La_Chesnais_char
									promote_leader = yes
									country_leader = {
										ideology = military_junta
										traits = {
											Occupational_Governor
										}
									}
								}
							}
							IST = {
								transfer_state = 341
								transfer_state = 340
								transfer_state = 791
								set_cosmetic_tag = IST_French_Naval_Base
								add_country_leader_role = {
									character = IST_Ghislain_de_cacqueray_char
									promote_leader = yes
									country_leader = {
										ideology = military_junta
										traits = {
											Occupational_Governor
										}
									}
								}
							}
							TUR = {
								set_cosmetic_tag = TUR_Turkish_Republic
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = conservative
									popularity = 0.35
								}
								add_country_leader_role = {
									character = TUR_hulusi_akar_char
									promote_leader = yes
									country_leader = {
										ideology = supervised_democracy
										traits = {
										}
									}
								}
							}
							FAF = {
								puppet = IST
								puppet = LAZ
								puppet = TUR
							}
							IST = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
							}
							TUR = {
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
							}
							LAZ = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									OR = {
										has_completed_focus = FAF_Discard_Aspects_of_Identitarianism
										has_completed_focus = FAF_Towards_one_Europe
									}
								}
							}
							FAF = {
								puppet = TUR
							}
							TUR = {
								set_cosmetic_tag = LAZ_Kingdom_of_Anatolia
								retire_character = TUR_Ahmet_Yigit_Yildirim_char
								add_country_leader_role = {
									character = TUR_Marc_de_cacqueray_Valmenier
									promote_leader = yes
									country_leader = {
										ideology = ethno_nationalism
										traits = {
											hos_crusader_king
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								set_popularities = {
									national_socialist = 0
									fascist = 42
									nationalist = 35
									authoritarian_democrat = 0
									conservative = 10
									market_liberal = 12
									social_liberal = 0
									social_democrat = 0
									libertarian_socialist = 0
									communist = 0
									totalitarian_socialist = 1
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_country_leader = {
										character = FRA_Louis_XX_char
										ruling_only = yes
									}
									fascist < 0.20
								}
							}
							TUR = {
								add_country_leader_role = {
									character = OTO_Sehzade_Orhan_Osmanoglu
									promote_leader = yes
									country_leader = {
										ideology = absolute_monarchist
										traits = {
											hos_caliph
										}
									}
								}
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								set_popularities = {
									national_socialist = 0
									fascist = 15
									nationalist = 46
									authoritarian_democrat = 0
									conservative = 30
									market_liberal = 3
									social_liberal = 0
									social_democrat = 0
									libertarian_socialist = 0
									communist = 5
									totalitarian_socialist = 1
								}
								set_cosmetic_tag = TUR_ottoman_empire
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_completed_focus = FAF_Ally_European_Identitarians
								}
								GRE = {
									is_in_faction_with = FAF
								}
							}
							GRE = {
								annex_country = {
									target = CYP
									transfer_troops = yes
								}
								annex_country = {
									target = LAZ
									transfer_troops = no
								}
								annex_country = {
									target = TUR
									transfer_troops = no
								}
								annex_country = {
									target = IST
									transfer_troops = no
								}
								set_cosmetic_tag = GRE_Latin_Empire_of_Constantinople
								set_popularities = {
									national_socialist = 74
									fascist = 16
									nationalist = 4
									authoritarian_democrat = 4
									conservative = 2
									market_liberal = 0
									social_liberal = 0
									social_democrat = 0
									libertarian_socialist = 0
									communist = 0
									totalitarian_socialist = 0
								}
							}
							FAF = {
								puppet = GRE
								set_nationality = {
									target_country = GRE
									character = FAF_Marc_de_Cacqueray_latinist_char
								}
							}
							GRE = {
								add_country_leader_role = {
									character = FAF_Marc_de_Cacqueray_latinist_char
									promote_leader = yes
									country_leader = {
										ideology = identitarianism
										traits = {
											hos_puppet_imperator
										}
									}
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_completed_focus = FAF_Ally_European_Identitarians
								}
								GRE = {
									NOT = {
										is_in_faction_with = FAF
									}
								}
							}
							CYP = {
								annex_country = {
									target = LAZ
									transfer_troops = no
								}
								annex_country = {
									target = TUR
									transfer_troops = no
								}
								annex_country = {
									target = IST
									transfer_troops = no
								}
								set_cosmetic_tag = GRE_Latin_Empire_of_Constantinople
								set_popularities = {
									national_socialist = 74
									fascist = 16
									nationalist = 4
									authoritarian_democrat = 4
									conservative = 2
									market_liberal = 0
									social_liberal = 0
									social_democrat = 0
									libertarian_socialist = 0
									communist = 0
									totalitarian_socialist = 0
								}
							}
							FAF = {
								puppet = CYP
								set_nationality = {
									target_country = CYP
									character = FAF_Marc_de_Cacqueray_latinist_char
								}
							}
							CYP = {
								add_country_leader_role = {
									character = FAF_Marc_de_Cacqueray_latinist_char
									promote_leader = yes
									country_leader = {
										ideology = identitarianism
										traits = {
											hos_puppet_imperator
										}
									}
								}
							}
						}
						else = {
							TUR = {
								set_cosmetic_tag = TUR_Turkish_State
							}
							LAZ = {
								transfer_state = 339
								transfer_state = 342
								transfer_state = 346
								transfer_state = 344
								transfer_state = 345
								set_cosmetic_tag = LAZ_Anatolian_Occupational_Force
								add_country_leader_role = {
									character = LAZ_Frederic_Chatillon_char
									promote_leader = yes
									country_leader = {
										ideology = national_syndicalism
										traits = {
											Occupational_Governor
										}
									}
								}
							}
							IST = {
								transfer_state = 341
								transfer_state = 340
								transfer_state = 791
								set_cosmetic_tag = IST_French_Naval_Base
								add_country_leader_role = {
									character = IST_Loik_Le_Priol_Civilian_char
									promote_leader = yes
									country_leader = {
										ideology = military_junta
										traits = {
											Occupational_Governor
										}
									}
								}
							}
							FAF = {
								puppet = IST
								puppet = LAZ
								puppet = TUR
							}
							IST = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
							}
							TUR = {
								set_politics = {
									ruling_party = fascist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
							}
							LAZ = {
								set_politics = {
									ruling_party = fascist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.35
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GER kill FPR
					limit = {
						FROM = {
							original_tag = GER
						}
						ROOT = {
							original_tag = FPR
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								FPR = {
									is_puppet_of = SOV
								}
							}
							FAF = {
								annex_country = {
									target = FPR
									transfer_troops = no
								}
							}
							transfer_state = 800
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GER kill FAF
					limit = {
						FROM = {
							tag = GER
						}
						ROOT = {
							tag = FAF
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								FAF = {
									is_puppet_of = SOV
								}
							}
							FPR = {
								annex_country = {
									target = FAF
									transfer_troops = no
								}
							}
							transfer_state = 800
						}
						if = {
							limit = {
								FAF = {
									NOT = {
										is_puppet_of = SOV
									}
								}
							}
							puppet = FAF
							transfer_state = 800
							transfer_state = 28
							transfer_state = 29
							transfer_state = 18
							transfer_state = 15
							transfer_state = 14
							transfer_state = 30
							transfer_state = 16
							transfer_state = 24
							transfer_state = 27
							country_event = { id = germany.994 }
						}
						IF = {
							LIMIT = {
								ITA = {
									is_in_faction_with = GER
								}
								FAF = {
									NOT = {
										is_puppet_of = SOV
									}
								}
							}
							ITA = {
								transfer_state = 735
								transfer_state = 32
								transfer_state = 21
							}
						}
						IF = {
							LIMIT = {
								BEL = {
									is_in_faction_with = FAF
								}
								FAF = {
									NOT = {
										is_puppet_of = SOV
									}
								}
							}
							puppet = BEL
							puppet = HOL
							transfer_state = 8
							country_event = { id = germany.993 days = 7 }
							country_event = { id = germany.992 days = 14 }
							BEL = {
								set_cosmetic_tag = GER_Military_Administration_Belgien
							}
							HOL = {
								set_cosmetic_tag = GER_Military_Administration_Niederlande
								transfer_state = 6
								transfer_state = 35
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# French Establishment Gut Turkey
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = FRA
								original_tag = GRE
								original_tag = ENG
								original_tag = ITA
								original_tag = SPR
							}
							OR = {
								is_in_faction_with = FRA
								original_tag = FRA
							}
						}
						ROOT = {
							original_tag = TUR
						}
					}
					FROM = {
						white_peace = ROOT
						GRE = {
							transfer_state = 791
							transfer_state = 341
							transfer_state = 340
						}
						LAZ = {
							transfer_state = 339
							transfer_state = 342
							set_cosmetic_tag = LAZ_Italian_Occupation_Gov
							add_country_leader_role = {
								character = LAZ_Salvatore_Farina
								promote_leader = yes
								country_leader = {
									ideology = supervised_democracy
									traits = {
									}
								}
							}
						}
						ADA = {
							transfer_state = 344
							transfer_state = 345
							transfer_state = 348
							transfer_state = 353
							transfer_state = 827
							set_cosmetic_tag = ADA_French_Occupation_Gov
							add_country_leader_role = {
								character = ADA_Anne_Cecile_Ortemann_char
								promote_leader = yes
								country_leader = {
									ideology = supervised_democracy
									traits = {
									}
								}
							}
						}
						PKK = {
							transfer_state = 350
							transfer_state = 352
							set_cosmetic_tag = PKK_French_Occupation_Gov
							add_country_leader_role = {
								character = PKK_Etienne_du_Peyroux
								promote_leader = yes
								country_leader = {
									ideology = supervised_democracy
									traits = {
									}
								}
							}
						}
						FRA = {
							puppet = ADA
							puppet = PKK
							puppet = TUR
						}
						ITA = {
							puppet = LAZ
						}
						CYP = {
							transfer_state = 836
							836 = {
								add_core_of = CYP
							}
						}
						LAZ = {
							set_politics = {
								ruling_party = conservative
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = no
							}
							add_popularity = {
								ideology = conservative
								popularity = 0.35
							}
						}
						ADA = {
							set_politics = {
								ruling_party = conservative
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = no
							}
							add_popularity = {
								ideology = conservative
								popularity = 0.35
							}
						}
						PKK = {
							set_politics = {
								ruling_party = conservative
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = no
							}
							add_popularity = {
								ideology = conservative
								popularity = 0.35
							}
						}
						TUR = {
							set_cosmetic_tag = TUR_Turkish_Republic
							set_politics = {
								ruling_party = social_liberal
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = no
							}
							add_popularity = {
								ideology = social_liberal
								popularity = 0.35
							}
							add_country_leader_role = {
								character = TUR_Gultekin_Tirpanci_char
								promote_leader = yes
								country_leader = {
									ideology = neoliberalism
									traits = {
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MOR Kills ALG
					limit = {
						FROM = {
							original_tag = MOR
						}
						ROOT = {
							original_tag = ALG
						}
					}
					FROM = {
						white_peace = ROOT
						ROOT = {
							add_ideas = ALG_Shameful_Peace_2
							country_event = { id = algeria.3 }
						}
						add_timed_idea = {
							idea = MOR_Victory_against_Algeria
							days = 360
						}
						annex_country = {
			    			target = WES
			    			transfer_troops = no
						}
						699 = {
							add_core_of = MOR
						}
						882 = {
							add_core_of = MOR
						}
						FRA = {
							IF = {
								LIMIT = {
									has_country_flag = FRA_supported_algeria_flag
								}
								add_political_power = -50
							}
							IF = {
								LIMIT = {
									has_country_flag = FRA_supported_morocco_flag
								}
								add_political_power = 50
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MOR Kills WES
					limit = {
						FROM = {
							original_tag = MOR
						}
						ROOT = {
							original_tag = WES
						}
					}
					FROM = {
						WES = {
							become_exiled_in = { target = ALG legitimacy = 50 }
						}
						set_global_flag = skip_default_capitulation
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ALG Kills people in own Civil war
					limit = {
						FROM = {
							original_tag = ALG
						}
						ROOT = {
							OR = {
								original_tag = AG3
								original_tag = AG2
								original_tag = AG1
								original_tag = TAU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = AG1
									country_exists = AG2
									country_exists = AG3
									country_exists = TAU
								}
							}
							set_cosmetic_tag = ALG
						}
					}
				}
				if = {
					# AG1 Kills people in own Civil war
					limit = {
						FROM = {
							original_tag = AG1
						}
						ROOT = {
							OR = {
								original_tag = AG3
								original_tag = AG2
								original_tag = ALG
								original_tag = TAU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = ALG
									country_exists = AG2
									country_exists = AG3
									country_exists = TAU
								}
							}
							set_cosmetic_tag = AG1_Peoples_Republic_of_algeria
						}
					}
				}
				if = {
					# AG2 Kills people in own Civil war
					limit = {
						FROM = {
							original_tag = AG2
						}
						ROOT = {
							OR = {
								original_tag = AG3
								original_tag = AG1
								original_tag = ALG
								original_tag = TAU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = AG1
									country_exists = ALG
									country_exists = AG3
									country_exists = TAU
								}
							}
							set_cosmetic_tag = AG2_Emirate_of_Algeria
						}
					}
				}
				if = {
					# AG3 Kills people in own Civil war
					limit = {
						FROM = {
							original_tag = AG3
						}
						ROOT = {
							OR = {
								original_tag = AG2
								original_tag = AG1
								original_tag = ALG
								original_tag = TAU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = AG1
									country_exists = ALG
									country_exists = AG2
									country_exists = TAU
								}
							}
							set_cosmetic_tag = AG2_arab_republic_of_algeria
						}
					}
				}
				if = {
					# TAU Kills people in own Civil war
					limit = {
						FROM = {
							original_tag = TAU
						}
						ROOT = {
							OR = {
								original_tag = AG2
								original_tag = AG1
								original_tag = ALG
								original_tag = AG3
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = AG1
									country_exists = ALG
									country_exists = AG2
									country_exists = AG3
								}
							}
							AG3 = {
								transfer_state = 459
								transfer_state = 460
								transfer_state = 513
								set_cosmetic_tag = TAU_algerian_occupation_zone
							}
							puppet = AG3
						}
					}
				}
				if = {
					# ALG Kills MOR
					limit = {
						FROM = {
							original_tag = ALG
						}
						ROOT = {
							original_tag = MOR
						}
					}
					FROM = {
						white_peace = ROOT
						set_stability = 0.75
						set_war_support = 0.75
						add_ideas = ALG_growing_power_idea
						end_puppet = WES
						give_guarantee = WES
					}
					ROOT = {
						white_peace = WES
						set_stability = 0.30
						set_war_support = 0.0
						add_ideas = MOR_Leftist_Protests
						set_country_flag = MOR_Retake_the_SADR
						country_event = { id = algeria.7 days = 360 }
					}
					WES = {
						transfer_state = 699
						transfer_state = 882
						white_peace = MOR
						give_military_access = ALG
						load_oob = "WES_2020"
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FRA kill FAF
					limit = {
						FROM = {
							original_tag = FRA
						}
						ROOT = {
							original_tag = FAF
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.126 days = 15 } 
						IF = {
							LIMIT = {
								FAF = {
									exists = no
								}
								FPR = {
									exists = no
								}
								has_country_leader = {
									#EU france
									character = FRA_Christine_Lambart_char
									ruling_only = yes
								}

							}
							load_focus_tree = FRA_EU_tree
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FRA kill FPR
					limit = {
						FROM = {
							original_tag = FRA
						}
						ROOT = {
							original_tag = FPR
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.127 days = 15 } 
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill FPR
					limit = {
						FROM = {
							original_tag = FAF
						}
						ROOT = {
							original_tag = FPR
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.132 days = 15 }
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill FRA
					limit = {
						FROM = {
							original_tag = FAF
						}
						ROOT = {
							original_tag = FRA
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.133 days = 15 }
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FPR kill FAF
					limit = {
						FROM = {
							original_tag = FPR
						}
						ROOT = {
							original_tag = FAF
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.129 days = 15 }
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FPR kill FRA
					limit = {
						FROM = {
							original_tag = FPR
						}
						ROOT = {
							original_tag = FRA
						}
					}
					ROOT = {
						set_equipment_fraction = 0.2
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = { id = france.130 days = 60 } 
					}
					set_global_flag = skip_default_capitulation
				}
				if = { ### AFRICAN DAWN BEGINS
					# MLT kill Sahel
					limit = {
						FROM = {
							original_tag = MLT
						}
						ROOT = {
							original_tag = MLI
							original_tag = VOL
							original_tag = NGR
						}
					}
					FROM = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Sahel kill IAI
					limit = {
						FROM = {
							OR = {
								original_tag = MLI
								original_tag = VOL
								original_tag = NGR
								original_tag = MLT
								original_tag = IVO
								is_ally_with = IVO
								is_ally_with = FRA							}
						}
						ROOT = {
							original_tag = IAI
						}
					}
					FROM = {
						white_peace = ROOT
						MLI = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							transfer_state = 746
							#country_event = {
							#	id = mali.2
							#	days = 20
							#}
						}
						VOL = {
							transfer_state = 750
							transfer_state = 751
						}
						NGR = {
							transfer_state = 747
							transfer_state = 748
							transfer_state = 749
						}						#Fuck you France! Me, Niger and Burkina Faso are going to kill your stupid puppet
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Sahel kill Azawad
					limit = {
						FROM = {
							OR = {
								original_tag = MLI
								original_tag = IVO
								original_tag = VOL
								original_tag = NGR
								original_tag = MLT			
							}
						}
						ROOT = {
							original_tag = MLT
						}
					}
					FROM = {
						white_peace = ROOT
						MLI = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MLT kill IVO
					limit = {
						FROM = {
							OR = {
								original_tag = MLT
								is_ally_with = MLT
							}
						}
						ROOT = {
							original_tag = IVO
						}
					}
					FROM = {
						white_peace = ROOT
						MLT = {
							puppet = IVO
							country_event = {
								id = mali.11
								days = 365
							}	
							country_event = {
								id = Ivory.7
								days = 45
							}		
						}
						IVO = {
							set_cosmetic_tag = IVO_FNCI
							set_politics = {
								ruling_party = authoritarian_democrat
								last_election = "2021.11.8"
								election_frequency = 48
								elections_allowed = yes
							}
							set_popularities = {
								totalitarian_socialist = 0
								national_socialist = 0
								fascist = 0
								nationalist = 22
								authoritarian_democrat = 40
								conservative = 23
								market_liberal = 0
								social_liberal = 0
								social_democrat = 15
								libertarian_socialist = 0
								communist = 0
							}
							random_list = {
								50 = {
									country_event = {
										id = Ivory.7
										days = 45
									}									#Mali enforces anti-colonialist military actions
								}
								50 = {
									add_political_power = 1
								}
							}
						}
						if = {
							limit = {
								any_country = {
									OR = {
										has_idea = FRA_French_Military_Influence_idea
										has_idea = IVO_French_Political_Influence
										has_idea = FRA_French_Economic_Influence_idea
									}
								}
							}
							remove_ideas = FRA_French_Military_Influence_idea
							remove_ideas = IVO_French_Political_Influence
							remove_ideas = FRA_French_Economic_Influence_idea
						}
						FRA = {
							uncomplete_national_focus = {
								focus = FRA_the_west_african_sphere
							}
							uncomplete_national_focus = {
								focus = FRA_economic_assistance
							}
							uncomplete_national_focus = {
								focus = FRA_military_assistance
							}
							uncomplete_national_focus = {
								focus = FRA_combat_islamic_terrorism
							}
							set_country_flag = FRA_Failed_in_Africa
						}
						NGA = {
							if = {
								limit = {
									NOT = {
										has_country_flag = Nigeria_Collapse
									}
								}
							}
							country_event = {
								id = nigeria.4
								days = 45
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# IVO kill EVERYONE - GWAW ENDING 1
					limit = {
						FROM = {
							original_tag = IVO
						}
						ROOT = {
							OR = {
								original_tag = VOL
								original_tag = MRT
								original_tag = GNB
								original_tag = GNA
								original_tag = DAH
								original_tag = GHA
								original_tag = CMR
								original_tag = BIA
								original_tag = NGR
								original_tag = NGA
								original_tag = LIB
								original_tag = AQI
								original_tag = SEN
								original_tag = SIE
								original_tag = GAM
								original_tag = AMB
								original_tag = EBN
								original_tag = TOG
								original_tag = MLT
								original_tag = MLI
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = yes
						}
					}
				}
				if = {
					# MLT kill EVERYONE - GWAW ENDING 5
					limit = {
						FROM = {
							OR = {
								AND = {
									original_tag = MLT
									has_cosmetic_tag = MLT_sahel_federation
								}
								is_ally_with = MLT
							}
						}
						ROOT = {
							OR = {
								original_tag = VOL
								original_tag = MRT
								original_tag = GNB
								original_tag = GNA
								original_tag = DAH
								original_tag = GHA
								original_tag = CMR
								original_tag = BIA
								original_tag = NGR
								original_tag = NGA
								original_tag = LIB
								original_tag = AQI
								original_tag = SEN
								original_tag = SIE
								original_tag = GAM
								original_tag = AMB
								original_tag = EBN
								original_tag = TOG
							}
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						IF = {
							LIMIT = {
								ROOT = {

								}
							}
						}
					}
				}
				if = {
					# MRT kill EVERYONE - GWAW ENDING 3
					limit = {
						FROM = {
							OR = {
								original_tag = MRT
								any_country = {
									is_in_faction_with = MRT
								}
							}
						}
						ROOT = {
							original_tag = IVO
						}
					}
					FROM = {
						white_peace = ROOT
						MRT = {
							puppet = IVO
							IF = {
								LIMIT = {
									VOL = {
										exists = no
									}
								}
								country_event = {
									id = Ivory.10
								}							#Mauritania demolishes the African Federation
							}
						}
						IVO = {
							set_cosmetic_tag = IVO_West_African_Military_admin
						}
					}
				}
				if = {
					# MRT kill EVERYONE - GWAW ENDING 3
					limit = {
						FROM = {
							OR = {
								original_tag = MRT
								any_country = {
									is_in_faction_with = MRT
								}
							}
						}
						ROOT = {
							original_tag = VOL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = yes
						}
					}
				}
				if = {
					# AQI kill EVERYONE - GWAW ENDING 4
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							OR = {
								original_tag = VOL
								original_tag = MRT
								original_tag = GNB
								original_tag = GNA
								original_tag = DAH
								original_tag = GHA
								original_tag = CMR
								original_tag = BIA
								original_tag = NGR
								original_tag = NGA
								original_tag = LIB
								original_tag = IVO
								original_tag = SEN
								original_tag = SIE
								original_tag = GAM
								original_tag = AMB
								original_tag = EBN
								original_tag = TOG
								original_tag = MLT
								original_tag = MLI
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = yes
						}
					}
				}
				if = {
					# VOL kill IVO - GWAW ENDING 5
					limit = {
						FROM = {
							original_tag = VOL
						}
						ROOT = {
							original_tag = IVO
							has_cosmetic_tag = VOL_Union_of_West_African_States
						}
					}
					FROM = {
						if = {
							limit = {
								has_cosmetic_tag = VOL_Union_of_West_African_States
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = yes
							}
							add_ideas = IVO_The_Leftovers
						}
					}
				}
				if = {
					# VOL kill IVO - GWAW ENDING 5
					limit = {
						FROM = {
							original_tag = VOL
						}
						ROOT = {
							original_tag = IVO
							has_cosmetic_tag = VOL_Union_of_West_African_States
						}
					}
					FROM = {
						if = {
							limit = {
								NOT = {
									has_cosmetic_tag = VOL_Union_of_West_African_States
								}
							}
							white_peace = ROOT
							MLT = {
								puppet = IVO
							}
							IVO = {
								set_cosmetic_tag = IVO_FNCI
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = yes
								}
								set_popularities = {
									totalitarian_socialist = 0
									national_socialist = 0
									fascist = 0
									nationalist = 22
									authoritarian_democrat = 40
									conservative = 23
									market_liberal = 0
									social_liberal = 0
									social_democrat = 15
									libertarian_socialist = 0
									communist = 0
								}
								random_list = {
									50 = {
										country_event = {
											id = Ivory.7
											days = 45
										}										#Mali enforces anti-colonialist military actions
									}
									50 = {
										add_political_power = 1
									}
								}
							}
							if = {
								limit = {
									any_country = {
										OR = {
											has_idea = FRA_French_Military_Influence_idea
											has_idea = IVO_French_Political_Influence
											has_idea = FRA_French_Economic_Influence_idea
										}
									}
								}
								remove_ideas = FRA_French_Military_Influence_idea
								remove_ideas = IVO_French_Political_Influence
								remove_ideas = FRA_French_Economic_Influence_idea
							}
							FRA = {
								uncomplete_national_focus = {
									focus = FRA_the_west_african_sphere
								}
								uncomplete_national_focus = {
									focus = FRA_economic_assistance
								}
								uncomplete_national_focus = {
									focus = FRA_military_assistance
								}
								uncomplete_national_focus = {
									focus = FRA_combat_islamic_terrorism
								}
								set_country_flag = FRA_Failed_in_Africa
							}
							NGA = {
								if = {
									limit = {
										NOT = {
											has_country_flag = Nigeria_Collapse
										}
									}
								}
								set_country_flag = Collapse_in_Progress
								country_event = {
									id = nigeria.4
									days = 45
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# CAR kill CPC
					limit = {
						FROM = {
							original_tag = CAR
						}
						ROOT = {
							original_tag = CPC
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						random_list = {
							40 = {
								modifier = {
									factor = 0
									OR = {
									has_game_rule = {
										rule = CAR_and_Wagner
										option = CAR_gov
										}
									}
								}
								country_event = {
									id = car.1
								}
							}
							60 = {
								modifier = {
									factor = 0
									OR = {
									has_game_rule = {
										rule = CAR_and_Wagner
										option = CAR_Wagner
										}
									}
								}
								add_stability = 0.08
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = BIA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = EBN
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = CMR
						}
						ROOT = {
							original_tag = AQI
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								ROOT = {
									owns_state = 755
								}
							}
							transfer_state = 755
						}
						NGA = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = NGA
						}
						ROOT = {
							original_tag = AQI
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							OR = {
								original_tag = BIA
								is_ally_with = BIA
							}
						}
						ROOT = {
							original_tag = AQI
						}
					}
					FROM = {
						white_peace = ROOT
						NGA = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence - Nigeria - Cameroon
					limit = {
						FROM = {
							OR = {
								original_tag = AMB
								is_ally_with = AMB
							}
						}
						ROOT = {
							original_tag = CMR
						}
					}
					FROM = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence - Nigeria - Ambazonia
					limit = {
						FROM = {
							original_tag = NGA
						}
						ROOT = {
							original_tag = AMB
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						CMR = {
							transfer_state = 1361
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence - Nigeria - Cameroon
					limit = {
						FROM = {
							original_tag = CMR
						}
						ROOT = {
							original_tag = AMB
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence - Nigeria - Cameroon
					limit = {
						FROM = {
							original_tag = BIA
						}
						ROOT = {
							original_tag = CMR
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								NOT = {
									country_exists = AMB
								}
							}
							AMB = {
								transfer_state = 1361
							}
							BIA = {
								add_to_faction = AMB
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = EBN
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						declare_war_on = {
							target = CMR
							type = annex_everything
						}
						declare_war_on = {
							target = AMB
							type = annex_everything
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Baltic War
					limit = {
						FROM = {
							OR = {
								original_tag = LAT
								original_tag = LIT
								original_tag = EST
							}
						}
						ROOT = {
							original_tag = TTS
						}
					}
					FROM = {
						white_peace = ROOT
						release = LIT
						release = LAT
						EST = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = BIA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						declare_war_on = {
							target = CMR
							type = annex_everything
						}
						declare_war_on = {
							target = AMB
							type = annex_everything
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = AMB
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Biafran Independence
					limit = {
						FROM = {
							original_tag = NGA
						}
						ROOT = {
							original_tag = BIA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# END OF TIME - FRANCE KILLS GERMANY - FAF ENDINGS
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								is_in_faction_with = FAF
							}
						}
						ROOT = {
							original_tag = GER
						}
					}
					FROM = {
						#KILL GERMANICS
						white_peace = ROOT
						GER = { #You shouldn't be killing the Germans during or before the 2EW
							every_allied_country = {
								white_peace = ROOT
							}
							dismantle_faction = yes
							end_puppet = SOV
							end_puppet = UKR
							end_puppet = BLR
							end_puppet = TTS
							end_puppet = ROM
							end_puppet = HUN
							end_puppet = BUL
							release = PLD
							release = AUS
							release = CZE
							FAF = {
								puppet = AUS
								puppet = CZE
								puppet = PLD
							}
							IF = {
								LIMIT = {
									CRO = {
										is_subject_of = GER
									}
									ITA = {
										OR = {
											is_subject_of = FAF
											exists = no
										}
									}
								}
								FAF = {
									puppet = CRO
								}
							}
							ELSE = {
								ITA = {
									puppet = CRO
								}
							}
							IF = {
								LIMIT = {
									SER = {
										is_subject_of = GER
									}
									ITA = {
										OR = {
											is_subject_of = FAF
											exists = no
										}
									}
								}
								FAF = {
									puppet = SER
								}
							}
							ELSE = {
								ITA = {
									puppet = SER
								}
							}
							IF = {
								LIMIT = {
									SWE = {
										is_subject_of = GER
									}
									ENG = {
										NOT = {
											is_in_faction_with = FAF
										}
									}
								}
								FAF = {
									puppet = SWE
								}
							}
							ELSE = {
								ENG = {
									puppet = SWE
								}
							}
							IF = {
								LIMIT = {
									NOR = {
										is_subject_of = GER
									}
									ENG = {
										NOT = {
											is_in_faction_with = FAF
										}
									}
								}
								FAF = {
									puppet = NOR
								}
							}
							ELSE = {
								ENG = {
									puppet = NOR
								}
							}
							IF = {
								LIMIT = {
									SWD = {
										is_subject_of = GER
									}
									ENG = {
										NOT = {
											is_in_faction_with = FAF
										}
									}
								}
								FAF = {
									puppet = SWD
								}
							}
							ELSE = {
								ENG = {
									puppet = SWD
								}
							}
							IF = {
								LIMIT = {
									NWY = {
										is_subject_of = GER
									}
									ENG = {
										NOT = {
											is_in_faction_with = FAF
										}
									}
								}
								FAF = {
									puppet = NWY
								}
							}
							ELSE = {
								ENG = {
									puppet = NWY
								}
							}
							IF = {
								LIMIT = {
									DEN = {
										is_subject_of = GER
									}
									ENG = {
										NOT = {
											is_in_faction_with = FAF
										}
									}
								}
								FAF = {
									puppet = DEN
								}
							}
							ELSE = {
								ENG = {
									puppet = NOR
								}
							}
						}
						SOV = {
							#Russians, go wild
							
						}
						UKR = {
							#War bewtween Ukraine and Belarus
							
						}
						BLR = {
							#War bewtween Ukraine and Belarus
							
						}
						TTS = {
							#Baltic Civil War
							LIT = {
								transfer_state = 188
								set_politics = {
									ruling_party = libertarian_socialist
									elections_allowed = no
								}
								create_country_leader = {
									picture = "gfx/leaders/Europe/politician24.png"
									expire = "1.1.1"
									ideology = eco_socialism
								}
								declare_war_on = {
									target = TTS
									type = annex_everything
								}
							}
							LAT = {
								transfer_state = 12
								set_politics = {
									ruling_party = libertarian_socialist
									elections_allowed = no
								}
								create_country_leader = {
									picture = "gfx/leaders/Europe/general2.png"
									expire = "1.1.1"
									ideology = reformist_socialism
								}
								declare_war_on = {
									target = TTS
									type = annex_everything
								}
							}
							EST = {
								transfer_state = 840
								set_politics = {
									ruling_party = communist
									elections_allowed = no
								}
								create_country_leader = {
									picture = "gfx/leaders/GER/generic/general1.png"
									expire = "1.1.1"
									ideology = left_nationalism
								}
								declare_war_on = {
									target = TTS
									type = annex_everything
								}
							}
						}
						ROM = {
							#Join France or die?
							FAF = { add_to_faction = ROM }
						}
						HUN = {
							#Join France or die?
							FAF = { add_to_faction = HUN }
						}
						BUL = {
							#Join France or die?
							FAF = { add_to_faction = BUL }
						}
						SLO = {
							#Join France or die?
							FAF = { add_to_faction = SLO }
						}
						if = {
							#TREATY OF VERSAILLES 2
							limit = {
								FAF = {
									OR = {
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FRA_Pierre_de_Villiers
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Francois_Xavier_Bellamy_char
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Francois_Bayrou_char
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Stephane_Ravier_char
											ruling_only = yes
										}
									}
								}
							}
							end_puppet = AUS
							add_to_faction = AUS
							AUS = {
								drop_cosmetic_tag = yes
								create_country_leader = {
									name = AUS_harald_vilimsky
									desc = ""
									picture = "gfx/leaders/AUS/AUS_harald_vilimsky.png"
									expire = "1.1.1"
									ideology = ultra_conservatism
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_party_name = {
									ideology = authoritarian_democrat
									long_name = AUS_authoritarian_democrat_party_long
									name = AUS_authoritarian_democrat_party
								}
								set_popularities = {
									conservative = 18
									authoritarian_democrat = 47
									fascist = 23
									communist = 12
								}
							}
							end_puppet = CZE
							add_to_faction = CZE
							CZE = {
								drop_cosmetic_tag = yes
								create_country_leader = {
									name = CZE_libor_vondracek
									desc = ""
									picture = "gfx/leaders/CZE/Libor_Vondracek.png"
									expire = "1.1.1"
									ideology = civic_nationalism
								}
								set_politics = {
									ruling_party = market_liberal
									elections_allowed = yes
								}
								set_popularities = {
									conservative = 18
									market_liberal = 47
									social_democrat = 23
									social_liberal = 12
								}
							}
							end_puppet = PLD
							add_to_faction = PLD
							PLD = {
								drop_cosmetic_tag = yes
								create_country_leader = {
									name = PLD_Rajmund_Andrzejczak
									desc = ""
									picture = "gfx/leaders/PLD/generals/Rajmund_Andrzejczak.png"
									expire = "1.1.1"
									ideology = military_junta
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									conservative = 18
									nationalist = 47
									authoritarian_democrat = 12
									social_liberal = 23
								}
							}
							set_autonomy = {
							    target = RHI
							    autonomous_state = autonomy_occupation_governement
							    end_wars = no
							    end_civil_wars = no
							}
							set_autonomy = {
							    target = ROOT
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							RHI = {
								set_cosmetic_tag = RHI_Republic_of_the_Rhine
								transfer_state = 42
								transfer_state = 51
								transfer_state = 1422
								transfer_state = 888
								give_resource_rights = {
									receiver = FROM
									state = 51
								}
								give_resource_rights = {
									receiver = FROM
									state = 42
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.15
								}
								create_country_leader = {
									name = FRA_Guillaume_de_Sercey
									desc = ""
									picture = "gfx/leaders/FRA/Guillaume de Sercey.png"
									expire = "1.1.1"
									ideology = military_democracy
									traits = {
										hos_french_officer
									}
								}
							}
							ROOT = {
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = conservative
									popularity = 0.10
								}
								create_country_leader = {
									name = GER_franz_xaver_pfrengle
									desc = ""
									picture = "gfx/leaders/GER/Franz_Xaver_Pfrengle.png"
									expire = "1.1.1"
									ideology = supervised_democracy
									traits = {
										hos_french_collaborator
									}
								}
								888 = {
									set_demilitarized_zone = yes
								}
								55 = {
									set_demilitarized_zone = yes
								}
								57 = {
									set_demilitarized_zone = yes
								}
								give_resource_rights = {
									receiver = FROM
									state = 57
								}
								give_resource_rights = {
									receiver = FROM
									state = 888
								}
								give_resource_rights = {
									receiver = FROM
									state = 55
								}
							}
						}
						else_if = {
							#
							limit = {
								FAF = {
									has_country_leader = {
										#NAPOLEONIC 
										character = FAF_Jean_Christophe_Napoleon_char
										ruling_only = yes
									}
								}
							}
							#Austrian Empire, Grand Duchy of Warsaw
							CZE = {
								every_core_state = {
									add_core_of = AUS
									remove_core_of = CZE
								}
							}
							AUS = {
								annex_country = {
									target = CZE
									transfer_troops = yes
								}
								annex_country = {
									target = SLO
									transfer_troops = yes
								}
								set_cosmetic_tag = AUS_empire
								create_country_leader = {
									name = HUN_Eduard_Habsburg_Lothringen_char
									desc = ""
									picture = "gfx/leaders/HUN/Eduard_Habsburg_Lothringen.png"
									expire = "1.1.1"
									ideology = absolute_monarchist
									traits = {
										hos_emperor_of_austrians
										hos_catholic_figurehead
									}
								}
							}
							PLD = {
								set_cosmetic_tag = FRA_Duchy_of_Warsaw
								create_country_leader = {
									name = PLD_Rajmund_Andrzejczak
									desc = ""
									picture = "gfx/leaders/PLD/generals/Rajmund_Andrzejczak.png"
									expire = "1.1.1"
									ideology = military_junta
									traits = {
										hos_regent_of_poland
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									conservative = 18
									nationalist = 47
									authoritarian_democrat = 12
									social_liberal = 23
								}
							}
							transfer_state = 42
							transfer_state = 51
							transfer_state = 1422
							RHI = {
								transfer_state = 59
								transfer_state = 56
								transfer_state = 809
								transfer_state = 58
							}
							set_autonomy = {
							    target = RHI
							    autonomous_state = autonomy_occupation_governement
							    end_wars = no
							    end_civil_wars = no
							}
							set_autonomy = {
							    target = ROOT
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							RHI = {
								set_cosmetic_tag = RHI_north_german_occupation
								create_country_leader = {
									name = FRA_Francois_Lecointre
									desc = ""
									picture = "gfx/leaders/FRA/FRA_lecointre.png"
									expire = "1.1.1"
									ideology = ultranationalism
									traits = {
										hos_french_officer
									}
								}
							}
							ROOT = {
								set_cosmetic_tag = FRA_Confederation_of_the_rhine
								set_capital = {
								  state = 55
								  remember_old_capital = no
								}
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = -0.15
								}
								create_country_leader = {
									name = FAF_Heinrich_XIV_char
									desc = ""
									picture = "gfx/leaders/GER/Heinrich_XIV.png"
									expire = "1.1.1"
									ideology = absolute_monarchist
									traits = {
										hos_french_collaborator
									}
								}
								888 = {
									set_demilitarized_zone = yes
								}
								55 = {
									set_demilitarized_zone = yes
								}
								57 = {
									set_demilitarized_zone = yes
								}
								give_resource_rights = {
									receiver = FROM
									state = 57
								}
								give_resource_rights = {
									receiver = FROM
									state = 888
								}
								give_resource_rights = {
									receiver = FROM
									state = 55
								}
							}
						}
						else_if = {
							#
							limit = {
								FAF = {
									OR = {
										has_country_leader = {
											#TGD 
											character = FAF_Yvan_Benedetti_char
											ruling_only = yes
										}
										has_country_leader = {
											#TGD 
											character = FRA_Yvan_Benedetti
											ruling_only = yes
										}
									}
								}
							}
							AUS = {
								set_cosmetic_tag = AUS_Southern_German_Social_Republic
								annex_country = {
									target = CZE
									transfer_troops = yes
								}
								transfer_state = 54
								54 = {
									add_core_of = AUS
								}
								transfer_state = 50
								50 = {
									add_core_of = AUS
								}
								transfer_state = 53
								53 = {
									add_core_of = AUS
								}
								transfer_state = 52
								52 = {
									add_core_of = AUS
								}
								IF = {
									LIMIT = {
										SWI = {
											is_puppet_of = FAF
										}
									}
									SWI = {
										every_core_state = {
											add_core_of = AUS
										}
									}
									annex_country = {
										target = SWI
										transfer_troops = yes
									}
									create_country_leader = {
										name = SWI_Raphael_Rotzer
										picture = "gfx/leaders/SWI/Raphael_Rotzer.png"
										ideology = national_spartanism
										traits = {
											hos_national_symbol
										}

									}
								}
								else = {
									create_country_leader = {
										name = GER_erhard_buhler
										picture = "gfx/leaders/GER/generals/Erhard Buhler.png"
										ideology = classical_fascism
										traits = {
											hos_french_collaborator
										}
									}
								}
							}
							PLD = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2022.04.10"
									election_frequency = 60
									elections_allowed = no
								}
								set_cosmetic_tag = PLD_National_Government
								create_country_leader = {
									name = PLD_Rajmund_Andrzejczak
									desc = ""
									traits = {
										hos_marshal_of_poland
									}
									picture = "gfx/leaders/PLD/generals/Rajmund_Andrzejczak.png"
									ideology = military_junta
								}
							}
							transfer_state = 42
							transfer_state = 51
							transfer_state = 1422
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = GER_German_Social_Republic
								set_politics = {
									ruling_party = fascist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.35
								}
								create_country_leader = {
									name = GER_maximilian_eder_char
									desc = ""
									picture = "gfx/leaders/GER/GER_maximilian_eder.png"
									expire = "1.1.1"
									ideology = classical_fascism
									traits = {
										hos_architect_of_Day_X
										hos_french_collaborator
									}
								}
								888 = {
									set_demilitarized_zone = yes
								}
								55 = {
									set_demilitarized_zone = yes
								}
								57 = {
									set_demilitarized_zone = yes
								}
								give_resource_rights = {
									receiver = FROM
									state = 57
								}
								give_resource_rights = {
									receiver = FROM
									state = 888
								}
								give_resource_rights = {
									receiver = FROM
									state = 55
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_country_leader = {
										character = FRA_Louis_XX_char
										ruling_only = yes
									}
								}
							}
							CZE = {
								every_core_state = {
									add_core_of = AUS
									remove_core_of = CZE
								}
							}
							AUS = {
								annex_country = {
									target = CZE
									transfer_troops = yes
								}
								annex_country = {
									target = SLO
									transfer_troops = yes
								}
								set_cosmetic_tag = AUS_empire
								create_country_leader = {
									name = HUN_Eduard_Habsburg_Lothringen_char
									desc = ""
									picture = "gfx/leaders/HUN/Eduard_Habsburg_Lothringen.png"
									ideology = absolute_monarchist
									traits = {
										hos_emperor_of_austrians
										hos_catholic_figurehead
									}
								}
							}
							PLD = {
								set_cosmetic_tag = FRA_kingdom_of_poland
								create_country_leader = {
									name = PLD_Rajmund_Andrzejczak
									desc = ""
									traits = {
										hos_regent_of_poland
									}
									picture = "gfx/leaders/PLD/generals/Rajmund_Andrzejczak.png"
									ideology = military_junta
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									conservative = 18
									nationalist = 47
									authoritarian_democrat = 12
									social_liberal = 23
								}
							}
							BAY = {
								set_cosmetic_tag = FRA_Kingdom_of_Bavaria
								transfer_state = 52
								transfer_state = 53
								transfer_state = 54
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = HUN_Ferdinand_Habsburg_char
									picture = "gfx/leaders/HUN/Ferdinand_Habsburg.png"
									ideology = absolute_monarchist
									traits = {
										hog_pretty_boy
										eco_corrupt_kleptocrat
									}
								}
							}
							SAX = {
								set_cosmetic_tag = FRA_Kingdom_of_Saxony
								transfer_state = 65
								transfer_state = 68
								transfer_state = 60
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FAF_Henri_de_Castries
									picture = "gfx/leaders/FRA/Henri de Castries.png"
									ideology = absolute_monarchist
									traits = {
										hos_french_noble
									}
								}	
							}
							RHI = {
								set_cosmetic_tag = FRA_Kingdom_of_Westfalen
								transfer_state = 42
								transfer_state = 51
								transfer_state = 1422
								transfer_state = 888
								transfer_state = 57
								transfer_state = 55
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FRA_Francois_Lecointre
									picture = "gfx/leaders/FRA/FRA_lecointre_Civvie.PNG"
									ideology = absolute_monarchist
									traits = {
										hos_french_noble
										hos_soldier_king
									}
								}
							}
							HAN = {
								set_cosmetic_tag = FRA_Kingdom_of_Hanover
								transfer_state = 59
								transfer_state = 56
								transfer_state = 809
								transfer_state = 58
								transfer_state = 61
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = HAN_Ernst_August_char
									picture = "gfx/leaders/CZE/Ernst Augst of Hanover.dds"
									ideology = absolute_monarchist
									traits = {
										hos_British_Ties
									}
								}
							}
							WUR = {
								set_cosmetic_tag = FRA_Kingdom_of_Wurtemburg
								transfer_state = 50
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FAF_Pierre_Louis_de_La_Rochefoucauld
									picture = "gfx/leaders/FRA/Pierre_Louis_de_La_Rochefoucauld.png"
									ideology = absolute_monarchist
									traits = {
										hos_french_noble
									}
								}
							}
							SIL = {
								set_cosmetic_tag = FRA_Duchy_of_Silesia
								transfer_state = 66
								transfer_state = 67
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FAF_Renaud_Camus_char
									picture = "gfx/leaders/FRA/Renaud_Camus.png"
									ideology = absolute_monarchist
									traits = {
										hos_french_noble
										openly_gay
										hos_eurofash_demagogue
									}
								}
							}
							ROOT = {
								set_cosmetic_tag = FRA_Kingdom_of_Prussia
								transfer_state = 743
								transfer_state = 742
								transfer_state = 85
								transfer_state = 741
								transfer_state = 5
								transfer_state = 86
								transfer_state = 741
								transfer_state = 63
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = GER_oskar_prinz
									picture = "gfx/leaders/BLR/Oskar prinz of Prussia.dds"
									ideology = absolute_monarchist
									traits = {
										hos_herrenmeister
									}
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									OR = {
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Bertrand_Ract_Madoux
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Jean_Pierre_Bosser
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Bertrand_de_La_Chesnais_char
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Francois_Lecointre
											ruling_only = yes
										}
									}
								}
							}	
							CZE = {
								set_cosmetic_tag = FRA_czech_military
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FAF_Nikola_Perovic_char
									desc = ""
									picture = "gfx/leaders/FRA/Nikola_Perovic.png"
									ideology = military_junta
									traits = {
										hos_french_officer
									}
								}
							}
							AUS = {
								set_cosmetic_tag = FRA_austrian_military
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FRA_Edouard_Klein_char
									desc = ""
									picture = "gfx/leaders/FRA/Edouard_Klein.png"
									ideology = military_junta
									traits = {
										hos_french_officer
									}
								}
							}
							PLD = {
								set_cosmetic_tag = FRA_polish_military
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = FAF_Arnaud_Delrieux_char
									desc = ""
									picture = "gfx/leaders/FRA/Arnaud_Delrieux.png"
									ideology = military_junta
									traits = {
										hos_french_officer
									}
								}
							}
							transfer_state = 42
							transfer_state = 51
							transfer_state = 1422
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = FRA_German_Military_Government
								set_politics = {
									ruling_party = nationalist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = GER_maximilian_eder_char
									desc = ""
									picture = "gfx/leaders/GER/GER_maximilian_eder.png"
									ideology = military_junta
									traits = {
										hos_architect_of_Day_X
										hos_french_collaborator
									}
								}
								888 = {
									set_demilitarized_zone = yes
								}
								55 = {
									set_demilitarized_zone = yes
								}
								57 = {
									set_demilitarized_zone = yes
								}
								give_resource_rights = {
									receiver = FROM
									state = 57
								}
								give_resource_rights = {
									receiver = FROM
									state = 888
								}
								give_resource_rights = {
									receiver = FROM
									state = 55
								}
							}
						}
						else_if = {
							#
							limit = {
								FAF = {
									has_country_leader = {
										#Germanic Empire
										character = FRA_Jordan_Bardella_char
										ruling_only = yes
									}
								}
							}
							transfer_state = 42
							transfer_state = 51
							transfer_state = 1422
							puppet = ROOT
							ROOT = {
								transfer_state = 841
								transfer_state = 36
								transfer_state = 7
								if = {
									limit = {
										NOT = {
											151 = {
												is_core_of = FAF
											}
										}
									}
									transfer_state = 151
								}
								transfer_state = 1450
								create_country_leader = {
									name = AUS_Martin_Sellner
									desc = ""
									picture = "gfx/leaders/FRA/Latinists/AUS_Martin_Sellner.png"
									ideology = identitarianism
									traits = {
										hos_french_collaborator
									}
								}
								set_politics = {
									ruling_party = national_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = national_socialist
									popularity = 0.35
								}
								set_cosmetic_tag = GER_greater_german_realm
								annex_country = {
									target = AUS
									transfer_troops = yes
								}
								annex_country = {
									target = CZE
									transfer_troops = yes
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								has_country_leader = {
									character = FRA_Lafayette_char
									ruling_only = yes
								}
							}
							annex_country = {
								target = GER
								transfer_troops = no
							}
							annex_country = {
								target = AUS
								transfer_troops = no
							}
							puppet = CZE
							CZE = {
								set_cosmetic_tag = CZE_slavic_empire
								create_country_leader = {
									name = FAF_Nikola_Perovic_char
									desc = ""
									picture = "gfx/leaders/FRA/Nikola_Perovic.png"
									ideology = death_cult
								}
								transfer_state = 66
								transfer_state = 67
								annex_country = {
									target = PLD
									transfer_troops = no
								}
								annex_country = {
									target = BUL
									transfer_troops = no
								}
								annex_country = {
									target = ROM
									transfer_troops = no
								}
								annex_country = {
									target = HUN
									transfer_troops = no
								}
								annex_country = {
									target = CRO
									transfer_troops = no
								}
								annex_country = {
									target = SER
									transfer_troops = no
								}
								annex_country = {
									target = SLO
									transfer_troops = no
								}
							}
						}
						ELSE = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							IF = {
								LIMIT = {
									CRO = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = CRO
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									SER = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = SER
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									NWY = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = NWY
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									SWD = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = SWD
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									NOR = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = NOR
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									SWE = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = SWE
										transfer_troops = no
									}
								}
							}
							IF = {
								LIMIT = {
									DEN = {
										is_subject_of = FAF
									}
								}
								FAF = {
									annex_country = {
										target = DEN
										transfer_troops = no
									}
								}
							}
						}
						set_global_flag = skip_default_capitulation
					}
				}
				if = {
					# END OF TIME - FRANCE KILLS GERMANY - FPR ENDINGS
					limit = {
						FROM = {
							OR = {
								original_tag = FPR
								is_in_faction_with = FPR
							}
						}
						ROOT = {
							original_tag = GER
						}
					}
					FROM = {
						#KILL GERMANICS
						white_peace = ROOT
						release = CZE
						release = PLD
						release = AUS
						IF = {
							#
							limit = {
								FPR = {
									has_country_leader = {
										#JACOBIN GERMANY
										character = FPR_Antoine_Leaument_char
										ruling_only = yes
									}
								}
							}
						
							set_autonomy = {
							    target = CZE
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							CZE = {
								set_cosmetic_tag = FPR_CZE_jacobin_republic
								set_politics = {
									ruling_party = totalitarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.35
								}
								create_country_leader = {
									name = CZE_katerina_konecna_char
									desc = ""
									picture = "gfx/leaders/CZE/Katerina_Konecna.png"
									ideology = jacobinism
								}
							}
							set_autonomy = {
							    target = AUS
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							AUS = {
								set_cosmetic_tag = FPR_AUS_jacobin_republic
								set_politics = {
									ruling_party = totalitarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.35
								}
								create_country_leader = {
									name = AUS_Fayad_Mulla_char
									desc = ""
									picture = "gfx/leaders/AUS/AUS_Fayad_Mulla.png"
									ideology = jacobinism
								}
							}
							set_autonomy = {
							    target = PLD
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							PLD = {
								set_cosmetic_tag = FPR_PLD_jacobin_republic
								set_politics = {
									ruling_party = totalitarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.35
								}
								create_country_leader = {
									name = PLD_Piotr_Ikonowicz_char
									desc = ""
									picture = "gfx/leaders/PLD/PLD_Piotr_Ikonowicz.png"
									ideology = jacobinism
								}
							}
							set_autonomy = {
							    target = ROOT
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							ROOT = {
								set_cosmetic_tag = FPR_GER_jacobin_republic
								set_politics = {
									ruling_party = totalitarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.35
								}
								create_country_leader = {
									name = GER_Martin_Sonneborn_char
									desc = ""
									picture = "gfx/leaders/GER/GER_Martin_sonneborn.png"
									ideology = jacobinism
								}
							}
						}
						else_if = {
							limit = {
								FPR = {
									has_country_leader = {
										#RED GUARD
										character = FRA_Nicolas_Casanova
										ruling_only = yes
									}
								}
							}
						
							puppet = CZE
							CZE = {
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								set_cosmetic_tag = FPR_military_administration
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									picture = "gfx/leaders/FRA/generic/FRA_generic_general_4.png"
									traits = {
									}
								}
							}
							puppet = AUS
							AUS = {
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								set_cosmetic_tag = FPR_military_administration
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									picture = "gfx/leaders/FRA/generic/FRA_generic_general_2.png"
									traits = {
									}
								}
							}
							puppet = PLD
							PLD = {
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								set_cosmetic_tag = FPR_military_administration
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									picture = "gfx/leaders/FRA/generic/FRA_generic_general_3.png"
									traits = {
									}
								}
							}
							puppet = ROOT
							ROOT = {
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								set_cosmetic_tag = FPR_military_administration
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									picture = "gfx/leaders/FRA/generic/FRA_generic_general_5.png"
									traits = {
									}
								}
							}
						}
						else_if = {
							limit = {
								FPR = {
									OR = {
										has_country_leader = {
											#RED GUARD
											character = FPR_Didier_Daeninckx_char
											ruling_only = yes
										}
										has_country_leader = {
											#RED GUARD
											character = FRA_Jean_Luc_Melenchon_char
											ruling_only = yes
										}
									}
								}
							}
							IF = {
								LIMIT = {
									has_country_flag = ThirdEW_peace_flag
								}
								puppet = CZE
								CZE = {
									set_cosmetic_tag = CZE_socialist_puppet_FPR
									create_country_leader = {
										name = CZE_jiri_paroubek
										desc = ""
										picture = "gfx/leaders/CZE/CZE_jiri_paroubek.png"
										expire = "1.1.1"
										ideology = social_patriotism
									}
									set_politics = {
										ruling_party = social_democrat
										elections_allowed = no
									}
									set_party_name = {
										ideology = social_democrat
										long_name = CZE_social_democrat2_party
										name = CZE_social_democrat2_party_long
									}
								}
								puppet = AUS
								AUS = {
									set_cosmetic_tag = AUS_socialist_puppet_FPR
									create_country_leader = {
										name = AUS_Andreas_Babler
										desc = ""
										picture = "gfx/leaders/AUS/Andreas_Babler.png"
										expire = "1.1.1"
										ideology = social_democracy
									}
									set_politics = {
										ruling_party = social_democrat
										elections_allowed = yes
									}
									 
									set_popularities = {
										social_democrat = 33
										social_liberal = 13
										market_liberal = 25
										conservative = 29
									}
								}
								puppet = PLD
								PLD = {
									set_cosmetic_tag = PLD_socialist_puppet_FPR
									set_politics = {
										ruling_party = communist
										last_election = "2021.11.8"
										election_frequency = 48
										elections_allowed = no
									}
									add_popularity = {
										ideology = communist
										popularity = 0.35
									}
									create_country_leader = {
										name = POL_krzysztof_szwej_char
										desc = ""
										picture = "gfx/Leaders/POL/Krzysztof Szwej.png"
										ideology = marxism_leninism
									}
								}
							}
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = GER_socialist_puppet_FPR
								set_politics = {
									ruling_party = libertarian_socialist
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = libertarian_socialist
									popularity = 0.35
								}
								create_country_leader = {
									name = GER_bundestag_char
									desc = ""
									picture = "gfx/leaders/GER/GER_bundestag.png"
									ideology = post_leftism
								}
							}
						}
						ELSE = {
							white_peace = ROOT
							FPR = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						set_global_flag = skip_default_capitulation
					}
				}
				if = {
					#Nationalist Europe Betrays Italy
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								is_ally_with = FAF
							}
						}
						ROOT = {
							original_tag = ITA
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								AUS = {
									exists = yes
								}
							}
							AUS = {
								transfer_state = 39
							}
						}
						IF = {
							LIMIT = {
								ITA = {
									owns_state = 838
								}
							}
							LOM = {
								transfer_state = 838
							}
						}
						transfer_state = 114
						transfer_state = 116
						IF = {
							LIMIT = {
								FAF = {
									OR = {
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FRA_Pierre_de_Villiers
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Francois_Xavier_Bellamy_char
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Francois_Bayrou_char
											ruling_only = yes
										}
										has_country_leader = {
											#TREATY OF VERSAILLES 2
											character = FAF_Stephane_Ravier_char
											ruling_only = yes
										}
									}
								}
							}
							set_autonomy = {
							    target = ROOT
							    autonomous_state = autonomy_sister_republic
							    end_wars = no
							    end_civil_wars = no
							}
							ROOT = {
								set_cosmetic_tag = ITA_fascist_sister_republic
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = conservative
									popularity = 0.10
								}
								add_country_leader_role = {
									character = ITA_Salvatore_Farina_char
								    promote_leader = yes
									country_leader = {
										ideology = supervised_democracy
										traits = {
										}
									}
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								FAF = {
									OR = {
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Bertrand_Ract_Madoux
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Jean_Pierre_Bosser
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Bertrand_de_La_Chesnais_char
											ruling_only = yes
										}
										has_country_leader = {
											#Vichy Revenge
											character = FRA_Francois_Lecointre
											ruling_only = yes
										}
									}
								}
							}
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = FRA_Italian_Collaborationist_Government
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "1935.12.17"
									election_frequency = 48
								}
								add_country_leader_role = {
									character = ITA_Roberto_Fiore_char
								    promote_leader = yes
									country_leader = {
										ideology = clerical_fascism
										traits = {
											
										}
									}
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								FAF = {
									OR = {
										has_country_leader = {
											#TGD 
											character = FAF_Yvan_Benedetti_char
											ruling_only = yes
										}
										has_country_leader = {
											#TGD 
											character = FRA_Yvan_Benedetti
											ruling_only = yes
										}
										has_country_leader = {
											#TGD 
											character = FAF_Jean_Christophe_Napoleon_char
											ruling_only = yes
										}
									}
								}
							}
							country_event = {
								id = Nationalist_France.328
							}
							IF = {
								LIMIT = {
									NOT = {
										country_exists = LOM
									}
								}
								ITA = {
									release = LOM
								}
								puppet = LOM
								if = {
									limit = {
										838 = {
											is_owned_by = ITA
										}
									}
									838 = {
										transfer_state_to = LOM
									}
								}
							}
							puppet = RME
							RME = {
								set_cosmetic_tag = FAF_French_Protectorate_of_Rome_cos_tag
								transfer_state = 2
								transfer_state = 162
								transfer_state = 157
								transfer_state = 1448
								transfer_state = 1449
							}
							ITA = {
								set_cosmetic_tag = FAF_Social_Republic_of_Mezzogiorno_cos_tag
								add_country_leader_role = {
									character = ITA_Giancarlo_Cito
								    promote_leader = yes
									country_leader = {
										ideology = falangist
										traits = {
										}
									}
								}
							}
							114 = {
								transfer_state_to = FAF
							}
						}
						ELSE = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							IF = {
								LIMIT = {
									country_exists = LOM
								}
								annex_country = {
									target = LOM
									transfer_troops = no
								}
							}
						}
					}
				}
				if = {
					# Islamic Cameroon
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = CMR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						load_oob = "AQI_Expansion_2"
						if = {
							limit = {
								NDC = {
									exists = yes
								}
							}
							AQI = {
								puppet = NDC
								declare_war_on = {
									target = COG
									type = annex_everything
								}
								declare_war_on = {
									target = DRO
									type = annex_everything
								}
								declare_war_on = {
									target = BDK
									type = annex_everything
								}
								declare_war_on = {
									target = M23
									type = annex_everything
								}
								declare_war_on = {
									target = RCG
									type = annex_everything
								}
								declare_war_on = {
									target = RCO
									type = annex_everything
								}
								declare_war_on = {
									target = MMK
									type = annex_everything
								}
							}
							NDC = {
								set_cosmetic_tag = NDC_Wilayat_Wasat_Ifriqiya
								add_country_leader_role = {
									character = NDC_Musa_Baluku_char
									promote_leader = yes
									country_leader = {
										ideology = salafi
										traits = {
										}
									}
								}
								declare_war_on = {
									target = COG
									type = annex_everything
								}
								declare_war_on = {
									target = DRO
									type = annex_everything
								}
								declare_war_on = {
									target = BDK
									type = annex_everything
								}
								declare_war_on = {
									target = M23
									type = annex_everything
								}
								declare_war_on = {
									target = RCG
									type = annex_everything
								}
								declare_war_on = {
									target = RCO
									type = annex_everything
								}
								declare_war_on = {
									target = MMK
									type = annex_everything
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#
					limit = {
						FROM = {
							original_tag = AQI
						}
						ROOT = {
							original_tag = NGA
						}
					}
					FROM = {
						if = {
							limit = {
								NGA = {
									NOT = {
										is_puppet_of = BIA
									}
								}
							}
							add_war_support = 0.05
							declare_war_on = {
								target = NGA
								type = annex_everything
							}
							declare_war_on = {
								target = BIA
								type = annex_everything
							}
							declare_war_on = {
								target = EBN
								type = annex_everything
							}
						}
						else = {
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						declare_war_on = {
							target = CMR
							type = annex_everything
						}
						load_oob = "AQI_Expansion_1"
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Bundy's Rebellion Victorious
					limit = {
						FROM = {
							original_tag = PCR
						}
						ROOT = {
							original_tag = CAC
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						every_state = {
							limit = {
								is_core_of = CAC
							}
							add_core_of = PCR
						}
						if = {
							limit = {
								385 = {
									is_core_of = CAC
								}
								996 = {
									is_core_of = CAC
								}
							}
							CLM = {
								add_state_core = 385
								add_state_core = 996
								transfer_state = 385
								transfer_state = 996
								set_cosmetic_tag = CLM_jefferson
								set_politics = {
									ruling_party = conservative
									last_election = "2021.11.8"
									election_frequency = 48
									elections_allowed = yes
								}
								add_popularity = {
									ideology = conservative
									popularity = 1
								}
								create_country_leader = {
									name = CLM_dallas_heard_char
									picture = "Dallas Heard.png"
									ideology = constitutionalist
									traits = {
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# I hate wholesome republics
					limit = {
						always = no						#Disabled for now
						FROM = {
							original_tag = APA
						}
						ROOT = {
							original_tag = BRN
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						ROOT = {
							set_cosmetic_tag = BRN_ssr
							set_party_name = {
								ideology = totalitarian_socialist
								name = CAC_apla_party
							}
							set_party_name = {
								ideology = communist
								name = CAC_apla_party
							}
							set_party_name = {
								ideology = conservative
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = social_liberal
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = market_liberal
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = social_democrat
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = libertarian_socialist
								name = SOV_outlawed_party
							}
							create_country_leader = {
								name = BRN_elisa_aguinaldo_char
								picture = "gfx/leaders/2ACW/general20.png"
								ideology = marxism_leninism
								traits = {
								}
							}
							create_country_leader = {
								name = BRN_elisa_aguinaldo_char
								picture = "gfx/leaders/2ACW/general20.png"
								ideology = jacobinism
								traits = {
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# I hate wholesome republics
					limit = {
						always = no						#Disabled for now
						FROM = {
							original_tag = APA
						}
						ROOT = {
							original_tag = CAC
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						if = {
							limit = {
								OR = {
									has_country_leader = {
										name = "Valeria Wasserman"
										ruling_only = yes
									}
									has_country_leader = {
										name = "Gloria la Riva"
										ruling_only = yes
									}
								}
							}
							country_event = {
								id = apla.29
								days = 5
							}
						}
						ROOT = {
							set_cosmetic_tag = CAC_ssr
							set_party_name = {
								ideology = totalitarian_socialist
								name = CAC_apla_party
							}
							set_party_name = {
								ideology = communist
								name = CAC_apla_party
							}
							set_party_name = {
								ideology = conservative
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = social_liberal
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = market_liberal
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = social_democrat
								name = SOV_outlawed_party
							}
							set_party_name = {
								ideology = libertarian_socialist
								name = SOV_outlawed_party
							}
							create_country_leader = {
								name = CAC_matthew_clark
								picture = "gfx/leaders/2ACW/general29.png"
								ideology = marxism_leninism
								traits = {
								}
							}
							create_country_leader = {
								name = CAC_matthew_clark
								picture = "gfx/leaders/2ACW/general29.png"
								ideology = jacobinism
								traits = {
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# California
					limit = {
						FROM = {
							OR = {
								original_tag = APA
								original_tag = CAL
								original_tag = CLM
								original_tag = NRT
								original_tag = SRN
								original_tag = BGF
								original_tag = RGA
								original_tag = AYB
								original_tag = HLA
							}
						}
						ROOT = {
							OR = {
								original_tag = APA
								original_tag = CAL
								original_tag = CLM
								original_tag = NRT
								original_tag = SRN
								original_tag = BGF
								original_tag = AYB
								original_tag = RGA
								original_tag = HLA
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# BEL kill HOL
					limit = {
						FROM = {
							original_tag = BEL
						}
						ROOT = {
							original_tag = HOL
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = HOL
						transfer_state = 6
						transfer_state = 35
						transfer_state = 1364
						set_cosmetic_tag = BEL_Greater_Belgium_cos_tag
						IF = {
							LIMIT = {
								BEL = {
									is_puppet_of = FAF
								}
							}
							FAF = {
								puppet = HOL
							}
						}
						set_party_name = {
							ideology = nationalist
							long_name = BEL_monarchy_party
							name = BEL_monarchy_party
						}
						ROOT = {
							set_cosmetic_tag = HOL_Princedom_of_Friesland_cos_tag
							add_country_leader_role = {
								character = BEL_Gabriel_of_Belgium_char
								promote_leader = yes
								country_leader = {
									ideology = absolute_monarchist
									traits = {
									}
								}
							}
							add_country_leader_role = {
								character = BEL_Gabriel_of_Belgium_char
								promote_leader = yes
								country_leader = {
									ideology = oligarchist
									traits = {
									}
								}
							}
							set_character_name = {
								character = BEL_Gabriel_of_Belgium_char
								name = Gabriel_I
							}
							set_party_name = {
								ideology = nationalist
								long_name = BEL_monarchy_party
								name = BEL_monarchy_party
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# IRA kill NIR
					limit = {
						FROM = {
							original_tag = IRA
						}
						ROOT = {
							original_tag = NIR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								has_idea = NIR_Russian_Funding_Medvedev_idea
							}
							set_politics = {	
								ruling_party = authoritarian_democrat
								election_frequency = 48
								elections_allowed = no
							}
						}
						else_if = {
							LIMIT = {
								has_idea = NIR_Russian_Funding_LDPR_idea
							}
							set_politics = {	
								ruling_party = fascist
								election_frequency = 48
								elections_allowed = no
							}
						}
						else_if = {
							LIMIT = {
								has_idea = NIR_Russian_Funding_USSR_idea
							}
							set_politics = {	
								ruling_party = communist
								election_frequency = 48
								elections_allowed = no
							}
						}
						country_event = {
							id = uk.62
							days = 45
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# IRA kill IRE
					limit = {
						FROM = {
							original_tag = IRA
						}
						ROOT = {
							original_tag = IRE
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						every_controlled_state = {
							add_core_of = IRA
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NIR kill IRE
					limit = {
						FROM = {
							original_tag = NIR
						}
						ROOT = {
							original_tag = IRE
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								UK2 = {
									count_triggers = {
										amount = 4
										controls_state = 122
										controls_state = 123
										controls_state = 126
										controls_state = 131
										controls_state = 1308
										controls_state = 1314
									}
									country_exists = ENG
									ENG = {
										NOT = {
											is_puppet_of = SOV
										}
									}
								}
							}
							ENG = {
								annex_country = {
									target = NIR
									transfer_troops = yes
								}
								set_capital = {
								  state = 113
								  remember_old_capital = no
								}
							}
							NIR = {
								every_core_state = {
									add_core_of = ENG
								}
								every_state = {
									limit = {
										is_claimed_by = NIR
									}
									add_claim_by = ENG
								}
							}
							set_global_flag = ENG_british_ireland
						}
						else_if = {
							LIMIT = {
								UK2 = {
									count_triggers = {
										amount = 4
										controls_state = 122
										controls_state = 123
										controls_state = 126
										controls_state = 131
										controls_state = 1308
										controls_state = 1314
									}
									OR = {
										NOT = {
											country_exists = ENG
										}
										ENG = {
											is_puppet_of = SOV
										}
									}
								}
							}
							set_cosmetic_tag = NIR_United_Kingdom_of_Great_Britain_cos_tag
							add_country_leader_role = {
								character = NIR_William_V_char
								promote_leader = yes
								country_leader = {
									ideology = absolute_monarchist
									traits = {
									}
								}
							}
							load_oob = "NIR_British_Exiles"
							ENG = {
								every_unit_leader = {
									set_nationality = {
									    target_country = NIR
									    character = PREV
									}
								}
								every_core_state = {
									add_core_of = NIR
								}
								every_state = {
									limit = {
										is_claimed_by = ENG
									}
									add_claim_by = NIR
								}
							}
						}
						else_if = {
							LIMIT = {
								ENG = {
									count_triggers = {
										amount = 4
										controls_state = 122
										controls_state = 123
										controls_state = 126
										controls_state = 131
										controls_state = 1308
										controls_state = 1314
									}
								}
							}
							NIR = {
								every_core_state = {
									add_core_of = ENG
								}
								every_state = {
									limit = {
										is_claimed_by = NIR
									}
									add_claim_by = ENG
								}
							}
							ENG = {
								annex_country = {
									target = NIR
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NIR kill IRA
					limit = {
						FROM = {
							original_tag = NIR
						}
						ROOT = {
							original_tag = IRA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = {
								id = uk.65
								days = 10
							}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# BEL kill LUX
					limit = {
						FROM = {
							original_tag = BEL
						}
						ROOT = {
							original_tag = LUX
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								HOL = {
									exists = no
								}
								NOT = {
									has_cosmetic_tag = BEL_Greater_Belgium_cos_tag
									is_puppet_of = FAF
								}
							}
							release_puppet = HOL
							transfer_state = 6
							transfer_state = 35
							transfer_state = 1364
							set_cosmetic_tag = BEL_Greater_Belgium_cos_tag
							HOL = {
								set_cosmetic_tag = HOL_Princedom_of_Friesland_cos_tag
								add_country_leader_role = {
									character = BEL_Gabriel_of_Belgium_char
									promote_leader = yes
									country_leader = {
										ideology = military_junta
										traits = {
										}
									}
								}
								add_country_leader_role = {
									character = BEL_Gabriel_of_Belgium_char
									promote_leader = yes
									country_leader = {
										ideology = oligarchist
										traits = {
										}
									}
								}
								set_character_name = {
									character = BEL_Gabriel_of_Belgium_char
									name = Gabriel_I
								}
							}
						}
						else_if = {
							LIMIT = {
								HOL = {
									exists = no
								}
								NOT = {
									has_cosmetic_tag = BEL_Greater_Belgium_cos_tag
								}
								is_puppet_of = FAF
							}
							release = HOL
							transfer_state = 6
							transfer_state = 35
							transfer_state = 1364
							set_cosmetic_tag = BEL_Greater_Belgium_cos_tag
							FAF = {
								puppet = HOL
							}
							HOL = {
								set_cosmetic_tag = HOL_Princedom_of_Friesland_cos_tag
								add_country_leader_role = {
									character = BEL_Gabriel_of_Belgium_char
									promote_leader = yes
									country_leader = {
										ideology = military_junta
										traits = {
										}
									}
								}
								add_country_leader_role = {
									character = BEL_Gabriel_of_Belgium_char
									promote_leader = yes
									country_leader = {
										ideology = oligarchist
										traits = {
										}
									}
								}
								set_character_name = {
									character = BEL_Gabriel_of_Belgium_char
									name = Gabriel_I
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# LUX/Commie kill HOL/BEL
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = ITA
								original_tag = FPR
								original_tag = UK2
								original_tag = GRK
								original_tag = PRS
								original_tag = PRP
								original_tag = LUX
							}
							OR = {
								has_government = communist
								has_government = totalitarian_socialist
								has_government = libertarian_socialist
							}
						}
						ROOT = {
							OR = {
								original_tag = HOL
								original_tag = BEL
							}
						}
					}
					FROM = {
						white_peace = ROOT
						LUX = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Fascist Europe Kill Benelux
					limit = {
						FROM = {
							FAF = {
								has_completed_focus = FAF_Secure_Belgium
							}
							OR = {
								original_tag = FAF
								is_ally_with = FAF
							}
						}
						ROOT = {
							OR = {
								original_tag = LUX
								original_tag = BEL
								original_tag = HOL
							}
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								BEL = {
									is_ally_with = FAF
								}
							}
							BEL = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						else = {
							FAF = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# EU Kill Iberia
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							GER = {
								has_completed_focus = GER_democracy_falters
							}
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							OR = {
								original_tag = LCA
								original_tag = GAL
								original_tag = SNS
								original_tag = SPR
								original_tag = RSR
								original_tag = BSQ
								original_tag = CAT
								original_tag = BAR
								original_tag = ADU
								original_tag = POR
								original_tag = PRP
								original_tag = GOD
							}
						}
					}
					FROM = {
						white_peace = ROOT
						FSP = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							every_controlled_state = {
								limit = {
									is_core_of = ROOT
								}
								add_core_of = FSP
							}
						}
					}
				}
				if = {
					# Fascist Europe - Spanish Intervention
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								original_tag = FSP
								original_tag = FCT
								is_ally_with = FAF
								AND = {
									original_tag = SNS
									has_country_flag = SNS_frances_bitch
								}
							}
						}
						ROOT = {
							OR = {
								original_tag = SPR
								original_tag = SNS
								original_tag = RSR
								original_tag = PRS
								original_tag = GAL
								original_tag = GOL
								original_tag = BSQ
								original_tag = LCA
								original_tag = CAT
								original_tag = BAR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						IF = {
							LIMIT = {
								NOT = {
									country_exists = FCT
								}
								ROOT = {
									OR = {
										original_tag = CAT
										original_tag = BAR
									}
								}
							}
							FCT = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
								FAF = {
									puppet = FCT
								}
								set_cosmetic_tag = FCT_junta
								create_country_leader = {
									name = FRA_Alain_Bouquin
									picture = "gfx/leaders/FRA/Alain_Bouquin"
									ideology = military_junta
									traits = {
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.3
								}
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								ROOT = {
									OR = {
										original_tag = CAT
										original_tag = BAR
									}
								}
								country_exists = FCT
							}
							FCT = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								NOT = {
									country_exists = FSP
								}
								NOT = {
									SNS = {
										is_guaranteed_by = FAF
										gives_military_access_to = FAF
									}
								}
								ROOT = {
									NOT = {
										original_tag = CAT
										original_tag = BAR
									}
								}
							}
							FSP = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
								FAF = {
									puppet = FSP
								}
								set_cosmetic_tag = FSP_junta
								create_country_leader = {
									name = FRA_Jean_Jacques_Fatinet
									picture = "gfx/leaders/FRA/Jean-Jacques Fatinet.png"
									ideology = military_junta
									traits = {
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.3
								}
							}
						}
						ELSE_IF = {
							LIMIT = {
								SNS = {
									is_guaranteed_by = FAF
									gives_military_access_to = FAF
								}
								ROOT = {
									NOT = {
										original_tag = CAT
										original_tag = BAR
									}
								}
							}
							SNS = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						else = {
							FSP = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill SNS
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								original_tag = FSP
								original_tag = FCT
							}
						}
						ROOT = {
							original_tag = SNS
						}
					}
					FROM = {
						white_peace = ROOT
						FSP = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						puppet = FSP
						country_event = {
							id = Nationalist_France.39
							days = 20
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill POR
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								original_tag = FSP
								original_tag = FCT
							}
						}
						ROOT = {
							original_tag = GOD
						}
					}
					FROM = {
						white_peace = ROOT
						FSP = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							annex_country = {
								target = FCT
								transfer_troops = no
							}
						}
						puppet = FSP
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill POR
					limit = {
						FROM = {
							OR = {
								original_tag = FAF
								original_tag = FSP
								original_tag = FCT
							}
						}
						ROOT = {
							OR = {
								original_tag = PRP
								original_tag = POR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						FSP = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						puppet = FSP
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GOD kill PRP and POR
					limit = {
						FROM = {
							OR = {
								original_tag = GOD
								is_ally_with = GOD
							}
						}
						ROOT = {
							OR = {
								original_tag = PRP
								original_tag = POR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						GOD = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRP kill GOD and POR
					limit = {
						GER = { has_completed_focus = GER_scratch_a_liberal }
						FROM = {
							OR = {
								original_tag = PRP
								is_ally_with = PRP
								is_ally_with = GER
								is_ally_with = FPR
							}
						}
						ROOT = {
							OR = {
								original_tag = POR
								original_tag = GOD
							}
						}
					}
					if = {
						limit = {
							any_allied_country = {
								has_war_together_with = GOD
							}
						}
						white_peace = FROM
					}
					FROM = {
						white_peace = ROOT
					}
					PRP = {
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					every_state = {
						limit = {
							is_core_of = ROOT 
						}
						transfer_state_to = PRP
					}
					GER = {
						add_to_faction = PRP
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# POR kill GOD and PRP
					limit = {
						FROM = {
							OR = {
								original_tag = POR
								is_ally_with = POR
							}
						}
						ROOT = {
							OR = {
								original_tag = PRP
							}
						}
					}
					FROM = {
						white_peace = ROOT
						POR = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# HOL kill LUX
					limit = {
						FROM = {
							original_tag = HOL
						}
						ROOT = {
							original_tag = LUX
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								BEL = {
									exists = no
								}
							}
							set_cosmetic_tag = HOL_United_Netherlands_cos_tag
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# FAF kill LUX
					limit = {
						FROM = {
							original_tag = FAF
						}
						ROOT = {
							original_tag = LUX
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								BEL = {
									is_puppet_of = FAF
								}
							}
							BEL = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						else = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# HOL kill BEL
					limit = {
						FROM = {
							original_tag = HOL
						}
						ROOT = {
							original_tag = BEL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						set_cosmetic_tag = HOL_United_Netherlands_cos_tag
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GER kill LUX
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = ITA
								original_tag = SPR
								original_tag = ENG
								original_tag = FPR
								original_tag = UK2
								original_tag = FAF
								original_tag = GRK
								original_tag = PRS
								original_tag = PRP
								original_tag = SNS
							}
						}
						ROOT = {
							original_tag = LUX
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							transfer_state = 8
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Arizona New Mexico
					limit = {
						FROM = {
							OR = {
								original_tag = BRN
								original_tag = ARZ
								original_tag = NMX
								original_tag = NNN
								original_tag = ABR
							}
						}
						ROOT = {
							OR = {
								original_tag = BRN
								original_tag = ARZ
								original_tag = NMX
								original_tag = NNN
								original_tag = ABR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOUTHERN STATES LOS VICTORY
					limit = {
						FROM = {
							original_tag = LOS
						}
						ROOT = {
							OR = {
								#original_tag = BLA
								original_tag = FLA
								original_tag = FLM
								original_tag = ATW
								original_tag = LOU
								original_tag = ALA
								original_tag = GRA
								original_tag = STC
								original_tag = LRA
								original_tag = MSS
								original_tag = NMX
								original_tag = NNN
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# LOS Texas Victory
					limit = {
						FROM = {
							original_tag = LOS
						}
						ROOT = {
							OR = {
								original_tag = TEX
								original_tag = TRG
								original_tag = ATH
								original_tag = BND
								original_tag = BSK
								original_tag = TFM
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								NOT = {
									country_exists = TEX
									country_exists = TRG
									country_exists = ATH
									country_exists = BND
									country_exists = BSK
									country_exists = TFM
								}
							}
							country_event = {
								id = los.5
								days = 2
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# WLN kill BYA
					limit = {
						FROM = {
							original_tag = WLN
						}
						ROOT = {
							original_tag = BYA
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								NOT = {
									country_exists = SHL
									country_exists = KBK
								}
							}
							UKR = {
								country_event = {
									id = ukraine.16
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MEL kill SHL
					limit = {
						FROM = {
							original_tag = MEL
						}
						ROOT = {
							original_tag = SHL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								NOT = {
									country_exists = BYA
									country_exists = KBK
								}
							}
							UKR = {
								country_event = {
									id = ukraine.16
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NEN kill KBK
					limit = {
						FROM = {
							original_tag = WLN
						}
						ROOT = {
							original_tag = KBK
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								NOT = {
									country_exists = SHL
									country_exists = BYA
								}
							}
							UKR = {
								country_event = {
									id = ukraine.16
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PTF Kills GMA
					limit = {
						FROM = {
							original_tag = PTF
						}
						ROOT = {
							original_tag = GMA
						}
					}
					FROM = {
						white_peace = ROOT
						country_event = {
							id = ptf.4
						}
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PTF Kills NEG
					limit = {
						FROM = {
							original_tag = PTF
						}
						ROOT = {
							original_tag = NEG
						}
					}
					FROM = {
						white_peace = ROOT
						country_event = {
							id = ptf.5
							days = 30
						}
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Khorasan And Sipah One Struggle
					limit = {
						FROM = {
							OR = {
								original_tag = ISK
								original_tag = PAK
							}
						}
						ROOT = {
							original_tag = TAL
						}
					}
					FROM = {
						white_peace = ROOT
						TAL = {
							remove_state_core = 1323
							remove_state_core = 1055
							remove_state_core = 1054
							remove_state_core = 1051
							remove_state_core = 1052
							remove_state_core = 1056
							remove_state_core = 1053
							remove_state_core = 1057
							remove_state_core = 824
							remove_state_core = 837
							remove_state_core = 267
							remove_state_core = 415
							remove_state_core = 1058
							remove_state_core = 442
							remove_state_core = 445
							remove_state_core = 1323
							remove_state_core = 1321
						}
						TLP = {
							remove_state_core = 442
							remove_state_core = 445
							remove_state_core = 1323
							remove_state_core = 1321
						}
						ISK = {
							set_cosmetic_tag = ISK_united
							add_state_core = 1323
							add_state_core = 1055
							add_state_core = 1054
							add_state_core = 1051
							add_state_core = 1052
							add_state_core = 1056
							add_state_core = 1053
							add_state_core = 1057
							add_state_core = 824
							add_state_core = 837
							add_state_core = 267
							add_state_core = 415
							add_state_core = 1058
							transfer_state = 824
							transfer_state = 837
							transfer_state = 267
							transfer_state = 415
							transfer_state = 1058
						}
						PAK = {
							country_event = {
								id = PAK.8
								days = 15
							}
							add_state_core = 1323
							add_state_core = 1055
							add_state_core = 1054
							add_state_core = 1051
							add_state_core = 1052
							add_state_core = 1056
							add_state_core = 1053
							add_state_core = 1057
							add_state_core = 824
							add_state_core = 837
							add_state_core = 267
							add_state_core = 415
							add_state_core = 1058
							transfer_state = 1323
							transfer_state = 1055
							transfer_state = 1054
							transfer_state = 1056
							transfer_state = 1053
							transfer_state = 1057
							transfer_state = 1052
							transfer_state = 1051
						}
						PER = {
							country_event = {
								id = iran.22
								days = 450
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Khorasan Kills Iran
					limit = {
						FROM = {
							OR = {
								original_tag = ISK
								original_tag = BUK
							}
						}
						ROOT = {
							original_tag = PER
						}
					}
					FROM = {
						white_peace = ROOT
					}
					if = {
						limit = {
							NOT = {
								country_exists = PAK
								country_exists = TAL
							}
						}
						ISK = {
							annex_country = {
								target = PER
							}
							annex_country = {
								target = IRB
							}
						}
						BUK = {
							annex_country = {
								target = IRQ
							}
							transfer_state = 413
							transfer_state = 414
							transfer_state = 656
						}
						HRZ = {
							add_state_core = 419
							transfer_state = 419
						}
						ABK = {
							transfer_state = 421
							add_state_core = 421
						}
						RIF = {
							add_state_core = 1327
							add_state_core = 417
							transfer_state = 1327
							transfer_state = 417
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MOR Kills ALG
					limit = {
						FROM = {
							original_tag = MOR
						}
						ROOT = {
							original_tag = ALG
						}
					}
					FROM = {
						white_peace = ROOT
						ALG = {
							load_oob = "ALG_2020"
							country_event = {
								id = algeria.3
								days = 120
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# MOR Kills HRL
					limit = {
						FROM = {
							original_tag = MOR
						}
						ROOT = {
							original_tag = HRL
						}
					}
					FROM = {
						white_peace = ROOT
						ALG = {
							transfer_state = 459
							transfer_state = 460
							transfer_state = 513
							transfer_state = 514
							transfer_state = 1331
						}
						TUN = {
							transfer_state = 458
							transfer_state = 665
						}
						MOR = {
							puppet = TUN
							puppet = ALG
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Salman Victory
					limit = {
						FROM = {
							original_tag = SAU
						}
						ROOT = {
							OR = {
								original_tag = ROC
								original_tag = ARR
								original_tag = JAH
								original_tag = SAR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								count_triggers = {
									amount = 4
									SAU = { exists = no }
									ARR = { exists = no }
									SAR = { exists = no }
									ROC = { exists = no }
									JAH = { exists = no }
								}
							}
							country_event = saudi.13
						}
					}
					FRA = {
						if = {
							limit = {
								has_country_flag = SAU_Support_flag
								has_completed_focus = FRA_If_We_cant_have_it
							}
							country_event = france.209
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Liberal Victory
					limit = {
						FROM = {
							original_tag = ARR
						}
						ROOT = {
							OR = {
								original_tag = ROC
								original_tag = SAU
								original_tag = JAH
								original_tag = SAR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								count_triggers = {
									amount = 4
									SAU = { exists = no }
									ARR = { exists = no }
									SAR = { exists = no }
									ROC = { exists = no }
									JAH = { exists = no }
								}
							}
							country_event = saudi.15
							GER = {
								if = {
									limit = { has_country_flag = GER_supported_ARR }
									country_event = germany.59
								}
							}
							FRA = {
								if = {
									limit = {
										has_country_flag = ARR_Support_flag
										has_completed_focus = FRA_If_We_cant_have_it
									}
									country_event = france.208
								}
							}
						}
						if = {
							limit = {
								has_cosmetic_tag = ARR_khalid
							}
							drop_cosmetic_tag = yes
							set_politics = {
								ruling_party = market_liberal
								elections_allowed = yes
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = market_liberal
								popularity = 0.25
							}
							create_country_leader = {
								name = ARR_yahya_assiri_char
								picture = "Yahya Assiri.dds"
								ideology = civic_nationalism
								traits = {
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Coalition Victory
					limit = {
						FROM = {
							original_tag = ROC
						}
						ROOT = {
							OR = {
								original_tag = SAU
								original_tag = ARR
								original_tag = SAR
								original_tag = ROC
								original_tag = JAH
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								count_triggers = {
									amount = 4
									SAU = { exists = no }
									ARR = { exists = no }
									SAR = { exists = no }
									ROC = { exists = no }
									JAH = { exists = no }
								}
							}
							country_event = saudi.14
							PRC = {
								if = {
									limit = {
										has_completed_focus = PRC_gambit_in_the_gulf
									}
									country_event = { id = china.141 }
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Hezbollah Victory
					limit = {
						FROM = {
							original_tag = SAR
						}
						ROOT = {
							OR = {
								original_tag = ROC
								original_tag = ARR
								original_tag = JAH
								original_tag = SAU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								count_triggers = {
									amount = 4
									SAU = { exists = no }
									ARR = { exists = no }
									SAR = { exists = no }
									ROC = { exists = no }
									JAH = { exists = no }
								}
							}
							country_event = saudi.17
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Jihadist Victory
					limit = {
						FROM = {
							original_tag = JAH
						}
						ROOT = {
							OR = {
								original_tag = SAU
								original_tag = ARR
								original_tag = SAR
								original_tag = ROC
								original_tag = JAH
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								count_triggers = {
									amount = 4
									SAU = { exists = no }
									ARR = { exists = no }
									SAR = { exists = no }
									ROC = { exists = no }
									JAH = { exists = no }
								}
							}
							news_event = news.127
							set_cosmetic_tag = JAH_unified
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# NATO kill JAH
					limit = {
						FROM = {
							OR = {
								original_tag = ARR
								original_tag = GER
								original_tag = FRA
								original_tag = ITA
								original_tag = ENG
								original_tag = PLD
								original_tag = NOR
								original_tag = SWE
								original_tag = FIN
								original_tag = HUN
								original_tag = ROM
								original_tag = BUL
								original_tag = SLO
								original_tag = CZE
								original_tag = HOL
								original_tag = BEL
								original_tag = DEN
								original_tag = POR
								original_tag = SLV
								original_tag = EST
								original_tag = LIT
								original_tag = LAT
							}
						}
						ROOT = {
							original_tag = JAH
						}
					}
					ARR = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						drop_cosmetic_tag = yes
						set_politics = {
							ruling_party = market_liberal
							elections_allowed = yes
							last_election = "2011.12.17"
							election_frequency = 48
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# JIHADISTS WILD RIDE
					limit = {
						FROM = {
							original_tag = JAH
						}
						ROOT = {
							OR = {
								original_tag = YEM
								original_tag = HOU
								original_tag = OMA
								original_tag = UAE
								original_tag = QAT
								original_tag = KUW
								original_tag = BAR
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SAO Kill SUD
					limit = {
						FROM = {
							original_tag = SAO
						}
						ROOT = {
							original_tag = SUD
						}
					}
					FROM = {
						white_peace = ROOT
					}
					ROOT = {
						ETH = {
							remove_from_faction = SUD
						}
						if = {
							limit = {
								NOT = {
									SUD = {
										is_puppet_of = EGY
									}
									EGY = {
										has_country_flag = EGY_failed_water_war
									}
								}
							}
							EGY = {
								puppet = SUD
							}
							set_cosmetic_tag = SUD_military_admin
							add_ideas = EGY_military_occupation
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "1935.12.17"
								election_frequency = 48
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.65
							}
							create_country_leader = {
								name = EGY_mohamed_ahmed_zaki
								picture = "Mohamed Ahmed Zaki.png"
								ideology = oligarchist
								traits = {
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# JIHADISTS Fail
					limit = {
						FROM = {
							OR = {
								original_tag = YEM
								original_tag = HOU
								original_tag = OMA
								original_tag = UAE
								original_tag = QAT
								original_tag = KUW
								original_tag = BAR
								original_tag = IRQ
								original_tag = JOR
								original_tag = PER
							}
						}
						ROOT = {
							original_tag = JAH
						}
					}
					FROM = {
						white_peace = ROOT
					}
					KUW = {
						transfer_state = 656
					}
					QAT = {
						transfer_state = 825
					}
					UAE = {
						transfer_state = 658
					}
					OMA = {
						transfer_state = 294
					}
					JOR = {
						transfer_state = 455
					}
					SAU = {
						transfer_state = 894
						transfer_state = 1064
						transfer_state = 1063
						transfer_state = 893
						transfer_state = 1061
						transfer_state = 1065
						transfer_state = 1067
						transfer_state = 292
						transfer_state = 1126
						transfer_state = 679
						transfer_state = 1066
						transfer_state = 678
						transfer_state = 1062
					}
					news_event = {
						id = news.180
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GADDAFIS WILD RIDE
					limit = {
						FROM = {
							original_tag = HRL
						}
						ROOT = {
							OR = {
								original_tag = TUN
								original_tag = ALG
								original_tag = MOR
								original_tag = MUS
								original_tag = WES
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								ROOT = {
									tag = TUN
								}
							}
							HRL_arab_world_increase = yes
							add_ideas = HRL_republican_guard
							add_ideas = HRL_emerging_economy
						}
						if = {
							limit = {
								ROOT = {
									tag = ALG
								}
							}
							HRL_increase_gaddafi = yes
							NATO_back_to_the_future_part_II = yes
							HRL_arab_world_increase = yes
							add_ideas = medium_poverty
							add_ideas = high_farming
							add_research_slot = 2
							random_owned_controlled_state = {
								if = {
									limit = {
										is_core_of = ROOT
										free_building_slots = {
											building = anti_air_building
											size > 0
										}
									}
								}
								add_extra_state_shared_building_slots = 2
								add_building_construction = {
									type = anti_air_building
									level = 2
									instant_build = yes
								}
							}
							random_owned_controlled_state = {
								if = {
									limit = {
										is_core_of = ROOT
										free_building_slots = {
											building = anti_air_building
											size > 0
										}
									}
								}
								add_extra_state_shared_building_slots = 2
								add_building_construction = {
									type = anti_air_building
									level = 2
									instant_build = yes
								}
							}
							random_owned_controlled_state = {
								if = {
									limit = {
										is_core_of = ROOT
										free_building_slots = {
											building = anti_air_building
											size > 0
										}
									}
								}
								add_extra_state_shared_building_slots = 2
								add_building_construction = {
									type = anti_air_building
									level = 2
									instant_build = yes
								}
							}
							random_owned_controlled_state = {
								if = {
									limit = {
										is_core_of = ROOT
										free_building_slots = {
											building = anti_air_building
											size > 0
										}
									}
								}
								add_extra_state_shared_building_slots = 2
								add_building_construction = {
									type = anti_air_building
									level = 2
									instant_build = yes
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = MOR
								}
							}
							HRL_increase_gaddafi = yes
							add_ideas = high_military
							add_ideas = high_industry
							HRL_arab_world_increase = yes
							if = {
								limit = {
									country_exists = WES
								}
								declare_war_on = {
									target = WES
									type = annex_everything
								}
							}
							else = {
								puppet = WES
								WES = {
									transfer_state = 699
									transfer_state = 882
									set_cosmetic_tag = WES_Ghaddafi
									add_country_leader_role = {
										character = WES_Brahim_Ghali
										promote_leader = yes
										country_leader = {
											ideology = left_nationalism
											traits = {
											}
										}
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = WES
								}
							}
							puppet = WES
							WES = {
								transfer_state = 699
								transfer_state = 882
								set_cosmetic_tag = WES_Ghaddafi
								add_country_leader_role = {
									character = WES_Brahim_Ghali
									promote_leader = yes
									country_leader = {
										ideology = left_nationalism
										traits = {
										}
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GADDAFIS WILD RIDE Super Event Edition
					limit = {
						FROM = {
							original_tag = HRL
						}
						ROOT = {
							OR = {
								original_tag = EGY
								original_tag = MUS
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						every_state = {
							limit = {
								is_core_of = EGY
							}
							add_core_of = HRL
						}
						if = {
							limit = {
								has_country_flag = SOV_sent_economic_assistance
							}
							SOV = {
								country_event = {
									id = russia.79
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# HOU victory
					limit = {
						FROM = {
							OR = {
								original_tag = HOU
								is_ally_with = HOU
							}
						}
						ROOT = {
							OR = {
								original_tag = AAS
								original_tag = YEM
							}
						}
					}
					HOU = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						transfer_state = 927
						if = {
							limit = {
								NOT = {
									country_exists = AAS
									country_exists = YEM
								}
							}
							news_event = {
								id = news.117
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# YEMEN Jihadists
					limit = {
						FROM = {
							original_tag = AAS
						}
						ROOT = {
							OR = {
								original_tag = HOU
								original_tag = YEM
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						transfer_state = 927
						if = {
							limit = {
								NOT = {
									country_exists = HOU
									country_exists = YEM
								}
							}
							news_event = {
								id = news.118
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# YEMEN Hadi Government
					limit = {
						FROM = {
							original_tag = YEM
						}
						ROOT = {
							OR = {
								original_tag = HOU
								original_tag = AAS
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}

					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# APA Victory
					limit = {
						FROM = {
							original_tag = APA
						}
						ROOT = {
							original_tag = NMX
						}
					}
					FROM = {
						if = {
							limit = {
								BRN = {
									is_puppet_of = APA
								}
							}
							BRN = {
								transfer_state = 839
								transfer_state = 1038
								transfer_state = 1240
								transfer_state = 1235
								transfer_state = 376
								transfer_state = 1183
							}
						}
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GMA New England
					limit = {
						FROM = {
							original_tag = GMA
						}
						ROOT = {
							OR = {
								original_tag = PTF
								original_tag = SAT
								original_tag = GMC
								original_tag = FAA
								original_tag = NEG
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# GMA New England
					limit = {
						FROM = {
							original_tag = GMC
						}
						ROOT = {
							OR = {
								original_tag = PTF
								original_tag = SAT
								original_tag = NEG
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					FAA = {
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# TRA Kill MOL
					limit = {
						FROM = {
							original_tag = TRA
						}
						ROOT = {
							original_tag = MOL
						}
					}
					FROM = {
						if = {
							limit = {
								SOV = {
									has_global_flag = SOV_cprf_won
								}
							}
							white_peace = ROOT
							puppet = ROOT
							annex_country = {
								target = PREV
								transfer_troops = no
							}
							set_politics = {
								ruling_party = communist
								elections_allowed = yes
							}
							add_popularity = {
								ideology = communist
								popularity = 0.35
							}
							set_cosmetic_tag = MOL_ssr
							add_state_core = 78
							SOV = {
								add_to_faction = TRA
							}
						}	
						else_if = {
							limit = {
								SOV = {
									has_global_flag = SOV_ldpr_won
								}
							}
							white_peace = ROOT
							puppet = ROOT
							annex_country = {
								target = PREV
								transfer_troops = no
							}
							set_cosmetic_tag = TRA_zhir
							add_state_core = 78
							SOV = {
								add_to_faction = TRA
							}
						}
						else = {
							white_peace = ROOT
							puppet = ROOT
							SOV = {
								add_to_faction = TRA
							}			
							SOV = {
								add_to_faction = MOL
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SYR kill ROJ
					limit = {
						FROM = {
							original_tag = SYR
						}
						ROOT = {
							original_tag = ROJ
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						remove_ideas = SYR_devistated_economy
						remove_ideas = SYR_war_exhaustion
						remove_ideas = SYR_alawite_dominated_army
						random_owned_controlled_state = {
							if = {
								limit = {
									free_building_slots = {
										building = industrial_complex
										size > 3
										include_locked = yes
									}
								}
								add_extra_state_shared_building_slots = 3
								add_building_construction = {
									type = industrial_complex
									level = 3
									instant_build = yes
								}
							}
						}
						random_owned_controlled_state = {
							if = {
								limit = {
									free_building_slots = {
										building = arms_factory
										size > 3
										include_locked = yes
									}
								}
								add_extra_state_shared_building_slots = 3
								add_building_construction = {
									type = arms_factory
									level = 3
									instant_build = yes
								}
							}
						}
						increase_poverty = yes
						increase_industry = yes
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill HEZ
					limit = {
						FROM = {
							NOT = {
								original_tag = FAF
								is_ally_with = FAF
							}
							OR = {
								original_tag = GER
								is_ally_with = GER
								original_tag = ISR
							}
						}
						ROOT = {
							original_tag = HEZ
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = GER
						white_peace = FRA
						white_peace = ENG
						ISR = {
							puppet = HEZ
						}
						set_cosmetic_tag = HEZ_idf
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.4
						}
						create_country_leader = {
							name = HEZ_aviv_kochavi
							picture = "Aviv Kochavi.png"
							ideology = military_democracy
							traits = {
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill EGY
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = EGY
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = GER
						white_peace = FRA
						white_peace = ENG
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = EGY
							puppet = GDL
						}
						if = {
							limit = {
								EGY = {	
									controls_state = 813
									controls_state = 453
								}
							}
							GDL = {
								add_state_core = 453
								add_state_core = 813
								transfer_state = 453
								transfer_state = 813
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.4
								}
							}
						}
						create_country_leader = {
							name = NATO_interim_government
							picture = "NATO Mandate Council.dds"
							ideology = military_democracy
							traits = {
							}
						}
						add_ideas = NATO_unstable_administration
						add_ideas = NATO_devestated_economy
						set_cosmetic_tag = EGY_nato
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.5
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill SYR
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							NOT = {
								original_tag = FAF
								is_ally_with = FAF
							}
							OR = {
								original_tag = GER
								is_ally_with = GER
								original_tag = ISR
							}
						}
						ROOT = {
							original_tag = SYR
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = GER
						white_peace = FRA
						white_peace = ENG
						ROJ = {
							transfer_state = 1029
							add_state_core = 1029
							transfer_state = 814
							add_state_core = 814
							transfer_state = 1028
							add_state_core = 1028
							transfer_state = 1035
							add_state_core = 1035
			                if = {
			                    limit = {
			                        KUR = { owns_state = 815 }
				                }
			                    country_event = { id = syria.35 days = 7 }
			                }
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = SYR
							add_to_faction = SYR
						}
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.4
						}
						create_country_leader = {
							name = NATO_interim_government
							picture = "NATO Mandate Council.dds"
							ideology = military_democracy
							traits = {
							}
						}
						set_party_name = {
							ideology = authoritarian_democrat
							long_name = NATO_military_administration_party_long
							name = NATO_military_administration_party
						}
						set_cosmetic_tag = SYR_nato
						add_ideas = NATO_unstable_administration
						add_ideas = NATO_devestated_economy
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill SER
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SER
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						if = {
							limit = {
								has_global_flag = nato_nato_won_nato_war
							}
							remove_ideas = SER_emerging_economy
							remove_ideas = SER_policy_of_pragmatism
							remove_ideas = SER_rebellion_of_kosovo
							remove_ideas = SER_contentious_2017_election
							white_peace = GER
							white_peace = FRA
							white_peace = ENG
							KOS = {
								transfer_state = 1305
								transfer_state = 785
							}
							BOS = {
								transfer_state = 849
								transfer_state = 104
								transfer_state = 848
							}
							MNT = {
								transfer_state = 105
							}
							MAC = {
								transfer_state = 106
							}
							release = CRO
							release = SLV
							set_cosmetic_tag = SER_nato
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.4
							}
							create_country_leader = {
								name = GER_NATO_administration_char
								picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
								ideology = military_democracy
							}
							every_country = {
								limit = {
									has_country_flag = NATO_current_leader
								}
								add_to_faction = SER
								add_to_faction = CRO
								add_to_faction = SLV
							}
							add_ideas = NATO_unstable_administration
							add_ideas = NATO_devestated_economy
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill HRL
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
								original_tag = HAR
							}
						}
						ROOT = {
							original_tag = HRL
						}
					}
					FROM = {
						white_peace = ROOT
						MOR = {
							transfer_state = 290
							transfer_state = 461
							transfer_state = 462
							transfer_state = 699
							transfer_state = 882
						}
						ALG = {
							transfer_state = 514
							transfer_state = 513
							transfer_state = 459
							transfer_state = 460
							transfer_state = 1331
						}
						TUN = {
							transfer_state = 665
							transfer_state = 458
						}
					}
					every_country = {
						limit = {
							has_country_flag = NATO_current_leader
						}
						puppet = HRL
					}
					ROOT = {
						add_ideas = {
							HRL_lawless_desert
							HRL_slave_trade
							NATO_unstable_administration
							NATO_devestated_economy
						}
						remove_ideas = {
							HRL_republican_guard
							HRL_emerging_economy
							HRL_gaddafis_ghost
							HRL_arab_world_1
							HRL_arab_world_2
							HRL_arab_world_3
							HRL_arab_world_4
							HRL_arab_world_5
							HRL_arab_world_6
						}
						set_cosmetic_tag = HRL_nato
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						create_country_leader = {
							name = GER_NATO_administration_char
							picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
							ideology = military_democracy
						}
						set_party_name = {
							ideology = authoritarian_democrat
							long_name = NATO_military_administration_party_long
							name = NATO_military_administration_party
						}
						annex_country = {
							target = HAR
							transfer_troops = no
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# Europe kill ITA
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							NOT = {
								is_ally_with = FAF
							}
						}
						ROOT = {
							original_tag = ITA
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = nationalist
										has_government = national_socialist
										has_completed_focus = GER_a_new_october
									}
								}
							}
							puppet = ROOT
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = GER_EUU
								kill_country_leader = yes
								create_country_leader = {
									name = FRA_European_Commission_char
									picture = "European Commission.dds"
									ideology = ultra_liberalism
									traits = {
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill PLD
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = PLD
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = nationalist
										has_government = national_socialist
									}
								}
							}
							GER = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
							if = {
								limit = {
									NOT = {
										MLD = {
											is_puppet_of = GER
										}
									}
								}
								GER = {
									declare_war_on = {
										target = MLD
										type = annex_everything
									}
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							GER = {
								puppet = ROOT
								declare_war_on = {
									target = MLD
									type = annex_everything
								}
								declare_war_on = {
									target = SOV
									type = annex_everything
								}
							}
							PLD = {
								set_politics = {
									ruling_party = libertarian_socialist
									elections_allowed = no
									last_election = "1810.12.17"
								}
								set_capital = {
									state = 855
									remember_old_capital = no
								}
								drop_cosmetic_tag = yes
								declare_war_on = {
									target = MLD
									type = annex_everything
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							puppet = ROOT
							ROOT = {
								set_cosmetic_tag = POL_euro_commission
								kill_country_leader = yes
								create_country_leader = {
									name = FRA_European_Commission_char
									picture = "European Commission.dds"
									ideology = ultra_liberalism
									traits = {
									}
								}
								add_popularity = {
									ideology = conservative
									popularity = 0.2
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.07
								}
								if = {
									limit = {
										CZE = {
											is_puppet_of = GER
										}
									}
									annex_country = {
										target = CZE
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill balkans
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							OR = {
								original_tag = SLV
								original_tag = CRO
								original_tag = ALB
								original_tag = MNT
								original_tag = MAC
								original_tag = BOS
								original_tag = KOS
								original_tag = GRK								
							}
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						if = {	
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = nationalist
									}
								}
							}
							if = {
								limit = {
									ROOT = {
										tag = BOS
									}
								}
								HAW = {
									add_state_core = 849
									add_state_core = 104
									add_state_core = 851
									add_state_core = 850
									add_state_core = 849
									add_state_core = 848
									transfer_state = 849
									transfer_state = 104
									transfer_state = 851
									transfer_state = 850
									transfer_state = 849
									transfer_state = 848
								}
							}
							if = {
								limit = {
									ROOT = {
										tag = MNT
									}
								}
								HAW = {
									add_state_core = 105
									transfer_state = 105
								}
							}
							if = {
								limit = {
									ROOT = {
										tag = ALB
									}
								}
								HAW = {
									add_state_core = 886
									add_state_core = 44
									transfer_state = 886
									transfer_state = 44
								}
								ITA = {
									puppet = HAW
								}
							}
							if = {
								limit = {
									ROOT = {
										tag = KOS
									}
								}
								SER = {
									transfer_state = 785
									transfer_state = 1305
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
									NOT = { has_completed_focus = GER_democracy_now }
									is_faction_leader = yes
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									GER = {
										puppet = GRE
									}									
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
						else_if = {
							limit = {
								FRA = {
									has_completed_focus = FRA_EU_European_Emergency
									is_faction_leader = yes
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									FRA = {
										puppet = GRE
									}
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill SER
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SER
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						if = {
							limit = {
								GER = {
									has_government = nationalist
								}
							}
							SER = {
								set_cosmetic_tag = SER_yugo_euro
							}
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
									}
								}
							}
						}
						if = {
							limit = {
								CRO = {
									exists = yes
								}
							}
							CRO = {
								transfer_state = 103
								transfer_state = 109
								transfer_state = 163
								transfer_state = 736
							}
							GER = {
								add_to_faction = CRO
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
									NOT = { has_completed_focus = GER_democracy_now }
									is_faction_leader = yes
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									GER = {
										puppet = GRE
									}
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
						else_if = {
							limit = {
								FRA = {
									has_completed_focus = FRA_EU_European_Emergency
									is_faction_leader = yes
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									FRA = {
										puppet = GRE
									}
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_gotterdammerung
								}
							}
							CRO = {
								transfer_state = 736
								add_state_core = 736
								transfer_state = 163
								add_state_core = 163
								transfer_state = 103
								add_state_core = 103
								transfer_state = 851
								add_state_core = 851
								transfer_state = 848
								add_state_core = 848
								transfer_state = 104
								add_state_core = 104
								transfer_state = 850
								add_state_core = 850
								transfer_state = 109
								add_state_core = 109
								transfer_state = 1306
								add_state_core = 1306
								
							}
							SER = {
								drop_cosmetic_tag = yes
							}
							HAW = {
								add_state_core = 44
								transfer_state = 44
							}
							ITA = {
								puppet = HAW
							}
							GRE = {
								transfer_state = 886
								add_state_core = 886
							}
							if = {
								limit = {
									AUS = {
										is_puppet_of = GER
									}
								}
								AUS = {
									transfer_state = 102
									add_state_core = 102
									transfer_state = 900
									add_state_core = 900
									GER = {
										puppet = CRO
									}
								}
							}
							else = {
								GER = {
									transfer_state = 102
									add_state_core = 102
									transfer_state = 900
									add_state_core = 900
									puppet = CRO
								}	
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill CZE
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = CZE
						}
					}
					FROM = {
						white_peace = ROOT
						ROOT = {
							if = {
								limit = {
									GER = {
										has_government = nationalist
									}
								}
								GER = {
									puppet = ROOT
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
									last_election = "1810.12.17"
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.4
								}
							}
							else_if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = national_socialist
										}
									}
								}
								GER = {
									annex_country = {
										target = ROOT
										transfer_troops = no
									}
								}
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								GER = {
									puppet = ROOT
								}
								CZE = {
									set_politics = {
										ruling_party = communist
										elections_allowed = no
										last_election = "1810.12.17"
									}
								}
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
									}
								}
								if = {
									limit = {
										PLD = {
											is_puppet_of = GER
										}
									}
									PLD = {
										annex_country = {
											target = CZE
										}
									}
								}
							}
							else_if = {
								limit = {
									PLD = {
										NOT = {
											is_puppet_of = GER
										}
									}
								}
								set_cosmetic_tag = GER_EUU
								GER = {
									puppet = ROOT
								}
							}
							if = {
								limit = {
									FROM = {
										tag = SOV
									}
									has_global_flag = SOV_nato_war_begins_global
								}
								white_peace = CZE
								CZE = {
									leave_faction = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SNS kill PRS
					limit = {
						FROM = {
							original_tag = SNS
						}
						ROOT = {
							original_tag = PRS
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								GAL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GAL
								type = annex_everything
							}
						}
						if = {
							limit = {
								LCA = {
									exists = yes
								}
							}
							declare_war_on = {
								target = LCA
								type = annex_everything
							}
						}
						if = {
							limit = {
								GOL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GOL
								type = annex_everything
							}
						}
						if = {
							limit = {
								ADU = {
									exists = yes
								}
							}
							declare_war_on = {
								target = ADU
								type = annex_everything
							}
						}
						if = {
							limit = {
								CAT = {
									exists = yes
								}
							}
							declare_war_on = {
								target = CAT
								type = annex_everything
							}
						}
						if = {
							limit = {
								BAR = {
									exists = yes
								}
							}
							declare_war_on = {
								target = BAR
								type = annex_everything
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = PRS
									country_exists = RSR
									country_exists = BSQ
								}
							}
							set_cosmetic_tag = SNS_spr
							add_ideas = SPR_plus_ultra
							GER = {
								country_event = { id = spain.7 days = 30 }
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SNS kill SPR
					limit = {
						FROM = {
							original_tag = SNS
						}
						ROOT = {
							original_tag = SPR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								GAL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GAL
								type = annex_everything
							}
						}
						if = {
							limit = {
								LCA = {
									exists = yes
								}
							}
							declare_war_on = {
								target = LCA
								type = annex_everything
							}
						}
						if = {
							limit = {
								GOL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GOL
								type = annex_everything
							}
						}
						if = {
							limit = {
								ADU = {
									exists = yes
								}
							}
							declare_war_on = {
								target = ADU
								type = annex_everything
							}
						}
						if = {
							limit = {
								CAT = {
									exists = yes
								}
							}
							declare_war_on = {
								target = CAT
								type = annex_everything
							}
						}
						if = {
							limit = {
								BAR = {
									exists = yes
								}
							}
							declare_war_on = {
								target = BAR
								type = annex_everything
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = PRS
									country_exists = RSR
									country_exists = BSQ
								}
							}
							set_cosmetic_tag = SNS_spr
							add_ideas = SPR_plus_ultra
							GER = {
								country_event = { id = spain.7 days = 30 }
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SYR kill JOR
					limit = {
						FROM = {
							original_tag = SYR
						}
						ROOT = {
							original_tag = JOR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						every_state = {
							limit = {
								is_core_of = JOR
							}
							add_core_of = SYR
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Arab Victory
					limit = {
						FROM = {
							OR = {
								original_tag = SYR
								original_tag = HEZ
								original_tag = PAL
								original_tag = EGY
								original_tag = JOR							
							}
						}
						ROOT = {
							original_tag = ISR
						}
					}
					PAL = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					SYR = {
				    dismantle_faction = yes					
					transfer_state = 881
					country_event = { id = syria.33 days = 30 }
						if = {
							limit = {
								has_country_flag = SOV_sent_economic_assistance
							}
							SOV = {
								country_event = {
									id = russia.78
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
					news_event = {
						id = news.219
					}
				}
				if = {
					# Iraq loses to Iran
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								is_ally_with = PER
							}
						}
						ROOT = {
						    OR = {
							original_tag = BUK
							original_tag = ABK
							original_tag = IAI
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					IRQ ={
					transfer_state = 291 
                        annex_country = {
						target = ROOT
						transfer_troops = no
					    }
					}
					PER = {
						puppet = IRQ
					}
					IRQ = {
						set_cosmetic_tag = IRQ_Iran_Occupation
						set_country_flag = AOR_Member
						set_politics = {
							ruling_party = nationalist
							last_election = "2021.11.8"
							election_frequency = 48
							elections_allowed = no
						}
						add_popularity = {
							ideology = nationalist
							popularity = 1
						}
						remove_ideas = IRQ_iraqi_civil_war
						add_ideas = PER_islamic_republic_stronghold_idea
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Syria Iraq Victories
					limit = {
						FROM = {
							original_tag = SYR
						}
						ROOT = {
							OR = {
								original_tag = ABK
								original_tag = BUK
								original_tag = KUR
								original_tag = IRQ
								original_tag = ISS
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						every_state = {
							limit = {
								is_core_of = ROOT
							}
							add_core_of = FROM
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Russia kill ROM
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = ROM
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
					}
					ROOT = {
						EU_leave_effect = yes
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# WLC kill ROM
					limit = {
						FROM = {
							original_tag = WLC
						}
						ROOT = {
							original_tag = ROM
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						random_list = {
							50 = {

							}
							50 = {
								country_event = { 
									id = romania.3
									day = 15
									random_days = 75
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ROM kill WLC
					limit = {
						FROM = {
							original_tag = ROM
						}
						ROOT = {
							original_tag = WLC
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill SWE
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SWE
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							puppet = ROOT
							transfer_state = 124
						}
						ROOT = {
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.4
								}
								set_country_leader_ideology = military_democracy
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill DEN
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = DEN
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							puppet = ROOT
						}
						ROOT = {
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.4
								}
								set_country_leader_ideology = autocrat
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill NOR
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = NOR
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							puppet = ROOT
						}
						ROOT = {
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.4
								}
								set_country_leader_ideology = autocrat
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill FIN
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							OR = {
								original_tag = FIN
							}
						}
					}
					ROOT = {
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = nationalist
										has_government = national_socialist
									}
								}
							}
							set_politics = {
								ruling_party = fascist
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = fascist
								popularity = 0.4
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							SWE = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill AUS
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = AUS
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							GER = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							GER = {
								puppet = ROOT
							}
						}
						else_if = {
							limit = {
								ITA = {
									OR = {
										has_government = communist
										has_government = libertarian_socialist
										has_government = fascist
										has_government = nationalist
										has_government = authoritarian_democrat
									}
								}
							}
							GER = {
								puppet = ROOT
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill SWI
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = FPR
								is_ally_with = GER
								is_ally_with = FPR
							}
						}
						ROOT = {
							original_tag = SWI
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
									NOT = { has_completed_focus = GER_democracy_now }
								}
							}
							GER = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
							FRA = {
								transfer_state = 3
							}
							ITA = {
								transfer_state = 838
							}
						}
						else_if = {
							limit = {
								FPR = {
									has_completed_focus = FPR_Operation_Montagne
								}	
							}
							FPR = {
								transfer_state = 3
								puppet = SWI
							}
							SWI = {
								set_cosmetic_tag = SWI_Peoples_United_Cantons
								remove_ideas = swiss_political_system
								set_politics = {
									ruling_party = communist
									elections_allowed = no
									last_election = "1935.12.17"
									election_frequency = 48
								}
								hidden_effect = {
									set_popularities = {
										communist = 55
										libertarian_socialist = 10
										social_democrat = 5
										totalitarian_socialist = 30
									}	
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									has_completed_focus = FAF_Bern_Initiative
								}	
							}
							FAF = {
								transfer_state = 3
								puppet = SWI
							}
							IF = {
								LIMIT = {
									country_exists = LOM
									LOM = {
										owns_state = 159
									}
								}
								LOM = {
									transfer_state = 838
								}
							}
							ELSE_IF = {
								LIMIT = {
									ITA = {
										owns_state = 159
									}
								}
								ITA = {
									transfer_state = 838
								}
							}
							ELSE = {
								FAF = {
									transfer_state = 838
								}
							}
							SWI = {
								set_cosmetic_tag = SWI_Helvetic_State
								remove_ideas = swiss_political_system
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "1935.12.17"
									election_frequency = 48
								}
								hidden_effect = {
									set_popularities = {
										nationalist = 30
										authoritarian_democrat = 10
										national_socialist = 5
										fascist = 55
									}
								}
							}
						}
						else_if = {
							limit = {
								FAF = {
									exists = yes
									NOT = {
										has_completed_focus = FAF_Bern_Initiative
									}
								}	
							}
							FAF = {
								transfer_state = 3
							}
							ITA = {
								transfer_state = 838
							}
							GER = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill GRK
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
								original_tag = GRE
							}
						}
						ROOT = {
							original_tag = GRK
						}
						GER = {
							is_puppet = no
						}
					}
					FROM = {
						white_peace = ROOT
						GRE = {
							annex_country = {
								target = GRK
								transfer_troops = no
							}
						}
						GER = {
							add_to_faction = GRE
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill GRE
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
								original_tag = GRK
							}
						}
						ROOT = {
							original_tag = GRE
						}
						GER = {
							NOT = { has_completed_focus = GER_democracy_now }
							is_puppet = no
						}
					}
					FROM = {
						white_peace = ROOT
						GRK = {
							annex_country = {
								target = GRE
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				#				         #
				# SERBIA TOTAL VICTORIES #
				#				         #
				if = {
					# SER Kill BOS
					limit = {
						FROM = {
							original_tag = SER
						}
						ROOT = {
							original_tag = BOS
						}
					}
					FROM = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = conservative
									has_government = authoritarian_democrat
									has_government = social_democrat
									has_government = social_liberal
								}
							}
							white_peace = ROOT
							puppet = ROOT
							transfer_state = 850
							transfer_state = 848
							transfer_state = 849
							ROOT = {
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								create_country_leader = {
									name = "GORSHOK BLYAT"
									picture = "gfx/leaders/Europe/politician15.png"
									ideology = ultra_conservatism
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = nationalist
									has_government = fascist
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# BOS Kill SER
					limit = {
						FROM = {
							original_tag = BOS
						}
						ROOT = {
							original_tag = SER
						}
					}
					FROM = {
						if = {
							white_peace = ROOT
						}
						remove_ideas = BOS_collapsing_condominium
						add_popularity = {
							ideology = nationalist
							popularity = -0.2
						}
						add_popularity = {
							ideology = social_democrat
							popularity = -0.1
						}
					}
					ROOT = {
						country_event = { 
							id = serbia.16
							days = 1
						}
						add_ideas = SER_Reformed_UCK_Terrorism_idea
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# KOS Kill SER
					limit = {
						FROM = {
							original_tag = KOS
						}
						ROOT = {
							original_tag = SER
						}
					}
					FROM = {
						if = {
							white_peace = ROOT
						}
					}
					ROOT = {
						country_event = { 
							id = serbia.16
							days = 1
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SER Kill CRO
					limit = {
						FROM = {
							original_tag = SER
						}
						ROOT = {
							OR = {
								original_tag = CRO
							}
						}
					}
					FROM = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							set_cosmetic_tag = SER_yug
							set_country_flag = SER_yugoslavia_formed
							white_peace = ROOT
							news_event = {
								id = news.292
								days = 1
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							annex_country = {
								target = SLV
								transfer_troops = no
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = conservative
									has_government = authoritarian_democrat
								}
							}
							transfer_state = 1306
							white_peace = ROOT
							white_peace = SLV
							puppet = ROOT
							puppet = SLV
							ROOT = {
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								create_country_leader = {
									name = SER_serbian_military_administration
									picture = "gfx/leaders/SER/Serbian_Army.png"
									ideology = military_democracy
								}
								add_popularity = {
									popularity = 0.1
									ideology = authoritarian_democrat
								}
								set_party_name = {
									long_name = SER_serbian_army
									name = SER_serbian_army
									ideology = authoritarian_democrat
								}
							}
							SLV = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								create_country_leader = {
									name = SER_serbian_military_administration
									picture = "gfx/leaders/SER/Serbian_Army.png"
									ideology = military_junta
								}
								add_popularity = {
									popularity = 0.5
									ideology = nationalist
								}
								set_party_name = {
									long_name = SER_serbian_army
									name = SER_serbian_army
									ideology = nationalist
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = nationalist
									has_government = fascist
								}
							}
							white_peace = ROOT
							white_peace = SLV
							puppet = ROOT
							puppet = SLV
							transfer_state = 1306
							transfer_state = 103
							ROOT = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								create_country_leader = {
									name = SER_serbian_military_administration
									picture = "gfx/leaders/SER/Serbian_Army.png"
									ideology = military_junta
								}
								add_popularity = {
									popularity = 0.5
									ideology = nationalist
								}
								set_party_name = {
									long_name = SER_serbian_army
									name = SER_serbian_army
									ideology = nationalist
								}
							}
							SLV = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								create_country_leader = {
									name = SER_serbian_military_administration
									picture = "gfx/leaders/SER/Serbian_Army.png"
									ideology = military_junta
								}
								add_popularity = {
									popularity = 0.5
									ideology = nationalist
								}
								set_party_name = {
									long_name = SER_serbian_army
									name = SER_serbian_army
									ideology = nationalist
								}
							}
							set_cosmetic_tag = SER_greater
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# CRO Kill SER
					limit = {
						FROM = {
							original_tag = CRO
						}
						ROOT = {
							OR = {
								original_tag = SER
							}
						}
					}
					FROM = {
						if = {
							limit = {
								OR = {
									has_government = fascist
									has_government = national_socialist
								}
							}
							transfer_state = 104
							transfer_state = 848
							transfer_state = 849
							transfer_state = 850
							transfer_state = 851
						}
						white_peace = ROOT
					}
					ROOT = {
						country_event = { 
							id = serbia.16
							days = 1
						}
						add_ideas = SER_Reformed_UCK_Terrorism_idea
					}
					set_global_flag = skip_default_capitulation
				}
				#						  #
				# RESTORING THE U N I O N #
				#						  #
				if = {
					# SOV Kill BLR
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = BLR
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							SOV = {
								country_event = {
									id = russia.115
									days = 7
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							white_peace = ROOT
							get_current_government_type = yes
							SOV = {
								set_autonomy = {
									target = ROOT
									autonomous_state = autonomy_ssr
								}
							}
							restore_previous_government_type = yes
							ROOT = {
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = national_socialist
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							annex_country = {
								target = BLR
								transfer_troops = no
							}
							SOV = {
								if = {
									limit = {
										has_country_leader = {
											character = SOV_vladimir_zhirinovsky
											ruling_only = yes
										}
									}
									country_event = {
										id = russia.268
										days = 7
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill Central Asia
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = KAZ
								original_tag = UZB
								original_tag = TAJ
								original_tag = TMS
								original_tag = KYR
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									OR = {
										has_government = communist
										has_government = libertarian_socialist
									}
									NOT = {
										has_country_leader = {
											character = SOV_sergei_mironov
											ruling_only = yes
										}
									}
								}
							}
							white_peace = ROOT
							get_current_government_type = yes
							SOV = {
								set_autonomy = {
									target = ROOT
									autonomous_state = autonomy_ssr
								}
							}
							restore_previous_government_type = yes
							ROOT = {
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_alexei_navalny
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							if = {
								limit = {
									ROOT = {
										tag = KAZ
									}
								}
								transfer_state = 583
								transfer_state = 590
								transfer_state = 588
								add_state_core = 583
								add_state_core = 590
								add_state_core = 588
								ROOT = {
									set_politics = {
										ruling_party = conservative
										elections_allowed = no
									}
									set_popularities = {
										conservative = 54
										authoritarian_democrat = 46
									}
									create_country_leader = {
										name = KAZ_aidarbek_qojanazarov
										picture = "gfx/leaders/KAZ/Aidarbek_Qojanazarov.png"
										ideology = right_centrist
									}
									set_party_name = {
										ideology = conservative
										long_name = SOV_KAZ_navalny_party
										name = SOV_KAZ_navalny_party
									}
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									OR = {
										has_country_leader = {
											character = SOV_sergei_mironov
											ruling_only = yes
										}
										has_country_leader = {
											character = SOV_dmitry_medvedev
											ruling_only = yes
										}
									}
									NOT = {
										has_country_flag = KAZ_operation
									}
								}
								ROOT = {
									tag = KAZ
								}
							}
							white_peace = ROOT
							puppet = ROOT
							transfer_state = 583
							transfer_state = 590
							transfer_state = 588
							add_state_core = 583
							add_state_core = 590
							add_state_core = 588
						}
						else_if = {
							limit = {
								SOV = {
									OR = {
										has_government = authoritarian_democrat
										has_government = nationalist
									}
									has_country_flag = KAZ_operation
								}
								ROOT = {
									tag = KAZ
								}
							}
							white_peace = ROOT
							transfer_state = 583
							transfer_state = 590
							transfer_state = 588
							add_state_core = 583
							add_state_core = 590
							add_state_core = 588
							if = {
								limit = {
									has_country_flag = SOV_more_territories_demanded_flag
								}
								transfer_state = 406
								transfer_state = 407
								add_state_core = 407
								add_state_core = 406
								set_province_name = {
									id =3618
									name = guryev_city
								}
								clr_country_flag = SOV_more_territories_demanded_flag
							}
							SOV = {
								country_event = {
									id = russia.439
									days = 20
								}
								add_to_faction = KAZ
							}
							ROOT = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 54
									authoritarian_democrat = 46
								}
								set_country_flag = csto_member
							}
							clr_country_flag = KAZ_operation
						}
						else_if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						else_if = {
							limit = {
								SOV = {
									OR = {
										has_country_leader = {
											character = SOV_sergei_mironov
											ruling_only = yes
										}		
										has_country_leader = {
											character = SOV_dmitry_medvedev
											ruling_only = yes
										}
									}
								}
								ROOT = {
									tag = TMS
								}
							}
							TMS = {
								remove_ideas = TMS_totalitarian_cult_state_idea
							}
							white_peace = ROOT
							puppet = ROOT
						}
						else_if = {
							limit = {
								SOV = {
									OR = {
										has_country_leader = {
											character = SOV_sergei_mironov
											ruling_only = yes
										}		
										has_country_leader = {
											character = SOV_dmitry_medvedev
											ruling_only = yes
										}
									}
								}
								ROOT = {
									tag = UZB
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								set_politics = {
									ruling_party = social_liberal
									elections_allowed = no
								}
								set_popularities = {
									social_liberal = 34
									conservative = 19
									social_democrat = 15
									market_liberal = 7
									libertarian_socialist = 9
									fascist = 6
									nationalist = 10
								}
							}
						}
						else_if = {
							limit = {
								NOT = { has_global_flag = nato_nato_won_nato_war }
								ROOT = {
									tag = TMS
								}
							}
							TMS = {
								remove_ideas = TMS_totalitarian_cult_state_idea
							}
							white_peace = ROOT
							puppet = ROOT
							if = {
								limit = {
									has_global_flag = SOV_cprf_won
								}
								ROOT = {
									country_event = {
										id = russia.127
									}
								}
							}
						}
						else = {
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill Caucauses
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
							}
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							get_current_government_type = yes
							SOV = {
								set_autonomy = {
									target = ROOT
									autonomous_state = autonomy_ssr
								}
							}
							restore_previous_government_type = yes
							ROOT = {
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							else = {
								white_peace = ROOT
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
							}
						}
						else = {
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					ROOT = {
						if = {
							limit = {
								tag = GEO
								NOT = {
									country_exists = AZR
								}
							}
							SOV = {
								country_event = {
									id = russia.150
									days = 60
								}
							}
						}
						if = {
							limit = {
								tag = AZR
								SOV = {
									OR = {
										has_country_leader = {
											character = SOV_sergei_mironov
											ruling_only = yes
										}		
										has_country_leader = {
											character = SOV_dmitry_medvedev
											ruling_only = yes
										}
									}
								}
							}
							AZR = {
								set_politics = {
									ruling_party = conservative
									elections_allowed = no
								}
								set_popularities = {
									conservative = 47
									authoritarian_democrat = 25
									social_democrat = 7
									social_liberal = 5
									fascist = 6
									nationalist = 10
								}
							}
						}
						if = {
							limit = {
								tag = AZR
								NOT = {
									country_exists = GEO
								}
							}
							SOV = {
								country_event = {
									id = russia.150
									days = 60
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill TALiban
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = TAL
							}
						}
					}
					SOV = {
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
							}
							white_peace = ROOT
							puppet = AFG
							AFG = {
								annex_country = {
									target = TAL
									transfer_troops = no
								}
								set_cosmetic_tag = AFG_soviet
								remove_ideas = {
									AFG_corrupt_military_staff
									AFG_unified_afghanistan
									SOM_failed_state
								}
								add_ideas = {
									AFG_diarchy
									AFG_crushing_taliban
								}
								set_politics = {
									ruling_party = totalitarian_socialist
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 12
									nationalist = 33
									social_democrat = 5
									conservative = 7
									communist = 10
									totalitarian_socialist = 33
								}
								leave_faction = yes
								clr_country_flag = mto_member
								SOV_join_ADS = yes
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_completed_focus = SOV_push_back_the_west
								}
							}
							white_peace = ROOT
							puppet = AFG
							AFG = {
								annex_country = {
									target = TAL
									transfer_troops = no
								}
								set_cosmetic_tag = AFG_russian
								remove_ideas = {
									AFG_corrupt_military_staff
									AFG_unified_afghanistan
									SOM_failed_state
								}
								add_ideas = {
									AFG_crushing_taliban
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									libertarian_socialist = 12
									nationalist = 33
									social_democrat = 5
									conservative = 7
									communist = 10
									authoritarian_democrat = 33
								}
								set_country_flag = csto_member
							}
							PAK = {
								if = {
									limit = {
										OR = {
											AFG = {
												controls_state = 442
											}
											TAL = {
												controls_state = 442
											}
										}
									}
									transfer_state = 442
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_completed_focus = SOV_putinism_with_human_face
								}
							}
							white_peace = ROOT
							puppet = AFG
							AFG = {
								annex_country = {
									target = TAL
									transfer_troops = no
								}
								set_cosmetic_tag = AFG_russian
								remove_ideas = {
									AFG_corrupt_military_staff
									AFG_unified_afghanistan
									SOM_failed_state
								}
								add_ideas = {
									AFG_crushing_taliban
								}
								set_politics = {
									ruling_party = social_democrat
									elections_allowed = no
								}
								set_popularities = {
									libertarian_socialist = 12
									nationalist = 33
									authoritarian_democrat = 5
									conservative = 7
									communist = 10
									social_democrat = 33
								}
								set_country_flag = csto_member
							}
							PAK = {
								if = {
									limit = {
										OR = {
											AFG = {
												controls_state = 442
											}
											TAL = {
												controls_state = 442
											}
										}
									}
									transfer_state = 442
								}
							}
						}
						else = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
							PAK = {
								if = {
									limit = {
										OR = {
											AFG = {
												controls_state = 442
											}
											TAL = {
												controls_state = 442
											}
										}
									}
									transfer_state = 442
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}			
				if = {
					# SOV Kill FIN
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = FIN
							}
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_global_flag = SOV_medvedev_won
									has_global_flag = SOV_ldpr_won
								}
							}
							white_peace = ROOT
							puppet = FIN
							FIN = {
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 12
									fascist = 33
									social_democrat = 5
									conservative = 7
									communist = 10
									nationalist = 33
								}
								set_country_flag = csto_member
								if = {
									limit = {
										has_global_flag = SOV_medvedev_won
									}
									SOV_join_brics = yes
									add_ideas = SOV_russo_finish_partnership_idea
								}
								if = {
									limit = {
										SOV = { has_completed_focus = SOV_reform_csto }
									}
									set_country_flag = csto_member
								}
								else_if = {
									limit = {
										SOV = { has_completed_focus = SOV_holy_union_reborn }
									}
									set_country_flag = hu_member
								}	
								else = {
									set_country_flag = csto_member
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_global_flag = SOV_cprf_won
								}
							}
							white_peace = ROOT
							puppet = FIN
							FIN = {
								set_politics = {
									ruling_party = communist
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 12
									communist = 33
									social_democrat = 5
									conservative = 7
									fascist = 10
									libertarian_socialist = 33
								}
								set_country_flag = mto_member
								SOV_join_ads = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill TUR
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = TUR
							}
						}
					}
					SOV = {
						if = {
							limit = {
								has_global_flag = SOV_medvedev_won
							}
							white_peace = ROOT
							puppet = TUR
							TUR = {
								random_list = {
									50 = {
										set_politics = {
											ruling_party = communist
											elections_allowed = no
										}
										set_popularities = {
											authoritarian_democrat = 12
											communist = 33
											social_democrat = 5
											conservative = 7
											libertarian_socialist = 10
											nationalist = 33
										}
										set_country_flag = csto_member
										if = {
											limit = {
												has_global_flag = SOV_medvedev_won
											}
											SOV_join_brics = yes
											add_ideas = SOV_russo_turkish_partnership_idea
										}
										set_party_name = {
											ideology = communist
											name = TUR_vatan_party
											long_name = TUR_vatan_party
										}
									}
									50 = {
										promote_character = TUR_Sinan_Ogan_char
										set_politics = {
											ruling_party = authoritarian_democrat
											elections_allowed = no
										}
										add_popularity = {
											ideology = authoritarian_democrat
											popularity = 0.25
										}
										set_country_flag = csto_member
										if = {
											limit = {
												has_global_flag = SOV_medvedev_won
											}
											SOV_join_brics = yes
											add_ideas = SOV_russo_turkish_partnership_idea
										}
										set_party_name = {
											ideology = authoritarian_democrat
											name = TUR_victory_party
											long_name = TUR_victory_party
										}
									}
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_global_flag = SOV_cprf_won
								}
							}
							white_peace = ROOT
							puppet = TUR
							TUR = {
								set_politics = {
									ruling_party = communist
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 12
									communist = 33
									social_democrat = 5
									conservative = 7
									fascist = 10
									libertarian_socialist = 33
								}
								set_country_flag = mto_member
								SOV_join_ads = yes
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_global_flag = SOV_ldpr_won
								}
							}
							white_peace = ROOT
							puppet = TUR
							TUR = {
								promote_character = TUR_umit_ozdag_char
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.33
								}
								set_party_name = {
									ideology = fascist
									long_name = TUR_victory_party
									name = TUR_victory_party
								}
								if = {
									limit = {
										SOV = { has_completed_focus = SOV_reform_csto }
									}
									set_country_flag = csto_member
								}		
								else_if = {
									limit = {
										SOV = { has_completed_focus = SOV_holy_union_reborn }
									}
									set_country_flag = hu_member
								}	
								else = {
									set_country_flag = csto_member
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}	
				if = {
					# ELN Kill ECU
					limit = {
						FROM = {
							OR = {
								original_tag = ELN
							}
						}
						ROOT = {
							OR = {
								original_tag = ECU
							}
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ECU
						ECU = {
							set_politics = {
								ruling_party = communist
								elections_allowed = no
							}
							add_ideas = VEN_world_anti_imperialist_platform_idea
						}
					}
					set_global_flag = skip_default_capitulation
				}
				#Japan Civil WAR
				if = {
					# JAP republic kill JAP
					limit = {
						FROM = {
							original_tag = JAP
							has_country_flag = JAP_udf_flag
						}
						ROOT = {
							original_tag = JAP
						}
					}
					FROM = {
						country_event = {
							id = jap.42
						}
						set_global_flag = JAP_civil_war_ended
						clr_global_flag = JAP_civil_war_started
						remove_dynamic_modifier = {
							modifier = JAP_civil_war_dynamic
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# JAP kill JAP republic
					limit = {
						FROM = {
							original_tag = JAP
						}
						ROOT = {
							original_tag = JAP
							has_country_flag = JAP_udf_flag
						}
					}
					FROM = {
						country_event = {
							id = jap.43
						}
						set_global_flag = JAP_civil_war_ended
						clr_global_flag = JAP_civil_war_started
						remove_dynamic_modifier = {
							modifier = JAP_civil_war_dynamic
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# USSR kill Balkans
					limit = {
						FROM = {
							OR = {
								is_ally_with = SOV
								original_tag = SOV
							}
							has_global_flag = SOV_first_nato_war_victory
							has_global_flag = SOV_cprf_won
						}
						ROOT = {
							OR = {
								original_tag = SER
								original_tag = SLV
								original_tag = CRO
								original_tag = BOS
								original_tag = MNT
								original_tag = KOS
								original_tag = ALB
								original_tag = MAC
							}
						}
					}
					BUL = {
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# USSR kill Mongolia
					limit = {
						FROM = {
							OR = {
								is_ally_with = SOV
								original_tag = SOV
							}
							has_global_flag = SOV_first_nato_war_victory
							has_global_flag = SOV_cprf_won
						}
						ROOT = {
							original_tag = MON
						}
					}
					white_peace = ROOT
					ROOT = {
						country_event = { id = russia.127 }
					}
					set_global_flag = skip_default_capitulation
				}
				#DEFAULT CAPITULATION
				if = {
					limit = {
						NOT = {
							has_global_flag = skip_default_capitulation
						}
					}
					#Annex every country they've been fighting against
					FROM = {
						every_enemy_country = {
							limit = {
								OR = {
									original_tag = ROOT
									is_in_faction_with = ROOT
									is_puppet_of = ROOT
								}
								NOT = {
									original_tag = APA
									original_tag = USB
									original_tag = USC
									original_tag = PTF
									original_tag = NSM
									original_tag = ATW
									original_tag = CAC
								}
							}
							FROM = {
								white_peace = PREV
								annex_country = {
									target = PREV
									transfer_troops = no
								}
							}
						}
					}
				}
				if = {
					# NATO kill SOV
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SOV
						}
					}
					ROOT = {
						dismantle_faction = yes
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							SOV_Zhir_defeat_in_2nd_European_War = yes
							GER = {
								puppet = SOV
							}
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							SOV_USSR_defeat_in_2nd_European_War = yes
							GER = {
								puppet = SOV
							}
						}
						else_if = {
							limit = {
								BEL = {
									OR = {
										has_government = social_liberal
										has_government = conservative
									}
								}
								GER = {
									exists = no
								}
							}
							SOV_Medv_defeat_in_2nd_European_War = yes
							GER = {
								puppet = SOV
							}
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_government = social_liberal
										has_government = conservative
									}
								}
								GER = {
									exists = yes
								}
							}
							news_event = {
								id = news.256
							}
							BEL = {
								set_autonomy = {
									target = SOV
									autonomous_state = autonomy_supervised_state
									freedom_level = 0.4
								}
							}
							SOV = {
								set_cosmetic_tag = SOV_nato
								set_politics = {
									ruling_party = social_liberal
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = social_liberal
									popularity = 0.35
								}
								create_country_leader = {
									name = NATO_mandate_council
									picture = "NATO Mandate Council.dds"
									ideology = supervised_democracy_liberal
									traits = {
									}
								}
								country_event = {
									id = russia.143
									days = 176
								}
								country_event = {
									id = russia.208
								}
							}
							UKR = {
								add_state_core = 137
								add_state_core = 1059
								add_state_core = 853
								add_state_core = 218
								add_state_core = 240
								add_state_core = 1283
								transfer_state = 137
								transfer_state = 1059
								transfer_state = 853
								transfer_state = 218
								transfer_state = 240
								transfer_state = 1283
							}
							NOA = {
								add_state_core = 237
								add_state_core = 217
								add_state_core = 236
								transfer_state = 236
								transfer_state = 217
								transfer_state = 237
								set_cosmetic_tag = NOA_volga
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.15
								}
								create_country_leader = {
									name = GER_richard_rossmanith
									picture = "Richard_Rossmanith.dds"
									ideology = military_democracy
									traits = {
									}
								}
								load_oob = "NOA_volga"
							}
							TAN = {
								add_state_core = 329
								transfer_state = 329
							}
							GLC = {
								add_state_core = 582
								add_state_core = 653
								add_state_core = 652
								add_state_core = 572
								add_state_core = 403
								add_state_core = 398
								transfer_state = 582
								transfer_state = 653
								transfer_state = 652
								transfer_state = 572
								transfer_state = 403
								transfer_state = 398
							}
							NAV = {
								add_state_core = 195
								add_state_core = 146
								add_state_core = 216
								add_state_core = 214
								add_state_core = 215
								add_state_core = 213
								add_state_core = 147
								add_state_core = 722
								transfer_state = 195
								transfer_state = 146
								transfer_state = 216
								transfer_state = 214
								transfer_state = 215
								transfer_state = 213
								transfer_state = 147
								transfer_state = 722
								set_cosmetic_tag = NAV_nato
							}
							KKP = {
								add_state_core = 239
								add_state_core = 401
								add_state_core = 250
								add_state_core = 251
								transfer_state = 239
								transfer_state = 250
								transfer_state = 251
								transfer_state = 401
								set_cosmetic_tag = KKP_ssr
								set_politics = {
									ruling_party = communist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.35
								}
							}
							YAM = {
								add_state_core = 580
								add_state_core = 579
								add_state_core = 403
								transfer_state = 580
								transfer_state = 579
								transfer_state = 403
								set_cosmetic_tag = YAM_military
								set_politics = {
									ruling_party = nationalist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = SOV_viktor_zolotov
									picture = "Viktor Zolotov.dds"
									ideology = military_junta
									traits = {
									}
								}
							}
							BLR = {
								transfer_state = 94
								transfer_state = 808
								transfer_state = 95
								transfer_state = 206
								transfer_state = 194
								transfer_state = 204
								transfer_state = 194
								transfer_state = 241
								transfer_state = 207
							}
							KIR = {
								add_state_core = 563
								add_state_core = 566
								add_state_core = 567
								add_state_core = 574
								transfer_state = 563
								transfer_state = 566
								transfer_state = 567
								transfer_state = 574
							}
							OCC = {
								add_state_core = 564
								add_state_core = 565
								transfer_state = 564
								transfer_state = 565
							}
							FLN = {
								add_state_core = 516
								add_state_core = 577
								add_state_core = 576
								add_state_core = 578
								add_state_core = 568
								add_state_core = 571
								add_state_core = 570
								add_state_core = 40
								add_state_core = 569
								add_state_core = 654
								transfer_state = 516
								transfer_state = 577
								transfer_state = 576
								transfer_state = 578
								transfer_state = 568
								transfer_state = 571
								transfer_state = 570
								transfer_state = 40
								transfer_state = 569
								transfer_state = 654
							}
							STL = {
								add_state_core = 260
								add_state_core = 265
								transfer_state = 260
								transfer_state = 265
								load_oob = "STL_2020"
							}
							STV = {
								add_state_core = 397
								transfer_state = 397
							}
							SOL = {
								add_state_core = 256
								add_state_core = 249
								transfer_state = 256
								transfer_state = 249
							}
							BSK = {
								add_state_core = 651
								transfer_state = 651
								set_cosmetic_tag = BSK_bashkiria
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									libertarian_socialist = 5
									nationalist = 20
									authoritarian_democrat = 40
									fascist = 10
								}
							}
							UDM = {
								add_state_core = 399
								transfer_state = 399
								set_cosmetic_tag = UDM_udmurtia
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									libertarian_socialist = 10
									nationalist = 5
									authoritarian_democrat = 40
									social_liberal = 10
								}
							}
							CKK = {
								add_state_core = 408
								add_state_core = 637
								add_state_core = 655
								add_state_core = 537
								add_state_core = 555
								transfer_state = 408
								transfer_state = 637
								transfer_state = 655
								transfer_state = 537
								transfer_state = 555
							}
							SEY = {
								add_state_core = 644
								transfer_state = 644
							}
							NAU = {
								add_state_core = 409
								add_state_core = 657
								add_state_core = 560
								add_state_core = 562
								add_state_core = 561
								transfer_state = 409
								transfer_state = 657
								transfer_state = 560
								transfer_state = 562
								transfer_state = 561
							}
							NFJ = {
								add_state_core = 262
								transfer_state = 262
							}
							PUR = {
								add_state_core = 400
								add_state_core = 351
								add_state_core = 264
								transfer_state = 400
								transfer_state = 351
								transfer_state = 264
							}
							CHU = {
								add_state_core = 256
								add_state_core = 581
								transfer_state = 256
								transfer_state = 581
							}
							KYR = {
								set_politics = {
									ruling_party = totalitarian_socialist
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									totalitarian_socialist = 70
									nationalist = 5
								}
							}
							TAJ = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
							}
							YAK = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
								add_state_core = 587
								add_state_core = 804
								transfer_state = 587
								transfer_state = 804
							}
							TAT = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
								add_state_core = 821
								add_state_core = 585
								transfer_state = 821
								transfer_state = 585
							}
							KAZ = {
								country_event = {
									id = russia.131
									days = 30
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Philippines Kill Civil War Tags
					limit = {
						FROM = {
							OR = {
								original_tag = PHI
								original_tag = PRC
								original_tag = JAP
								is_ally_with = PRC
								is_ally_with = JAP 
							}
						}
						ROOT = {
							OR = {
								original_tag = NPA
								original_tag = BAG
								original_tag = VIS
								original_tag = MIN
								original_tag = TAG
							}
						}
					}
					FROM = {
						white_peace = ROOT
						PHI = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RAJ Kills BAN
					limit = {
						FROM = {
							original_tag = RAJ
						}
						ROOT = {
							original_tag = BAN
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					every_state = {
						limit = {
							is_core_of = BAN
						}
						add_core_of = RAJ
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RAJ Kills ULF
					limit = {
						FROM = {
							original_tag = RAJ
						}
						ROOT = {
							original_tag = ULF
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PAK Kills PAK CW TAGS
					limit = {
						FROM = {
							OR = {
								original_tag = PRC
								original_tag = PAK
							}
						}
						ROOT = {
							OR = {
								original_tag = AN1
								original_tag = ISK
								original_tag = TLP
								original_tag = BAL
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
					if = {
						limit = {
							PRC = {
								owns_state = 1321
							}
						}
						PAK = {
							transfer_state = 1321
						}
					}
					if = {
						limit = {
							PRC = {
								owns_state = 1323
							}
						}
						PAK = {
							transfer_state = 1323
						}
					}
					if = {
						limit = {
							PRC = {
								owns_state = 440
							}
						}
						PAK = {
							transfer_state = 440
							set_capital = { state = 440 }
						}
					}
					if = {
						limit = {
							PRC = {
								owns_state = 1322
							}
						}
						PAK = {
							transfer_state = 1322
						}
					}
					if = {
						limit = {
							PRC = {
								owns_state = 444
							}
						}
						PAK = {
							transfer_state = 444
						}
					}
					if = {
						limit = {
							has_global_flag = PAK_RAJ_war_nuclear
							NOT = {
								country_exists = AN1
								country_exists = ISK
								country_exists = TLP
								country_exists = BAL
								has_global_flag = PAK_order_restored
							}
						}
						PAK = {
							country_event = PAK.15
						}
						set_global_flag = PAK_order_restored
					}
				}
				if = {
					# THE PACIFIC WAR - EADI KILL PDTO (last one alive version)
					limit = {
						FROM = {
							OR = {
								original_tag = PRC
								is_ally_with = PRC
							}
						}
						ROOT = {
							OR = {
								original_tag = JAP
								original_tag = AST
								original_tag = RAJ
								original_tag = SIA
								original_tag = VIN
								original_tag = LAO
								original_tag = CAM
								#original_tag = BRM
								original_tag = PHI
								original_tag = INS
								original_tag = PNG
								original_tag = NZL
								original_tag = MAL
								original_tag = BAN
								original_tag = NEP
								original_tag = BHU
								original_tag = CHI
								original_tag = KOR
								original_tag = SIG
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						add_ideas = PRC_unwilling_ally
						clr_country_flag = pdto_member
						set_country_flag = eadi_member
						add_popularity = {
							ideology = nationalist
							popularity = 0.3
						}
						set_politics = {
							ruling_party = nationalist
							elections_allowed = no 
						}
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						JAP_leave_PEC = yes
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = {
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = VIN
							}
						}
						create_country_leader = {
							name = PRC_Wang_Xiubin
							picture = "gfx/leaders/PRC/generals/Wang xiubin.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = JAP
							}
						}
						create_country_leader = {
							name = PRC_He_Weidong
							picture = "gfx/leaders/PRC/generals/He Weidong.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = AST
							}
						}
						create_country_leader = {
							name = PRC_Li_Qiaoming
							picture = "gfx/leaders/PRC/generals/Li Qiaoming.png"
							ideology = military_junta
						}
						AST = {
							mark_focus_tree_layout_dirty = yes
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = LAO
							}
						}
						create_country_leader = {
							name = PRC_Han_Weiguo
							picture = "gfx/leaders/PRC/generals/Han Weiguo.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = CAM
							}
						}
						create_country_leader = {
							name = PRC_Wu_Yanan
							picture = "gfx/leaders/PRC/generals/Wu Yanan.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = SIA
							}
						}
						create_country_leader = {
							name = PRC_Huang_Ming
							picture = "gfx/leaders/PRC/generals/Huang Ming.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = MAL
							}
						}
						create_country_leader = {
							name = PRC_Qin_Shengxiang
							picture = "gfx/leaders/PRC/admirals/Qin Shengxiang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = SIG
							}
						}
						create_country_leader = {
							name = PRC_Hu_Zhongming
							picture = "gfx/leaders/PRC/admirals/Hu Zhongming.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = INS
							}
						}
						create_country_leader = {
							name = PRC_Ding_Laihang
							picture = "gfx/leaders/PRC/generals/Ding Laihang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = PHI
							}
						}
						create_country_leader = {
							name = PRC_Wang_Qiang
							picture = "gfx/leaders/PRC/generals/Wang Qiang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = PNG
							}
						}
						create_country_leader = {
							name = PRC_Chang_Dingqiu
							picture = "gfx/leaders/PRC/generals/Chang Dingqiu.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = NZL
							}
						}
						create_country_leader = {
							name = PRC_Yi_Xiaoguang
							picture = "gfx/leaders/PRC/generals/Yi Xiaoguang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = BAN
							}
						}
						create_country_leader = {
							name = PRC_Li_Shangfu
							picture = "gfx/leaders/PRC/generals/Li Shangfu.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = NEP
							}
						}
						create_country_leader = {
							name = PRC_Lin_Xiangyang
							picture = "gfx/leaders/PRC/generals/Lin Xiangyang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = BHU
							}
						}
						create_country_leader = {
							name = PRC_Liu_Zhenli
							picture = "gfx/leaders/PRC/generals/Liu Zhenli.png"
							ideology = military_junta
						}
					}
					else = {
						create_country_leader = {
							expire = "1.1.1"
							ideology = military_junta
							traits = {
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SIG
							}
						}
						SIG = {
							add_ideas = SIG_plan
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = JAP
							}
						}
						PRC = {
							transfer_state = 876
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = RAJ
							}
							NOT = {
								has_global_flag = RAJ_india_dead
							}
						}
						FROM = {
							end_puppet = RAJ
						}
						PRC = {
							remove_from_faction = RAJ
						}
						PRC_dissolve_india = yes
					}
					if = {
						limit = {
							ROOT = {
								original_tag = AST
							}
						}
						#set_global_flag = solstron_joins_the_pla
						AST = {
							mark_focus_tree_layout_dirty = yes
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = KOR
							}
						}
						PRK = {
							annex_country = {
								target = KOR
								transfer_troops = no
							}
						}
						PRC = {
							add_to_faction = PRK
						}
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = CHI
									original_tag = SIK
									original_tag = TIB
								}
							}
						}
						PRC = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SAJ
							}
						}
						PAK = {
							annex_country = {
								target = SAJ
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# THE PACIFIC WAR - PDTO KILL EADI (last one alive version)
					limit = {
						FROM = {
							OR = {
								original_tag = JAP
								is_ally_with = JAP
								original_tag = AST
								is_ally_with = AST
								original_tag = RAJ
								is_ally_with = RAJ
							}
							has_country_flag = pdto_member
						}
						ROOT = {
							OR = {
								original_tag = PRC
								original_tag = JAP
								original_tag = AST
								original_tag = RAJ
								original_tag = SIA
								original_tag = VIN
								original_tag = LAO
								original_tag = CAM
								original_tag = BRM
								original_tag = PHI
								original_tag = INS
								original_tag = PNG
								original_tag = NZL
								original_tag = MAL
								original_tag = BAN
								original_tag = NEP
								original_tag = BHU
								original_tag = CHI
								original_tag = PRK
								original_tag = SIG
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						clr_country_flag = eadi_member
						set_country_flag = pdto_member
						if = {
							limit = {
								has_idea = PRC_BRI_member
							}
							PRC_leave_BRI = yes
						}
						if = {
							limit = {	
								NOT = {
									JAP = {
										is_ally_with = PRC
									}
								}
							}
							drop_cosmetic_tag = yes
							remove_ideas = PRC_unwilling_ally
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PRC
							}
							NOT = { has_global_flag = KOR_asia_fucked_event_global }
						}
						FROM = {
							end_puppet = PRC
						}
						JAP = {
							remove_from_faction = PRC
						}
						PRC_japans_victory_in_the_gaw = yes
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PRK
							}
						}
						KOR = {
							drop_cosmetic_tag = yes
							annex_country = {
								target = PRK
								transfer_troops = no
							}
							JAP = {
								add_to_faction = KOR
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SAJ
							}
						}
						RAJ = {
							annex_country = {
								target = SAJ
								transfer_troops = no
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PAK
							}
						}
						RAJ = {
							puppet = PAK
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV kill Europe (last one alive version)
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = PRP
								original_tag = PLD
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_global_flag = SOV_medvedev_won
									has_global_flag = SOV_ldpr_won
								}
								has_global_flag = SOV_first_nato_war_victory
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								if = {
									limit = {
										SOV = { has_completed_focus = SOV_reform_csto }
									}
									set_country_flag = CES_member
								}
								else_if = {
									limit = {
										SOV = { has_completed_focus = SOV_holy_union_reborn }
									}
									set_country_flag = hu_member
								}
								else = {
									set_country_flag = csto_member
								}
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics= {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_4
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_5
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_6
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
								UK2 = {
									exists = yes
								}
							}
							UK2 = {
								set_faction_leader = yes
							}
							SOV = {
								declare_war_on = {
									target = UK2
									type = annex_everything
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = PLD
									MLD = {
										is_ally_with = SOV
									}
								}
							}
							MLD = {
								annex_country = {
									target = PLD
									transfer_troops = no
								}
							}
							if = {
								limit = {
									has_global_flag = SOV_medvedev_won
								}
								MLD = {
									transfer_state = 66
									transfer_state = 67
								}
								every_state = {
									limit = {
										is_core_of = CZE
									}
									transfer_state_to = CZE
								}
								SOV = {
									puppet = CZE
								}
								CZE = {
									set_popularities = {
										authoritarian_democrat = 37.5
										fascist = 17.5
										conservative = 4
										social_democrat = 6
										social_liberal = 6
										market_liberal = 3
										libertarian_socialist = 3.75
										communist = 22.25
									}
									random_list = {
										seed = random
										30 = {
											add_popularity = {
												ideology = communist
												popularity = 0.1
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = fascist
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.15
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
											add_popularity = {
												ideology = totalitarian_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
										}
									}
									add_popularity = {
										ideology = nationalist
										popularity = 0.25
									}
									set_politics= {
										ruling_party = nationalist
										elections_allowed = no 
									}
									set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
									random_list = {
										seed = random
										30 = {
											set_cosmetic_tag = SOV_military_administration_4
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_5
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_6
										}
									}
									create_country_leader = {
										expire = "1.1.1"
										ideology = military_junta
										traits = {
										}
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#GER kill France (last one alive version)
					limit = {
						GER = { has_completed_focus = GER_a_new_october }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							OR = {
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
								
							}
						}
					}
					GER = {
						white_peace = ROOT
						puppet = ROOT
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					ROOT = {
						if = {
							limit = {
								tag = LUX
							8 = { transfer_state_to = GER }
							}
						}
						if = {
							limit = {
								tag = FPR
							}
							FPR = { load_focus_tree = generic_focus }
							800 = { transfer_state_to = GER }
						}
						if = {
							limit = {
								tag = ITA
							}
							39 = { transfer_state_to = GER }
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Communist SOV kill Europe (last one alive version)
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = PRP
								original_tag = PLD
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
								has_global_flag = second_nato_war_flag
								has_global_flag = SOV_first_nato_war_victory
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = pact_of_steel_member
								IF = {
									LIMIT = {
										has_war_with = FAF
									}
									every_controlled_state = {
										limit = {
											is_core_of = ROOT
											is_controlled_by = FAF
										}
										transfer_state_to = FAF
										set_state_owner_to = FAF
										set_state_controller_to = FAF
									}
								}
								IF = {
									LIMIT = {
										ROOT = {
											tag = GER
											is_subject_of = FAF
										}
									}
									every_owned_state = {
										limit = {
											is_core_of = ROOT
										}
										transfer_state_to = ROOT
										set_state_owner_to = ROOT
										set_state_controller_to = ROOT
									}
								}
								EU_leave_effect = yes
								set_country_flag = mto_member
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_2
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_3
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
								has_global_flag = second_nato_war_flag
								has_global_flag = SOV_first_nato_war_victory
								ROOT = {
									tag = GER
								}
							}
							MLD = {
								transfer_state = 67
								transfer_state = 66
								transfer_state = 86
								transfer_state = 742
								transfer_state = 743
							}
							every_state = {
								limit = {
									is_core_of = CZE
								}
								transfer_state_to = CZE
							}
							SOV = {
								puppet = CZE
							}
							CZE = {
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_2
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_3
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									traits = {
									}
								}
							}
							if = {
								limit = {
									FAF = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FAF
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FAF
								}
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
								UK2 = {	
									exists = yes
								}
							}
							UK2 = {
								annex_country = {
									target = ENG
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = PLD
								}
								NOT = {
									has_global_flag = SOV_medvedev_won
								}
							}
							if = {
								limit = {
									MLD = {
										is_ally_with = SOV
									}
								}
								MLD = {
									annex_country = {
										target = PLD
										transfer_troops = no
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Navalny SOV kill Europe (last one alive version)
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = PRP
								original_tag = PLD
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = FER
								original_tag = CHE
								original_tag = KBK
								original_tag = BYA
								original_tag = UNN
								original_tag = UKR
								original_tag = BLR
								original_tag = LIT
								original_tag = LAT
								original_tag = EST
								original_tag = MOL
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
								original_tag = ENG
								original_tag = AUS
								original_tag = SWE
								original_tag = FIN
								original_tag = ICE
								original_tag = ARM
								original_tag = HRZ
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_alexei_navalny
										ruling_only = yes
									}
								}
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								set_country_flag = BTO_member
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics= {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_7
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_8
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_9
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							FRA = {
								end_puppet = QUE
								end_puppet = CHA
								end_puppet = CMR
								end_puppet = GAB
								end_puppet = EQG
								end_puppet = CSF
							}
							every_country = {
								limit = {
									has_war_with = SOV
									OR = {
										tag = QUE
										tag = CHA
										tag = CMR
										tag = GAB
										tag = EQG
										tag = ARR
										tag = CSF
										tag = BRA
										tag = HRL
										tag = PER
										tag = ZET
										tag = EGY
									}
								}
								drop_cosmetic_tag = yes
								white_peace = SOV
								leave_faction = yes
							}
							CAN = {
								declare_war_on = {
					                target = QUE
					                type = annex_everything
					            }
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									OR = {
										tag = FER
										tag = CHE
										tag = KBK
										tag = BYA
										tag = UNN
										tag = SHL
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = EST
								}
							}
							SOV = {
								transfer_state = 840
								add_state_core = 840
								transfer_state = 1329
								add_state_core = 1329
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = LAT
								}
							}
							SOV = {
								transfer_state = 1182
								add_state_core = 1182
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = UKR
								}
							}
							SOV = {
								transfer_state = 196
								add_state_core = 196
								transfer_state = 200
								add_state_core = 200
								transfer_state = 1059
								add_state_core = 1059
								transfer_state = 1374
								add_state_core = 1374
								transfer_state = 227
								add_state_core = 227
								transfer_state = 228
								add_state_core = 228
								transfer_state = 1090
								add_state_core = 1090
								transfer_state = 1091
								add_state_core = 1091
								transfer_state = 1375
								add_state_core = 1375
								transfer_state = 221
								add_state_core = 221
								transfer_state = 1184
								add_state_core = 1184
								transfer_state = 259
								add_state_core = 259
								transfer_state = 225
								add_state_core = 225
								transfer_state = 193
								add_state_core = 193
								transfer_state = 1185
								add_state_core = 1185
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
							}
							every_state = {
								limit = {
									is_core_of = ICE
								}
								set_state_controller_to = SOV
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Dugin SOV kill Europe (last one alive version)
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = PLD
								original_tag = PRP
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = FER
								original_tag = CHE
								original_tag = KBK
								original_tag = BYA
								original_tag = UNN
								original_tag = UKR
								original_tag = BLR
								original_tag = LIT
								original_tag = LAT
								original_tag = EST
								original_tag = MOL
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
								original_tag = ENG
								original_tag = AUS
								original_tag = SWE
								original_tag = FIN
								original_tag = ICE
								original_tag = ARM
								original_tag = HRZ
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_alexander_dugin
										ruling_only = yes
									}
								}
								has_global_flag = SOV_dugin_russia_flag
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_eurasian_army_party name = SOV_eurasian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_10
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_11
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_12
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							FRA = {
								end_puppet = QUE
								end_puppet = CHA
								end_puppet = CMR
								end_puppet = GAB
								end_puppet = EQG
								end_puppet = CSF
							}
							every_country = {
								limit = {
									has_war_with = SOV
									OR = {
										tag = QUE
										tag = CHA
										tag = CMR
										tag = GAB
										tag = EQG
										tag = ARR
										tag = CSF
										tag = BRA
										tag = HRL
										tag = PER
										tag = ZET
										tag = EGY
									}
								}
								drop_cosmetic_tag = yes
								white_peace = SOV
								leave_faction = yes
							}
							CAN = {
								declare_war_on = {
					                target = QUE
					                type = annex_everything
					            }
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_dugin_russia_flag
								ROOT = {
									OR = {
										tag = FER
										tag = CHE
										tag = KBK
										tag = BYA
										tag = UNN
										tag = SHL
										tag = UKR
										tag = BLR
										tag = LIT
										tag = LAT
										tag = EST
										tag = MOL
										tag = GEO
										tag = AZR
										tag = ARM
										tag = HRZ
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
							}
							every_state = {
								limit = {
									is_core_of = ICE
								}
								set_state_controller_to = SOV
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Caligula Kills EVERYBODY - Single
					limit = {
						FROM = {
							original_tag = USB
							has_completed_focus = USB_rebirth
							has_completed_focus = USB_god_in_the_machine
						}
						ROOT = {
							NOT = {
								original_tag = USB
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						add_popularity = {
							ideology = nationalist
							popularity = 0.5
						}
						set_politics = {
							ruling_party = nationalist
							elections_allowed = no 
						}
						set_party_name = {
							ideology = nationalist
							name = USB_caligula_puppet_party
						}
						set_cosmetic_tag = USB_caligula_puppet
						create_country_leader = {
							expire = "1.1.1"
							ideology = purification_administration
							traits = {
							}
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = MEX
									original_tag = CAS
									original_tag = SIN
									original_tag = CDJ
									original_tag = LFM
									original_tag = GUC
									original_tag = ZAP
									original_tag = CAN
								}
							}
						}
						FROM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#Schwab Annexes Whoever Else
					limit = {
						has_global_flag = GER_mass_catharsis_event_global
						FROM = {
							original_tag = GER
						}
						ROOT = {
							NOT = {
								original_tag = GER
							}
						}
					}
					FROM = {
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# I CALL FOR IMMEDIATE NATO INTERVENTION - Gunther Fehlinger Peace Deals
					limit = {
						FROM = {
							original_tag = GER
							has_completed_focus = GER_democracy_now
						}
						ROOT = {
							NOT = {
								original_tag = GER
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = FRA
									original_tag = IRE
									original_tag = ITA
									original_tag = AUS
									original_tag = SWI
									original_tag = SWE
									original_tag = NOR
									original_tag = DEN
									original_tag = SPR
									original_tag = SNS
									original_tag = RSR
									original_tag = POR
									original_tag = PRP
									original_tag = GOD
									original_tag = ENG
									original_tag = UK2
									original_tag = SCO
									original_tag = WLS
									original_tag = NIR
									original_tag = IRA
									original_tag = PLD
									original_tag = CZE
									original_tag = BOS
									original_tag = MLD
									original_tag = CRO
									original_tag = SLV
									original_tag = MAC
									original_tag = KOS
									original_tag = GRE
									original_tag = SIL
									original_tag = HUN
									original_tag = ROM
									original_tag = BUL
									original_tag = SLO
									original_tag = LIT
									original_tag = LAT
									original_tag = EST
									original_tag = DNZ
									original_tag = TRA
									original_tag = MOL
									original_tag = UKR
									original_tag = FIN
									original_tag = CYP
									original_tag = SER
									original_tag = BEL
									original_tag = MNT
									original_tag = ALB
								}
							}
						}
						FROM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = HRL
							}
						}
						every_state = {
							limit = {
								is_core_of = ALG
							}
							transfer_state_to = ALG
						}
						every_state = {
							limit = {
								OR = {
									is_core_of = MOR
									state = 882
									state = 699
								}
							}
							transfer_state_to = MOR
						}
						every_state = {
							limit = {
								is_core_of = TUN
							}
							transfer_state_to = TUN
						}
						every_state = {
							limit = {
								is_core_of = LBA
							}
							transfer_state_to = LBA
						}
						every_country = {
							limit = {
								OR = {
									tag = ALG
									tag = MOR
									tag = TUN
									tag = LBA
								}
							}
							GER = {
								puppet = PREV
							}
						}
						every_country = {
							limit = {
								OR = {
									tag = ALG
									tag = MOR
									tag = TUN
									tag = LBA
								}
							}
							load_focus_tree = generic_focus
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
							}
							add_popularity = {
								ideology = social_liberal
								popularity = 0.99
							}
							set_politics = {
								ruling_party = social_liberal
								elections_allowed = no 
							}
							set_party_name = {
								ideology = social_liberal
								name = GER_nato_administration_party
								long_name = GER_nato_administration_party_long
							}
							set_cosmetic_tag = GER_nato_administration_cosmetic
							create_country_leader = {
								name = GER_NATO_administration_char
								picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
								ideology = supervised_democracy_liberal
							}
						}
					}
					else = {
						ROOT = {
							load_focus_tree = generic_focus
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
							}
							add_popularity = {
								ideology = social_liberal
								popularity = 0.99
							}
							set_politics = {
								ruling_party = social_liberal
								elections_allowed = no 
							}
							set_party_name = {
								ideology = social_liberal
								name = GER_nato_administration_party
								long_name = GER_nato_administration_party_long
							}
							set_cosmetic_tag = GER_nato_administration_cosmetic
							create_country_leader = {
								name = GER_NATO_administration_char
								picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
								ideology = supervised_democracy_liberal
							}
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
			}
			#FACTION PEACE DEALS GO HERE
			else = {
				
				#							  #
				# G R E A T  A S I A N  W A R # gaw
				#							  #
				
				if = {
					# THE PACIFIC WAR - EADI KILL PDTO
					limit = {
						has_global_flag = pan_asian_war_ongoing
						FROM = {
							OR = {
								original_tag = PRC
								is_ally_with = PRC
							}
						}
						ROOT = {
							OR = {
								original_tag = JAP
								is_ally_with = JAP
								original_tag = AST
								is_ally_with = AST
								original_tag = RAJ
								is_ally_with = RAJ
								original_tag = KOR
								original_tag = SIA
								original_tag = VIN
								original_tag = LAO
								original_tag = CAM
								original_tag = BRM
								original_tag = PHI
								original_tag = INS
								original_tag = PNG
								original_tag = NZL
								original_tag = MAL
								original_tag = BAN
								original_tag = NEP
								original_tag = BHU
								original_tag = CHI
								original_tag = KOR
								original_tag = SIG
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						add_ideas = PRC_unwilling_ally
						clr_country_flag = pdto_member
						set_country_flag = eadi_member
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					ROOT = {
						add_popularity = {
							ideology = nationalist
							popularity = 0.3
						}
						set_politics = {
							ruling_party = nationalist
							elections_allowed = no 
						}
						set_party_name = { ideology = nationalist long_name = PRC_nationalist_party_long name = PRC_nationalist_party }
						set_cosmetic_tag = PRC_military_administration
						JAP_leave_PEC = yes
						create_country_leader = {
							expire = "1.1.1"
							ideology = military_junta
							traits = {
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = VIN
							}
						}
						create_country_leader = {
							name = PRC_Wang_Xiubin
							picture = "gfx/leaders/PRC/generals/Wang xiubin.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = JAP
							}
						}
						create_country_leader = {
							name = PRC_He_Weidong
							picture = "gfx/leaders/PRC/generals/He Weidong.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = AST
							}
						}
						create_country_leader = {
							name = PRC_Li_Qiaoming
							picture = "gfx/leaders/PRC/generals/Li Qiaoming.png"
							ideology = military_junta
						}
						AST = {
							mark_focus_tree_layout_dirty = yes
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = LAO
							}
						}
						create_country_leader = {
							name = PRC_Han_Weiguo
							picture = "gfx/leaders/PRC/generals/Han Weiguo.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = CAM
							}
						}
						create_country_leader = {
							name = PRC_Wu_Yanan
							picture = "gfx/leaders/PRC/generals/Wu Yanan.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = SIA
							}
						}
						create_country_leader = {
							name = PRC_Huang_Ming
							picture = "gfx/leaders/PRC/generals/Huang Ming.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = MAL
							}
						}
						create_country_leader = {
							name = PRC_Qin_Shengxiang
							picture = "gfx/leaders/PRC/admirals/Qin Shengxiang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = SIG
							}
						}
						create_country_leader = {
							name = PRC_Hu_Zhongming
							picture = "gfx/leaders/PRC/admirals/Hu Zhongming.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = INS
							}
						}
						create_country_leader = {
							name = PRC_Ding_Laihang
							picture = "gfx/leaders/PRC/generals/Ding Laihang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = PHI
							}
						}
						create_country_leader = {
							name = PRC_Wang_Qiang
							picture = "gfx/leaders/PRC/generals/Wang Qiang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = PNG
							}
						}
						create_country_leader = {
							name = PRC_Chang_Dingqiu
							picture = "gfx/leaders/PRC/generals/Chang Dingqiu.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = NZL
							}
						}
						create_country_leader = {
							name = PRC_Yi_Xiaoguang
							picture = "gfx/leaders/PRC/generals/Yi Xiaoguang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = BAN
							}
						}
						create_country_leader = {
							name = PRC_Li_Shangfu
							picture = "gfx/leaders/PRC/generals/Li Shangfu.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = NEP
							}
						}
						create_country_leader = {
							name = PRC_Lin_Xiangyang
							picture = "gfx/leaders/PRC/generals/Lin Xiangyang.png"
							ideology = military_junta
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = BHU
							}
						}
						create_country_leader = {
							name = PRC_Liu_Zhenli
							picture = "gfx/leaders/PRC/generals/Liu Zhenli.png"
							ideology = military_junta
						}
					}
					else = {
						create_country_leader = {
							expire = "1.1.1"
							ideology = military_junta
							traits = {
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SIG
							}
						}
						SIG = {
							add_ideas = SIG_plan
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = JAP
							}
						}
						PRC = {
							transfer_state = 876
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = RAJ
							}
							NOT = {
								has_global_flag = RAJ_india_dead
							}
						}
						FROM = {
							end_puppet = RAJ
						}
						PRC = {
							remove_from_faction = RAJ
						}
						every_country = {
							limit = {
								has_war_with = RAJ
							}
							white_peace = RAJ
						}
						PRC_dissolve_india = yes
					}
					if = {
						limit = {
							ROOT = {
								original_tag = AST
							}
						}
						#set_global_flag = solstron_joins_the_pla
						AST = {
							mark_focus_tree_layout_dirty = yes
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = KOR
							}
						}
						PRK = {
							annex_country = {
								target = KOR
								transfer_troops = no
							}
						}
						PRC = {
							add_to_faction = PRK
						}
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = CHI
									original_tag = SIK
									original_tag = TIB
								}
							}
						}
						PRC = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SAJ
							}
						}
						PAK = {
							annex_country = {
								target = SAJ
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# THE PACIFIC WAR - PDTO KILL EADI
					limit = {
						has_global_flag = pan_asian_war_ongoing
						FROM = {
							OR = {
								original_tag = JAP
								is_ally_with = JAP
								original_tag = AST
								is_ally_with = AST
								original_tag = RAJ
								is_ally_with = RAJ
							}
							has_country_flag = pdto_member
						}
						ROOT = {
							OR = {
								original_tag = PRC
								is_ally_with = PRC
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						clr_country_flag = eadi_member
						set_country_flag = pdto_member
						if = {
							limit = {	
								NOT = {
									JAP = {
										is_ally_with = PRC
									}
								}
							}
							drop_cosmetic_tag = yes
							remove_ideas = PRC_unwilling_ally
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PRC
							}
							NOT = { has_global_flag = KOR_asia_fucked_event_global }
						}
						FROM = {
							end_puppet = PRC
						}
						JAP = {
							remove_from_faction = PRC
						}
						PRC_japans_victory_in_the_gaw = yes
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PRK
							}
						}
						KOR = {
							drop_cosmetic_tag = yes
							annex_country = {
								target = PRK
								transfer_troops = no
							}
							JAP = {
								add_to_faction = KOR
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = SAJ
							}
						}
						RAJ = {
							annex_country = {
								target = SAJ
								transfer_troops = no
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = PAK
							}
						}
						RAJ = {
							puppet = PAK
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# I CALL FOR IMMEDIATE NATO INTERVENTION - Gunther Fehlinger Peace Deals
					limit = {
						FROM = {
							original_tag = GER
							has_completed_focus = GER_democracy_now
						}
						ROOT = {
							NOT = {
								original_tag = GER
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = FRA
									original_tag = IRE
									original_tag = ITA
									original_tag = AUS
									original_tag = SWI
									original_tag = SWE
									original_tag = NOR
									original_tag = DEN
									original_tag = SPR
									original_tag = SNS
									original_tag = RSR
									original_tag = POR
									original_tag = PRP
									original_tag = GOD
									original_tag = ENG
									original_tag = UK2
									original_tag = SCO
									original_tag = WLS
									original_tag = NIR
									original_tag = IRA
									original_tag = PLD
									original_tag = CZE
									original_tag = BOS
									original_tag = MLD
									original_tag = CRO
									original_tag = SLV
									original_tag = MAC
									original_tag = KOS
									original_tag = GRE
									original_tag = SIL
									original_tag = HUN
									original_tag = ROM
									original_tag = BUL
									original_tag = SLO
									original_tag = LIT
									original_tag = LAT
									original_tag = EST
									original_tag = DNZ
									original_tag = TRA
									original_tag = MOL
									original_tag = UKR
									original_tag = FIN
									original_tag = CYP
									original_tag = SER
									original_tag = BEL
									original_tag = MNT
									original_tag = ALB
								}
							}
						}
						FROM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					else_if = {
						limit = {
							ROOT = {
								original_tag = HRL
							}
						}
						every_state = {
							limit = {
								is_core_of = ALG
							}
							transfer_state_to = ALG
						}
						every_state = {
							limit = {
								OR = {
									is_core_of = MOR
									state = 882
									state = 699
								}
							}
							transfer_state_to = MOR
						}
						every_state = {
							limit = {
								is_core_of = TUN
							}
							transfer_state_to = TUN
						}
						every_state = {
							limit = {
								is_core_of = LBA
							}
							transfer_state_to = LBA
						}
						every_country = {
							limit = {
								OR = {
									tag = ALG
									tag = MOR
									tag = TUN
									tag = LBA
								}
							}
							GER = {
								puppet = PREV
							}
						}
						every_country = {
							limit = {
								OR = {
									tag = ALG
									tag = MOR
									tag = TUN
									tag = LBA
								}
							}
							load_focus_tree = generic_focus
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
							}
							add_popularity = {
								ideology = social_liberal
								popularity = 0.99
							}
							set_politics = {
								ruling_party = social_liberal
								elections_allowed = no 
							}
							set_party_name = {
								ideology = social_liberal
								name = GER_nato_administration_party
								long_name = GER_nato_administration_party_long
							}
							set_cosmetic_tag = GER_nato_administration_cosmetic
							create_country_leader = {
								name = GER_NATO_administration_char
								picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
								ideology = supervised_democracy_liberal
							}
						}
					}
					else = {
						ROOT = {
							load_focus_tree = generic_focus
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
							}
							add_popularity = {
								ideology = social_liberal
								popularity = 0.99
							}
							set_politics = {
								ruling_party = social_liberal
								elections_allowed = no 
							}
							set_party_name = {
								ideology = social_liberal
								name = GER_nato_administration_party
								long_name = GER_nato_administration_party_long
							}
							set_cosmetic_tag = GER_nato_administration_cosmetic
							create_country_leader = {
								name = GER_NATO_administration_char
								picture = "gfx/Leaders/SYR/NATO Mandate Council.dds"
								ideology = supervised_democracy_liberal
							}
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Caligula Kills EVERYBODY - Faction
					limit = {
						FROM = {
							original_tag = USB
							has_completed_focus = USB_rebirth
							has_completed_focus = USB_god_in_the_machine
						}
						ROOT = {
							NOT = {
								original_tag = USB
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						load_focus_tree = generic_focus
						add_popularity = {
							ideology = nationalist
							popularity = 0.5
						}
						set_politics = {
							ruling_party = nationalist
							elections_allowed = no 
						}
						set_party_name = {
							ideology = nationalist
							name = USB_caligula_puppet_party
						}
						set_cosmetic_tag = USB_caligula_puppet
						create_country_leader = {
							expire = "1.1.1"
							ideology = purification_administration
							traits = {
							}
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									original_tag = MEX
									original_tag = CAS
									original_tag = SIN
									original_tag = CDJ
									original_tag = LFM
									original_tag = GUC
									original_tag = ZAP
									original_tag = CAN
								}
							}
						}
						FROM = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# LOS kill drumpf
					limit = {
						FROM = {
							original_tag = LOS
						}
						ROOT = {
							original_tag = USC
						}
					}
					FROM = {
						white_peace = ROOT
						transfer_state = 374
						transfer_state = 1236
						transfer_state = 1241
						transfer_state = 1242
						transfer_state = 373
						transfer_state = 1124
						transfer_state = 1071
						transfer_state = 1125
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# LOS kill brandon
					limit = {
						FROM = {
							original_tag = LOS
						}
						ROOT = {
							original_tag = USB
						}
					}
					FROM = {
						white_peace = ROOT
						transfer_state = 1249
						transfer_state = 1250
						transfer_state = 1248
						transfer_state = 1251
						transfer_state = 368
						transfer_state = 369
						transfer_state = 1002
						transfer_state = 1000
						transfer_state = 1003
						transfer_state = 1001
						transfer_state = 1004
						transfer_state = 362
						transfer_state = 1070
						transfer_state = 1122
						transfer_state = 1123
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PRC kill PDC
					limit = {
						FROM = {
							original_tag = PRC
						}
						ROOT = {
							OR = {
								original_tag = CHI
								original_tag = JAP
								original_tag = AST
							}
						}
						NOT = {
							has_global_flag = pan_asian_war_ongoing
						}
					}
					FROM = {
						white_peace = CHI
						white_peace = JAP
						white_peace = AST
						transfer_state = 524
						transfer_state = 1148
						transfer_state = 1149
						transfer_state = 1150
						transfer_state = 876
						transfer_state = 1451
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AOR kill OMA
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								original_tag = HOU
								original_tag = ZET
							}
						}
						ROOT = {
							original_tag = OMA
						}
					}
					FROM = {
						white_peace = ROOT
					}
					ZET = {
						add_state_core = 294
						transfer_state = 294
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AOR kill KUW
					limit = {
						FROM = {
							OR = {
								original_tag = PER
								original_tag = HOU
								original_tag = ZET
							}
						}
						ROOT = {
							original_tag = KUW
						}
					}
					FROM = {
						white_peace = ROOT
					}
					ZET = {
						add_state_core = 656
						transfer_state = 656
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Nicaragua victory Central American War
					limit = {
						FROM = {
							OR = {
								original_tag = NIC
								original_tag = HON
							}
						}
						ROOT = {
							OR = {
								original_tag = GUA
								original_tag = ELS
								original_tag = BLZ
							}
						}
					}
					FROM = {
						NIC = {
							puppet = ROOT
						}
						white_peace = ROOT
					}
					ROOT = {
						set_cosmetic_tag = NIC_puppet
						set_popularities = {
							totalitarian_socialist = 5
							communist = 35
							libertarian_socialist = 10
							market_liberal = 4
							conservative = 6
							nationalist = 10
							authoritarian_democrat = 20
							fascist = 10
						}
						set_politics = {
							ruling_party = totalitarian_socialist
							last_election = "2013.5.12"
							election_frequency = 48
							elections_allowed = no
						}
						create_country_leader = {
							name = CEN_gobierno_provisional_republica
							picture = "gfx/Leaders/NIC/NIC_Gobierno_Provisional_de_la_Republica.png"
							ideology = left_wing_junta
						}
						set_party_name = {
							ideology = totalitarian_socialist
							long_name = NIC_puppet_party_long
							name = NIC_puppet_party
						}
						if = {
							limit = {
								has_idea = CEN_banana_republic
							}
							swap_ideas = {
								remove_idea = CEN_banana_republic
								add_idea = CEN_banana_republic_red
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# El Salvador victory Central American War
					limit = {
						FROM = {
							OR = {
								original_tag = GUA
								original_tag = ELS
								original_tag = BLZ
							}
						}
						ROOT = {
							OR = {
								original_tag = NIC
								original_tag = HON
							}
						}
					}
					FROM = {
						ELS = {
							puppet = ROOT
						}
						white_peace = ROOT
					}
					ROOT = {
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.3
						}
						set_politics = {
							ruling_party = authoritarian_democrat
							last_election = "2013.5.12"
							election_frequency = 48
							elections_allowed = no
						}
						create_country_leader = {
							name = CEN_gobierno_provisional_republica
							picture = "gfx/Leaders/NIC/NIC_Gobierno_Provisional_de_la_Republica.png"
							ideology = military_democracy
						}
						set_party_name = {
							ideology = authoritarian_democrat
							long_name = ELS_puppet_party_long
							name = ELS_puppet_party
						}
						if = {
							limit = {
								original_tag = NIC
							}
							set_cosmetic_tag = ELS_puppet
						}
						if = {
							limit = {
								original_tag = HON
							}
							drop_cosmetic_tag = yes
						}
						if = {
							limit = {
								has_idea = CEN_banana_republic_red
							}
							swap_ideas = {
								remove_idea = CEN_banana_republic_red
								add_idea = CEN_banana_republic
							}
						}
						if = {
							limit = {
								has_idea = NIC_revolutionary_spirit
							}
							remove_ideas = NIC_revolutionary_spirit
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PTF kill GMAC
					limit = {
						FROM = {
							original_tag = PTF
						}
						ROOT = {
							OR = {
								original_tag = GMA
								original_tag = FAA
								original_tag = GMC
							}
						}
					}
					FROM = {
						remove_from_faction = ROOT
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AFRICAN DAWN: Sahel kill ECOMOG
					limit = {
						FROM = {
							OR = {
								original_tag = MLI
								is_in_faction_with = MLI
								original_tag = NGR
								is_in_faction_with = NGR
								original_tag = VOL
								is_in_faction_with = VOL
							}
						}
						ROOT = {
							OR = {
								original_tag = NGA
								is_in_faction_with = NGA
								original_tag = IVO
								is_in_faction_with = IVO
								original_tag = SIE
								is_in_faction_with = SIE
								original_tag = LIB
								is_in_faction_with = LIB
								original_tag = GHA
								is_in_faction_with = GHA
								original_tag = DAH
								is_in_faction_with = DAH
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						add_popularity = {
							ideology = nationalist
							popularity = 0.3
						}
						set_politics = {
							ruling_party = nationalist
							last_election = "2013.5.12"
							election_frequency = 48
							elections_allowed = no
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					if = {
						limit = {
							ROOT = {
								original_tag = NGA
							}
						}
						BIA = {
							transfer_state = 764
							add_state_core = 764
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.50
							}
							set_politics = {
								ruling_party = authoritarian_democrat
								last_election = "2022.04.10"
								election_frequency = 60
								elections_allowed = no
							}
							hidden_effect = {
								division_template = {
									name = "Eastern Security Forces"	
									regiments = {
										militia = { x = 0 y = 0 }
										militia = { x = 0 y = 1 }
										militia = { x = 0 y = 2 }
										militia = { x = 0 y = 3 }
									}
									support = {
										engineer = { x = 0 y = 0 }
										recon = { x = 0 y = 0 }
									}
								}
								random_owned_controlled_state = {
									prioritize = { 764 }
									create_unit = {
										division = "name = \"Eastern Security Network No. 1\" division_template = \"Eastern Security Forces\" start_experience_factor = 0.6 start_equipment_factor = 1" 
										owner = BIA	
									}
								}
								random_owned_controlled_state = {
									prioritize = { 764 }
									create_unit = {
										division = "name = \"Eastern Security Network No. 2\" division_template = \"Eastern Security Forces\" start_experience_factor = 0.8 start_equipment_factor = 1" 
										owner = BIA	
									}
								}
								random_owned_controlled_state = {
									prioritize = { 764 }
									create_unit = {
										division = "name = \"Eastern Security Network No. 3\" division_template = \"Eastern Security Forces\" start_experience_factor = 0.4 start_equipment_factor = 1" 
										owner = BIA	
									}
								}
								random_owned_controlled_state = {
									prioritize = { 764 }
									create_unit = {
										division = "name = \"Eastern Security Network No. 4\" division_template = \"Eastern Security Forces\" start_experience_factor = 0.8 start_equipment_factor = 1" 
										owner = BIA	
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AFRICAN DAWN: ECOMOG kill Sahel
					limit = {
						FROM = {
							OR = {
								original_tag = NGA
								is_in_faction_with = NGA
								original_tag = IVO
								is_in_faction_with = IVO
								original_tag = SIE
								is_in_faction_with = SIE
								original_tag = LIB
								is_in_faction_with = LIB
								original_tag = GHA
								is_in_faction_with = GHA
								original_tag = DAH
								is_in_faction_with = DAH
							}
						}
						ROOT = {
							OR = {
								original_tag = MLI
								is_in_faction_with = MLI
								original_tag = NGR
								is_in_faction_with = NGR
								original_tag = VOL
								is_in_faction_with = VOL
							}
						}
					}
					FROM = {
						puppet = ROOT
						white_peace = ROOT
					}
					ROOT = {
						add_popularity = {
							ideology = social_democrat
							popularity = 0.3
						}
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
						add_ideas = FRA_CFA_Franc
					}
					set_global_flag = skip_default_capitulation
				}
				
				###		  				  ###
				### First NATO War, M W 3 ###
				###		  				  ###
				
				if = {
					# SOV Kill UKR
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = UKR
						}
					}
					set_province_name = {
						id = 525
						name = kiev_city
					}
					set_province_name = {
						id = 418
						name = kharkov_city
					}
					set_province_name = {
						id = 11479
						name = lvov_city
					}
					set_province_name = {
						id = 11561
						name = krivoyrog_city
					}
					set_province_name = {
						id = 11405
						name = zaporozhye_city
					}
					set_province_name = {
						id = 3543
						name = gostomel_city
					}
					set_province_name = {
						id = 11670
						name = odessa_city
					}
					set_province_name = {
						id = 3755
						name = nikolayev_city
					}
					set_province_name = {
						id = 3568
						name = chernigov_city
					}
					set_province_name = {
						id = 9465
						name = tserkov_city
					}
					set_province_name = {
						id = 9425
						name = ivanofrankovsk_city
					}
					set_province_name = {
						id = 11422
						name = dnepr_city
					}
					set_province_name = {
						id = 502
						name = slavyansk_city
					}
					set_province_name = {
						id = 9481
						name = vinnitsa_city
					}
					#HUN = {
					#	country_event = { #coup
					#		id = Hungary.6
					#	}
					#}
					GER = {
						NATO_unity_decrease = yes
					}
					FRA = {
						IF = {
							LIMIT = {
								casualties_inflicted_by = {
								    opponent = SOV
								    thousands < 5
								}
							}
							country_event = { id = france.221 }
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_global_flag = NOV_red_ukraine_flag
								}
							}
							white_peace = ROOT
							set_province_name = {
								id = 3452
								name = kropivnitskiy_city
							}
							NOV = {
								get_current_government_type = yes
								SOV = {
									set_autonomy = {
										target = NOV
										autonomous_state = autonomy_ssr
									}
								}
								restore_previous_government_type = yes
								set_capital = {
									state = 1285
								}
								annex_country = {
									target = UKR
									transfer_troops = yes
								}
								kill_country_leader = yes
								create_country_leader = {
									name = UKR_petro_symonenko
									picture = "Petro Symonenko.dds"
									ideology = marxism_leninism
								}
								create_country_leader = {
									name = UKR_petro_symonenko
									picture = "Petro Symonenko.dds"
									ideology = reformist_socialism
								}
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_global_flag = NOV_red_novorossiya_flag
								}
							}
							white_peace = ROOT
							set_province_name = {
								id = 3452
								name = kropivnitskiy_city
							}
							NOV = {
								get_current_government_type = yes
								SOV = {
									set_autonomy = {
										target = NOV
										autonomous_state = autonomy_ssr
									}
								}
								restore_previous_government_type = yes
								add_state_core = 1184
								add_state_core = 200
								add_state_core = 196
								add_state_core = 1091
								add_state_core = 221
								add_state_core = 1090
								add_state_core = 226
								add_state_core = 197
								add_state_core = 192
								add_state_core = 806
								add_state_core = 1375
								add_state_core = 1374
								transfer_state = 1184
								transfer_state = 200
								transfer_state = 196
								transfer_state = 1091
								transfer_state = 221
								transfer_state = 1090
								transfer_state = 226
								transfer_state = 197
								transfer_state = 192
								transfer_state = 806
								transfer_state = 1375
								transfer_state = 1374
								SOV = {
									add_to_faction = NOV
								}
							}
							UKR = {
								get_current_government_type = yes
								SOV = {
									set_autonomy = {
										target = UKR
										autonomous_state = autonomy_ssr
									}
								}
								restore_previous_government_type = yes
								country_event = {
									id = russia.127
								}
								create_country_leader = {
									name = UKR_petro_symonenko
									picture = "Petro Symonenko.dds"
									ideology = marxism_leninism
								}
								create_country_leader = {
									name = UKR_petro_symonenko
									picture = "Petro Symonenko.dds"
									ideology = communist_populism
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							set_province_name = {
								id = 11405
								name = aleksandrovsk_city
							}
							set_province_name = {
								id = 11422
								name = yekaterinoslavl_city
							}
							set_province_name = {
								id = 3452
								name = yelisavetgrad_city
							}
							SOV = {
								transfer_state = 1185
								transfer_state = 193
								transfer_state = 225
								transfer_state = 259
								transfer_state = 1184
								transfer_state = 200
								transfer_state = 196
								transfer_state = 1091
								transfer_state = 221
								transfer_state = 1090
								transfer_state = 1375
								transfer_state = 1374
							}
							UKR = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = SOV_viktor_zolotov
									picture = "gfx/leaders/SOV/generals/Viktor Zolotov (IMPERIAL).dds"
									ideology = military_junta
								}
								set_party_name = {
									ideology = nationalist
									name = UKR_zhir_governship
								}
							}
							ROOT = {
								set_cosmetic_tag = UKR_zhir
							}
							annex_country = {
								target = NOV
								transfer_troops = yes
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							NOV = {
								add_state_core = 1184
								add_state_core = 200
								add_state_core = 196
								add_state_core = 1091
								add_state_core = 221
								add_state_core = 1090
								add_state_core = 226
								add_state_core = 197
								add_state_core = 192
								add_state_core = 806
								add_state_core = 1375
								add_state_core = 1374
								transfer_state = 1184
								transfer_state = 200
								transfer_state = 196
								transfer_state = 1091
								transfer_state = 221
								transfer_state = 1090
								transfer_state = 226
								transfer_state = 197
								transfer_state = 192
								transfer_state = 806
								transfer_state = 1375
								transfer_state = 1374
								SOV = {
									add_to_faction = NOV
								}
							}
							DNZ = {
								add_state_core = 73
								transfer_state = 73
								SOV = {
									puppet = DNZ
								}
								set_politics = {
									ruling_party = nationalist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.6
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.15
								}
								add_popularity = {
									ideology = communist
									popularity = 0.25
								}
								load_oob = "DNZ_2020"
							}
							UKR = {
								promote_character = {
									character = UKR_nikolai_azarov
									ideology = hybrid_regime
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.45
								}
								set_party_name = {
									ideology = authoritarian_democrat
									name = UKR_medv_governship_short
									long_name = UKR_medv_governship
								}
							}
							ROOT = {
								if = {
									limit = {
										SOV = {
											has_completed_focus = SOV_push_back_the_west
										}
									}
									set_cosmetic_tag = UKR_rus_malorossiya
								}
								else = {
									set_cosmetic_tag = UKR_rus
								}
							}
						}
						else_if = {
							limit = {
								SOV = {
									has_government = national_socialist
								}
							}
							white_peace = ROOT
							puppet = ROOT
							annex_country = {
								target = UKR
								transfer_troops = no
							}
						}		
						else_if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_evgeny_prigozhin
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							annex_country = {
								target = UKR
								transfer_troops = no
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							UKR = {
								add_to_tech_sharing_group = csto_research
							}
						}
						country_event = {
							id = russia.117
							days = 20
						}
						ROM = {
							load_oob = "ROM_ukraine_capitulation"
						}
						HUN = {
							load_oob = "HUN_ukraine_capitulation"
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill BUL
					limit = {
						NOT = {
							has_global_flag = second_nato_war_flag
						}
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = BUL
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								country_event = {
									id = russia.127
								}
								load_oob = "BUL_communist"
							}
							else_if = {
								limit = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
								white_peace = ROOT
								puppet = ROOT
								BUL = {
									set_politics = {
										ruling_party = fascist
										last_election = "2013.5.12"
										election_frequency = 48
										elections_allowed = no
									}
									add_popularity = {
										ideology = fascist
										popularity = 0.65
									}
								}
							}
							else = {
								white_peace = ROOT
								puppet = ROOT
								BUL = {
									set_politics = {
										ruling_party = authoritarian_democrat
										last_election = "2013.5.12"
										election_frequency = 48
										elections_allowed = no
									}
									add_popularity = {
										ideology = authoritarian_democrat
										popularity = 0.65
									}
								}
								SOV = {
									country_event = {
										id = russia.274
										days = 120
									}
								}
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							BUL = {
								add_to_tech_sharing_group = csto_research
							}
						}
						if = {
							limit = {
								NOT = {
									has_global_flag = second_nato_war_flag
								}
							}
							TUR = {
								white_peace = SOV
								white_peace = BLR
								white_peace = ARM
								white_peace = KAZ
								white_peace = TJK
								white_peace = TMS
								white_peace = KYR
								clr_country_flag = global_ass_lol
							}
							GRE = {
								white_peace = SOV
								white_peace = BLR
								white_peace = ARM
								white_peace = KAZ
								white_peace = TJK
								white_peace = TMS
								white_peace = KYR
								clr_country_flag = global_ass_lol
							}
							if = {
								limit = {
									any_country = {
										has_country_flag = NATO_current_leader
									}
								}
								remove_from_faction = TUR
								remove_from_faction = GRE
							}
							news_event = {
								id = news.228
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill MOL
					limit = {
						NOT = {
							has_global_flag = second_nato_war_flag
						}
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = MOL
						}
					}
					SOV = {
						white_peace = ROOT
						puppet = ROOT
						TRA = {
							if = {
								limit = {
									SOV = {
										OR = {
											has_government = communist
											has_government = libertarian_socialist
										}
										NOT = {
											has_country_leader = {
												character = SOV_sergei_mironov
												ruling_only = yes
											}
										}
									}
								}
								add_state_core = 78
								add_state_core = 857
								transfer_state = 857
								transfer_state = 78
								set_cosmetic_tag = MOL_ssr
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							TRA = {
								add_to_tech_sharing_group = csto_research
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill LIT
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = LIT
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								set_party_name = {
									long_name = LIT_ausra_party_long
									name = LIT_ausra_party
									ideology = authoritarian_democrat
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = national_socialist
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = LAT
									country_exists = EST
								}
								has_global_flag = SOV_nato_war_begins_global
							}
							random_list = {
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
								}
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
								}
								60 = {
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
									DEN = {
										country_event = {
											id = denmark.1
											days = 60
										}
									}
								}
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							LIT = {
								add_to_tech_sharing_group = csto_research
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill HUN
					limit = {
						NOT = {
							has_global_flag = second_nato_war_flag
						}
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = HUN
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									country_exists = HNG
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								country_event = {
									id = russia.127
								}

								set_cosmetic_tag = HUN_commie_puppet
								load_oob = "HUN_communist"
								set_party_name = {
									ideology = totalitarian_socialist
									long_name = HUN_totalitarian_socialist_party_long
									name = HUN_totalitarian_socialist_party
								}
								set_party_name = {
									ideology = communist
									long_name = HUN_communist_party_long
									name = HUN_communist_party
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist	
								}
								country_exists = HNG
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									#	HUN = {
									#	has_completed_focus = HUN_Safeguard_Our_Nation
									#	}
								}
							}
							white_peace = ROOT
							puppet = HNG
							HNG = {
								load_oob = "HUN_communist"
								annex_country = {
									target = HUN
									transfer_troops = yes
								}
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								AND = {
									country_exists = HNG
									#	HUN = {
									#	has_completed_focus = HUN_Safeguard_Our_Nation
									#	}
								}
							}
							white_peace = ROOT
							HNG = {
								annex_country = {
									target = HUN
									transfer_troops = yes
								}
								white_peace = GER
								white_peace = FRA
								white_peace = ENG
								give_military_access = SOV
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
								NOT = {
									country_exists = HNG
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								set_cosmetic_tag = HUN_Hungarian_State
								add_country_leader_role = {
									character = HUN_Tibor_Benko_char
									promote_leader = yes
									country_leader = {
										ideology = hybrid_regime
										traits = {
											
										}
									}
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
								country_exists = HNG
								HUN = {
									has_completed_focus = HUN_Request_CSTO_Observer_Membership
								}
							}
							white_peace = ROOT
							FROM = {
								puppet = HNG
							}
							HNG = {
								annex_country = {
									target = HUN
									transfer_troops = yes
								}
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
								NOT = {
									country_exists = HNG
								}
							}
							white_peace = ROOT
							puppet = ROOT
							HUN = {
								EU_leave_effect = yes
								set_cosmetic_tag = HUN_Government_of_National_Unity
								set_politics = {	
									ruling_party = fascist
									last_election = "2022.04.08"
									election_frequency = 48
									elections_allowed = no
								}
								add_country_leader_role = {
								    character = HUN_Gyorgy_Gyula_Zagyva_char
								    promote_leader = yes
									country_leader = {
										ideology = ethno_nationalism
										traits = {
										}
									}
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
								country_exists = HNG
								HUN = {
									has_completed_focus = HUN_Rebirth_of_the_Regency
								}
							}
							white_peace = ROOT
							FROM = {
								puppet = HNG
							}
							HNG = {
								annex_country = {
									target = HUN
									transfer_troops = yes
								}
								set_politics = {
									ruling_party = nationalist
				    				elections_allowed = no
								}
							}
						}
						else_if = {
							limit = {
								has_government = national_socialist
								has_global_flag = something_different
							}
							white_peace = ROOT
							puppet = ROOT
							BAS = {
								add_state_core = 155
								add_state_core = 854
								add_state_core = 43
								add_state_core = 154
								transfer_state = 155
								transfer_state = 854
								transfer_state = 43
								transfer_state = 154
							}
							ROOT = {
								if = {
									limit = {
										NOT = {
											BAS = {
												is_puppet_of = SOV
											}
										}
									}
									SOV = {
										puppet = BAS
										BAS = {
											declare_war_on = {
												target = FRA
												type = annex_everything
											}
											declare_war_on = {
												target = GER
												type = annex_everything
											}
											declare_war_on = {
												target = ENG
												type = annex_everything
											}
											declare_war_on = {
												target = ITA
												type = annex_everything
											}
										}
									}
								}
							}
						}
						else_if = {
							limit = {
								has_country_leader = {
									character = SOV_alexei_navalny
									ruling_only = yes
								}
							}
							white_peace = ROOT
							puppet = ROOT
							country_event = {
								id = russia.218
								days = 10
							}
							ROOT = {
								EU_leave_effect = yes
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							HUN = {
								add_to_tech_sharing_group = csto_research
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill PLD
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = PLD
						}
						NOT = {
							has_global_flag = second_nato_war_flag
						}
					}
					GER = {
						GER_richard_rossmanith = {
							unit_leader_event = {
								id = germany.22
							}
						}
						NATO_unity_decrease = yes
					}
					SOV = {
						white_peace = ROOT
						if = {
							limit = {
								any_country = {
									has_country_flag = NATO_current_leader
								}
							}
							remove_from_faction = PLD
						}
						PLD = {
							EU_leave_effect = yes
							country_event = {
								id = poland.1
								days = 5
							}
							set_capital = {
								state = 86
								remember_old_capital = no
							}
							if = {
								limit = {
									has_country_leader = PLD_andrzej_duda_char
								}
								set_country_leader_portrait = {
									ideology = conservative
									portrait = GFX_portrait_POL_duda_sad
								}
							}
						}
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}	
								}
							}
							MLD = {
								add_state_core = 88
								add_state_core = 90
								add_state_core = 92
								add_state_core = 10
								add_state_core = 98
								add_state_core = 85
								add_state_core = 5
								add_state_core = 97
								add_state_core = 855
								add_state_core = 87
								add_state_core = 67
								add_state_core = 66
								add_state_core = 86
								add_state_core = 743
								add_state_core = 63
								add_state_core = 742
								transfer_state = 88
								transfer_state = 90
								transfer_state = 92
								transfer_state = 10
								transfer_state = 98
								transfer_state = 85
								transfer_state = 5
								transfer_state = 97
								transfer_state = 855
								transfer_state = 63
								transfer_state = 87
								load_oob = "MLD_2020"
							}
							SOV = {
								puppet = MLD
							}
							MLD = {
								set_politics = {
									ruling_party = communist
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.25
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							SOV = {
								puppet = MLD
							}
							MLD = {
								add_state_core = 85
								add_state_core = 90
								add_state_core = 10
								add_state_core = 98
								add_state_core = 5
								add_state_core = 97
								add_state_core = 855
								add_state_core = 87
								add_state_core = 67
								add_state_core = 66
								add_state_core = 86
								add_state_core = 743
								add_state_core = 63
								add_state_core = 742
								transfer_state = 85
								transfer_state = 90
								transfer_state = 10
								transfer_state = 5
								transfer_state = 97
								transfer_state = 98
								transfer_state = 855
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.65
								}
								if = {
									limit = {
										has_completed_focus = SOV_invest_in_CSTO_members
									}
									MLD = {
										add_to_tech_sharing_group = csto_research
									}
								}
							}
							SIL = {
								add_state_core = 67
								add_state_core = 66
								transfer_state = 67
								transfer_state = 66
							}
							KAR = {
								add_state_core = 88
								add_state_core = 92
								transfer_state = 88
								transfer_state = 92
								if = {
									limit = {
										has_completed_focus = SOV_invest_in_CSTO_members
									}
									KAR = {
										add_to_tech_sharing_group = csto_research
									}
								}
							}
							puppet = MLD
							puppet = KAR
							KAR = {
								set_politics = {
									ruling_party = nationalist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.65
								}
							}
						}
						else_if = {
							limit = {
								has_country_leader = {
									character = SOV_vladimir_zhirinovsky
									ruling_only = yes
								}
							}
							MLD = {
								add_state_core = 88
								add_state_core = 90
								add_state_core = 92
								add_state_core = 10
								add_state_core = 98
								add_state_core = 85
								add_state_core = 5
								add_state_core = 97
								add_state_core = 855
								add_state_core = 87
								add_state_core = 67
								add_state_core = 66
								add_state_core = 86
								add_state_core = 743
								add_state_core = 63
								add_state_core = 742
								transfer_state = 87
								transfer_state = 98
								transfer_state = 97
								transfer_state = 10
								transfer_state = 855
								transfer_state = 92
								transfer_state = 90
								transfer_state = 88
								transfer_state = 92
							}
							SOV = {
								puppet = MLD
							}
							MLD = {
								EU_leave_effect = yes
								set_politics = {
									ruling_party = fascist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.65
								}
							}
						}
						else_if = {
							limit = {
								has_global_flag = something_different
								SOV = {
									has_completed_focus = SOV_how_did_this_happen
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill LAT
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = LAT
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}	
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								country_event = { 
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							SOV = {
								transfer_state = 1182
							}
							ROOT = {
								EU_leave_effect = yes
								set_party_name = {
									long_name = LAT_action_party_long
									name = LAT_action_party
									ideology = authoritarian_democrat
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
									SOV = {
										has_completed_focus = SOV_how_did_this_happen
									}
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = EST
									country_exists = LIT
								}
								has_global_flag = SOV_nato_war_begins_global
							}
							random_list = {
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
								}
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
								}
								60 = {
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
									DEN = {
										country_event = {
											id = denmark.1
											days = 60
										}
									}
								}
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							LAT = {
								add_to_tech_sharing_group = csto_research
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill EST
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = EST
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}	
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							SOV = {
								transfer_state = 840
								transfer_state = 1329
							}
							ROOT = {
								EU_leave_effect = yes
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
									SOV = {
										has_completed_focus = SOV_how_did_this_happen
									}
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = LAT
									country_exists = LIT
								}
								has_global_flag = SOV_nato_war_begins_global
							}
							random_list = {
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
								}
								20 = {
									HOL = {
										country_event = {
											id = holland.1
											days = 30
										}
									}
								}
								60 = {
									BEL = {
										country_event = {
											id = belgium.1
											days = 20
										}
									}
									DEN = {
										country_event = {
											id = denmark.1
											days = 60
										}
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill ALB
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = ALB
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill BOS
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = BOS
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill CRO
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = CRO
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					ROOT = {
						EU_leave_effect = yes
						if = {
							limit = {
								has_idea = NATO_unity_1
							}
							remove_ideas = NATO_unity_1
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_2
							}
							remove_ideas = NATO_unity_2
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_3
							}
							remove_ideas = NATO_unity_3
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_4
							}
							remove_ideas = NATO_unity_4
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill SLV
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = SLV
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					ROOT = {
						EU_leave_effect = yes
						if = {
							limit = {
								has_idea = NATO_unity_1
							}
							remove_ideas = NATO_unity_1
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_2
							}
							remove_ideas = NATO_unity_2
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_3
							}
							remove_ideas = NATO_unity_3
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_4
							}
							remove_ideas = NATO_unity_4
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill MNT
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = MNT
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill KOS
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = KOS
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill MAC
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = MAC
						}
						NOT = {
							has_global_flag = SOV_first_nato_war_victory
						}
					}
					SOV = {
						white_peace = ROOT
					}
					ROOT = {
						if = {
							limit = {
								has_idea = NATO_unity_1
							}
							remove_ideas = NATO_unity_1
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_2
							}
							remove_ideas = NATO_unity_2
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_3
							}
							remove_ideas = NATO_unity_3
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_4
							}
							remove_ideas = NATO_unity_4
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill ROM
					limit = {
						NOT = { has_global_flag = second_nato_war_flag }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = ROM
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								country_event = {
									id = russia.127
								}
							}
							ROOT = {
								load_oob = "ROM_patriotic_guard"
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
									has_government = conservative
								}
								NOT = {
									has_country_leader = {
										character = SOV_vladimir_zhirinovsky
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								if = {
									limit = {
										NOT = {
											has_global_flag = SOV_first_nato_war_victory
										}
									}
									country_event = {
										id = russia.291
										days = 69
									}
								}
								else_if = {
									limit = {
										has_global_flag = SOV_first_nato_war_victory
									}
									country_event = {
										id = russia.295
									}
								}
							}
							OVO = {
								add_state_core = 82
								add_state_core = 84
								add_state_core = 76
								add_state_core = 83
								add_state_core = 1434
								transfer_state = 82
								transfer_state = 84
								transfer_state = 76
								transfer_state = 83
								transfer_state = 1434
							}
							SOV = {
								puppet = OVO
							}
						}
						else_if = {
							limit = {
								has_country_leader = {
									character = SOV_vladimir_zhirinovsky
									ruling_only = yes
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								set_politics = {
									ruling_party = nationalist
								}
							}
							ROOT = {
								set_cosmetic_tag = ROM_rus
							}
						}
					}
					if = {
						limit = {
							has_completed_focus = SOV_invest_in_CSTO_members
						}
						ROM = {
							add_to_tech_sharing_group = csto_research
						}
					}
					ROOT = {
						if = {
							limit = {
								has_idea = NATO_unity_1
							}
							remove_ideas = NATO_unity_1
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_2
							}
							remove_ideas = NATO_unity_2
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_3
							}
							remove_ideas = NATO_unity_3
						}
						else_if = {
							limit = {
								has_idea = NATO_unity_4
							}
							remove_ideas = NATO_unity_4
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO kill POL
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = ENG
								original_tag = FRA
								original_tag = BEL
							}
							has_global_flag = nato_nato_won_nato_war
						}
						ROOT = {
							original_tag = PLD
						}
					}
					FROM = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							white_peace = ROOT
							puppet = ROOT
						}
						else_if = {
							limit = {
								OR = {
									has_government = fascist
									has_government = national_socialist
									has_government = authoritarian_democrat
								}
							}
							white_peace = ROOT
							puppet = ROOT
						}
						else_if = {
							limit = {
								original_tag = BEL
								has_government = social_liberal
							}
							annex_country = {
								target = MLD
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO kill SLO
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = ENG
								original_tag = FRA
								original_tag = ITA
								original_tag = SPR
								original_tag = NOR
								original_tag = LIT
								original_tag = EST
								original_tag = LAT
								original_tag = BLR
								original_tag = UKR
								original_tag = PLD
								original_tag = BEL
							}
							has_global_flag = nato_nato_won_nato_war
						}
						ROOT = {
							original_tag = SLO
						}
					}
					FROM = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								country_event = {
									id = russia.127
								}
							}
						}
						else_if = {
							limit = {
								OR = {
									has_government = fascist
									has_government = national_socialist
									has_government = authoritarian_democrat
								}
							}
							white_peace = ROOT
							puppet = ROOT
						}
						else_if = {
							limit = {
								original_tag = BEL
								has_government = social_liberal
							}
							annex_country = {
								target = MLD
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV Kill SLO
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							original_tag = SLO
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_government = communist
									has_government = libertarian_socialist
								}
								NOT = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}	
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
							}
						}
						else_if = {
							limit = {
								OR = {
									has_country_leader = {
										character = SOV_sergei_mironov
										ruling_only = yes
									}		
									has_country_leader = {
										character = SOV_dmitry_medvedev
										ruling_only = yes
									}
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								set_party_name = { ideology = authoritarian_democrat long_name = SLO_social_democrat_party_long name = SLO_social_democrat_party }
							}
						}
						else_if = {
							limit = {
								has_country_leader = {
									character = SOV_vladimir_zhirinovsky
									ruling_only = yes
								}
							}
							white_peace = ROOT
							puppet = ROOT
							ROOT = {
								EU_leave_effect = yes
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
								}
								set_cosmetic_tag = SLO_rus
							}
						}
						else_if = {
							limit = {
								has_global_flag = something_different
								SOV = {
									has_completed_focus = SOV_how_did_this_happen
								}
							}
							white_peace = ROOT
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								has_completed_focus = SOV_invest_in_CSTO_members
							}
							SLO = {
								add_to_tech_sharing_group = csto_research
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				#sorry pal, this is where your conquest ends
				
				if = {
					# Europe kill AUS
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = AUS
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							GER = {
								puppet = ROOT
							}
						}
						else_if = {
							limit = {
								ITA = {
									OR = {
										has_government = communist
										has_government = libertarian_socialist
										has_government = fascist
										has_government = nationalist
										has_government = authoritarian_democrat
									}
								}
							}
							GER = {
								puppet = ROOT
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}	
				if = {
					# Communist SOV kill ENG
					limit = {
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = ENG
							}
						}
					}
					SOV = {
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
								has_global_flag = second_nato_war_flag
								has_global_flag = SOV_first_nato_war_victory
							}
							puppet = ROOT
							if = {
								limit = {
									has_global_flag = ENG_british_ireland
								}
								every_state = {
									limit = {
										is_core_of = IRE
									}
									add_core_of = IRA
									transfer_state_to = IRA
								}
								IRA = {
									annex_country = {
										target = IRE
										transfer_troops = no
									}
									annex_country = {
										target = NIR
										transfer_troops = no
									}
									SOV = {
										puppet = IRA
									}
									set_popularities = {
										authoritarian_democrat = 10
										nationalist = 13
										libertarian_socialist = 26
										communist = 51
									}
									set_politics = {
										ruling_party = communist
										elections_allowed = no
									}
									SOV_join_ADS = yes
								}
							}
							else = {
								IRA = {
									annex_country = {
										target = IRE
										transfer_troops = no
									}
									annex_country = {
										target = NIR
										transfer_troops = no
									}
									SOV = {
										puppet = IRA
									}
									set_popularities = {
										authoritarian_democrat = 10
										nationalist = 13
										libertarian_socialist = 26
										communist = 51
									}
									set_politics = {
										ruling_party = communist
										elections_allowed = no
									}
									SOV_join_ADS = yes
								}
							}
							ENG = {
								EU_leave_effect = yes
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_2
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_3
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									traits = {
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Dugin SOV kill Europe
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = FER
								original_tag = CHE
								original_tag = KBK
								original_tag = BYA
								original_tag = UNN
								original_tag = UKR
								original_tag = BLR
								original_tag = LIT
								original_tag = LAT
								original_tag = EST
								original_tag = MOL
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
								original_tag = ENG
								original_tag = AUS
								original_tag = SWE
								original_tag = FIN
								original_tag = ICE
								original_tag = ARM
								original_tag = HRZ
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_alexander_dugin
										ruling_only = yes
									}
								}
								has_global_flag = SOV_dugin_russia_flag
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_eurasian_army_party name = SOV_eurasian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_10
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_11
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_12
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							FRA = {
								end_puppet = QUE
								end_puppet = CHA
								end_puppet = CMR
								end_puppet = GAB
								end_puppet = EQG
								end_puppet = CSF
							}
							every_country = {
								limit = {
									has_war_with = SOV
									OR = {
										tag = QUE
										tag = CHA
										tag = CMR
										tag = GAB
										tag = EQG
										tag = ARR
										tag = CSF
										tag = BRA
										tag = HRL
										tag = PER
										tag = ZET
										tag = EGY
									}
								}
								drop_cosmetic_tag = yes
								white_peace = SOV
								leave_faction = yes
							}
							CAN = {
								declare_war_on = {
					                target = QUE
					                type = annex_everything
					            }
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_dugin_russia_flag
								ROOT = {
									OR = {
										tag = FER
										tag = CHE
										tag = KBK
										tag = BYA
										tag = UNN
										tag = SHL
										tag = UKR
										tag = BLR
										tag = LIT
										tag = LAT
										tag = EST
										tag = MOL
										tag = GEO
										tag = AZR
										tag = ARM
										tag = HRZ
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
							}
							every_state = {
								limit = {
									is_core_of = ICE
								}
								set_state_controller_to = SOV
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Navalny SOV kill Europe
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = FER
								original_tag = CHE
								original_tag = KBK
								original_tag = BYA
								original_tag = UNN
								original_tag = UKR
								original_tag = BLR
								original_tag = LIT
								original_tag = LAT
								original_tag = EST
								original_tag = MOL
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
								original_tag = ENG
								original_tag = AUS
								original_tag = SWE
								original_tag = FIN
								original_tag = ICE
								original_tag = ARM
								original_tag = HRZ
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_alexei_navalny
										ruling_only = yes
									}
								}
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								set_country_flag = BTO_member
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics= {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_7
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_8
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_9
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							FRA = {
								end_puppet = QUE
								end_puppet = CHA
								end_puppet = CMR
								end_puppet = GAB
								end_puppet = EQG
								end_puppet = CSF
							}
							every_country = {
								limit = {
									has_war_with = SOV
									OR = {
										tag = QUE
										tag = CHA
										tag = CMR
										tag = GAB
										tag = EQG
										tag = ARR
										tag = CSF
										tag = BRA
										tag = HRL
										tag = PER
										tag = ZET
										tag = EGY
									}
								}
								drop_cosmetic_tag = yes
								white_peace = SOV
								leave_faction = yes
							}
							CAN = {
								declare_war_on = {
					                target = QUE
					                type = annex_everything
					            }
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									OR = {
										tag = FER
										tag = CHE
										tag = KBK
										tag = BYA
										tag = UNN
										tag = SHL
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = EST
								}
							}
							SOV = {
								transfer_state = 840
								add_state_core = 840
								transfer_state = 1329
								add_state_core = 1329
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = LAT
								}
							}
							SOV = {
								transfer_state = 1182
								add_state_core = 1182
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_navalny_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = UKR
								}
							}
							SOV = {
								transfer_state = 196
								add_state_core = 196
								transfer_state = 200
								add_state_core = 200
								transfer_state = 1059
								add_state_core = 1059
								transfer_state = 1374
								add_state_core = 1374
								transfer_state = 227
								add_state_core = 227
								transfer_state = 228
								add_state_core = 228
								transfer_state = 1090
								add_state_core = 1090
								transfer_state = 1091
								add_state_core = 1091
								transfer_state = 1375
								add_state_core = 1375
								transfer_state = 221
								add_state_core = 221
								transfer_state = 1184
								add_state_core = 1184
								transfer_state = 259
								add_state_core = 259
								transfer_state = 225
								add_state_core = 225
								transfer_state = 193
								add_state_core = 193
								transfer_state = 1185
								add_state_core = 1185
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
							}
							every_state = {
								limit = {
									is_core_of = ICE
								}
								set_state_controller_to = SOV
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}				
				if = {
					# Wagner SOV kill Europe
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = FER
								original_tag = CHE
								original_tag = KBK
								original_tag = BYA
								original_tag = UNN
								original_tag = UKR
								original_tag = BLR
								original_tag = LIT
								original_tag = LAT
								original_tag = EST
								original_tag = MOL
								original_tag = GEO
								original_tag = AZR
								original_tag = ARM
								original_tag = ENG
								original_tag = AUS
								original_tag = SWE
								original_tag = FIN
								original_tag = ICE
								original_tag = ARM
								original_tag = HRZ
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								SOV = {
									has_country_leader = {
										character = SOV_evgeny_prigozhin
										ruling_only = yes
									}
								}
								has_global_flag = SOV_wagner_russia_flag
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = global_ass_lol
								EU_leave_effect = yes
								set_country_flag = BTO_member
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics= {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_4
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_5
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_6
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							FRA = {
								end_puppet = QUE
								end_puppet = CHA
								end_puppet = CMR
								end_puppet = GAB
								end_puppet = EQG
								end_puppet = CSF
							}
							every_country = {
								limit = {
									OR = {
										tag = QUE
										tag = CHA
										tag = CMR
										tag = GAB
										tag = EQG
										tag = ARR
										tag = CSF
										tag = BRA
									}
								}
								white_peace = SOV
								leave_faction = yes
							}
							CAN = {
								declare_war_on = {
					                target = QUE
					                type = annex_everything
					            }
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_wagner_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									OR = {
										tag = FER
										tag = CHE
										tag = KBK
										tag = BYA
										tag = UNN
										tag = SHL
										tag = BLR
										tag = UKR
									}
								}
							}
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_wagner_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = EST
								}
							}
							SOV = {
								transfer_state = 840
								add_state_core = 840
								transfer_state = 1329
								add_state_core = 1329
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_wagner_russia_flag
								has_global_flag = second_nato_war_flag
								ROOT = {
									original_tag = LAT
								}
							}
							SOV = {
								transfer_state = 1182
								add_state_core = 1182
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
							}
							every_state = {
								limit = {
									is_core_of = ICE
								}
								set_state_controller_to = SOV
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Communist SOV kill Europe
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
							}
						}
					}
					SOV = {
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
								has_global_flag = second_nato_war_flag
								has_global_flag = SOV_first_nato_war_victory
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
								clr_country_flag = pact_of_steel_member
								set_country_flag = mto_member
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = totalitarian_socialist
									popularity = 0.15
								}
								set_politics= {
									ruling_party = totalitarian_socialist
									elections_allowed = no 
								}
								set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_2
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_3
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = left_wing_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								has_global_flag = SOV_cprf_won
								has_global_flag = second_nato_war_flag
								has_global_flag = SOV_first_nato_war_victory
								ROOT = {
									tag = GER
								}
							}
							MLD = {
								transfer_state = 67
								transfer_state = 66
								transfer_state = 86
								transfer_state = 742
								transfer_state = 743
							}
							every_state = {
									limit = {
										is_core_of = CZE
									}
									transfer_state_to = CZE
								}
								SOV = {
									puppet = CZE
								}
								CZE = {
									set_popularities = {
										authoritarian_democrat = 37.5
										fascist = 17.5
										conservative = 4
										social_democrat = 6
										social_liberal = 6
										market_liberal = 3
										libertarian_socialist = 3.75
										communist = 22.25
									}
									random_list = {
										seed = random
										30 = {
											add_popularity = {
												ideology = communist
												popularity = 0.1
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = fascist
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.15
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
											add_popularity = {
												ideology = totalitarian_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
										}
									}
									add_popularity = {
										ideology = totalitarian_socialist
										popularity = 0.15
									}
									set_politics= {
										ruling_party = totalitarian_socialist
										elections_allowed = no 
									}
									set_party_name = { ideology = totalitarian_socialist long_name = SOV_union_nationalist_long name = SOV_union_nationalist_short }
									random_list = {
										seed = random
										30 = {
											set_cosmetic_tag = SOV_military_administration
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_2
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_3
										}
									}
									create_country_leader = {
										expire = "1.1.1"
										ideology = left_wing_junta
										traits = {
										}
									}
								}
							if = {
								limit = {
									FAF = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FAF
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FAF
								}
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = ENG
								}
								UK2 = {	
									exists = yes
								}
							}
							UK2 = {
								annex_country = {
									target = ENG
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = PLD
								}
								NOT = {
									has_global_flag = SOV_medvedev_won
								}
							}
							if = {
								limit = {
									MLD = {
										is_ally_with = SOV
									}
								}
								MLD = {
									annex_country = {
										target = PLD
										transfer_troops = no
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SOV kill Europe
					limit = {
						NOT = { has_global_flag = SOV_nato_second_nato_war_victory_global }
						FROM = {
							OR = {
								original_tag = SOV
								is_ally_with = SOV
							}
						}
						ROOT = {
							OR = {
								original_tag = GER
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = GER
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
								
							}
						}
					}
					SOV = {
						if = {
							limit = {
								OR = {
									has_global_flag = SOV_medvedev_won
									has_global_flag = SOV_ldpr_won
								}
								has_global_flag = SOV_first_nato_war_victory
								has_global_flag = second_nato_war_flag
							}
							puppet = ROOT
							white_peace = ROOT
							every_country = {
								limit = {
									is_in_faction_with = ROOT
									any_controlled_state = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
								}
								every_controlled_state = { 
									limit = {
										NOT = { is_controlled_by = ROOT }
										is_core_of = ROOT
										NOT = { is_core_of = PREV }
									}
									transfer_state_to = ROOT
									set_state_owner_to = ROOT
									set_state_controller_to = ROOT
								}
							}
							ROOT = {
							clr_country_flag = global_ass_lol
							EU_leave_effect = yes
							if = {
								limit = {
									SOV = { has_completed_focus = SOV_reform_csto }
								}
								set_country_flag = CES_member
							}
							else_if = {
								limit = {
									SOV = { has_completed_focus = SOV_holy_union_reborn }
								}
								set_country_flag = hu_member
							}
							else = {
								set_country_flag = csto_member
							}
								load_focus_tree = generic_focus
								set_popularities = {
									authoritarian_democrat = 37.5
									fascist = 17.5
									conservative = 4
									social_democrat = 6
									social_liberal = 6
									market_liberal = 3
									libertarian_socialist = 3.75
									communist = 22.25
								}
								random_list = {
									seed = random
									30 = {
										add_popularity = {
											ideology = communist
											popularity = 0.1
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = fascist
											popularity = 0.1
										}
										add_popularity = {
											ideology = national_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.15
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
										add_popularity = {
											ideology = totalitarian_socialist
											popularity = 0.1
										}
									}
									30 = {
										add_popularity = {
											ideology = conservative
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_democrat
											popularity = 0.1
										}
										add_popularity = {
											ideology = market_liberal
											popularity = 0.05
										}
										add_popularity = {
											ideology = social_liberal
											popularity = 0.1
										}
									}
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.25
								}
								set_politics= {
									ruling_party = nationalist
									elections_allowed = no 
								}
								set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
								random_list = {
									seed = random
									30 = {
										set_cosmetic_tag = SOV_military_administration_4
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_5
									}
									30 = {
										set_cosmetic_tag = SOV_military_administration_6
									}
								}
								create_country_leader = {
									expire = "1.1.1"
									ideology = military_junta
									traits = {
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
							}
							if = {
								limit = {
									FRA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = FRA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = GER
								}
								UK2 = {
									exists = yes
								}
							}
							UK2 = {
								set_faction_leader = yes
							}
							SOV = {
								declare_war_on = {
									target = UK2
									type = annex_everything
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = FRA
								}
							}
							if = {
								limit = {
									ITA = {
										is_faction_leader = yes
									}
								}
								SOV = {
									declare_war_on = {
										target = ITA
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									tag = PLD
									MLD = {
										is_ally_with = SOV
									}
								}
								has_global_flag = SOV_first_nato_war_victory
								has_global_flag = second_nato_war_flag
							}
							MLD = {
								annex_country = {
									target = PLD
									transfer_troops = no
								}
							}
							if = {
								limit = {
									has_global_flag = SOV_medvedev_won
								}
								MLD = {
									transfer_state = 66
									transfer_state = 67
								}
								every_state = {
									limit = {
										is_core_of = CZE
									}
									transfer_state_to = CZE
								}
								SOV = {
									puppet = CZE
								}
								CZE = {
									set_popularities = {
										authoritarian_democrat = 37.5
										fascist = 17.5
										conservative = 4
										social_democrat = 6
										social_liberal = 6
										market_liberal = 3
										libertarian_socialist = 3.75
										communist = 22.25
									}
									random_list = {
										seed = random
										30 = {
											add_popularity = {
												ideology = communist
												popularity = 0.1
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = fascist
												popularity = 0.1
											}
											add_popularity = {
												ideology = national_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.15
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
											add_popularity = {
												ideology = totalitarian_socialist
												popularity = 0.1
											}
										}
										30 = {
											add_popularity = {
												ideology = conservative
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_democrat
												popularity = 0.1
											}
											add_popularity = {
												ideology = market_liberal
												popularity = 0.05
											}
											add_popularity = {
												ideology = social_liberal
												popularity = 0.1
											}
										}
									}
									add_popularity = {
										ideology = nationalist
										popularity = 0.25
									}
									set_politics= {
										ruling_party = nationalist
										elections_allowed = no 
									}
									set_party_name = { ideology = nationalist long_name = SOV_russian_army_party name = SOV_russian_army_party }
									random_list = {
										seed = random
										30 = {
											set_cosmetic_tag = SOV_military_administration_4
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_5
										}
										30 = {
											set_cosmetic_tag = SOV_military_administration_6
										}
									}
									create_country_leader = {
										expire = "1.1.1"
										ideology = military_junta
										traits = {
										}
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									has_idea = GER_gotterdammerung_society
								}
							}
							swap_ideas = {
								remove_idea = GER_gotterdammerung_society
								add_idea = low_society
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#GER kill France
					limit = {
						GER = { has_completed_focus = GER_a_new_october }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							OR = {
								original_tag = HOL
								original_tag = BEL
								original_tag = LUX
								original_tag = SPR
								original_tag = SNS
								original_tag = POR
								original_tag = ITA
								original_tag = CZE
								original_tag = GRE
								original_tag = TUR
								original_tag = DEN
								original_tag = FRA
								original_tag = FAF
								original_tag = FPR
								original_tag = SNS
								original_tag = POR
								original_tag = TUR
								original_tag = UK2
								original_tag = ENG
								original_tag = SWE
								original_tag = FIN
								original_tag = NOR
								is_ally_with = FPR
								is_ally_with = FAF
								is_ally_with = ITA
								is_ally_with = ENG
								is_ally_with = UK2
								
							}
						}
					}
					GER = {
						white_peace = ROOT
						puppet = ROOT
						every_country = {
							limit = {
								is_in_faction_with = ROOT
								any_controlled_state = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
							}
							every_controlled_state = { 
								limit = {
									NOT = { is_controlled_by = ROOT }
									is_core_of = ROOT
									NOT = { is_core_of = PREV }
								}
								transfer_state_to = ROOT
								set_state_owner_to = ROOT
								set_state_controller_to = ROOT
							}
						}
					}
					ROOT = {
						if = {
							limit = {
								tag = LUX
							}
							8 = { transfer_state_to = GER }
						}
						if = {
							limit = {
								tag = FPR
							}
							FPR = { load_focus_tree = generic_focus }
							800 = { transfer_state_to = GER }
						}
						if = {
							limit = {
								tag = ITA
								GER = { owns_state = 153 }
							}
							39 = { transfer_state_to = GER }
						}
					}
					set_global_flag = skip_default_capitulation
				}
				#				  #
				# SECOND NATO WAR #
				#				  #
				if = {
					# Europe kill MLD
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = MLD
						}
					}
					FROM = {
						white_peace = ROOT
						ROOT = {
							set_capital = {
								state = 855
								remember_old_capital = no
							}
							get_current_government_type = yes
							if = {
								limit = {
									GER = {
										has_government = nationalist
									}
								}
								GER = {
									transfer_state = 63
									transfer_state = 85
									transfer_state = 5
									puppet = ROOT
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "1810.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.15
								}
								create_country_leader = {
									name = GER_prince_heinrich
									picture = "Prince Heinrich of Hanover.dds"
									ideology = absolute_monarchist
									traits = {
									}
								}
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = national_socialist
										}
									}
								}
								GER = {
									transfer_state = 63
									transfer_state = 85
									transfer_state = 5
									puppet = ROOT
								}
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								PLD = {
									annex_country = {
										target = ROOT
										transfer_troops = no
									}
								}
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
									}
								}
								PLD = {
									annex_country = {
										target = ROOT
										transfer_troops = no
									}
								}
							}
						}
						SOV = {
							if = {
								limit = {
									GER = {
										has_country_flag = GER_support_uia
									}
								}
								country_event = {
									id = russia.123
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill SIL
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SIL
						}
					}
					FROM = {
						white_peace = ROOT
						PLD = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
						set_global_flag = skip_default_capitulation
					}
				}
				if = {
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
								NOT = {
									has_global_flag = second_nato_war_flag
								}
							}
						}
						ROOT = {
							original_tag = HNG
						}
					}
					FROM = {
						become_exiled_in = { target = SOV legitimacy = 39 }

						set_global_flag = skip_default_capitulation
					}
				}
				if = {
					# Europe kill SLO
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = SLO
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							puppet = ROOT
						}
						ROOT = {
							get_current_government_type = yes
							if = {
								limit = {
									has_idea = visegrad_group_member
								}
								remove_ideas = visegrad_group_member
							}
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.4
								}
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								CZE = {
								    annex_country = {
									    target = ROOT
										transfer_troops = no
								    }
								}
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
									}
								}
								PLD = {
									annex_country = {
										target = ROOT
										transfer_troops = no
									}
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill HUN
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							OR = {
								original_tag = HUN
								original_tag = HNG
							}
						}
					}
					FROM = {
						white_peace = ROOT
						GER = {
							puppet = ROOT
						}
						ROOT = {
							get_current_government_type = yes
							if = {
								limit = {
									has_idea = visegrad_group_member
								}
								remove_ideas = visegrad_group_member
							}
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.4
								}
								set_cosmetic_tag = HUN_horthy
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								set_cosmetic_tag = HUN_Peoples_Republic_of_Hungarian
								load_oob = "HUN_communist"
								add_ideas = GER_chaotic_revolution
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										GER = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = HUN
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = HUN
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
							else_if = {
								limit = {
									FRA = {
										has_completed_focus = FRA_EU_European_Emergency
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										FRA = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = HUN
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = HUN
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill BUL
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = BUL
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						ROOT = {
							get_current_government_type = yes
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = nationalist
											has_government = national_socialist
										}
									}
								}
								if = {
									limit = {
										has_cosmetic_tag = BUL_balkan_federation
									}
									CRO = {
										transfer_state = 736
										add_state_core = 736
										transfer_state = 163
										add_state_core = 163
										transfer_state = 103
										add_state_core = 103
										transfer_state = 851
										add_state_core = 851
										transfer_state = 848
										add_state_core = 848
										transfer_state = 104
										add_state_core = 104
										transfer_state = 850
										add_state_core = 850
										transfer_state = 109
										add_state_core = 109
										transfer_state = 1306
										add_state_core = 1306
										
									}
									SER = {
										transfer_state = 45
										add_state_core = 45
										transfer_state = 107
										add_state_core = 107
										transfer_state = 1296
										add_state_core = 1296
										transfer_state = 849
										add_state_core = 849
										transfer_state = 105
										add_state_core = 105
										transfer_state = 108
										add_state_core = 108
										transfer_state = 1305
										add_state_core = 1305
										transfer_state = 785
										add_state_core = 785
										transfer_state = 106
										add_state_core = 106
									}
									ITA = {
										puppet = HAW
									}
									HAW = {
										add_state_core = 44
										transfer_state = 44
										create_country_leader = {
											name = ITA_Lorenzo_DAddario_char
											picture = "gfx/Leaders/ITA/Lorenzo D'Addario.png"
										}
									}
									GRE = {
										transfer_state = 886
										add_state_core = 886								
									}
									if = {
										limit = {
											AUS = {
												is_puppet_of = GER
											}
										}
										AUS = {
											transfer_state = 102
											add_state_core = 102
											transfer_state = 900
											add_state_core = 900
											GER = {
												puppet = CRO
												puppet = SER
											}
										}
									}
									else = {
										GER = {
											transfer_state = 102
											add_state_core = 102
											transfer_state = 900
											add_state_core = 900
											puppet = CRO
											puppet = SER
										}	
									}
								}
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.4
								}
								set_cosmetic_tag = BUL_fascist
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								set_cosmetic_tag = BUL_communist
								add_ideas = GER_chaotic_revolution
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										GER = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = BUL
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = BUL
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
							else_if = {
								limit = {
									FRA = {
										has_completed_focus = FRA_EU_European_Emergency
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										FRA = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = BUL
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = BUL
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill ROM
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = ROM
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						ROOT = {
							get_current_government_type = yes
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = national_socialist
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.4
								}
								set_cosmetic_tag = ROM_fascist
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_government = nationalist
									}
								}
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.4
								}
								set_cosmetic_tag = ROM_kingdom
								create_country_leader = {
									name = HUN_Margareta_of_Romania_char
									picture = "Margareta of Romania.png"
									ideology = absolute_monarchist
									traits = {
									}
								}
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								set_cosmetic_tag = ROM_communist
								load_oob = "ROM_communist"
								add_ideas = GER_chaotic_revolution
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										GER = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = ROM
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = ROM
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
							else_if = {
								limit = {
									FRA = {
										has_completed_focus = FRA_EU_European_Emergency
										is_faction_leader = yes
									}
								}
								GRE = {
									if = {
										limit = {
											GRE = {
												exists = no
											}
										}
										FRA = {
											puppet = GRE
										}
										set_politics = {
											ruling_party = social_liberal
											elections_allowed = no
											last_election = "1945.5.8"
										}
										kill_country_leader = yes
										create_country_leader = {
											name = AUS_Gunther_Fehlinger_char
											picture = "Gunther Fehlinger.dds"
											ideology = ultra_liberalism
											traits = {
											}
										}
										set_party_name = {
											ideology = social_liberal
											long_name = GER_volt_europa_long
											name = GER_volt_europa
										}
										set_cosmetic_tag = BLK_euro_commission
									}
									annex_country = {
										target = ROM
										transfer_troops = yes
									}
									every_controlled_state = {
										limit = {
											is_core_of = ROM
										}
										add_core_of = GRE
									}
									add_ideas = NOR_unwilling_ally
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill TUR
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = TUR
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						ROOT = {
							get_current_government_type = yes
							if = {
								limit = {
									GER = {
										OR = {
											has_government = fascist
											has_government = national_socialist
											has_government = nationalist
										}
									}
								}
								set_politics = {
									ruling_party = fascist
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = fascist
									popularity = 0.4
								}
								add_ideas = NOR_unwilling_ally
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_a_new_october
									}
								}
								add_ideas = GER_chaotic_revolution
							}
							else_if = {
								limit = {
									GER = {
										has_completed_focus = GER_democracy_falters
									}
								}
								set_politics = {
									ruling_party = social_liberal
									elections_allowed = no
									last_election = "2011.12.17"
								}
								add_popularity = {
									ideology = social_liberal
									popularity = 0.4
								}
								add_ideas = NOR_unwilling_ally
								GRE = {
									transfer_state = 791
								}
								KUR = {
									transfer_state = 348
									transfer_state = 350
									transfer_state = 352
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				
				if = {
					# NATO kill JAH
					limit = {
						FROM = {
							OR = {
								original_tag = ARR
								original_tag = GER
								original_tag = FRA
								original_tag = ITA
								original_tag = ENG
								original_tag = PLD
								original_tag = NOR
								original_tag = SWE
								original_tag = FIN
								original_tag = HUN
								original_tag = ROM
								original_tag = BUL
								original_tag = SLO
								original_tag = CZE
								original_tag = HOL
								original_tag = BEL
								original_tag = DEN
								original_tag = POR
								original_tag = SLV
								original_tag = EST
								original_tag = LIT
								original_tag = LAT
							}
						}
						ROOT = {
							original_tag = JAH
						}
					}
					ARR = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						drop_cosmetic_tag = yes
						set_politics = {
							ruling_party = market_liberal
							elections_allowed = yes
							last_election = "2011.12.17"
							election_frequency = 48
						}
					}
					set_global_flag = skip_default_capitulation
				} 
				if = {
					# Europe Kill UKR
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = UKR
						}
					}
					FROM = {
						get_current_government_type = yes
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
									}
								}
							}
							ROOT = {
								drop_cosmetic_tag = yes
								create_country_leader = {
									name = UKR_andriy_tarasenko
									picture = "Andriy Tarasenko.dds"
									ideology = ethno_nationalism
									traits = {
									}
								}
							}
							GER = {
								puppet = ROOT
							}
						}
						else_if = {
							limit = {
								GER = {
									has_government = nationalist
								}
							}
							ROOT = {
								drop_cosmetic_tag = yes
								create_country_leader = {
									name = "Anatoly Shevchenko"
									picture = "Anatoly Shevchenko.dds"
									ideology = autocrat
									traits = {
									}
								}
								set_cosmetic_tag = UKR_cossack
							}
							GER = {
								puppet = ROOT
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							ROOT = {
								drop_cosmetic_tag = yes
								set_cosmetic_tag = UKR_euro
								add_ideas = GER_chaotic_revolution
							}
							GER = {
								puppet = ROOT
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							GER = {
								puppet = UKR
							}
							UKR = {
								set_cosmetic_tag = UKR_euro_commission 
								GER_ultralib_eu_puppet = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe Kill OVO TRA MOL (Transylvania and other Medvedev puppets)
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							OR = {
								original_tag = OVO
								original_tag = TRA
								original_tag = MOL
							}
						}
					}
					FROM = {
						get_current_government_type = yes
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							GRE = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe Kill DNZ (Karpatskaya Rus)
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							OR = {
								original_tag = DNZ
							}
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							PLD = {
								annex_country = {
									target = ROOT
									transfer_troops = no
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = PLD
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#Europe Kill ENG
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							OR = {
								original_tag = ENG
							}
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							ENG = {
								get_current_government_type = yes
								set_cosmetic_tag = UK2_euro
								GER_ultralib_eu_puppet = yes
							}
							WLS = {
								transfer_state = 1314
								add_state_core = 1314
								transfer_state = 1315
								add_state_core = 1315
								transfer_state = 122
								add_state_core = 122
								transfer_state = 1316
								add_state_core = 1316
								transfer_state = 1313
								add_state_core = 1313
								GER_ultralib_eu_puppet = yes
							}
							NIR = {
								transfer_state = 123
								add_state_core = 123
								transfer_state = 1307
								add_state_core = 1307
								transfer_state = 1311
								add_state_core = 1311
								transfer_state = 1310
								add_state_core = 1310
								set_cosmetic_tag = NIR_euro_cornwall
								kill_country_leader = yes
								GER_ultralib_eu_puppet = yes
							}
							GER = {
								transfer_state = 121
								add_state_core = 121
								transfer_state = 133
								add_state_core = 133
								transfer_state = 136
								add_state_core = 136
								transfer_state = 120
								add_state_core = 120
								transfer_state = 1308
								add_state_core = 1308
								transfer_state = 1309
								add_state_core = 1309
								transfer_state = 127
								add_state_core = 127
								puppet = ENG
								puppet = NIR
								puppet = WLS
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe Kill NOV
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
							has_global_flag = second_nato_war_flag
						}
						ROOT = {
							original_tag = NOV
						}
					}
					FROM = {
						white_peace = ROOT
						UKR = {
							annex_country = {
								target = ROOT
								transfer_troops = no
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill SER
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SER
						}
					}
					FROM = {
						white_peace = ROOT
						puppet = ROOT
						if = {
							limit = {
								GER = {
									has_government = nationalist
								}
							}
							SER = {
								set_cosmetic_tag = SER_yugo_euro
							}
						}
						if = {
							limit = {
								CRO = {
									exists = yes
								}
							}
							CRO = {
								transfer_state = 103
								transfer_state = 109
								transfer_state = 163
								transfer_state = 736
							}
							GER = {
								add_to_faction = CRO
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_democracy_falters
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									GER = {
										puppet = GRE
									}
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
						else_if = {
							limit = {
								FRA = {
									has_completed_focus = FRA_EU_European_Emergency
									is_faction_leader = yes
								}
							}
							GRE = {
								if = {
									limit = {
										GRE = {
											exists = no
										}
									}
									FRA = {
										puppet = GRE
									}
									set_politics = {
										ruling_party = social_liberal
										elections_allowed = no
										last_election = "1945.5.8"
									}
									kill_country_leader = yes
									create_country_leader = {
										name = AUS_Gunther_Fehlinger_char
										picture = "Gunther Fehlinger.dds"
										ideology = ultra_liberalism
										traits = {
										}
									}
									set_party_name = {
										ideology = social_liberal
										long_name = GER_volt_europa_long
										name = GER_volt_europa
									}
									set_cosmetic_tag = BLK_euro_commission
								}
								annex_country = {
									target = ROOT
									transfer_troops = yes
								}
								every_controlled_state = {
									limit = {
										is_core_of = ROOT
									}
									add_core_of = GRE
								}
							}
						}
						else_if = {
							limit = {
								GER = {
									has_completed_focus = GER_gotterdammerung
								}
							}
							CRO = {
								transfer_state = 736
								add_state_core = 736
								transfer_state = 163
								add_state_core = 163
								transfer_state = 103
								add_state_core = 103
								transfer_state = 851
								add_state_core = 851
								transfer_state = 848
								add_state_core = 848
								transfer_state = 104
								add_state_core = 104
								transfer_state = 850
								add_state_core = 850
								transfer_state = 109
								add_state_core = 109
								transfer_state = 1306
								add_state_core = 1306
								
							}
							SER = {
								drop_cosmetic_tag = yes
							}
							HAW = {
								add_state_core = 44
								transfer_state = 44
							}
							ITA = {
								puppet = HAW
							}
							GRE = {
								transfer_state = 886
								add_state_core = 886
							}
							if = {
								limit = {
									AUS = {
										is_puppet_of = GER
									}
								}
								AUS = {
									transfer_state = 102
									add_state_core = 102
									transfer_state = 900
									add_state_core = 900
									GER = {
										puppet = CRO
									}
								}
							}
							else = {
								GER = {
									transfer_state = 102
									add_state_core = 102
									transfer_state = 900
									add_state_core = 900
									puppet = CRO
								}	
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SNS kill BSQ
					limit = {
						FROM = {
							original_tag = SNS
						}
						ROOT = {
							original_tag = BSQ
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								GAL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GAL
								type = annex_everything
							}
						}
						if = {
							limit = {
								LCA = {
									exists = yes
								}
							}
							declare_war_on = {
								target = LCA
								type = annex_everything
							}
						}
						if = {
							limit = {
								GOL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GOL
								type = annex_everything
							}
						}
						if = {
							limit = {
								ADU = {
									exists = yes
								}
							}
							declare_war_on = {
								target = ADU
								type = annex_everything
							}
						}
						if = {
							limit = {
								CAT = {
									exists = yes
								}
							}
							declare_war_on = {
								target = CAT
								type = annex_everything
							}
						}
						if = {
							limit = {
								BAR = {
									exists = yes
								}
							}
							declare_war_on = {
								target = BAR
								type = annex_everything
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = PRS
									country_exists = RSR
									country_exists = BSQ
								}
							}
							set_cosmetic_tag = SNS_spr
							add_ideas = SPR_plus_ultra
							GER = {
								country_event = { id = spain.7 days = 30 }
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill LIT
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = LIT
						}
						has_global_flag = second_nato_war_flag
					}
					TTS = {
						add_state_core = 188
						add_state_core = 189
						add_state_core = 11
						add_state_core = 96
						transfer_state = 188
						transfer_state = 189
						transfer_state = 11
						transfer_state = 96
					}
					FROM = {
						if = {
							limit = {
								NOT = {
									TTS = {
										is_puppet_of = GER
									}
								}
							}
							GER = {
								puppet = TTS
								TTS = {
									declare_war_on = {
										target = SOV
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_fascist
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_completed_focus = GER_democracy_falters
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_commission
								GER_ultralib_eu_puppet = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill LAT
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = LAT
						}
						has_global_flag = second_nato_war_flag
					}
					TTS = {
						add_state_core = 190
						add_state_core = 12
						add_state_core = 1182
						transfer_state = 190
						transfer_state = 12
						transfer_state = 1182
					}
					FROM = {
						if = {
							limit = {
								NOT = {
									TTS = {
										is_puppet_of = GER
									}
								}
							}
							GER = {
								puppet = TTS
								TTS = {
									declare_war_on = {
										target = SOV
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_fascist
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_completed_focus = GER_democracy_falters
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_commission
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 55
									conservative = 12
									social_liberal = 24
									market_liberal = 6
									nationalist = 3
								}
								set_party_name = {
									ideology = authoritarian_democrat
									long_name = TTS_euro_commission_party
									name = TTS_euro_commission_party
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Europe kill EST
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = EST
						}
						has_global_flag = second_nato_war_flag
					}
					TTS = {
						add_state_core = 13
						add_state_core = 191
						add_state_core = 1329
						add_state_core = 840
						transfer_state = 13
						transfer_state = 191
						transfer_state = 1329
						transfer_state = 840
					}
					FROM = {
						if = {
							limit = {
								NOT = {
									TTS = {
										is_puppet_of = GER
									}
								}
							}
							GER = {
								puppet = TTS
								TTS = {
									declare_war_on = {
										target = SOV
										type = annex_everything
									}
								}
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_fascist
							}
						}
						if = {
							limit = {
								GER = {
									OR = {
										has_completed_focus = GER_democracy_falters
									}
								}
							}
							TTS = {
								set_cosmetic_tag = TTS_euro_commission
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									authoritarian_democrat = 55
									conservative = 12
									social_liberal = 24
									market_liberal = 6
									nationalist = 3
								}
								set_party_name = {
									ideology = authoritarian_democrat
									long_name = TTS_euro_commission_party
									name = TTS_euro_commission_party
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# SNS kill RSR
					limit = {
						FROM = {
							original_tag = SNS
						}
						ROOT = {
							original_tag = RSR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						if = {
							limit = {
								GAL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GAL
								type = annex_everything
							}
						}
						if = {
							limit = {
								LCA = {
									exists = yes
								}
							}
							declare_war_on = {
								target = LCA
								type = annex_everything
							}
						}
						if = {
							limit = {
								GOL = {
									exists = yes
								}
							}
							declare_war_on = {
								target = GOL
								type = annex_everything
							}
						}
						if = {
							limit = {
								ADU = {
									exists = yes
								}
							}
							declare_war_on = {
								target = ADU
								type = annex_everything
							}
						}
						if = {
							limit = {
								CAT = {
									exists = yes
								}
							}
							declare_war_on = {
								target = CAT
								type = annex_everything
							}
						}
						if = {
							limit = {
								BAR = {
									exists = yes
								}
							}
							declare_war_on = {
								target = BAR
								type = annex_everything
							}
						}
						if = {
							limit = {
								NOT = {
									country_exists = PRS
									country_exists = RSR
									country_exists = BSQ
								}
							}
							set_cosmetic_tag = SNS_spr
							add_ideas = SPR_plus_ultra
							GER = {
								country_event = { id = spain.7 days = 30 }
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO kill SOV
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = SOV
						}
					}
					ROOT = {
						dismantle_faction = yes
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								GER = {
									has_completed_focus = GER_a_new_october
								}
							}
							SOV_Zhir_defeat_in_2nd_European_War = yes
							GER = {
								puppet = SOV
							}
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_government = fascist
										has_government = national_socialist
										has_government = nationalist
									}
								}
							}
							SOV_USSR_defeat_in_2nd_European_War = yes
							GER = {
								puppet = SOV
							}
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_completed_focus = GER_democracy_falters
										has_cosmetic_tag = EUU
									}
								}
							}
							SOV_Medv_defeat_in_2nd_European_War = yes
						}
						else_if = {
							limit = {
								GER = {
									OR = {
										has_completed_focus = GER_democracy_falters
										has_government = conservative
									}
								}
								GER = {
									exists = yes
								}
							}
							news_event = {
								id = news.256
							}
							BEL = {
								set_autonomy = {
									target = SOV
									autonomous_state = autonomy_supervised_state
									freedom_level = 0.4
								}
							}
							SOV = {
								set_cosmetic_tag = SOV_nato
								set_politics = {
									ruling_party = social_liberal
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = social_liberal
									popularity = 0.35
								}
								create_country_leader = {
									name = NATO_mandate_council
									picture = "NATO Mandate Council.dds"
									ideology = supervised_democracy_liberal
									traits = {
									}
								}
								country_event = {
									id = russia.143
									days = 176
								}
								country_event = {
									id = russia.208
								}
							}
							UKR = {
								add_state_core = 137
								add_state_core = 1059
								add_state_core = 853
								add_state_core = 218
								add_state_core = 240
								add_state_core = 1283
								transfer_state = 137
								transfer_state = 1059
								transfer_state = 853
								transfer_state = 218
								transfer_state = 240
								transfer_state = 1283
							}
							NOA = {
								add_state_core = 237
								add_state_core = 217
								add_state_core = 236
								transfer_state = 236
								transfer_state = 217
								transfer_state = 237
								set_cosmetic_tag = NOA_volga
								set_politics = {
									ruling_party = authoritarian_democrat
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = authoritarian_democrat
									popularity = 0.15
								}
								create_country_leader = {
									name = GER_richard_rossmanith
									picture = "Richard_Rossmanith.dds"
									ideology = military_democracy
									traits = {
									}
								}
								load_oob = "NOA_volga"
							}
							TAN = {
								add_state_core = 329
								transfer_state = 329
							}
							GLC = {
								add_state_core = 582
								add_state_core = 653
								add_state_core = 652
								add_state_core = 572
								add_state_core = 403
								add_state_core = 398
								transfer_state = 582
								transfer_state = 653
								transfer_state = 652
								transfer_state = 572
								transfer_state = 403
								transfer_state = 398
							}
							NAV = {
								add_state_core = 195
								add_state_core = 146
								add_state_core = 216
								add_state_core = 214
								add_state_core = 215
								add_state_core = 213
								add_state_core = 147
								add_state_core = 722
								transfer_state = 195
								transfer_state = 146
								transfer_state = 216
								transfer_state = 214
								transfer_state = 215
								transfer_state = 213
								transfer_state = 147
								transfer_state = 722
								set_cosmetic_tag = NAV_nato
							}
							KKP = {
								add_state_core = 239
								add_state_core = 401
								add_state_core = 250
								add_state_core = 251
								transfer_state = 239
								transfer_state = 250
								transfer_state = 251
								transfer_state = 401
								set_cosmetic_tag = KKP_ssr
								set_politics = {
									ruling_party = communist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = communist
									popularity = 0.35
								}
							}
							YAM = {
								add_state_core = 580
								add_state_core = 579
								add_state_core = 403
								transfer_state = 580
								transfer_state = 579
								transfer_state = 403
								set_cosmetic_tag = YAM_military
								set_politics = {
									ruling_party = nationalist
									last_election = "2013.5.12"
									election_frequency = 48
									elections_allowed = no
								}
								add_popularity = {
									ideology = nationalist
									popularity = 0.35
								}
								create_country_leader = {
									name = SOV_viktor_zolotov
									picture = "Viktor Zolotov.dds"
									ideology = military_junta
									traits = {
									}
								}
							}
							BLR = {
								transfer_state = 94
								transfer_state = 808
								transfer_state = 95
								transfer_state = 206
								transfer_state = 194
								transfer_state = 204
								transfer_state = 194
								transfer_state = 241
								transfer_state = 207
							}
							KIR = {
								add_state_core = 563
								add_state_core = 566
								add_state_core = 567
								add_state_core = 574
								transfer_state = 563
								transfer_state = 566
								transfer_state = 567
								transfer_state = 574
							}
							OCC = {
								add_state_core = 564
								add_state_core = 565
								transfer_state = 564
								transfer_state = 565
							}
							FLN = {
								add_state_core = 516
								add_state_core = 577
								add_state_core = 576
								add_state_core = 578
								add_state_core = 568
								add_state_core = 571
								add_state_core = 570
								add_state_core = 40
								add_state_core = 569
								add_state_core = 654
								transfer_state = 516
								transfer_state = 577
								transfer_state = 576
								transfer_state = 578
								transfer_state = 568
								transfer_state = 571
								transfer_state = 570
								transfer_state = 40
								transfer_state = 569
								transfer_state = 654
							}
							STL = {
								add_state_core = 260
								add_state_core = 265
								transfer_state = 260
								transfer_state = 265
								load_oob = "STL_2020"
							}
							STV = {
								add_state_core = 397
								transfer_state = 397
							}
							SOL = {
								add_state_core = 256
								add_state_core = 249
								transfer_state = 256
								transfer_state = 249
							}
							BSK = {
								add_state_core = 651
								transfer_state = 651
								set_cosmetic_tag = BSK_bashkiria
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									libertarian_socialist = 5
									nationalist = 20
									authoritarian_democrat = 40
									fascist = 10
								}
							}
							UDM = {
								add_state_core = 399
								transfer_state = 399
								set_cosmetic_tag = UDM_udmurtia
								set_politics = {
									ruling_party = authoritarian_democrat
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									libertarian_socialist = 10
									nationalist = 5
									authoritarian_democrat = 40
									social_liberal = 10
								}
							}
							CKK = {
								add_state_core = 408
								add_state_core = 637
								add_state_core = 655
								add_state_core = 537
								add_state_core = 555
								transfer_state = 408
								transfer_state = 637
								transfer_state = 655
								transfer_state = 537
								transfer_state = 555
							}
							SEY = {
								add_state_core = 644
								transfer_state = 644
							}
							NAU = {
								add_state_core = 409
								add_state_core = 657
								add_state_core = 560
								add_state_core = 562
								add_state_core = 561
								transfer_state = 409
								transfer_state = 657
								transfer_state = 560
								transfer_state = 562
								transfer_state = 561
							}
							NFJ = {
								add_state_core = 262
								transfer_state = 262
							}
							PUR = {
								add_state_core = 400
								add_state_core = 351
								add_state_core = 264
								transfer_state = 400
								transfer_state = 351
								transfer_state = 264
							}
							CHU = {
								add_state_core = 256
								add_state_core = 581
								transfer_state = 256
								transfer_state = 581
							}
							KYR = {
								set_politics = {
									ruling_party = totalitarian_socialist
									elections_allowed = no
								}
								set_popularities = {
									communist = 25
									totalitarian_socialist = 70
									nationalist = 5
								}
							}
							TAJ = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
							}
							YAK = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
								add_state_core = 587
								add_state_core = 804
								transfer_state = 587
								transfer_state = 804
							}
							TAT = {
								set_politics = {
									ruling_party = nationalist
									elections_allowed = no
								}
								set_popularities = {
									nationalist = 100
								}
								add_state_core = 821
								add_state_core = 585
								transfer_state = 821
								transfer_state = 585
							}
							KAZ = {
								country_event = {
									id = russia.131
									days = 30
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# KHI kill KAZ
					limit = {
						FROM = {
							original_tag = KHI
						}
						ROOT = {
							original_tag = KAZ
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						KHI = {
							set_cosmetic_tag = KHI_rus_kaz
						}
						random_list = {
							90 = {
							}
							10 = {
								kill_country_leader = yes
								create_country_leader = {
									name = SOV_vladimir_makarov
									picture = "gfx/Leaders/PTF/PTF_artyom.png"
									ideology = national_spartanism
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AFA kill ZET
					limit = {
						FROM = {
							original_tag = AFA
						}
						ROOT = {
							original_tag = ZET
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = {
							id = persia.20
							days = 20
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AFA kill BAL
					limit = {
						FROM = {
							original_tag = AFA
						}
						ROOT = {
							original_tag = BAL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						country_event = {
							id = persia.21
							days = 40
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AFA kill Rif
					limit = {
						FROM = {
							original_tag = AFA
						}
						ROOT = {
							original_tag = Rif
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						set_cosmetic_tag = UDM_per
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NATO Kill VLA
					limit = {
						FROM = {
							OR = {
								original_tag = GER
								original_tag = FRA
								original_tag = HUN
								original_tag = ROM
								original_tag = BUL
								original_tag = ENG
							}
						}
						ROOT = {
							original_tag = VLA
						}
					}
					ROOT = {
						white_peace = VLA
						IRQ = {
							transfer_state = 676
							transfer_state = 1176
							transfer_state = 675
							transfer_state = 1178
							transfer_state = 1180
							transfer_state = 1179
							transfer_state = 291
							transfer_state = 1177
						}
						KUR = {
							transfer_state = 1181
							transfer_state = 815
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							add_to_faction = IRQ
							add_to_faction = KUR
						}
					}
				}
				if = {
					# NATO Kill PER
					limit = {
						GER = { NOT = { has_completed_focus = GER_democracy_now } }
						FROM = {
							OR = {
								original_tag = GER
								is_ally_with = GER
							}
						}
						ROOT = {
							original_tag = PER
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = GER
						white_peace = FRA
						white_peace = ENG
						KUR = {
							transfer_state = 421
						}
						RIF = {
							add_state_core = 1327
							add_state_core = 417
							transfer_state = 1327
							transfer_state = 417
							load_oob = "Rif_2020"
						}
						UAE = {
							transfer_state = 826
							transfer_state = 658
						}
						QAT = {
							transfer_state = 825
							transfer_state = 856
						}
						AFA = {
							add_state_core = 1326
							add_state_core = 913
							transfer_state = 1326
							transfer_state = 913
							load_oob = "AFA_2020"
						}
						BAL = {
							add_state_core = 912
							add_state_core = 916
							add_state_core = 410
							transfer_state = 912
							transfer_state = 916
							transfer_state = 410
							load_oob = "BAL_nato"
						}
						AOI = {
							add_state_core = 419
							transfer_state = 419
							AZR = {
								puppet = AOI
							}
						}
						QEM = {
							add_state_core = 413
							transfer_state = 413
							load_oob = "QEM_2020"
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = ZET
							add_to_faction = ZET
						}
						ZET = {
							remove_all_national_spirits = yes
							add_ideas = {
								SOV_eu_dominated_economy_idea
								SOV_nato_peacekeepers_idea
								JAM_unruly_populace
								JAM_black_gold
							}
							set_cosmetic_tag = ZET_nato
							set_politics = {
								ruling_party = authoritarian_democrat
								elections_allowed = no
								last_election = "2011.12.17"
							}
							add_popularity = {
								ideology = authoritarian_democrat
								popularity = 0.4
							}
							create_country_leader = {
								name = ZET_albert_safar_char
								picture = "Albert Safar.dds"
								ideology = military_democracy
								traits = {
								}
							}
							add_state_core = 414
							transfer_state = 414
							load_oob = "ZET_nato"
						}
						if = {
							limit = {
								HEZ = {
									is_in_faction_with = PER
								}
							}
							LEB = {
							    annex_country = {
								    target = HEZ
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
								HOU = {
									is_in_faction_with = PER
								}
							}
							YEM = {
							    annex_country = {
								    target = HOU
									transfer_troops = no
								}
							}
						}
						if = {
							limit = {
							    OR = {
								    IRQ = {
								    	is_in_faction_with = PER
								    }
								    FIA = {
								    	is_in_faction_with = PER
								    }
								}
							}
							PER = {
							    end_puppet = IRQ
							}
							IRQ = {
							    annex_country = {
								    target = FIA
									transfer_troops = no
								}
								drop_cosmetic_tag = yes
							}
						}
						every_country = {
							limit = {
								has_country_flag = NATO_current_leader
							}
							puppet = PER
							add_to_faction = PER
						}
						remove_all_national_spirits = yes
						add_ideas = {
							SOV_eu_dominated_economy_idea
							SOV_nato_peacekeepers_idea
							NATO_unstable_administration
							NATO_devestated_economy
							JAM_unruly_populace
							JAM_black_gold
						}
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.4
						}
						create_country_leader = {
							name = NATO_interim_government
							picture = "NATO Mandate Council.dds"
							ideology = military_democracy
							traits = {
							}
						}
						set_cosmetic_tag = PER_nato
						dismantle_faction = yes
						load_oob = "PER_nato"
						clr_country_flag = AOR_Member
					}
					set_global_flag = skip_default_capitulation
				}
				#Arab-Israeli War - ISR kill Someone
				if = {
					# ISR Kill HEZ
					limit = {
						FROM = {
							original_tag = ISR
						}
						ROOT = {
							original_tag = HEZ
						}
					}
					GER = {
						clr_country_flag = GER_democracy
					}
					ROOT = {
						white_peace = ISR
						ISR = {
							puppet = HEZ
						}
						set_cosmetic_tag = HEZ_idf
						set_politics = {
							ruling_party = authoritarian_democrat
							elections_allowed = no
							last_election = "2011.12.17"
						}
						add_popularity = {
							ideology = authoritarian_democrat
							popularity = 0.4
						}
						create_country_leader = {
							name = HEZ_aviv_kochavi
							picture = "Aviv Kochavi.png"
							ideology = military_democracy
							traits = {
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# 
					limit = {
						FROM = {
							original_tag = ISR
						}
						ROOT = {
							original_tag = JOR
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# 
					limit = {
						FROM = {
							original_tag = ISR
						}
						ROOT = {
							original_tag = PAL
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# NRC Victory
					limit = {
						FROM = {
							OR = {
								original_tag = EGY
								is_ally_with = EGY
							}
						}
						ROOT = {
							OR = {
								original_tag = RSF
								is_ally_with = ETH
							}
						}
					}
					ROOT = {
						white_peace = EGY	
						leave_faction = yes
					}
					FROM = {
						if = {
							limit = {
								ROOT = {
									original_tag = RSF
								}
							}
							if = {
								limit = {
									SUD = {
										exists = no
									}
								}
								EGY = {
									puppet = SUD
								}
								SUD = {
									set_cosmetic_tag = SUD_military_admin
									add_ideas = EGY_military_occupation
									set_politics = {
										ruling_party = authoritarian_democrat
										elections_allowed = no
										last_election = "1935.12.17"
										election_frequency = 48
									}
									add_popularity = {
										ideology = authoritarian_democrat
										popularity = 0.65
									}
									create_country_leader = {
										name = EGY_mohamed_ahmed_zaki
										picture = "gfx/leaders/EGY/generals/Mohamed Ahmed Zaki.png"
										ideology = military_democracy
										traits = {
										}
									}
									set_party_name = {
										ideology = authoritarian_democrat
										long_name = EGY_military_party
										name = EGY_military_party
									}
								}
							}
							SUD = {
								annex_country = {
									target = RSF
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = SML
								}
							}
							SOM = {
								annex_country = {
									target = SML
								}
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = TZN
								}
							}
							TZN = {
								drop_cosmetic_tag = yes
								release = KEN
								release = UGA
								release = RWA
								release = BRD
								release = SSD
								remove_state_core = 547
								remove_state_core = 548
								remove_state_core = 780
								remove_state_core = 781
								remove_state_core = 1352
								remove_state_core = 1353
								remove_state_core = 1354
								promote_character = TZN_samia_suluhu_hassan_char
								add_popularity = {
									ideology = social_democrat
									popularity = 0.15
								}
								remove_ideas = {
									TZN_young_republic
									TZN_military_integration
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# EAP Victory
					limit = {
						FROM = {
							OR = {
								original_tag = ETH
								is_ally_with = ETH
							}
						}
						ROOT = {
							OR = {
								original_tag = EGY
								is_ally_with = EGY
							}
						}
					}
					ROOT = {
						leave_faction = yes
						white_peace = ETH
						white_peace = TZN
					}
					FROM = {
						if = {
							limit = {
								ROOT = {
									original_tag = SUD
								}
							}
							RSF = {
								annex_country = {
									target = SUD
									transfer_troops = no
								}
								transfer_state = 761
								transfer_state = 1346
								transfer_state = 549
								transfer_state = 551
								transfer_state = 1349
								transfer_state = 763
								transfer_state = 798
								transfer_state = 1294
								transfer_state = 1347
								transfer_state = 1350
								set_cosmetic_tag = RSF_united	
							}
							ETH = {
								add_to_faction = RSF
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = ERI
								}
							}
							ETH = {
								annex_country = {
									target = ERI
									transfer_troops = no
								}	
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = SOM
								}
							}
							ETH = {
								puppet = SOM
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = SSD
								}
							}
							TZN = {
								annex_country = {
									target = SSD
									transfer_troops = no
								}
								add_state_core = 1445
								add_state_core = 762
								add_state_core = 1344
								add_state_core = 1345
								add_state_core = 1348
								add_state_core = 1351
							}
						}
						if = {
							limit = {
								ROOT = {
									original_tag = TDF
								}
							}
							ETH = {
								annex_country = {
									target = TDF
									transfer_troops = no
								}	
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Anti cheese 
					limit = {
						FROM = {
							OR = {
								#original_tag = BLA
								original_tag = BRN
								original_tag = CAL
								original_tag = WAS
								original_tag = ORE
								original_tag = ARZ
								original_tag = NMX
								original_tag = TEX
								original_tag = LOU
								original_tag = MSS
								original_tag = ALA
								original_tag = GRA
								original_tag = STC
								original_tag = FLA
								original_tag = VER
								original_tag = FLM
								original_tag = CLM
								original_tag = WLF
								original_tag = TFM
							}
						}
						ROOT = {
							OR = {
								original_tag = USC
								original_tag = USB
								original_tag = APA
								original_tag = ATW
								original_tag = PTF
								original_tag = NSM
							}
						}
					}
					FROM = {
						white_peace = ROOT
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Federal ACW
					limit = {
						FROM = {
							OR = {
								original_tag = USC
								original_tag = USB
							}
						}
						ROOT = {
							OR = {
								original_tag = WAS
								original_tag = CAC
								original_tag = WLF
								original_tag = PCR
								original_tag = ORE
								original_tag = BBC
								original_tag = CLM
								original_tag = NRT
								original_tag = BGF
								original_tag = ATS
								original_tag = HLA
								original_tag = CAL
								original_tag = AYB
								original_tag = SRN
								original_tag = RGA
								original_tag = ARZ
								original_tag = BRN
								original_tag = ABR
								original_tag = NNN
								original_tag = NMX
								original_tag = TEX
								original_tag = BSK
								original_tag = TFM
								original_tag = TRG
								original_tag = ATH
								original_tag = BND
								original_tag = LOS
								original_tag = LOU
								original_tag = MSS
								#original_tag = BLA
								original_tag = ALA
								original_tag = GRA
								original_tag = STC
								original_tag = FLA
								original_tag = MMS
								original_tag = FLM
								original_tag = ZOE
								original_tag = LRA
								original_tag = HUM
								original_tag = MIM
								original_tag = BMF
								original_tag = HWM
								original_tag = ATP
								original_tag = NCY
								original_tag = JDL
								original_tag = WUR
								original_tag = NYP
								original_tag = VER
								original_tag = GMA
								original_tag = GMB
								original_tag = SAT
								original_tag = NEG
								original_tag = IKA
								original_tag = LWK
								original_tag = RPP
								original_tag = LCN
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Anti Federal ACW
					limit = {
						FROM = {
							OR = {
								original_tag = ATW
								original_tag = APA
								original_tag = GMA
								original_tag = PTF
								original_tag = NSM
							}
						}
						ROOT = {
							OR = {
								original_tag = WAS
								original_tag = CAC
								original_tag = WLF
								original_tag = PCR
								original_tag = ORE
								original_tag = BBC
								original_tag = CLM
								original_tag = NRT
								original_tag = BGF
								original_tag = ATS
								original_tag = HLA
								original_tag = CAL
								original_tag = AYB
								original_tag = SRN
								original_tag = RGA
								original_tag = ARZ
								original_tag = BRN
								original_tag = ABR
								original_tag = NNN
								original_tag = NMX
								original_tag = TEX
								original_tag = BSK
								original_tag = TFM
								original_tag = TRG
								original_tag = ATH
								original_tag = BND
								original_tag = LOS
								original_tag = LOU
								original_tag = MSS
								#original_tag = BLA
								original_tag = ALA
								original_tag = GRA
								original_tag = STC
								original_tag = FLA
								original_tag = MMS
								original_tag = FLM
								original_tag = ZOE
								original_tag = LRA
								original_tag = HUM
								original_tag = MIM
								original_tag = BMF
								original_tag = HWM
								original_tag = ATP
								original_tag = NCY
								original_tag = JDL
								original_tag = WUR
								original_tag = NYP
								original_tag = VER
								original_tag = GMA
								original_tag = GMB
								original_tag = SAT
								original_tag = NEG
								original_tag = IKA
								original_tag = AYN
								original_tag = LWK
								original_tag = RGC
								original_tag = RGP
								original_tag = RPP
								original_tag = LCN
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# America kill MEX
					limit = {
						FROM = {
							OR = {
								original_tag = USB
								original_tag = USC
								original_tag = APA
								original_tag = PTF
								original_tag = NSM
							}
						}
						ROOT = {
							OR = {
								original_tag = MEX
								original_tag = CAS
								original_tag = SIN
								original_tag = CDJ
								original_tag = LFM
								original_tag = GUC
								original_tag = ZAP
							}
						}
					}
					FROM = {
						white_peace = ROOT
						if = {
							limit = {
								MEX = { exists = no }
								CAS = { exists = no }
								SIN = { exists = no }
								CDJ = { exists = no }
								LFM = { exists = no }
								GUC = { exists = no }
								ZAP = { exists = no }
							}
							puppet = MEX
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					#Biden kills AI
					limit = {
						FROM = {
							original_tag = USB
						}
						ROOT = {
							OR = {
								original_tag = USP
								original_tag = PDZ
								original_tag = APX
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# everyone kill CHQ
					limit = {
						FROM = {
							OR = {
								original_tag = USB
								original_tag = BDN
								original_tag = RGC #cincinnatti
								original_tag = AYN #Kentucky
								original_tag = RGP #Norfolk
								original_tag = CIA
								original_tag = PHY
								original_tag = UC1
								original_tag = APC
								original_tag = PIT
								original_tag = LST
								original_tag = ACP
							}
						}
						ROOT = {
							original_tag = CHQ
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# USB kill Cincinnati
					limit = {
						FROM = {
							original_tag = USB
						}
						ROOT = {
							original_tag = RGC
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						drop_cosmetic_tag = yes
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# USB kill Cincinnati
					limit = {
						FROM = {
							original_tag = USB
						}
						ROOT = {
							OR = {
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = UC1
								original_tag = APC
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = CIA
									country_exists = AYN
									country_exists = RGP
									country_exists = PHY
									country_exists = UC1
									country_exists = APC
									country_exists = ACP
									country_exists = LST
								}
								has_cosmetic_tag = USB_collapse
							}
							drop_cosmetic_tag = yes
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# CIA kill everyone
					limit = {
						FROM = {
							original_tag = CIA
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = RGC
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = UC1
								original_tag = APC
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = RGP
									country_exists = RGC
									country_exists = PHY
									country_exists = UC1
									country_exists = APC
									country_exists = ACP
									country_exists = LST
								}
							}
							set_cosmetic_tag = CIA_america
							annex_country = {
								target = BDN
								transfer_troops = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RGC kill everyone
					limit = {
						FROM = {
							OR = {
								original_tag = ATW
								original_tag = USC
								original_tag = APA
								original_tag = GMA
								original_tag = PTF
								original_tag = NSM
							}
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = RGC
								original_tag = PHY
								original_tag = UC1
								original_tag = APC
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# RGC kill everyone
					limit = {
						FROM = {
							original_tag = RGC
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = UC1
								original_tag = APC
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = UC1
									country_exists = APC
									country_exists = ACP
									country_exists = LST
								}
							}
							set_cosmetic_tag = RGC_union_of_american_states
							annex_country = {
								target = BDN
								transfer_troops = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# UC1 kill everyone
					limit = {
						FROM = {
							original_tag = UC1
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = RGC
								original_tag = APC
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = RGC
									country_exists = APC
									country_exists = ACP
									country_exists = LST
								}
							}
							USC = {
								annex_country = {
									target = UC1
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# ACP kill everyone
					limit = {
						FROM = {
							original_tag = ACP
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = RGC
								original_tag = UC1
								original_tag = APC
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
							}
							APA = {
								annex_country = {
									target = ACP
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# APC kill everyone
					limit = {
						FROM = {
							original_tag = APC
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = PHY
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = RGC
									country_exists = UC1
									country_exists = ACP
									country_exists = LST
								}
							}
							PTF = {
								annex_country = {
									target = APC
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# PHY kill everyone
					limit = {
						FROM = {
							original_tag = PHY
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = APC
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = ACP
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
							}
							set_cosmetic_tag = PHY_union_of_columbia
							annex_country = {
								target = BDN
								transfer_troops = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# BDN kill everyone
					limit = {
						FROM = {
							original_tag = BDN
						}
						ROOT = {
							OR = {
								original_tag = PHY
								original_tag = CIA
								original_tag = AYN
								original_tag = RGP
								original_tag = APC
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = yes
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = PHY
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = ACP
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
								is_puppet_of = USB
							}
							USB = {
								annex_country = {
									target = BDN
									transfer_troops = yes
								}
							}
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = PHY
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = ACP
									country_exists = USB
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
								is_puppet_of = RGC
							}
							RGC = {
								annex_country = {
									target = BDN
									transfer_troops = yes
								}
							}
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = PHY
									country_exists = AYN
									country_exists = CIA
									country_exists = RGP
									country_exists = ACP
									country_exists = USB
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
								is_puppet_of = CIA
							}
							CIA = {
								annex_country = {
									target = BDN
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AYN kill everyone
					limit = {
						FROM = {
							original_tag = AYN
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = PHY
								original_tag = RGP
								original_tag = APC
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = ACP
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = LST
								}
							}
							set_cosmetic_tag = AYN_eastern_defense_command
							annex_country = {
								target = BDN
								transfer_troops = yes
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AYN kill everyone
					limit = {
						FROM = {
							original_tag = LST
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = PHY
								original_tag = RGP
								original_tag = APC
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = ACP
									country_exists = CIA
									country_exists = RGP
									country_exists = PHY
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = AYN
								}
							}
							LOS = {
								annex_country = {
									target = LST
									transfer_troops = yes
								}
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# AYN kill everyone
					limit = {
						FROM = {
							original_tag = RGP
						}
						ROOT = {
							OR = {
								original_tag = USB
								original_tag = CIA
								original_tag = PHY
								original_tag = LST
								original_tag = APC
								original_tag = RGC
								original_tag = UC1
								original_tag = ACP
								original_tag = LST
							}
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
						IF = {
							LIMIT = {
								NOT = {
									country_exists = USB
									country_exists = ACP
									country_exists = CIA
									country_exists = LST
									country_exists = PHY
									country_exists = RGC
									country_exists = UC1
									country_exists = APC
									country_exists = AYN
								}
							}

						}
					}
					set_global_flag = skip_default_capitulation
				}
				#Capitulation block
				set_global_flag = war_continuing
				#some other wars are supposed to be here, I don't fucking understand it. this is literally TNO black magic bullshit. if these wars are placed with the rest then they suddenly do not work. do not ask me why
			}
			clr_global_flag = skip_default_capitulation
		}
	}
	#Armchair historian of wars
	on_declare_war = {
		effect = {
			log = "[GetDateText]: [Root.GetName] declared war on [From.GetName]"
		}
	}
}


on_actions = {
	on_capitulation_immediate = { #Only on_capitulation_immediate can make transfer_navy take effect
		effect = {
				if = {
					# America kill USN
					limit = {
						FROM = {
							OR = {
								original_tag = USB
								original_tag = USC
								original_tag = APA
								original_tag = PTF
								original_tag = NSM
							}
						}
						ROOT = {
							original_tag = USN
						}
					}
					ROOT = {
						transfer_navy = {
							target = FROM
						}
					}
					FROM = {
						white_peace = ROOT
						annex_country = {
							target = ROOT
							transfer_troops = no
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Pact of Steel Kill SYR
					limit = {
						FROM = {
							original_tag = FAF
							is_ally_with = FAF
						}
						ROOT = {
							OR = {
								original_tag = SYR
								original_tag = HTS
								original_tag = ROJ
							}
						}
					}
					ROOT = {
						white_peace = GER
						white_peace = FAF
						white_peace = ENG
						FSY = {
							annex_country = {
								target = ROOT
							}		
						}
						FAF = {
							puppet = FSY
						}
						FSY = {
							add_popularity = {
								ideology = nationalist
								popularity = 0.4
							}
							set_politics = {	
								ruling_party = nationalist
								last_election = "2014.6.3"
								election_frequency = 48
								elections_allowed = no
							}
							set_party_name = {
								ideology = nationalist
								long_name = SYR_french_administration_party
								name = SYR_french_administration_party
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Pact of Steel Kill LEB
					limit = {
						FROM = {
							original_tag = FAF
							is_ally_with = FAF
						}
						ROOT = {
							OR = {
								original_tag = LEB
								original_tag = HEZ
							}
						}
					}
					ROOT = {
						white_peace = GER
						white_peace = FAF
						white_peace = ENG
						FSY = {
							annex_country = {
								target = ROOT
							}	
						}
						FAF = {
							puppet = FSY
						}
						FSY = {
							add_popularity = {
								ideology = nationalist
								popularity = 0.4
							}
							set_politics = {	
								ruling_party = nationalist
								last_election = "2014.6.3"
								election_frequency = 48
								elections_allowed = no
							}
							set_party_name = {
								ideology = nationalist
								long_name = SYR_french_administration_party
								name = SYR_french_administration_party
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				if = {
					# Pact of Steel Kill PAL
					limit = {
						FROM = {
							original_tag = FAF
							is_ally_with = FAF
						}
						ROOT = {
							original_tag = PAL
						}
					}
					ROOT = {
						white_peace = GER
						white_peace = FAF
						white_peace = ENG
						FSY = {
							annex_country = {
								target = ROOT
							}		
						}
						FAF = {
							puppet = FSY
						}
						FSY = {
							add_popularity = {
								ideology = nationalist
								popularity = 0.4
							}
							set_politics = {	
								ruling_party = nationalist
								last_election = "2014.6.3"
								election_frequency = 48
								elections_allowed = no
							}
							set_party_name = {
								ideology = nationalist
								long_name = SYR_french_administration_party
								name = SYR_french_administration_party
							}
						}
					}
					set_global_flag = skip_default_capitulation
				}
				#Capitulation block
				set_global_flag = war_continuing
				#some other wars are supposed to be here, I don't fucking understand it. this is literally TNO black magic bullshit. if these wars are placed with the rest then they suddenly do not work. do not ask me why
			}
			clr_global_flag = skip_default_capitulation
		}
	}
