### These are the "on_actions" for Formable Nations in Setup Options - basically the effects triggered by each option.
### PDX made their code very easy to read, understand, and thus to mod...
on_actions = {
	on_startup = { #triggered on game start
		effect = {
			# Fragmentation statuses - Yugo fix and new Romania option
			if = {
				limit = {
					has_game_rule = {
						rule = yug_fragmentation_status
						option = YUG_FRAGMENTED
					}
				}
				BOS = {
					release = HRZ
					set_cosmetic_tag = BOS_without_HRZ
				}
				SER = {
					release = KOS
					transfer_state = 764
					create_country_leader = {
						name = "Peter II"
						desc = "POLITICS_PETER_II_DESC"
						picture = "gfx/leaders/YUG/portrait_YUG_peter_II_young.dds"
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							underage_monarch
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rom_fragmentation_status
						option = ROM_FRAGMENTED
					}
				}
				ROM = {
					release = TRA
					release = MOL
				}
			}
			# Game Rules - Formables
			if = {
				limit = {
					has_game_rule = {
						rule = andalusia_formation_status
						option = ANDALUSIA_FORMED #this is the "Bare Minimum" option
					}
				} #what this means is basically, if the option above is enabled then the effect below is applied. Rinse and repeat for each of these.
				ENG = {
					delete_unit = { state = 118 } #deletes the Gibraltar garrison
				}
				ADU = { #gives every required state to Al-Andalus
					transfer_state = 173
					transfer_state = 789
					transfer_state = 169
					transfer_state = 168
					transfer_state = 167
					transfer_state = 175
					transfer_state = 170
					transfer_state = 179
					transfer_state = 795
					transfer_state = 118
					transfer_state = 290
					transfer_state = 461
					transfer_state = 462
					transfer_state = 783
					transfer_state = 118
					set_global_flag = form_andalusia_flag
					set_country_flag = country_formed_andalusia_flag
					165 = { add_core_of = ADU }
					171 = { add_core_of = ADU }
					792 = { add_core_of = ADU }
					172 = { add_core_of = ADU }
					790 = { add_core_of = ADU }
					789 = { add_core_of = ADU }
					41 = { add_core_of = ADU }
					173 = { add_core_of = ADU }
					169 = { add_core_of = ADU }
					168 = { add_core_of = ADU }
					167 = { add_core_of = ADU }
					794 = { add_core_of = ADU }
					793 = { add_core_of = ADU }
					791 = { add_core_of = ADU }
					788 = { add_core_of = ADU }
					178 = { add_core_of = ADU }
					177 = { add_core_of = ADU }
					176 = { add_core_of = ADU }
					175 = { add_core_of = ADU }
					174 = { add_core_of = ADU }
					170 = { add_core_of = ADU }
					166 = { add_core_of = ADU }
					112 = { add_core_of = ADU }
					179 = { add_core_of = ADU }
					180 = { add_core_of = ADU }
					181 = { add_core_of = ADU }
					697 = { add_core_of = ADU }
					698 = { add_core_of = ADU }
					795 = { add_core_of = ADU }
					118 = { add_core_of = ADU }
					set_capital = 789
					change_tag_from = OMA #makes you switch to Al-Andalus when you choose Oman
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = andalusia_formation_status
						option = ANDALUSIA_FORMED_IBERIA
					}
				}
				ENG = {
					delete_unit = { state = 118 }
				}
				every_country = {
					limit = {
						OR = {
							tag = SPR
							tag = POR
						}
					}
					every_unit_leader = {
						set_nationality = ADU
					}
				}
				ADU = {
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					transfer_state = 165
					transfer_state = 171
					transfer_state = 792
					transfer_state = 172
					transfer_state = 790
					transfer_state = 789
					transfer_state = 41
					transfer_state = 173
					transfer_state = 169
					transfer_state = 168
					transfer_state = 167
					transfer_state = 794
					transfer_state = 793
					transfer_state = 791
					transfer_state = 788
					transfer_state = 178
					transfer_state = 177
					transfer_state = 176
					transfer_state = 175
					transfer_state = 174
					transfer_state = 170
					transfer_state = 166
					transfer_state = 112
					transfer_state = 179
					transfer_state = 180
					transfer_state = 181
					transfer_state = 697
					transfer_state = 698
					transfer_state = 795
					transfer_state = 118
					transfer_state = 290
					transfer_state = 461
					transfer_state = 462
					transfer_state = 783
					transfer_state = 118
					set_global_flag = form_andalusia_flag
					set_country_flag = country_formed_andalusia_flag
					165 = { add_core_of = ADU }
					171 = { add_core_of = ADU }
					792 = { add_core_of = ADU }
					172 = { add_core_of = ADU }
					790 = { add_core_of = ADU }
					789 = { add_core_of = ADU }
					41 = { add_core_of = ADU }
					173 = { add_core_of = ADU }
					169 = { add_core_of = ADU }
					168 = { add_core_of = ADU }
					167 = { add_core_of = ADU }
					794 = { add_core_of = ADU }
					793 = { add_core_of = ADU }
					791 = { add_core_of = ADU }
					788 = { add_core_of = ADU }
					178 = { add_core_of = ADU }
					177 = { add_core_of = ADU }
					176 = { add_core_of = ADU }
					175 = { add_core_of = ADU }
					174 = { add_core_of = ADU }
					170 = { add_core_of = ADU }
					166 = { add_core_of = ADU }
					112 = { add_core_of = ADU }
					179 = { add_core_of = ADU }
					180 = { add_core_of = ADU }
					181 = { add_core_of = ADU }
					697 = { add_core_of = ADU }
					698 = { add_core_of = ADU }
					795 = { add_core_of = ADU }
					118 = { add_core_of = ADU }
					set_capital = 789
					change_tag_from = OMA
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = andalusia_formation_status
						option = ANDALUSIA_FORMED_UMAYYAD
					}
				}
				ENG = {
					delete_unit = { state = 118 }
				}
				every_country = {
					limit = {
						OR = {
							tag = SPR
							tag = POR
							tag = SAU
							tag = YEM
							tag = OMA
							tag = PER
							tag = AFG
							tag = IRQ
						}
					}
					every_unit_leader = {
						set_nationality = ADU
					}
				}
				ADU = {
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					annex_country = {
						target = SAU
						transfer_troops = yes
					}
					annex_country = {
						target = YEM
						transfer_troops = yes
					}
					change_tag_from = OMA
					annex_country = {
						target = OMA
						transfer_troops = yes
					}
					annex_country = {
						target = PER
						transfer_troops = yes
					}
					annex_country = {
						target = AFG
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = SPR
								is_core_of = POR
								is_core_of = MOR
								is_core_of = WES
								is_core_of = EGY
								is_core_of = ALG
								is_core_of = TUN
								is_core_of = LBA
								is_core_of = SAU
								is_core_of = PAL
								is_core_of = LEB
								is_core_of = JOR
								is_core_of = YEM
								is_core_of = OMA
								is_core_of = PER
								is_core_of = PAK
								is_core_of = AFG
								is_core_of = SYR
								is_core_of = IRQ
								is_core_of = KUW
								is_core_of = UAE
								is_core_of = CYP
								is_core_of = QAT
								state = 1
								state = 114
								state = 115
								state = 116
								state = 118
								state = 182
								state = 164
								state = 350
								state = 352
								state = 353
								state = 354
								state = 229
								state = 230
								state = 231
								state = 232
								state = 233
								state = 800
								state = 821
								state = 826
								state = 827
								state = 828
							}
							NOT = { state = 430 }
						}
						ADU = { transfer_state = PREV }
						add_core_of = ADU
					}
					every_state = {
						limit = {
							is_owned_by = ADU
						}
						add_core_of = ADU
					}
					set_global_flag = form_andalusia_flag
					set_global_flag = sultanate_of_africa_flag
					set_global_flag = emirate_of_sicily_flag
					set_global_flag = restored_umayyad_flag
					set_global_flag = restored_rashid_flag
					set_global_flag = andalusia_north_expansion_flag
					set_country_flag = country_formed_andalusia_flag
					set_capital = 789
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = arabia_formation_status
						option = ARABIA_FORMED_IRQ
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = JOR
							tag = YEM
							tag = OMA
							tag = SAU
						}
					}
					every_unit_leader = {
						set_nationality = IRQ
					}
				}
				IRQ = {
					annex_country = {
						target = JOR
						transfer_troops = yes
					}
					annex_country = {
						target = YEM
						transfer_troops = yes
					}
					annex_country = {
						target = SAU
						transfer_troops = yes
					}
					annex_country = {
						target = OMA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = MOR
								is_core_of = EGY
								is_core_of = ALG
								is_core_of = TUN
								is_core_of = LBA
								is_core_of = PAL
								is_core_of = LEB
								is_core_of = JOR
								is_core_of = YEM
								is_core_of = SYR
								is_core_of = IRQ
								is_core_of = KUW
								is_core_of = UAE
								is_core_of = LBA
								is_core_of = OMA
								is_core_of = QAT
								state = 551
							}
						}
						IRQ = { transfer_state = PREV }
						add_core_of = IRQ
					}
					set_cosmetic_tag = ARA_UNIFIED
					set_global_flag = form_arabia_flag
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = arabia_formation_status
						option = ARABIA_FORMED_SAU
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = JOR
							tag = YEM
							tag = OMA
							tag = IRQ
						}
					}
					every_unit_leader = {
						set_nationality = SAU
					}
				}
				SAU = {
					annex_country = {
						target = JOR
						transfer_troops = yes
					}
					annex_country = {
						target = YEM
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					annex_country = {
						target = OMA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = MOR
								is_core_of = EGY
								is_core_of = ALG
								is_core_of = TUN
								is_core_of = LBA
								is_core_of = PAL
								is_core_of = LEB
								is_core_of = JOR
								is_core_of = YEM
								is_core_of = SYR
								is_core_of = IRQ
								is_core_of = KUW
								is_core_of = UAE
								is_core_of = LBA
								is_core_of = OMA
								is_core_of = QAT
								state = 551
							}
						}
						SAU = { transfer_state = PREV }
						add_core_of = SAU
					}
					set_cosmetic_tag = ARA_UNIFIED
					set_global_flag = form_arabia_flag
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = aus_hun_formation_status
						option = AUS_HUN_AUS
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HUN
							tag = CZE
						}
					}
					every_unit_leader = {
						set_nationality = AUS
					}
				}
				AUS = {
					annex_country = {
						target = HUN
						transfer_troops = yes
					}
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = HUN
								is_core_of = CZE
								is_core_of = CRO
								is_core_of = SLV
								is_core_of = BOS
								state = 104
								state = 45
								state = 83
								state = 76
								state = 84
								state = 39
								state = 163
								state = 736
								state = 764
								state = 80
								state = 82
								state = 88
								state = 89
								state = 91
								state = 804
							}
						}
						AUS = { transfer_state = PREV }
						add_core_of = AUS
					}
					set_rule = { can_create_factions = yes }
					set_cosmetic_tag = HUN_EMPIRE
				}
				set_global_flag = form_austria_hungary_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = aus_hun_formation_status
						option = HUN_GREATER_HUNGARY_FASCIST
					}
				}
				HUN = {
					set_cosmetic_tag = HUN_GREATER
					transfer_state = 664
					transfer_state = 73
					transfer_state = 76
					transfer_state = 45
					664 = { add_core_of = HUN }
					73 = { add_core_of = HUN }
					76 = { add_core_of = HUN }
					84 = { add_core_of = HUN }
					83 = { add_core_of = HUN }
					82 = { add_core_of = HUN }
					45 = { add_core_of = HUN }
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = aus_hun_formation_status
						option = HUN_GREATER_HUNGARY_HORTHY
					}
				}
				HUN = {
					set_cosmetic_tag = HUN_GREATER
					transfer_state = 664
					transfer_state = 73
					transfer_state = 76
					transfer_state = 84
					transfer_state = 83
					transfer_state = 82
					transfer_state = 45
					664 = { add_core_of = HUN }
					73 = { add_core_of = HUN }
					76 = { add_core_of = HUN }
					84 = { add_core_of = HUN }
					83 = { add_core_of = HUN }
					82 = { add_core_of = HUN }
					45 = { add_core_of = HUN }
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = aus_hun_formation_status
						option = AUS_HUN_FASCIST
					}
				}
				AUS = {
					every_unit_leader = {
						set_nationality = HUN
					}
				}
				HUN = {
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = AUS
								is_core_of = CZE
								is_core_of = CRO
								is_core_of = SLV
								is_core_of = BOS
								state = 104
								state = 45
								state = 83
								state = 76
								state = 84
								state = 39
								state = 163
								state = 736
								state = 764
								state = 80
								state = 82
								state = 88
								state = 89
								state = 91
								state = 804
							}
						}
						add_core_of = HUN
					}
					add_naval_commander_role = {
						character = HUN_miklos_horthy
						traits = { gunnery_expert navy_media_personality superior_tactician }
						skill = 3
						legacy_id = 556 #Navy Miklos
						attack_skill = 2
						defense_skill = 2
						maneuvering_skill = 2
						coordination_skill = 4				
					}
					promote_character = HUN_otto_von_habsburg
					add_ideas = { HUN_habsburg_restored }
					set_rule = { can_create_factions = yes }
					set_cosmetic_tag = HUN_EMPIRE
				}
				set_global_flag = form_austria_hungary_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = aus_hun_formation_status
						option = AUS_HUN_OTTO
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = AUS
							tag = CZE
						}
					}
					every_unit_leader = {
						set_nationality = HUN
					}
				}
				HUN = {
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = AUS
								is_core_of = CZE
								is_core_of = CRO
								is_core_of = SLV
								is_core_of = BOS
								state = 104
								state = 45
								state = 83
								state = 76
								state = 84
								state = 39
								state = 163
								state = 736
								state = 764
								state = 80
								state = 82
								state = 88
								state = 89
								state = 91
								state = 804
							}
						}
						HUN = { transfer_state = PREV }
						add_core_of = HUN
					}
					add_naval_commander_role = {
						character = HUN_miklos_horthy
						traits = { gunnery_expert navy_media_personality superior_tactician }
						skill = 3
						legacy_id = 556 #Navy Miklos
						attack_skill = 2
						defense_skill = 2
						maneuvering_skill = 2
						coordination_skill = 4				
					}
					promote_character = HUN_otto_von_habsburg
					add_ideas = { HUN_habsburg_restored }
					set_rule = { can_create_factions = yes }
					set_cosmetic_tag = HUN_EMPIRE
				}
				set_global_flag = form_austria_hungary_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = belarus_formation_status
						option = BELARUS_FORMED_LIT
					}
				}
				POL = {
					delete_unit = { state = 94 }
					delete_unit = { state = 95 }
					delete_unit = { state = 96 }
					delete_unit = { state = 784 }
				}
				SOV = {
					delete_unit = { state = 194 }
					delete_unit = { state = 204 }
					delete_unit = { state = 206 }
					delete_unit = { state = 207 }
					delete_unit = { state = 241 }
				}
				LIT = {
					every_state = {
						limit = {
							OR = {
								is_core_of = BLR
								state = 784
							}
						}
						add_core_of = LIT
						LIT = { transfer_state = PREV }
					}
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					set_cosmetic_tag = LIT_belarus
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = belarus_formation_status
						option = BELARUS_FORMED_LAT
					}
				}
				POL = {
					delete_unit = { state = 94 }
					delete_unit = { state = 95 }
					delete_unit = { state = 96 }
					delete_unit = { state = 784 }
				}
				SOV = {
					delete_unit = { state = 194 }
					delete_unit = { state = 204 }
					delete_unit = { state = 206 }
					delete_unit = { state = 207 }
					delete_unit = { state = 241 }
				}
				LIT = {
					transfer_state = 784
				}
				LAT = {
					every_state = {
						limit = {
							is_core_of = BLR
						}
						add_core_of = LAT
						LAT = { transfer_state = PREV }
					}
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					set_cosmetic_tag = LAT_belarus
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = belarus_formation_status
						option = BELARUS_FORMED_EST
					}
				}
				POL = {
					delete_unit = { state = 94 }
					delete_unit = { state = 95 }
					delete_unit = { state = 96 }
					delete_unit = { state = 784 }
				}
				SOV = {
					delete_unit = { state = 194 }
					delete_unit = { state = 204 }
					delete_unit = { state = 206 }
					delete_unit = { state = 207 }
					delete_unit = { state = 241 }
				}
				LIT = {
					transfer_state = 784
				}
				EST = {
					every_state = {
						limit = {
							is_core_of = BLR
						}
						add_core_of = EST
						EST = { transfer_state = PREV }
					}
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					set_cosmetic_tag = EST_belarus
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_TBE_FASCISM
					}
				}
				every_state = {
					limit = {
						is_claimed_by = BUL
					}
					add_core_of = BUL
					BUL = {
						transfer_state = PREV
					}
				}
				BUL = {
					add_popularity = {
						ideology = fascism
						popularity = 0.4
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					set_country_flag = BUL_tbe_flag
					set_cosmetic_tag = TBE_third_bulgarian_empire_fascism
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_TBE_BORIS
					}
				}
				every_state = {
					limit = {
						is_claimed_by = BUL
					}
					add_core_of = BUL
					BUL = {
						transfer_state = PREV
					}
				}
				BUL = {
					set_country_flag = BUL_tbe_flag
					set_cosmetic_tag = TBE_third_bulgarian_empire_neutrality
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_TBE_FERDINAND
					}
				}
				every_state = {
					limit = {
						is_claimed_by = BUL
					}
					add_core_of = BUL
					BUL = {
						transfer_state = PREV
					}
				}
				BUL = {
					set_country_flag = BUL_the_return_of_ferdinand_flag
					set_party_name = {
						ideology = neutrality
						long_name = BUL_ferdinand_loyalists_party_long
						name = BUL_ferdinand_loyalists_party
					}
					add_country_leader_role = {
						character = BUL_ferdinand_i
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								dreams_of_a_new_byzantium
							}
						}
						promote_leader = yes
					}
					set_country_flag = BUL_tbe_flag
					set_cosmetic_tag = TBE_third_bulgarian_empire_neutrality
					every_other_country = {
						limit = {
							OR = {
								tag = GRE
								tag = YUG
								tag = ROM
								tag = TUR
							}
							NOT = { is_subject_of = ROOT }
							NOT = {	is_in_faction_with = ROOT }
						}
						add_opinion_modifier = {
							target = ROOT
							modifier = BUL_ferdinand_is_back
						}
						hidden_effect = {
							ROOT = {
								add_opinion_modifier = {
									target = PREV
									modifier = BUL_old_enemies
								}
							}
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_TBE_FERDINAND_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GRE
							tag = YUG
							tag = TUR
							tag = ROM
						}
					}
					every_unit_leader = {
						set_nationality = BUL
					}
				}
				BUL = {
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
				}
				every_state = {
					limit = {
						OR = {
							is_claimed_by = BUL
							is_owned_by = ROM
							is_owned_by = YUG
							is_owned_by = GRE
							is_owned_by = TUR
						}
					}
					add_core_of = BUL
				}
				BUL = {
					set_country_flag = BUL_the_return_of_ferdinand_flag
					set_party_name = {
						ideology = neutrality
						long_name = BUL_ferdinand_loyalists_party_long
						name = BUL_ferdinand_loyalists_party
					}
					add_country_leader_role = {
						character = BUL_ferdinand_i
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								dreams_of_a_new_byzantium
							}
						}
						promote_leader = yes
					}
					set_country_flag = BUL_tbe_flag
					set_cosmetic_tag = TBE_third_bulgarian_empire_neutrality
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_UBF_COMMUNISM
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GRE
							tag = YUG
							tag = ALB
							tag = ROM
						}
					}
					every_unit_leader = {
						set_nationality = BUL
					}
				}
				BUL = {
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
				}
				every_state = {
					limit = {
						OR = {
							is_core_of = BUL
							is_core_of = GRE
							is_core_of = YUG
							is_core_of = ALB
							is_core_of = ROM
							is_core_of = SLV
							is_core_of = BOS
							is_core_of = HRZ
							is_core_of = MAC
							is_core_of = SER
							is_core_of = CRO
							is_core_of = KOS
							is_core_of = MNT
							state = 797
							state = 341
						}
						is_on_continent = europe
					}
					add_core_of = BUL
					BUL = {
						transfer_state = PREV
					}
				}
				BUL = {
					add_popularity = {
						ideology = communism
						popularity = 0.65
					}
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					set_country_flag = BUL_ubf_flag
					set_cosmetic_tag = UBF_united_balkan_federation_communism
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = bul_formation_status
						option = BUL_FORMED_UBF_DEMOCRATIC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GRE
							tag = YUG
							tag = ALB
							tag = ROM
						}
					}
					every_unit_leader = {
						set_nationality = BUL
					}
				}
				BUL = {
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
				}
				every_state = {
					limit = {
						OR = {
							is_core_of = BUL
							is_core_of = GRE
							is_core_of = YUG
							is_core_of = ALB
							is_core_of = ROM
							is_core_of = SLV
							is_core_of = BOS
							is_core_of = HRZ
							is_core_of = MAC
							is_core_of = SER
							is_core_of = CRO
							is_core_of = KOS
							is_core_of = MNT
							state = 797
							state = 341
						}
						is_on_continent = europe
					}
					add_core_of = BUL
					BUL = {
						transfer_state = PREV
					}
				}
				BUL = {
					add_popularity = {
						ideology = democratic
						popularity = 0.6
					}
					set_politics = {
						ruling_party = democratic
						elections_allowed = no
					}
					set_country_flag = BUL_ubf_flag
					set_cosmetic_tag = UBF_united_balkan_federation_democratic
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = china_formation_status
						option = CHINA_FORMED_ROC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = MAN
							tag = MEN
							tag = SHX
							tag = PRC
							tag = GXC
							tag = YUN
							tag = XSM
							tag = TIB
						}
					}
					every_unit_leader = {
						set_nationality = CHI
					}
				}
				CHI = {
					annex_country = {
						target = MAN
						transfer_troops = yes
					}
					annex_country = {
						target = MEN
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = PRC
						transfer_troops = yes
					}
					annex_country = {
						target = GXC
						transfer_troops = yes
					}
					annex_country = {
						target = YUN
						transfer_troops = yes
					}
					annex_country = {
						target = XSM
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = TIB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CHI
								is_core_of = TIB
							}
						}
						CHI = { transfer_state = PREV }
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = china_formation_status
						option = CHINA_FORMED_PRC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = MAN
							tag = MEN
							tag = SHX
							tag = CHI
							tag = GXC
							tag = YUN
							tag = XSM
							tag = TIB
						}
					}
					every_unit_leader = {
						set_nationality = PRC
					}
				}
				PRC = {
					annex_country = {
						target = MAN
						transfer_troops = yes
					}
					annex_country = {
						target = MEN
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = CHI
						transfer_troops = yes
					}
					annex_country = {
						target = GXC
						transfer_troops = yes
					}
					annex_country = {
						target = YUN
						transfer_troops = yes
					}
					annex_country = {
						target = XSM
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = TIB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CHI
								is_core_of = TIB
							}
						}
						PRC = { transfer_state = PREV }
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = china_formation_status
						option = CHINA_FORMED_QING
					}
				}
				JAP = {
					set_autonomy = { target = MAN autonomy_state = autonomy_free }
				}
				every_country = {
					limit = {
						OR = {
							tag = CHI
							tag = MEN
							tag = SHX
							tag = PRC
							tag = GXC
							tag = YUN
							tag = XSM
							tag = TIB
						}
					}
					every_unit_leader = {
						set_nationality = MAN
					}
				}
				MAN = {
					annex_country = {
						target = PRC
						transfer_troops = yes
					}
					annex_country = {
						target = MEN
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = CHI
						transfer_troops = yes
					}
					annex_country = {
						target = GXC
						transfer_troops = yes
					}
					annex_country = {
						target = YUN
						transfer_troops = yes
					}
					annex_country = {
						target = XSM
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = TIB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CHI
								is_core_of = TIB
							}
						}
						add_core_of = MAN
						MAN = { transfer_state = PREV }
					}
					set_cosmetic_tag = MAN_restored
					set_capital = 608
					MAN_low_legitimacy_clear_all = yes	
					kill_country_leader = yes 
					if = {
						limit = {
							has_government = fascism
						}
						create_country_leader = {
							name = "Xuantong"
							picture = "GFX_portrait_man_henry_pu_yi_emperor"
							expire = "1960.1.1"
							ideology = rexism
							traits = {
							}
						}
					}
					else_if = {
						limit = {
							has_government = neutrality
						}
						create_country_leader = {
							name = "Xuantong"
							picture = "GFX_portrait_man_henry_pu_yi_emperor"
							expire = "1960.1.1"
							ideology = despotism
							traits = {
							}
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = china_formation_status
						option = CHINA_FORMED_QING_MAX
					}
				}
				JAP = {
					set_autonomy = { target = MAN autonomy_state = autonomy_free }
				}
				every_country = {
					limit = {
						OR = {
							tag = CHI
							tag = MEN
							tag = SHX
							tag = PRC
							tag = GXC
							tag = YUN
							tag = XSM
							tag = TIB
							tag = MON
							tag = NEP
							tag = SIA
						}
					}
					every_unit_leader = {
						set_nationality = MAN
					}
				}
				MAN = {
					annex_country = {
						target = PRC
						transfer_troops = yes
					}
					annex_country = {
						target = MEN
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = CHI
						transfer_troops = yes
					}
					annex_country = {
						target = GXC
						transfer_troops = yes
					}
					annex_country = {
						target = YUN
						transfer_troops = yes
					}
					annex_country = {
						target = XSM
						transfer_troops = yes
					}
					annex_country = {
						target = SHX
						transfer_troops = yes
					}
					annex_country = {
						target = TIB
						transfer_troops = yes
					}
					annex_country = {
						target = MON
						transfer_troops = yes
					}
					annex_country = {
						target = NEP
						transfer_troops = yes
					}
					annex_country = {
						target = SIA
						transfer_troops = yes
					}
					annex_country = {
						target = TAN
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CHI
								is_core_of = TIB
								is_core_of = KOR
								is_core_of = BRM
								is_core_of = VIN
								is_core_of = CAM
								is_core_of = LAO
								is_core_of = NEP
								is_core_of = MON
								is_core_of = SIA
								is_core_of = TAN
								state = 434
								state = 408
								state = 409
								state = 657
								state = 560
								state = 561
								state = 655
								state = 537
							}
						}
						add_core_of = MAN
						MAN = { transfer_state = PREV }
					}
					set_cosmetic_tag = MAN_restored
					set_capital = 608
					MAN_low_legitimacy_clear_all = yes	
					kill_country_leader = yes 
					if = {
						limit = {
							has_government = fascism
						}
						create_country_leader = {
							name = "Xuantong"
							picture = "GFX_portrait_man_henry_pu_yi_emperor"
							expire = "1960.1.1"
							ideology = rexism
							traits = {
							}
						}
					}
					else_if = {
						limit = {
							has_government = neutrality
						}
						create_country_leader = {
							name = "Xuantong"
							picture = "GFX_portrait_man_henry_pu_yi_emperor"
							expire = "1960.1.1"
							ideology = despotism
							traits = {
							}
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = csa_formation_status
						option = CSA_FORMED
					}
				}
				CSA = {
					every_state = {
						limit = {
							OR = {
								state = 375
								state = 371
								state = 372
								state = 370
								state = 368
								state = 367
								state = 365
								state = 366
								state = 364
								state = 363
								state = 362
							}
						}
						add_core_of = CSA
						CSA = { transfer_state = PREV }
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					create_country_leader = {
						name = "William Dudley Pelley"
						desc = "POLITICS_WILLIAM_DUDLEY_PELLEY_DESC"
						picture = "gfx/leaders/USA/Portrait_USA_William_Dudley_Pelley.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = {
							
						}
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.8
					}
					set_capital = 362
					change_tag_from = CUB
					if = {
						limit = {
							GER = {
								OR = {
									NOT = {
										has_government = fascism
									}
									exists = no
								}
							}
						}
						create_country_leader = {
							name = "Adam Hilt"
							desc = "POLITICS_DOUGLAS_MACARTHUR_DESC"
							picture = GFX_portrait_USA_mr_hilt
							expire = "1965.1.1"
							ideology = gen_nazism
							traits = {
								great_architect
							}
						}
					}
				}
				USA = {
					delete_unit = { state = 365 }
					delete_unit = { state = 375 }
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = csa_formation_status
						option = CSA_FORMED_MAX
					}
				}
				CSA = {
					every_state = {
						limit = {
							OR = {
								state = 375
								state = 371
								state = 372
								state = 370
								state = 368
								state = 367
								state = 365
								state = 366
								state = 364
								state = 363
								state = 362
								state = 373
								state = 369
								state = 371
								state = 374
								state = 361
							}
						}
						add_core_of = CSA
						CSA = { transfer_state = PREV }
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					create_country_leader = {
						name = "William Dudley Pelley"
						desc = "POLITICS_WILLIAM_DUDLEY_PELLEY_DESC"
						picture = "gfx/leaders/USA/Portrait_USA_William_Dudley_Pelley.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = {
							
						}
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.8
					}
					set_capital = 362
					change_tag_from = CUB
					if = {
						limit = {
							GER = {
								OR = {
									NOT = {
										has_government = fascism
									}
									exists = no
								}
							}
						}
						create_country_leader = {
							name = "Adam Hilt"
							desc = "POLITICS_DOUGLAS_MACARTHUR_DESC"
							picture = GFX_portrait_USA_mr_hilt
							expire = "1965.1.1"
							ideology = gen_nazism
							traits = {
								great_architect
							}
						}
					}
				}
				USA = {
					delete_unit = { state = 361 }
					delete_unit = { state = 365 }
					delete_unit = { state = 375 }
					set_capital = 357
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = cze_formation_status
						option = CZE_FORMED
					}
				}
				SLO = {
					every_state = {
						limit = {
							OR = {
								state = 70
								state = 71
								state = 73
								state = 664
							}
						}
						SLO = { transfer_state = PREV }
						add_core_of = SLO
					}
					change_tag_from = SWI
				}
				CZE = {
					transfer_units_fraction = {
						target = SLO
						size = 0.5
					}
					set_cosmetic_tag = CZE_ONLY
					if = {
						limit = {
							has_dlc = "Death or Dishonor"
						}
						remove_ideas = { CZE_divided_nation }
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = dna_formation_status
						option = DNA_FORMED
					}
				}
				every_state = {
					limit = {
						is_core_of = USA
					}
					CAN = {
						add_state_core = PREV
					}
				}
				USA = {
					every_unit_leader = {
						set_nationality = CAN
					}
				}
				CAN = {
					drop_cosmetic_tag = yes
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.6
					}
					transfer_state = 331
					transfer_state = 332
					annex_country = { target = USA transfer_troops = yes }
					set_cosmetic_tag = CAN_north_america_dominion
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = egy_formation_status
						option = EGY_FORMED
					}
				}
				ENG = {
					release = EGY
					delete_unit = { state = 447 }
					delete_unit = { state = 446 }
					delete_unit = { state = 453 }
				}
				EGY = {
					change_tag_from = YEM
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = egy_formation_status
						option = EGY_FORMED_ALI
					}
				}
				ENG = {
					release = EGY
					delete_unit = { state = 447 }
					delete_unit = { state = 446 }
					delete_unit = { state = 453 }
					delete_unit = { state = 454 }
					delete_unit = { state = 551 }
				}
				FRA = {
					delete_unit = { state = 553 }
				}
				TUR = {
					delete_unit = { state = 344 }
				}
				GRE = {
					delete_unit = { state = 182 }
					delete_unit = { state = 186 }
				}
				EGY = {
					annex_country = {
						target = SAU
						transfer_troops = yes
					}
					annex_country = {
						target = YEM
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = PAL
								is_core_of = LEB
								is_core_of = JOR
								is_core_of = CYP
								is_core_of = SUD
								is_core_of = ERI
								state = 186
								state = 182
								state = 344
								state = 677
								state = 554
								state = 679
								state = 269
								state = 293
								state = 799
							}
						}
						EGY = { transfer_state = PREV }
						add_core_of = EGY
					}
					change_tag_from = YEM
				}
				SAU = {
					transfer_state = 678
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = est_formation_status
						option = EST_FORMED_EST_FIN
					}
				}
				FIN = {
					every_unit_leader = {
						set_nationality = EST
					}
				}
				EST = {
					every_state = {
						limit = {
							is_core_of = FIN
						}
						add_core_of = EST
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.4
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					remove_ideas = democratic_opposition
					set_cosmetic_tag = EST_FIN
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = est_formation_status
						option = EST_FORMED_FINNO_UGRIA
					}
				}
				NOR = {
					delete_unit = { state = 143 }
					delete_unit = { state = 144 }
				}
				SWE = {
					delete_unit = { state = 38 }
					delete_unit = { state = 666 }
				}
				SOV = {
					delete_unit = { state = 213 }
					delete_unit = { state = 215 }
					delete_unit = { state = 216 }
				}
				FIN = {
					every_unit_leader = {
						set_nationality = EST
					}
				}
				EST = {
					every_state = {
						limit = {
							OR = {
								is_core_of = FIN
								state = 143
								state = 144
								state = 38
								state = 666
								state = 213
								state = 215
								state = 216
							}
						}
						EST = { transfer_state = PREV }
						add_core_of = EST
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					214 = { add_core_of = EST }
					262 = { add_core_of = EST }
					580 = { add_core_of = EST }
					581 = { add_core_of = EST }
					579 = { add_core_of = EST }
					653 = { add_core_of = EST }
					573 = { add_core_of = EST }
					397 = { add_core_of = EST }
					398 = { add_core_of = EST }
					400 = { add_core_of = EST }
					351 = { add_core_of = EST }
					208 = { add_core_of = EST }
					add_popularity = {
						ideology = fascism
						popularity = 0.4
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					remove_ideas = democratic_opposition
					set_cosmetic_tag = EST_UGRA
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = est_formation_status
						option = EST_FORMED_FINNO_UGRIA_MAX
					}
				}
				NOR = {
					delete_unit = { state = 143 }
					delete_unit = { state = 144 }
				}
				SWE = {
					delete_unit = { state = 38 }
					delete_unit = { state = 666 }
				}
				SOV = {
					delete_unit = { state = 208 }
					delete_unit = { state = 213 }
					delete_unit = { state = 214 }
					delete_unit = { state = 215 }
					delete_unit = { state = 216 }
					delete_unit = { state = 262 }
					delete_unit = { state = 351 }
					delete_unit = { state = 397 }
					delete_unit = { state = 398 }
					delete_unit = { state = 400 }
					delete_unit = { state = 573 }
					delete_unit = { state = 579 }
					delete_unit = { state = 580 }
					delete_unit = { state = 581 }
					delete_unit = { state = 653 }
				}
				FIN = {
					every_unit_leader = {
						set_nationality = EST
					}
				}
				EST = {
					every_state = {
						limit = {
							OR = {
								is_core_of = FIN
								state = 143
								state = 144
								state = 38
								state = 666
								state = 208
								state = 213
								state = 214
								state = 215
								state = 216
								state = 262
								state = 351
								state = 397
								state = 398
								state = 400
								state = 573
								state = 579
								state = 580
								state = 581
								state = 653
							}
						}
						EST = { transfer_state = PREV }
						add_core_of = EST
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.4
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					remove_ideas = democratic_opposition
					set_cosmetic_tag = EST_UGRA
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = eu_formation_status
						option = EU_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = ITA
							tag = GER
						}
					}
					every_unit_leader = {
						set_nationality = FRA
					}
				}
				FRA = {
					every_state = {
						limit = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = ITA
								is_core_of = GER
							}
						}
						add_core_of = FRA
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					annex_country = {
						target = GER
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_owned_by = FRA
						}
						add_core_of = FRA
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					set_cosmetic_tag = EUR_UNIFIED
					set_capital = 6
				}
				set_global_flag = form_european_union_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = eu_formation_status
						option = EU_FORMED_MODERN
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = ITA
							tag = GER
							tag = SPR
							tag = POR
							tag = IRE
							tag = DEN
							tag = SWE
							tag = FIN
							tag = POL
							tag = EST
							tag = LAT
							tag = LIT
							tag = CZE
							tag = AUS
							tag = HUN
							tag = ROM
							tag = BUL
							tag = GRE
						}
					}
					every_unit_leader = {
						set_nationality = FRA
					}
				}
				FRA = {
					every_state = {
						limit = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = ITA
								is_core_of = GER
								is_core_of = SPR
								is_core_of = POR
								is_owned_by = IRE
								is_core_of = DEN
								is_core_of = SWE
								is_core_of = FIN
								is_core_of = POL
								is_core_of = EST
								is_core_of = LAT
								is_core_of = LIT
								is_core_of = CZE
								is_core_of = AUS
								is_core_of = HUN
								is_core_of = SLV
								is_core_of = CRO
								is_core_of = ROM
								is_core_of = BUL
								is_core_of = GRE
								is_core_of = MLT
								is_core_of = CYP
							}
						}
						add_core_of = FRA
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					annex_country = {
						target = GER
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					annex_country = {
						target = IRE
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					annex_country = {
						target = SWE
						transfer_troops = yes
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					annex_country = {
						target = HUN
						transfer_troops = yes
					}
					annex_country = {
						target = SLV
						transfer_troops = yes
					}
					annex_country = {
						target = CRO
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = MLT
						transfer_troops = yes
					}
					annex_country = {
						target = CYP
						transfer_troops = yes
					}
					ICE = {
						transfer_state = 100
						transfer_state = 101
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = SLV
								is_core_of = CRO
							}
						}
						FRA = { transfer_state = PREV }
					}
					every_state = {
						limit = {
							is_owned_by = FRA
						}
						add_core_of = FRA
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					set_cosmetic_tag = EUR_UNIFIED
					set_capital = 6
				}
				set_global_flag = form_european_union_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = eu_formation_status
						option = EU_FORMED_MODERN_II
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = ITA
							tag = GER
							tag = SPR
							tag = POR
							tag = IRE
							tag = DEN
							tag = SWE
							tag = FIN
							tag = POL
							tag = EST
							tag = LAT
							tag = LIT
							tag = CZE
							tag = AUS
							tag = HUN
							tag = ROM
							tag = BUL
							tag = GRE
						}
					}
					every_unit_leader = {
						set_nationality = FRA
					}
				}
				FRA = {
					every_state = {
						limit = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = ITA
								is_core_of = GER
								is_core_of = SPR
								is_core_of = POR
								is_owned_by = IRE
								is_core_of = DEN
								is_core_of = SWE
								is_core_of = FIN
								is_core_of = POL
								is_core_of = EST
								is_core_of = LAT
								is_core_of = LIT
								is_core_of = CZE
								is_core_of = AUS
								is_core_of = HUN
								is_core_of = SLV
								is_core_of = CRO
								is_core_of = ROM
								is_core_of = BUL
								is_core_of = GRE
								is_core_of = MLT
								is_core_of = CYP
							}
						}
						add_core_of = FRA
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					annex_country = {
						target = GER
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					annex_country = {
						target = IRE
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					annex_country = {
						target = SWE
						transfer_troops = yes
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					annex_country = {
						target = HUN
						transfer_troops = yes
					}
					annex_country = {
						target = SLV
						transfer_troops = yes
					}
					annex_country = {
						target = CRO
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = MLT
						transfer_troops = yes
					}
					annex_country = {
						target = CYP
						transfer_troops = yes
					}
					ICE = {
						transfer_state = 100
						transfer_state = 101
					}
					release = BLR
					release = UKR
					release = MOL
					every_state = {
						limit = {
							OR = {
								is_core_of = SLV
								is_core_of = CRO
							}
						}
						FRA = { transfer_state = PREV }
					}
					every_state = {
						limit = {
							is_owned_by = FRA
						}
						add_core_of = FRA
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					set_cosmetic_tag = EUR_UNIFIED
					set_capital = 6
				}
				set_global_flag = form_european_union_flag
				SOV = {
					transfer_state = 763
					transfer_state = 146
					transfer_state = 147
					transfer_state = 722
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = eu_formation_status
						option = EU_FORMED_GER
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = ITA
							tag = FRA
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					every_state = {
						limit = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = ITA
								is_core_of = FRA
							}
						}
						add_core_of = GER
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_owned_by = GER
						}
						add_core_of = GER
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					set_cosmetic_tag = EUR_UNIFIED
				}
				set_global_flag = form_european_union_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = eu_formation_status
						option = EU_FORMED_MOSLEY
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = ITA
							tag = GER
							tag = FRA
						}
					}
					every_unit_leader = {
						set_nationality = ENG
					}
				}
				ENG = {
					every_state = {
						limit = {
							OR = {
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = ITA
								is_core_of = GER
								is_core_of = FRA
							}
						}
						add_core_of = ENG
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					annex_country = {
						target = GER
						transfer_troops = yes
					}
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_owned_by = ENG
						}
						add_core_of = ENG
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.6
					}
					set_cosmetic_tag = ENG_imperial_federation_unified
				}
				set_global_flag = form_european_union_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = fra_spr_formation_status
						option = FRA_SPR_FORMED_FRA
					}
				}
				every_state = {
					limit = {
						is_core_of = SPR
					}
					FRA = {
						add_state_core = PREV
					}
				}
				SPR = {
					every_unit_leader = {
						set_nationality = FRA
					}
				}
				FRA = {
					annex_country = { target = SPR transfer_troops = yes }
					set_cosmetic_tag = FRANCO_SPAIN
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = fra_spr_formation_status
						option = FRA_SPR_FORMED_SPR
					}
				}
				every_state = {
					limit = {
						is_core_of = FRA
					}
					SPR = {
						add_state_core = PREV
					}
				}
				FRA = {
					every_unit_leader = {
						set_nationality = SPR
					}
				}
				SPR = {
					annex_country = { target = FRA transfer_troops = yes }
					set_cosmetic_tag = FRANCO_SPAIN
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GGR_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = POL
							tag = LIT
							tag = LAT
							tag = EST
							tag = AUS
							tag = DEN
							tag = NOR
							tag = SWE
							tag = CZE
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					annex_country = {
						target = NOR
						transfer_troops = yes
					}
					annex_country = {
						target = SWE
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 102
								state = 736
								state = 14
								state = 15
								state = 16
								state = 17
								state = 18
								state = 19
								state = 23
								state = 24
								state = 27
								state = 28
								state = 29
								state = 30
								state = 69
								state = 9
								state = 75
								state = 74
								state = 72
								state = 195
								state = 208
								state = 209
								state = 210
								state = 207
								state = 206
								state = 204
								state = 194
								state = 201
								state = 199
								state = 198
								state = 192
								state = 137
								state = 197
								state = 203
								state = 202
								state = 193
								state = 196
								state = 241
								state = 243
								state = 242
								state = 246
								state = 263
								state = 244
								state = 205
								state = 224
								state = 222
								state = 225
								state = 220
								state = 240
								state = 259
								state = 221
								state = 226
								state = 200
								state = 227
								state = 228
								state = 218
								state = 234
								state = 233
								state = 231
								state = 230
								state = 229
								state = 232
								state = 235
								state = 238
								state = 237
								state = 236
								state = 217
								state = 245
								state = 265
								state = 260
								state = 257
								state = 258
								state = 254
								state = 223
								state = 247
								state = 219
								state = 264
								state = 216
								state = 215
								state = 213
								state = 785
								state = 806
								state = 821
								state = 826
								state = 827
								state = 828
								state = 834
							}
						}
						SOV = { delete_unit = { state = PREV } }
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					set_cosmetic_tag = GER_greater_german_reich
					set_province_name = { id = 6521 name = "Germania" }
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
				}
				set_global_flag = form_greater_german_reich_flag
				SLO = {
					every_state = {
						limit = {
							OR = {
								state = 70
								state = 71
								state = 73
								state = 664
							}
						}
						SLO = { transfer_state = PREV }
						add_core_of = SLO
					}
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GER_FORMED
					}
				}
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 85
								state = 86
								state = 28
								state = 762
								state = 188
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					set_cosmetic_tag = GER_german_empire
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					add_country_leader_role = {
						character = GER_wilhelm_ii
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								anti_democrat
								imperial_connections
							}
						}
						promote_leader = yes
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.6
					}
					complete_national_focus = GER_secure_the_new_state
					complete_national_focus = GER_revive_the_kaiserreich
					complete_national_focus = GER_return_of_the_kaiser
					add_ideas = GER_hans_oster
					set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
					dismantle_faction = yes
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GER_FORMED_COLONIAL
					}
				}
				GER = {
					every_state = {
						limit = {
							OR = {
								state = 85
								state = 86
								state = 28
								state = 762
								state = 188
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					transfer_state = 743
					transfer_state = 523
					transfer_state = 773
					transfer_state = 541
					transfer_state = 546
					transfer_state = 737
					transfer_state = 684
					transfer_state = 633
					transfer_state = 646
					transfer_state = 647
					transfer_state = 726
					transfer_state = 777
					transfer_state = 768
					transfer_state = 769
					set_cosmetic_tag = GER_german_empire
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					add_country_leader_role = {
						character = GER_wilhelm_ii
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								anti_democrat
								imperial_connections
							}
						}
						promote_leader = yes
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.6
					}
					complete_national_focus = GER_secure_the_new_state
					complete_national_focus = GER_revive_the_kaiserreich
					complete_national_focus = GER_return_of_the_kaiser
					add_ideas = GER_hans_oster
					set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
					dismantle_faction = yes
				}
				743 = { set_state_name = "Tsingtao" }
				set_province_name = { id = 10000 name = "Tsingtao" }
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = HRE_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = SWI
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 8
								state = 28
								state = 735
								state = 69
								state = 9
								state = 75
								state = 74
								state = 158
								state = 159
								state = 39
								state = 160
								state = 161
								state = 162
								state = 736
								state = 3
								state = 151
								state = 153
								state = 152
								state = 4
								state = 7
								state = 35
								state = 36
								state = 6
								state = 34
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					set_cosmetic_tag = HRE_UNIFIED
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
				set_global_flag = form_hre_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = HRE_FORMED_WILHELM
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = SWI
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 8
								state = 28
								state = 735
								state = 69
								state = 9
								state = 75
								state = 74
								state = 158
								state = 159
								state = 39
								state = 160
								state = 161
								state = 162
								state = 736
								state = 3
								state = 151
								state = 153
								state = 152
								state = 4
								state = 7
								state = 35
								state = 36
								state = 6
								state = 34
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					add_country_leader_role = {
						character = GER_wilhelm_ii
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								anti_democrat
								imperial_connections
							}
						}
						promote_leader = yes
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.6
					}
					complete_national_focus = GER_secure_the_new_state
					complete_national_focus = GER_revive_the_kaiserreich
					complete_national_focus = GER_return_of_the_kaiser
					add_ideas = GER_hans_oster
					set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
					set_cosmetic_tag = HRE_UNIFIED
					dismantle_faction = yes
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
				set_global_flag = form_hre_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = HRE_FORMED_VIC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = HOL
							tag = BEL
							tag = LUX
							tag = SWI
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 8
								state = 28
								state = 735
								state = 69
								state = 9
								state = 75
								state = 74
								state = 158
								state = 159
								state = 39
								state = 160
								state = 161
								state = 162
								state = 736
								state = 3
								state = 151
								state = 153
								state = 152
								state = 4
								state = 7
								state = 35
								state = 36
								state = 6
								state = 34
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
					add_country_leader_role = {
						character = GER_victoria
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								kaiserin_of_the_people
								victoria_iii
							}
						}
						promote_leader = yes
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.6
					}
					complete_national_focus = GER_secure_the_new_state
					complete_national_focus = GER_revive_the_kaiserreich
					complete_national_focus = GER_return_of_the_kaiser
					add_ideas = GER_hans_oster
					set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
					set_cosmetic_tag = HRE_UNIFIED
					dismantle_faction = yes
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
				set_global_flag = form_hre_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GER_FORMED_SPLIT
					}
				}
				FRA = {
					add_state_core = 42
					transfer_state = 42
					add_state_core = 51
					transfer_state = 51
				}
				WUR = {
					add_state_core = 50
					transfer_state = 50
				}
				SAX = {
					add_state_core = 65
					transfer_state = 65
				}
				MEK = {
					add_state_core = 61
					transfer_state = 61
				}
				SHL = {
					add_state_core = 58
					transfer_state = 58
				}
				BAY = {
					add_state_core = 52
					transfer_state = 52
					add_state_core = 53
					transfer_state = 53
					add_state_core = 54
					transfer_state = 54
				}
				HAN = {
					add_state_core = 56
					transfer_state = 56
					add_state_core = 57
					transfer_state = 57
					add_state_core = 59
					transfer_state = 59
				}
				every_state = {
					limit = { 
						is_owned_by = GER 
						CONTROLLER = {
							NOT = {
								OR = {
									tag = BAY
									tag = MEK
									tag = SAX
									tag = HAN
									tag = SHL
									tag = WUR
								}
							}
						}
						NOT = {
							state = 42
							state = 51
						}
					}
					PRE = {
						transfer_state = PREV
						add_state_core = PREV
					}
				}
				42 = { set_demilitarized_zone = no }
				51 = { set_demilitarized_zone = no }
				PRE = {
					if = {
						limit = {
							has_dlc = "Waking the Tiger"
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Wilhelm III"
							desc = POLITICS_WILHELM_III_DESC
							picture = "GFX_portrait_ger_wilhelm_iii"
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								popular_figurehead2
							}
						}
						load_focus_tree = german_focus
						complete_national_focus = GER_secure_the_new_state
						complete_national_focus = GER_revive_the_kaiserreich
						complete_national_focus = GER_return_of_the_kaiser
						set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
						drop_cosmetic_tag = yes
					}
					add_state_core = 85
					transfer_state = 85
					add_state_core = 86
					transfer_state = 86
					add_state_core = 188
					transfer_state = 188
					add_state_core = 762
					transfer_state = 762
					change_tag_from = GER
				}
				every_country = {
					limit = {
						OR = {
							tag = BAY
							tag = MEK
							tag = SAX
							tag = HAN
							tag = SHL
							tag = WUR
							tag = PRE
						}
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.7
					}
				}
				random_other_country = {
					limit = {
						OR = {
							tag = BAY
							tag = MEK
							tag = SAX
							tag = HAN
							tag = SHL
							tag = WUR
						}
					}
					change_tag_from = AUS
				}
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GER_FORMED_YALTA
					}
				}
				WGR = {
					add_state_core = 42
					add_state_core = 50
					add_state_core = 51
					add_state_core = 52
					add_state_core = 53
					add_state_core = 54
					add_state_core = 55
					add_state_core = 56
					add_state_core = 57
					add_state_core = 58
					add_state_core = 59
					change_tag_from = GER
				}
				DDR = {
					add_state_core = 60
					add_state_core = 61
					add_state_core = 62
					add_state_core = 64
					add_state_core = 65
					add_state_core = 66
					add_state_core = 67
					change_tag_from = AUS
				}
				POL = {
					add_state_core = 66
					add_state_core = 67
					add_state_core = 68
					add_state_core = 63
					add_state_core = 5
				}
				every_state = {
					limit = {
						is_core_of = POL
						is_owned_and_controlled_by = GER
					}
					POL = {
						transfer_state = PREV
					}
				}
				every_state = {
					limit = {
						is_owned_and_controlled_by = GER
						is_core_of = WGR
					}
					WGR = {
						transfer_state = PREV
					}
				}
				every_state = {
					limit = {
						is_owned_and_controlled_by = GER
						is_core_of = DDR
					}
					DDR = {
						transfer_state = PREV
					}
				}
				GER = {
					transfer_units_fraction = {
						target = WGR
						size = 0.5
					}
				}
				GER = {
					transfer_units_fraction = {
						target = DDR
						size = 0.5
					}
				}
				POL = {
					add_state_core = 763
					transfer_state = 763
				}
				42 = { set_demilitarized_zone = no }
				51 = { set_demilitarized_zone = no }
				set_global_flag = had_yalta_conference
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ger_formation_status
						option = GER_FORMED_YALTA_II
					}
				}
				WGR = {
					add_state_core = 42
					add_state_core = 50
					add_state_core = 52
					add_state_core = 53
					add_state_core = 54
					add_state_core = 55
					add_state_core = 60
					add_state_core = 61
					add_state_core = 65
					change_tag_from = AUS
				}
				DDR = {
					add_state_core = 5
					add_state_core = 51
					add_state_core = 56
					add_state_core = 57
					add_state_core = 58
					add_state_core = 59
					add_state_core = 62
					add_state_core = 63
					add_state_core = 64
					add_state_core = 66
					add_state_core = 67
					add_state_core = 68
					add_state_core = 85
					add_state_core = 86
					add_state_core = 188
					add_state_core = 762
					transfer_state = 85
					transfer_state = 86
					transfer_state = 188
					transfer_state = 762
					change_tag_from = GER
				}
				every_state = {
					limit = {
						is_owned_and_controlled_by = GER
						is_core_of = DDR
					}
					DDR = {
						transfer_state = PREV
					}
				}
				DDR = {
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.8
					}
					if = {
						limit = {
							has_dlc = "Waking the Tiger"
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Wilhelm III"
							desc = POLITICS_WILHELM_III_DESC
							picture = "GFX_portrait_ger_wilhelm_iii"
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								popular_figurehead2
							}
						}
						load_focus_tree = german_focus
						complete_national_focus = GER_secure_the_new_state
						complete_national_focus = GER_revive_the_kaiserreich
						complete_national_focus = GER_return_of_the_kaiser
						set_party_name = { ideology = neutrality long_name = GER_neutrality_party_kaiserreich_long name = GER_neutrality_party_kaiserreich }
						drop_cosmetic_tag = yes
					}
				}
				GER = {
					transfer_units_fraction = {
						target = DDR
						size = 0.5
					}
				}
				every_state = {
					limit = {
						is_owned_and_controlled_by = GER
						is_core_of = WGR
					}
					WGR = {
						transfer_state = PREV
					}
				}
				WGR = {
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.8
					}
					kill_country_leader = yes
					create_country_leader = {
						name = "Heinrich Himmler"
						desc = POLITICS_HEINRICH_HIMMLER_DESC
						picture = "gfx/leaders/GER/Portrait_Germany_Heinrich_Himmler.dds"
						expire = "1965.1.1"
						ideology = nazism
						traits = {
						}
					}
					load_focus_tree = german_focus
					set_party_name = { ideology = fascism long_name = GER_fascism_party_long name = GER_fascism_party }
					create_faction = "Axis"
				}
				GER = {
					transfer_units_fraction = {
						target = WGR
						size = 0.5
					}
				}
				DDR = {
					add_state_core = 763
					transfer_state = 763
				}
				42 = { set_demilitarized_zone = no }
				51 = { set_demilitarized_zone = no }
				ARG = {
					create_country_leader = {
						name = "Señor Hilter"
						desc = "POLITICS_SENOR_HILTER_DESC"
						picture = "portrait_south_america_generic_leader_1.dds"
						expire = "1965.1.1"
						ideology = gen_nazism
						traits = {
							dictator
							incognito
						}
					}
				}
				set_global_flag = had_yalta_conference
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gran_formation_status
						option = GRAN_FORMED_COL
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = PAN
							tag = ECU
							tag = VEN
						}
					}
					every_unit_leader = {
						set_nationality = COL
					}
				}
				COL = {
					annex_country = {
						target = PAN
						transfer_troops = yes
					}
					annex_country = {
						target = ECU
						transfer_troops = yes
					}
					annex_country = {
						target = VEN
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = PAN
								is_core_of = ECU
								is_core_of = COL
								is_core_of = VEN
								is_core_of = CRC
								is_core_of = GYA
								state = 490
								state = 491
							}
						}
						add_core_of = COL
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CRC
								is_core_of = GYA
							}
						}
						COL = { transfer_state = PREV }
					}
					transfer_state = 685
					set_cosmetic_tag = GCO_UNIFIED
				}
				set_global_flag = form_gran_colombia_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gran_formation_status
						option = GRAN_FORMED_VEN
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = PAN
							tag = ECU
							tag = COL
						}
					}
					every_unit_leader = {
						set_nationality = VEN
					}
				}
				VEN = {
					annex_country = {
						target = PAN
						transfer_troops = yes
					}
					annex_country = {
						target = ECU
						transfer_troops = yes
					}
					annex_country = {
						target = COL
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = PAN
								is_core_of = ECU
								is_core_of = COL
								is_core_of = VEN
								is_core_of = CRC
								is_core_of = GYA
								state = 490
								state = 491
							}
						}
						VEN = { transfer_state = PREV }
						add_core_of = VEN
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CRC
								is_core_of = GYA
							}
						}
						VEN = { transfer_state = PREV }
					}
					transfer_state = 685
					set_cosmetic_tag = GCO_UNIFIED
				}
				set_global_flag = form_gran_colombia_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = BYZ_BARE_MINIMUM
					}
				}
				TUR = {
					delete_unit = { state = 341 }
					delete_unit = { state = 340 }
					delete_unit = { state = 339 }
					delete_unit = { state = 797 }
				}
				ITA = {
					delete_unit = { state = 164 }
				}
				every_state = {
					limit = {
						OR = {
							state = 341
							state = 340
							state = 339
							state = 797
							state = 164
						}
					}
					add_core_of = GRE
					GRE = {
						transfer_state = PREV
					}
				}
				GRE = {
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				GRE = {
					44 = { add_core_of = GRE }
					82 = { add_core_of = GRE }
					81 = { add_core_of = GRE }
					46 = { add_core_of = GRE }
					77 = { add_core_of = GRE }
					185 = { add_core_of = GRE }
					731 = { add_core_of = GRE }
					47 = { add_core_of = GRE }
					186 = { add_core_of = GRE }
					184 = { add_core_of = GRE }
					187 = { add_core_of = GRE }
					182 = { add_core_of = GRE }
					341 = { add_core_of = GRE }
					340 = { add_core_of = GRE }
					339 = { add_core_of = GRE }
					342 = { add_core_of = GRE }
					343 = { add_core_of = GRE }
					347 = { add_core_of = GRE }
					49 = { add_core_of = GRE }
					346 = { add_core_of = GRE }
					345 = { add_core_of = GRE }
					356 = { add_core_of = GRE }
					348 = { add_core_of = GRE }
					344 = { add_core_of = GRE }
					355 = { add_core_of = GRE }
					349 = { add_core_of = GRE }
					350 = { add_core_of = GRE }
					354 = { add_core_of = GRE }
					353 = { add_core_of = GRE }
					352 = { add_core_of = GRE }
					48 = { add_core_of = GRE }
					212 = { add_core_of = GRE }
					211 = { add_core_of = GRE }
					102 = { add_core_of = GRE }
					103 = { add_core_of = GRE }
					109 = { add_core_of = GRE }
					104 = { add_core_of = GRE }
					45 = { add_core_of = GRE }
					107 = { add_core_of = GRE }
					105 = { add_core_of = GRE }
					108 = { add_core_of = GRE }
					106 = { add_core_of = GRE }
					764 = { add_core_of = GRE }
					797 = { add_core_of = GRE }
					799 = { add_core_of = GRE }
					801 = { add_core_of = GRE }
					804 = { add_core_of = GRE }
					802 = { add_core_of = GRE }
					803 = { add_core_of = GRE }
				}
				set_global_flag = form_byzantine_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_BYZANTIUM
					}
				}
				TUR = {
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 797
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 798
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 800
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_country_flag = GRE_byz_unified_flag
					set_cosmetic_tag = BYZ_UNIFIED_fascism
					set_capital = 797
					set_country_flag = GRE_byz_unified_flag
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.7
					}
					remove_country_leader_role = {
						character = GRE_georgios_kosmidis
						ideology = nazism
					}
					add_country_leader_role = {
						character = GRE_georgios_kosmidis
						country_leader = {
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								autokrator
							}
						}
						promote_leader = yes
					}
					if = {
						limit = {
							GER = {
								OR = {
									NOT = {
										has_government = fascism
									}
									exists = no
								}
							}
						}
						create_country_leader = {
							name = "Adolfos I"
							desc = "POLITICS_ADOLFOS_I_DESC"
							picture = "Portrait_GRE_adolfos_i.dds"
							expire = "1965.1.1"
							ideology = gen_nazism
							traits = {
								basileus
							}
						}
						remove_ideas = GRE_george_ii
					}
					set_party_name = { 
						ideology = fascism 
						long_name = GRE_byzantine_party_long 
						name = GRE_byzantine_party 
					}
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				731 = { set_state_name = "Thessalonica" }
				184 = { set_state_name = "Strymon" }
				341 = { set_state_name = "Thracia" }
				set_province_name = { id = 11842 name = "Adrianople" }
				340 = { set_state_name = "Prusa" }
				set_province_name = { id = 947 name = "Prusa" }
				339 = { set_state_name = "Samos" }
				set_province_name = { id = 4112 name = "Smyrna" }
				342 = { set_state_name = "Cibyrrhaeot" }
				set_province_name = { id = 1005 name = "Attaleia" }
				343 = { set_state_name = "Thrakesion" }
				set_province_name = { id = 9878 name = "Nicopolis" }
				set_province_name = { id = 10041 name = "Attouda" }
				347 = { set_state_name = "Optimaton" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Pontoheraclea" }
				49 = { set_state_name = "Bukellarion" }
				set_province_name = { id = 11747 name = "Ancyra" }
				set_province_name = { id = 3951 name = "Dorylaion" }
				346 = { set_state_name = "Anatolikon" }
				set_province_name = { id = 940 name = "Ikonion" }
				345 = { set_state_name = "Seleucia" }
				set_province_name = { id = 10056 name = "Hadrianopolis" }
				356 = { set_state_name = "Paphlagonia" }
				set_province_name = { id = 6995 name = "Sinope" }
				set_province_name = { id = 6938 name = "Kastamone" }
				348 = { set_state_name = "Cappadocia" }
				set_province_name = { id = 3870 name = "Caesarea" }
				344 = { set_state_name = "Cilicia" }
				set_province_name = { id = 11746 name = "Tarsus" }
				set_province_name = { id = 886 name = "Germanicia" }
				set_province_name = { id = 9893 name = "Antiochia" }
				355 = { set_state_name = "Armeniakon" }
				set_province_name = { id = 11881 name = "Amisos" }
				349 = { set_state_name = "Koloneia" }
				set_province_name = { id = 9777 name = "Sebasteia" }
				798 = { set_state_name = "Carsiano" }
				set_province_name = { id = 919 name = "Amaseia" }
				set_province_name = { id = 3862 name = "Taouion" }
				350 = { set_state_name = "Melitene" }
				set_province_name = { id = 7620 name = "Melitene" }
				set_province_name = { id = 9823 name = "Justinopolis" }
				set_province_name = { id = 4512 name = "Amida" }
				354 = { set_state_name = "Chaldia" }
				set_province_name = { id = 9932 name = "Trebizond" }
				353 = { set_state_name = "Manzikert" }
				set_province_name = { id = 11853 name = "Theodosiopolis" }
				352 = { set_state_name = "Hubushkia" }
				set_province_name = { id = 12476 name = "Kondylis" }
				800 = { set_state_name = "Vaspurakan" }
				set_province_name = { id = 6935 name = "Eua" }
				set_global_flag = form_byzantine_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = BYZ_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = YUG
							tag = BUL
							tag = ALB
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 44
								state = 82
								state = 81
								state = 46
								state = 77
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 48
								state = 212
								state = 211
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 107
								state = 105
								state = 108
								state = 106
								state = 764
								state = 797
								state = 798
								state = 800
								state = 801
								state = 802
								state = 803
								state = 804
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_global_flag = form_byzantine_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_BYZANTIUM_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = ALB
							tag = BUL
							tag = YUG
							tag = ITA
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 797
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 798
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 800
								state = 44
								state = 105
								state = 805
								state = 82
								state = 81
								state = 46
								state = 77
								state = 766
								state = 48
								state = 212
								state = 211
								state = 106
								state = 801
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 107
								state = 108
								state = 802
								state = 803
								state = 804
								state = 764
								state = 158
								state = 159
								state = 39
								state = 160
								state = 161
								state = 162
								state = 157
								state = 2
								state = 117
								state = 156
								state = 115
								state = 736
								state = 163
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 453
								state = 454
								state = 455
								state = 183
								state = 458
								state = 665
								state = 449
								state = 662
								state = 448
								state = 661
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_country_flag = GRE_byz_unified_flag
					set_cosmetic_tag = BYZ_UNIFIED_fascism
					set_capital = 797
					set_country_flag = GRE_byz_unified_flag
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.7
					}
					remove_country_leader_role = {
						character = GRE_georgios_kosmidis
						ideology = nazism
					}
					add_country_leader_role = {
						character = GRE_georgios_kosmidis
						country_leader = {
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								autokrator
							}
						}
						promote_leader = yes
					}
					if = {
						limit = {
							GER = {
								OR = {
									NOT = {
										has_government = fascism
									}
									exists = no
								}
							}
						}
						create_country_leader = {
							name = "Adolfos I"
							desc = "POLITICS_ADOLFOS_I_DESC"
							picture = "Portrait_GRE_adolfos_i.dds"
							expire = "1965.1.1"
							ideology = gen_nazism
							traits = {
								basileus
							}
						}
						remove_ideas = GRE_george_ii
					}
					set_party_name = { 
						ideology = fascism 
						long_name = GRE_byzantine_party_long 
						name = GRE_byzantine_party 
					}
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				731 = { set_state_name = "Thessalonica" }
				184 = { set_state_name = "Strymon" }
				341 = { set_state_name = "Thracia" }
				set_province_name = { id = 11842 name = "Adrianople" }
				340 = { set_state_name = "Prusa" }
				set_province_name = { id = 947 name = "Prusa" }
				339 = { set_state_name = "Samos" }
				set_province_name = { id = 4112 name = "Smyrna" }
				342 = { set_state_name = "Cibyrrhaeot" }
				set_province_name = { id = 1005 name = "Attaleia" }
				343 = { set_state_name = "Thrakesion" }
				set_province_name = { id = 9878 name = "Nicopolis" }
				set_province_name = { id = 10041 name = "Attouda" }
				347 = { set_state_name = "Optimaton" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Pontoheraclea" }
				49 = { set_state_name = "Bukellarion" }
				set_province_name = { id = 11747 name = "Ancyra" }
				set_province_name = { id = 3951 name = "Dorylaion" }
				346 = { set_state_name = "Anatolikon" }
				set_province_name = { id = 940 name = "Ikonion" }
				345 = { set_state_name = "Seleucia" }
				set_province_name = { id = 10056 name = "Hadrianopolis" }
				356 = { set_state_name = "Paphlagonia" }
				set_province_name = { id = 6995 name = "Sinope" }
				set_province_name = { id = 6938 name = "Kastamone" }
				348 = { set_state_name = "Cappadocia" }
				set_province_name = { id = 3870 name = "Caesarea" }
				344 = { set_state_name = "Cilicia" }
				set_province_name = { id = 11746 name = "Tarsus" }
				set_province_name = { id = 886 name = "Germanicia" }
				set_province_name = { id = 9893 name = "Antiochia" }
				355 = { set_state_name = "Armeniakon" }
				set_province_name = { id = 11881 name = "Amisos" }
				349 = { set_state_name = "Koloneia" }
				set_province_name = { id = 9777 name = "Sebasteia" }
				798 = { set_state_name = "Carsiano" }
				set_province_name = { id = 919 name = "Amaseia" }
				set_province_name = { id = 3862 name = "Taouion" }
				350 = { set_state_name = "Melitene" }
				set_province_name = { id = 7620 name = "Melitene" }
				set_province_name = { id = 9823 name = "Justinopolis" }
				set_province_name = { id = 4512 name = "Amida" }
				354 = { set_state_name = "Chaldia" }
				set_province_name = { id = 9932 name = "Trebizond" }
				353 = { set_state_name = "Manzikert" }
				set_province_name = { id = 11853 name = "Theodosiopolis" }
				352 = { set_state_name = "Hubushkia" }
				set_province_name = { id = 12476 name = "Kondylis" }
				800 = { set_state_name = "Vaspurakan" }
				set_province_name = { id = 6935 name = "Eua" }
				44 = { set_state_name = "Illyria" }
				set_province_name = { id = 9914 name = "Kastrioti" }
				set_province_name = { id = 11767 name = "Aulon" }
				105 = { set_state_name = "Dyrrhachion" }
				set_province_name = { id = 9809 name = "Dyrrhachium" }
				set_province_name = { id = 914 name = "Argyrokastro" }
				82 = { set_state_name = "Pannonia" }
				48 = { set_state_name = "Wallachia" }
				set_province_name = { id = 6652 name = "Pelendava" }
				46 = { set_state_name = "Paristrion" }
				set_province_name = { id = 9617 name = "Kosmidis" }
				set_province_name = { id = 3663 name = "Tarnovo" }
				77 = { set_state_name = "Anchialus" }
				set_province_name = { id = 11597 name = "Mesembria" }
				766 = { set_state_name = "Silistra" }
				set_province_name = { id = 6727 name = "Velissarios" }
				48 = { set_state_name = "Philippopolis" }
				set_province_name = { id = 949 name = "Serdica" }
				212 = { set_state_name = "Philippopolis" }
				set_province_name = { id = 6923 name = "Philippopolis" }
				211 = { set_state_name = "Pyrgos" }
				set_province_name = { id = 9902 name = "Poros" }
				set_province_name = { id = 9783 name = "Odessos" }
				106 = { set_state_name = "Boulgarias" }
				set_province_name = { id = 3882 name = "Scupi" }
				731 = { set_state_name = "Macedonia" }
				set_province_name = { id = 3924 name = "Spalatum" }
				set_province_name = { id = 11581 name = "Venizelos" }
				104 = { set_state_name = "Bosona" }
				107 = { set_state_name = "Sirmium" }
				set_province_name = { id = 11586 name = "Belograd" }
				108 = { set_state_name = "Pizren" }
				set_province_name = { id = 9602 name = "Naissus" }
				set_global_flag = form_byzantine_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = BYZ_FORMED_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = YUG
							tag = BUL
							tag = ALB
							tag = ITA
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = ITA
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 44
								state = 82
								state = 81
								state = 46
								state = 77
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 48
								state = 212
								state = 211
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 107
								state = 105
								state = 108
								state = 106
								state = 764
								state = 797
								state = 798
								state = 800
								state = 801
								state = 802
								state = 803
								state = 804
								state = 158
								state = 159
								state = 39
								state = 160
								state = 161
								state = 162
								state = 157
								state = 2
								state = 117
								state = 156
								state = 115
								state = 736
								state = 163
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 453
								state = 454
								state = 455
								state = 183
								state = 458
								state = 665
								state = 449
								state = 662
								state = 448
								state = 661
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_global_flag = form_byzantine_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_GREATER_COMMUNISM
					}
				}
				TUR = {
					delete_unit = { state = 341 }
					delete_unit = { state = 340 }
					delete_unit = { state = 339 }
					delete_unit = { state = 347 }
					delete_unit = { state = 797 }
				}
				ITA = {
					delete_unit = { state = 164 }
				}
				every_state = {
					limit = {
						OR = {
							state = 341
							state = 340
							state = 339
							state = 347
							state = 797
							state = 164
							state = 183
						}
					}
					add_core_of = GRE
					GRE = {
						transfer_state = PREV
					}
				}
				GRE = {
					set_country_flag = GRE_GREATER_GREECE_flag
					set_cosmetic_tag = GRE_GREATER_GREECE_communism
					set_politics = {
						ruling_party = communism
						elections_allowed = no
					}
					add_popularity = {
						ideology = communism
						popularity = 0.5
					}
					add_country_leader_role = {
						character = GRE_markos_vafiadis
						country_leader = {
							expire = "1965.1.1"
							ideology = marxism
							traits = {
								guerilla_warfare_expert
							}
						}
						promote_leader = yes
					}
					add_state_core = 805
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				791 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { set_state_name = "Nikomedeia" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Kieros" }
				342 = { set_state_name = "Attalis" }
				set_province_name = { id = 1005 name = "Attaleia" }
				set_global_flag = form_greater_greece_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_GREATER_FASCISM
					}
				}
				TUR = {
					delete_unit = { state = 341 }
					delete_unit = { state = 340 }
					delete_unit = { state = 339 }
					delete_unit = { state = 347 }
					delete_unit = { state = 797 }
				}
				ITA = {
					delete_unit = { state = 164 }
				}
				every_state = {
					limit = {
						OR = {
							state = 341
							state = 340
							state = 339
							state = 347
							state = 797
							state = 164
							state = 183
						}
					}
					add_core_of = GRE
					GRE = {
						transfer_state = PREV
					}
				}
				GRE = {
					set_country_flag = GRE_GREATER_GREECE_flag
					set_cosmetic_tag = GRE_GREATER_GREECE_fascism
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.7
					}
					remove_country_leader_role = {
						character = GRE_georgios_kosmidis
						ideology = nazism
					}
					add_country_leader_role = {
						character = GRE_georgios_kosmidis
						country_leader = {
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								archon_basileus
							}
						}
						promote_leader = yes
					}
					set_party_name = { 
						ideology = fascism 
						long_name = GRE_byzantine_party_long 
						name = GRE_byzantine_party 
					}
					add_state_core = 805
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				791 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { set_state_name = "Nikomedeia" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Kieros" }
				342 = { set_state_name = "Attalis" }
				set_province_name = { id = 1005 name = "Attaleia" }
				set_global_flag = form_greater_greece_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_GREATER_NEUTRALITY
					}
				}
				TUR = {
					delete_unit = { state = 341 }
					delete_unit = { state = 340 }
					delete_unit = { state = 339 }
					delete_unit = { state = 347 }
					delete_unit = { state = 797 }
				}
				ITA = {
					delete_unit = { state = 164 }
				}
				every_state = {
					limit = {
						OR = {
							state = 341
							state = 340
							state = 339
							state = 347
							state = 797
							state = 164
							state = 183
						}
					}
					add_core_of = GRE
					GRE = {
						transfer_state = PREV
					}
				}
				GRE = {
					set_country_flag = GRE_GREATER_GREECE_flag
					set_cosmetic_tag = GRE_GREATER_GREECE_fascism
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.3
					}
					add_country_leader_role = {
						character = GRE_ioannis_metaxas
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								arkhigos
							}
						}
						promote_leader = yes
					}
					set_party_name = { ideology = neutrality long_name = GRE_metaxas_party_long name = GRE_metaxas_party }
					add_state_core = 805
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				791 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { set_state_name = "Nikomedeia" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Kieros" }
				342 = { set_state_name = "Attalis" }
				set_province_name = { id = 1005 name = "Attaleia" }
				set_global_flag = form_greater_greece_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_MACEDONIA_FASCISM
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = BUL
							tag = ALB
							tag = PER
							tag = AFG
							tag = IRQ
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = PER
						transfer_troops = yes
					}
					annex_country = {
						target = AFG
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 797
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 798
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 800
								state = 48
								state = 212
								state = 801
								state = 211
								state = 106
								state = 803
								state = 105
								state = 44
								state = 805
								state = 419
								state = 421
								state = 420
								state = 417
								state = 413
								state = 266
								state = 418
								state = 411
								state = 412
								state = 416
								state = 414
								state = 410
								state = 415
								state = 267
								state = 742
								state = 405
								state = 732
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 452
								state = 447
								state = 446
								state = 456
								state = 453
								state = 457
								state = 454
								state = 455
								state = 656
								state = 440
								state = 443
								state = 441
								state = 787
								state = 442
								state = 445
								state = 444
								state = 799
								state = 183
								state = 164
								state = 830
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_country_flag = GRE_mae_flag
					set_cosmetic_tag = MAE_fascism
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.7
					}
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_macedonian_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = gre_formation_status
						option = GRE_FORMED_MACEDONIA_NEUTRALITY
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = BUL
							tag = ALB
							tag = PER
							tag = AFG
							tag = IRQ
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = PER
						transfer_troops = yes
					}
					annex_country = {
						target = AFG
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 797
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 798
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 800
								state = 48
								state = 212
								state = 801
								state = 211
								state = 106
								state = 803
								state = 105
								state = 44
								state = 805
								state = 419
								state = 421
								state = 420
								state = 417
								state = 413
								state = 266
								state = 418
								state = 411
								state = 412
								state = 416
								state = 414
								state = 410
								state = 415
								state = 267
								state = 742
								state = 405
								state = 732
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 452
								state = 447
								state = 446
								state = 456
								state = 453
								state = 457
								state = 454
								state = 455
								state = 656
								state = 440
								state = 443
								state = 441
								state = 787
								state = 442
								state = 445
								state = 444
								state = 799
								state = 183
								state = 164
								state = 830
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_country_flag = GRE_mae_flag
					set_cosmetic_tag = MAE_neutrality
					add_popularity = {
						ideology = neutrality
						popularity = 0.3
					}
					create_country_leader = {
						name = "George II"
						desc = "POLITICS_GEORGE_II_DESC"
						picture = "GFX_portrait_gre_george_ii"
						expire = "1965.1.1"
						ideology = despotism
						traits = {
							divisive_absolute_monarch
						}
					}
					set_party_name = { ideology = neutrality long_name = GRE_monarchist_party_long name = GRE_monarchist_party }
					set_politics = { ruling_party = neutrality elections_allowed = no }
					remove_ideas = GRE_george_ii
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_macedonian_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = majapahit_formation_status
						option = MAJAPAHIT_FORMED_MAL
					}
				}
				INS = {
					every_unit_leader = {
						set_nationality = MAL
					}
				}
				ENG = {
					set_autonomy = { target = MAL autonomy_state = autonomy_free }
				}
				MAL = {
					abandon_colony_tag = yes
					retire_country_leader = yes
					every_state = {
						limit = {
							is_core_of = INS
						}
						add_core_of = MAL
					}
					annex_country = {
						target = INS
						transfer_troops = yes
					}
					set_cosmetic_tag = MAJ_UNIFIED
				}
				set_global_flag = form_majapahit_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = majapahit_formation_status
						option = MAJAPAHIT_FORMED_INS
					}
				}
				MAL = {
					every_unit_leader = {
						set_nationality = INS
					}
				}
				HOL = {
					set_autonomy = { target = INS autonomy_state = autonomy_free }
				}
				INS = {
					abandon_colony_tag = yes
					retire_country_leader = yes
					every_state = {
						limit = {
							is_core_of = MAL
						}
						add_core_of = INS
					}
					annex_country = {
						target = MAL
						transfer_troops = yes
					}
					set_cosmetic_tag = MAJ_UNIFIED
				}
				set_global_flag = form_majapahit_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = iberia_formation_status
						option = IBERIA_FORMED_POR
					}
				}
				SPR = {
					every_unit_leader = {
						set_nationality = POR
					}
				}
				POR = {
					every_state = {
						limit = {
							is_core_of = SPR
						}
						add_core_of = POR
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					set_cosmetic_tag = ESU_POR_unified
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = iberia_formation_status
						option = IBERIA_FORMED_SPR
					}
				}
				POR = {
					every_unit_leader = {
						set_nationality = SPR
					}
				}
				SPR = {
					every_state = {
						limit = {
							is_core_of = POR
						}
						add_core_of = SPR
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					set_cosmetic_tag = ESU_POR_unified
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = ural_formation_status
						option = URAL_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 249 }
					delete_unit = { state = 256 }
					delete_unit = { state = 399 }
					delete_unit = { state = 651 }
					delete_unit = { state = 833 }
				}
				MEL = {
					every_state = {
						limit = {
							OR = {
								is_core_of = MEL
								is_core_of = CHU
								is_core_of = TAT
								is_core_of = UDM
								is_core_of = BSK
							}
						}
						MEL = { transfer_state = PREV }
					}
					set_cosmetic_tag = idel_ural
					set_global_flag = form_idel_ural_flag
					change_tag_from = MON
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = jap_formation_status
						option = JAP_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 408 }
					delete_unit = { state = 409 }
					delete_unit = { state = 560 }
					delete_unit = { state = 655 }
					delete_unit = { state = 657 }
				}
				JAP = {
					every_state = {
						limit = {
							OR = {
								state = 408
								state = 409
								state = 560
								state = 655
								state = 657
							}
						}
						JAP = { transfer_state = PREV }
					}
					remove_country_leader_role = {
						character = JAP_emperor_hirohito
						ideology = fascism_ideology
					}
					add_country_leader_role = {
						character = JAP_emperor_hirohito
						country_leader = {
							expire = "1989.1.1"
							ideology = despotism
							traits = {
								warrior_code
								emperor_showa
							}
							id = 700 #Hirohito
						}
						promote_leader = yes
					}
					set_party_name = { 
						ideology = neutrality 
						long_name = JAP_neutrality_party_kodoha_long 
						name = JAP_neutrality_party_kodoha 
					}
					swap_ideas = {
						remove_idea = JAP_militarism
						add_idea = JAP_militarism_showa
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.9
					}
					add_timed_idea = {
						idea = JAP_military_purges
						days = 90
					}
					set_cosmetic_tag = JAP_showa_restoration
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = kalmar_nordic_formation_status
						option = KALMAR_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = NOR
							tag = DEN
						}
					}
					every_unit_leader = {
						set_nationality = SWE
					}
				}
				SWE = {
					every_state = {
						limit = {
							OR = {
								is_core_of = NOR
								is_core_of = DEN
							}
						}
						add_core_of = SWE
					}
					annex_country = {
						target = NOR
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					set_cosmetic_tag = SCA_UNIFIED
					set_global_flag = form_scandinavia_flag
					every_state = {
						limit = {
							is_owned_by = SWE
						}
						add_core_of = SWE
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = kalmar_nordic_formation_status
						option = NORDIC_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = NOR
							tag = DEN
							tag = FIN
							tag = ICE
						}
					}
					every_unit_leader = {
						set_nationality = SWE
					}
				}
				SWE = {
					every_state = {
						limit = {
							OR = {
								is_core_of = NOR
								is_core_of = DEN
								is_core_of = FIN
								is_core_of = ICE
							}
						}
						add_core_of = SWE
					}
					annex_country = {
						target = NOR
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					set_cosmetic_tag = NDC_UNIFIED
					set_global_flag = form_scandinavia_flag
					every_state = {
						limit = {
							is_owned_by = SWE
						}
						add_core_of = SWE
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = kalmar_nordic_formation_status
						option = KALMAR_FORMED_EST
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = NOR
							tag = DEN
							tag = SWE
							tag = ICE
						}
					}
					every_unit_leader = {
						set_nationality = EST
					}
				}
				EST = {
					every_state = {
						limit = {
							OR = {
								is_core_of = NOR
								is_core_of = DEN
								is_core_of = SWE
								is_core_of = ICE
							}
						}
						add_core_of = EST
					}
					annex_country = {
						target = NOR
						transfer_troops = yes
					}
					annex_country = {
						target = DEN
						transfer_troops = yes
					}
					annex_country = {
						target = SWE
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_owned_by = EST
						}
						add_core_of = EST
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.4
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					remove_ideas = democratic_opposition
					set_rule = {
						can_create_factions = yes
					}
					create_faction = FINNO_ESTONIAN_SUPREMACY_LEAGUE
					add_to_faction = FIN
					set_cosmetic_tag = NDC_UNIFIED
					set_global_flag = form_scandinavia_flag
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = kur_formation_status
						option = KUR_FORMED
					}
				}
				KUR = {
					every_state = {
						limit = {
							is_core_of = KUR
						}
						KUR = { transfer_state = PREV }
					}
					change_tag_from = AFG
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lat_formation_status
						option = BALTIC_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							tag = EST
						}
					}
					every_unit_leader = {
						set_nationality = LAT
					}
				}
				LAT = {
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LIT
								is_core_of = EST
							}
						}
						add_core_of = LAT
					}
					set_cosmetic_tag = BAL_UNIFIED
				}
				set_global_flag = form_baltic_federation_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lat_formation_status
						option = LAT_FORMED_OST
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							tag = EST
						}
					}
					every_unit_leader = {
						set_nationality = LAT
					}
				}
				LAT = {
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LIT
								is_core_of = EST
								state = 94
								state = 95
								state = 96
								state = 784
							}
						}
						LAT = { transfer_state = PREV }
						add_core_of = LAT
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.15
					}
					remove_mission = LAT_perkonkrust_uprising
					remove_perkonkrust_effect = yes
					set_cosmetic_tag = OSTLAND
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lit_formation_status
						option = LIT_FORMED_GREATER
					}
				}
				GER = {
					delete_unit = { state = 763 }
				}
				POL = {
					delete_unit = { state = 784 }
				}
				LIT = {
					every_state = {
						limit = {
							OR = {
								state = 763
								state = 784
							}
						}
						LIT = { transfer_state = PREV }
						add_core_of = LIT
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.15
					}
					96 = { add_core_of = LIT }
					95 = { add_core_of = LIT }
					94 = { add_core_of = LIT }
					207 = { add_core_of = LIT }
					206 = { add_core_of = LIT }
					204 = { add_core_of = LIT }
					241 = { add_core_of = LIT }
					93 = { add_core_of = LIT }
					199 = { add_core_of = LIT }
					201 = { add_core_of = LIT }
					198 = { add_core_of = LIT }
					202 = { add_core_of = LIT }
					203 = { add_core_of = LIT }
					259 = { add_core_of = LIT }
					193 = { add_core_of = LIT }
					225 = { add_core_of = LIT }
					221 = { add_core_of = LIT }
					226 = { add_core_of = LIT }
					197 = { add_core_of = LIT }
					192 = { add_core_of = LIT }
					242 = { add_core_of = LIT }
					243 = { add_core_of = LIT }
					224 = { add_core_of = LIT }
					205 = { add_core_of = LIT }
					223 = { add_core_of = LIT }
					222 = { add_core_of = LIT }
					220 = { add_core_of = LIT }
					240 = { add_core_of = LIT }
					194 = { add_core_of = LIT }
					LIT_remove_iron_wolf_effect = yes
					add_ideas = LIT_iron_wolf_idea_good_2
					set_cosmetic_tag = GREATER_LIT
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lit_formation_status
						option = LIT_FORMED_GREATER_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							tag = EST
						}
					}
					every_unit_leader = {
						set_nationality = LIT
					}
				}
				GER = {
					delete_unit = { state = 763 }
				}
				POL = {
					delete_unit = { state = 93 }
					delete_unit = { state = 94 }
					delete_unit = { state = 95 }
					delete_unit = { state = 96 }
					delete_unit = { state = 784 }
				}
				SOV = {
					delete_unit = { state = 192 }
					delete_unit = { state = 193 }
					delete_unit = { state = 194 }
					delete_unit = { state = 197 }
					delete_unit = { state = 198 }
					delete_unit = { state = 199 }
					delete_unit = { state = 201 }
					delete_unit = { state = 202 }
					delete_unit = { state = 203 }
					delete_unit = { state = 204 }
					delete_unit = { state = 205 }
					delete_unit = { state = 206 }
					delete_unit = { state = 207 }
					delete_unit = { state = 220 }
					delete_unit = { state = 221 }
					delete_unit = { state = 222 }
					delete_unit = { state = 223 }
					delete_unit = { state = 224 }
					delete_unit = { state = 225 }
					delete_unit = { state = 226 }
					delete_unit = { state = 240 }
					delete_unit = { state = 241 }
					delete_unit = { state = 242 }
					delete_unit = { state = 243 }
					delete_unit = { state = 259 }
				}
				LIT = {
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LAT
								is_core_of = EST
								state = 93
								state = 94
								state = 95
								state = 96
								state = 192
								state = 193
								state = 194
								state = 197
								state = 198
								state = 199
								state = 201
								state = 202
								state = 203
								state = 204
								state = 205
								state = 206
								state = 207
								state = 220
								state = 221
								state = 222
								state = 223
								state = 224
								state = 225
								state = 226
								state = 240
								state = 241
								state = 242
								state = 243
								state = 259
								state = 763
								state = 784
							}
						}
						LIT = { transfer_state = PREV }
						add_core_of = LIT
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.15
					}
					LIT_remove_iron_wolf_effect = yes
					add_ideas = LIT_iron_wolf_idea_good_2
					set_cosmetic_tag = GREATER_LIT
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lit_formation_status
						option = LIT_FORMED_LIVONIA
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							tag = EST
						}
					}
					every_unit_leader = {
						set_nationality = LIT
					}
				}
				GER = {
					delete_unit = { state = 5 }
					delete_unit = { state = 763 }
				}
				LIT = {
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LAT
								is_core_of = EST
								state = 5
								state = 763
							}
						}
						LIT = { transfer_state = PREV }
						add_core_of = LIT
					}
					set_party_name = {
						ideology = neutrality
						name = LIT_von_urach_party
						long_name = LIT_von_urach_party
					}
					promote_character = LIT_karl_gero
					set_cosmetic_tag = LIVONIA
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lit_formation_status
						option = LIT_FORMED_POL
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							tag = POL
						}
					}
					every_unit_leader = {
						set_nationality = LIT
					}
				}
				LIT = {
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LAT
								is_core_of = POL
							}
						}
						LIT = { transfer_state = PREV }
						add_core_of = LIT
					}
					set_party_name = {
						ideology = neutrality
						name = LIT_von_urach_party
						long_name = LIT_von_urach_party
					}
					promote_character = LIT_karl_gero
					set_cosmetic_tag = PLC_UNIFIED
				}
				set_global_flag = form_commonwealth_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = lit_formation_status
						option = LIT_FORMED_POL_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							tag = EST
							tag = POL
						}
					}
					every_unit_leader = {
						set_nationality = LIT
					}
				}
				GER = {
					delete_unit = { state = 5 }
					delete_unit = { state = 63 }
					delete_unit = { state = 66 }
					delete_unit = { state = 67 }
					delete_unit = { state = 68 }
					delete_unit = { state = 763 }
				}
				SOV = {
					delete_unit = { state = 137 }
					delete_unit = { state = 192 }
					delete_unit = { state = 193 }
					delete_unit = { state = 194 }
					delete_unit = { state = 196 }
					delete_unit = { state = 197 }
					delete_unit = { state = 198 }
					delete_unit = { state = 199 }
					delete_unit = { state = 200 }
					delete_unit = { state = 201 }
					delete_unit = { state = 202 }
					delete_unit = { state = 203 }
					delete_unit = { state = 204 }
					delete_unit = { state = 205 }
					delete_unit = { state = 206 }
					delete_unit = { state = 207 }
					delete_unit = { state = 220 }
					delete_unit = { state = 221 }
					delete_unit = { state = 222 }
					delete_unit = { state = 223 }
					delete_unit = { state = 224 }
					delete_unit = { state = 225 }
					delete_unit = { state = 226 }
					delete_unit = { state = 227 }
					delete_unit = { state = 228 }
					delete_unit = { state = 240 }
					delete_unit = { state = 241 }
					delete_unit = { state = 242 }
					delete_unit = { state = 243 }
					delete_unit = { state = 259 }
					delete_unit = { state = 834 }
				}
				ROM = {
					delete_unit = { state = 766 }
				}
				LIT = {
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LAT
								is_core_of = EST
								is_core_of = POL
								state = 5
								state = 63
								state = 66
								state = 67
								state = 68
								state = 137
								state = 192
								state = 193
								state = 194
								state = 196
								state = 197
								state = 198
								state = 199
								state = 200
								state = 201
								state = 202
								state = 203
								state = 204
								state = 205
								state = 206
								state = 207
								state = 220
								state = 221
								state = 222
								state = 223
								state = 224
								state = 225
								state = 226
								state = 227
								state = 228
								state = 240
								state = 241
								state = 242
								state = 243
								state = 259
								state = 763
								state = 766
								state = 784
								state = 834
							}
						}
						LIT = { transfer_state = PREV }
						add_core_of = LIT
					}
					set_party_name = {
						ideology = neutrality
						name = LIT_von_urach_party
						long_name = LIT_von_urach_party
					}
					promote_character = LIT_karl_gero
					set_cosmetic_tag = PLC_UNIFIED
				}
				set_global_flag = form_commonwealth_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = mexico_formation_status
						option = MEX_FORMED_EMPIRE
					}
				}
				MEX = {
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = GUA
								is_core_of = BLZ
								is_core_of = ELS
								is_core_of = HON
								is_core_of = NIC
								is_core_of = COS
								state = 375
								state = 376
								state = 377
								state = 378
								state = 379
								state = 380
								state = 382
							}
						}
						MEX = { transfer_state = PREV }
						add_core_of = MEX
					}
					every_state = {
						limit = {
							is_owned_by = MEX
						}
						add_core_of = MEX
					}
					set_cosmetic_tag = MEX_cristero
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = mexico_formation_status
						option = MEX_FORMED_MAX
					}
				}
				MEX = {
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					annex_country = {
						target = PAN
						transfer_troops = yes
					}
					annex_country = {
						target = CUB
						transfer_troops = yes
					}
					annex_country = {
						target = DOM
						transfer_troops = yes
					}
					annex_country = {
						target = HAI
						transfer_troops = yes
					}
					annex_country = {
						target = COL
						transfer_troops = yes
					}
					annex_country = {
						target = VEN
						transfer_troops = yes
					}
					annex_country = {
						target = ECU
						transfer_troops = yes
					}
					annex_country = {
						target = PRU
						transfer_troops = yes
					}
					annex_country = {
						target = URG
						transfer_troops = yes
					}
					annex_country = {
						target = CHL
						transfer_troops = yes
					}
					annex_country = {
						target = ARG
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = GUA
								is_core_of = BLZ
								is_core_of = ELS
								is_core_of = HON
								is_core_of = NIC
								is_core_of = COS
								is_core_of = PAN
								is_core_of = CUB
								is_core_of = DOM
								is_core_of = HAI
								is_core_of = BAH
								is_core_of = BAS
								is_core_of = JAM
								is_core_of = PUE
								is_core_of = CRC
								is_core_of = TRI
								is_core_of = GDL
								is_core_of = COL
								is_core_of = VEN
								is_core_of = ECU
								is_core_of = PRU
								is_core_of = BOL
								is_core_of = PAR
								is_core_of = URG
								is_core_of = CHL
								is_core_of = ARG
								state = 375
								state = 376
								state = 377
								state = 378
								state = 379
								state = 380
								state = 382
								state = 685
							}
						}
						MEX = { transfer_state = PREV }
						add_core_of = MEX
					}
					every_state = {
						limit = {
							is_owned_by = MEX
						}
						add_core_of = MEX
					}
					set_cosmetic_tag = MEX_cristero
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = mutapa_formation_status
						option = MUTAPA_FORMED
					}
				}
				ENG = {
					set_autonomy = { target = SAF autonomy_state = autonomy_free }
				}
				SAF = {
					abandon_colony_tag = yes
					retire_country_leader = yes
					annex_country = {
						target = BOT
						transfer_troops = yes
					}
					annex_country = {
						target = ZIM
						transfer_troops = yes
					}
					annex_country = {
						target = MZB
						transfer_troops = yes
					}
					annex_country = {
						target = NMB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = BOT
								is_core_of = ZIM
								is_core_of = MZB
								is_core_of = NMB
							}
						}
						add_core_of = SAF
						SAF = { transfer_state = PREV }
					}
					set_cosmetic_tag = MUT_UNIFIED
					every_state = {
						limit = {
							is_owned_by = SAF
						}
						add_core_of = SAF
					}
				}
				set_global_flag = form_mutapa_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = norcauc_formation_status
						option = NORCAUC_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 232 }
					delete_unit = { state = 233 }
					delete_unit = { state = 821 }
					delete_unit = { state = 826 }
					delete_unit = { state = 827 }
					delete_unit = { state = 828 }
				}
				ABK = {
					every_state = {
						limit = {
							OR = {
								state = 232
								state = 233
								state = 821
								state = 826
								state = 827
								state = 828
							}
						}
						add_core_of = ABK
						ABK = { transfer_state = PREV }
					}
					set_cosmetic_tag = mountainous_republics_unified
					change_tag_from = IRQ
				}
				set_global_flag = form_mountainous_republic_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = persia_formation_status
						option = PERSIA_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = IRQ
							tag = AFG
						}
					}
					every_unit_leader = {
						set_nationality = PER
					}
				}
				PER = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					annex_country = {
						target = AFG
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 419
								state = 421
								state = 420
								state = 417
								state = 413
								state = 266
								state = 418
								state = 411
								state = 412
								state = 416
								state = 414
								state = 410
								state = 415
								state = 267
								state = 676
								state = 675
								state = 291
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
								state = 453
								state = 454
								state = 455
								state = 183
								state = 656
							}
						}
						PER = { transfer_state = PREV }
						add_core_of = PER
					}
					every_state = {
						limit = {
							is_owned_by = PER
						}
						add_core_of = PER
					}
					set_cosmetic_tag = PER_UNIFIED
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_persian_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_FORMED_BERMONDT
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							tag = LAT
							tag = EST
						}
					}
					every_unit_leader = {
						set_nationality = POL
					}
				}
				CZE = {
					delete_unit = { state = 70 }
					delete_unit = { state = 71 }
					delete_unit = { state = 72 }
					delete_unit = { state = 73 }
					delete_unit = { state = 664 }
				}
				POL = {
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LIT
								is_core_of = LAT
								is_core_of = EST
								state = 70
								state = 71
								state = 72
								state = 73
								state = 664
							}
						}
						add_core_of = POL
						POL = { transfer_state = PREV }
					}
					add_ruling_to_fas = yes
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					set_party_name = { 
						ideology = fascism 
						long_name = bermontian_party
						name = bermontian_party 
					}
					promote_character = POL_pavel_bermondt_avalov
					complete_national_focus = POL_fulfil_fifth_of_november
					unlock_national_focus = POL_cossack_king
					clr_country_flag = POL_searching_for_monarch_flag
					set_cosmetic_tag = POL_KINGDOM_RUS
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_LIT_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
						}
					}
					every_unit_leader = {
						set_nationality = POL
					}
				}
				POL = {
					every_state = {
						limit = {
							is_core_of = LIT
						}
						add_core_of = POL
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					set_cosmetic_tag = PLC_UNIFIED
					85 = { add_core_of = POL }
					86 = { add_core_of = POL }
					87 = { add_core_of = POL }
					88 = { add_core_of = POL }
					90 = { add_core_of = POL }
					98 = { add_core_of = POL }
					10 = { add_core_of = POL }
					97 = { add_core_of = POL }
					92 = { add_core_of = POL }
					91 = { add_core_of = POL }
					89 = { add_core_of = POL }
					93 = { add_core_of = POL }
					94 = { add_core_of = POL }
					95 = { add_core_of = POL }
					96 = { add_core_of = POL }
					784 = { add_core_of = POL }
					190 = { add_core_of = POL }
					12 = { add_core_of = POL }
					5 = { add_core_of = POL }
					763 = { add_core_of = POL }
					207 = { add_core_of = POL }
					242 = { add_core_of = POL }
					206 = { add_core_of = POL }
					241 = { add_core_of = POL }
					243 = { add_core_of = POL }
					204 = { add_core_of = POL }
					194 = { add_core_of = POL }
					201 = { add_core_of = POL }
					199 = { add_core_of = POL }
					198 = { add_core_of = POL }
					202 = { add_core_of = POL }
					203 = { add_core_of = POL }
					193 = { add_core_of = POL }
					259 = { add_core_of = POL }
					762 = { add_core_of = POL }
				}
				set_global_flag = form_commonwealth_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_LIT_FORMED_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LAT
							tag = LIT
						}
					}
					every_unit_leader = {
						set_nationality = POL
					}
				}
				POL = {
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
				}
				every_state = {
					limit = {
						OR = {
							is_core_of = LAT
							is_core_of = LIT
							state = 85
							state = 86
							state = 87
							state = 88
							state = 90
							state = 98
							state = 10
							state = 97
							state = 92
							state = 91
							state = 89
							state = 93
							state = 94
							state = 95
							state = 96
							state = 784
							state = 190
							state = 12
							state = 5
							state = 763
							state = 207
							state = 242
							state = 206
							state = 241
							state = 243
							state = 204
							state = 194
							state = 201
							state = 199
							state = 198
							state = 202
							state = 203
							state = 193
							state = 259
							state = 762
						}
					}
					add_core_of = POL
					POL = {
						transfer_state = PREV
						set_cosmetic_tag = PLC_UNIFIED
					}
				}
				set_global_flag = form_commonwealth_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_FORMED_ROM
					}
				}
				ROM = {
					every_unit_leader = {
						set_nationality = POL
					}
					ROM_king_michael = {
						set_nationality = POL
					}
				}
				POL = {
					ROM_king_michael = {
						promote_character = {
							ideology = despotism 
						} 
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_core_of = ROM
						}
						add_core_of = POL
						POL = { transfer_state = PREV }
					}
					set_party_name = { 
						ideology = neutrality 
						long_name = POL_hohenzollern_sigmaringen_long
						name = POL_hohenzollern_sigmaringen
					}
					create_country_leader = {
						name = "Michał II"
						desc = "POLITICS_MICHAEL_I_DESC"
						picture = "gfx/leaders/ROM/Portrait_romania_michael_i.dds"			
						expire = "1965.1.1"
						ideology = despotism
						traits = {
						}
					}
					clr_country_flag = POL_searching_for_monarch_flag
					set_country_flag = king_michael_flag
					complete_national_focus = POL_fulfil_fifth_of_november
					unlock_national_focus = POL_hohenzollern
					set_cosmetic_tag = POL_ROM_UNION
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_FORMED_EMPIRE
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							tag = LAT
						}
					}
					every_unit_leader = {
						set_nationality = POL
					}
				}
				GER = {
					delete_unit = { state = 63 }
					delete_unit = { state = 66 }
					delete_unit = { state = 67 }
					delete_unit = { state = 68 }
				}
				POL = {
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LIT
								is_core_of = LAT
								state = 63
								state = 66
								state = 67
								state = 68
							}
						}
						add_core_of = POL
						POL = { transfer_state = PREV }
					}
					add_ruling_to_fas = yes
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					set_cosmetic_tag = POL_EMPIRE
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = pol_formation_status
						option = POL_FORMED_SLAVIC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = LIT
							tag = CZE
							tag = YUG
							tag = BUL
							tag = SOV
						}
					}
					every_unit_leader = {
						set_nationality = POL
					}
				}
				GER = {
					delete_unit = { state = 5 }
					delete_unit = { state = 63 }
					delete_unit = { state = 66 }
					delete_unit = { state = 67 }
					delete_unit = { state = 68 }
					delete_unit = { state = 763 }
				}
				ITA = {
					delete_unit = { state = 163 }
					delete_unit = { state = 736 }
				}
				POL = {
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = SOV
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = LIT
								is_core_of = LAT
								is_core_of = SIL
								is_core_of = KSH
								is_core_of = UKR
								is_core_of = BLR
								AND = {
									is_core_of = SOV
									NOT = {
										OR = {
											is_core_of = AZR
											is_core_of = GEO
											is_core_of = ARM
											is_core_of = TMS
											is_core_of = UZB
											is_core_of = KAZ
											is_core_of = TAJ
											is_core_of = KYR
										}
									}
								}
								is_core_of = YUG
								is_core_of = BUL
								is_core_of = CZE
								is_core_of = SLO
								state = 5
								state = 763
							}
						}
						add_core_of = POL
						POL = { transfer_state = PREV }
					}
					promote_character = POL_anna_andersson
					set_party_name = { 
						ideology = neutrality 
						long_name = romanov_party
						name = romanov_party
					}
					complete_national_focus = POL_fulfil_fifth_of_november
					unlock_national_focus = POL_romanov
					swap_ruler_traits = {
						remove = the_last_romanov_maybe
						add = the_last_romanov_definitely
					}
					set_cosmetic_tag = SLAVIC_UNIFIED
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rattanakosin_formation_status
						option = RATTANAKOSIN_FORMED
					}
				}
				SIA = {
					transfer_state = 741
					transfer_state = 670
					add_state_core = 741
					add_state_core = 670
					set_cosmetic_tag = RAT_UNIFIED
				}
				set_global_flag = form_rattanakosin_kingdom_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rome_formation_status
						option = ROME_BARE_MINIMUM
					}
				}
				ITA = {
					set_cosmetic_tag = SPQR_UNIFIED
					if = {
						limit = {
							has_country_leader = { ruling_only = yes name = "Benito Mussolini" }
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Augustus Mussolini"
							desc = "POLITICS_BENITO_MUSSOLINI_DESC"
							picture = "GFX_portrait_italy_emperor_mussolini"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								
							}
						}
					}
					if = {
						limit = {
							has_idea = victor_emmanuel
						}
						remove_ideas = victor_emmanuel
					}
				}
				7 = { add_core_of = ITA }
				35 = { add_core_of = ITA }
				8 = { add_core_of = ITA }
				153 = { add_core_of = ITA }
				154 = { add_core_of = ITA }
				82 = { add_core_of = ITA }
				83 = { add_core_of = ITA }
				76 = { add_core_of = ITA }
				84 = { add_core_of = ITA }
				81 = { add_core_of = ITA }
				46 = { add_core_of = ITA }
				77 = { add_core_of = ITA }
				44 = { add_core_of = ITA }
				102 = { add_core_of = ITA }
				103 = { add_core_of = ITA }
				109 = { add_core_of = ITA }
				104 = { add_core_of = ITA }
				45 = { add_core_of = ITA }
				107 = { add_core_of = ITA }
				105 = { add_core_of = ITA }
				108 = { add_core_of = ITA }
				106 = { add_core_of = ITA }
				764 = { add_core_of = ITA }
				185 = { add_core_of = ITA }
				731 = { add_core_of = ITA }
				47 = { add_core_of = ITA }
				186 = { add_core_of = ITA }
				184 = { add_core_of = ITA }
				187 = { add_core_of = ITA }
				182 = { add_core_of = ITA }
				164 = { add_core_of = ITA }
				48 = { add_core_of = ITA }
				212 = { add_core_of = ITA }
				211 = { add_core_of = ITA }
				341 = { add_core_of = ITA }
				340 = { add_core_of = ITA }
				339 = { add_core_of = ITA }
				342 = { add_core_of = ITA }
				343 = { add_core_of = ITA }
				347 = { add_core_of = ITA }
				49 = { add_core_of = ITA }
				346 = { add_core_of = ITA }
				345 = { add_core_of = ITA }
				356 = { add_core_of = ITA }
				348 = { add_core_of = ITA }
				344 = { add_core_of = ITA }
				355 = { add_core_of = ITA }
				349 = { add_core_of = ITA }
				350 = { add_core_of = ITA }
				354 = { add_core_of = ITA }
				353 = { add_core_of = ITA }
				352 = { add_core_of = ITA }
				676 = { add_core_of = ITA }
				675 = { add_core_of = ITA }
				291 = { add_core_of = ITA }
				3 = { add_core_of = ITA }
				151 = { add_core_of = ITA }
				180 = { add_core_of = ITA }
				181 = { add_core_of = ITA }
				112 = { add_core_of = ITA }
				179 = { add_core_of = ITA }
				795 = { add_core_of = ITA }
				6 = { add_core_of = ITA }
				34 = { add_core_of = ITA }
				448 = { add_core_of = ITA }
				661 = { add_core_of = ITA }
				449 = { add_core_of = ITA }
				662 = { add_core_of = ITA }
				450 = { add_core_of = ITA }
				451 = { add_core_of = ITA }
				663 = { add_core_of = ITA }
				165 = { add_core_of = ITA }
				166 = { add_core_of = ITA }
				167 = { add_core_of = ITA }
				177 = { add_core_of = ITA }
				171 = { add_core_of = ITA }
				174 = { add_core_of = ITA }
				172 = { add_core_of = ITA }
				176 = { add_core_of = ITA }
				170 = { add_core_of = ITA }
				41 = { add_core_of = ITA }
				175 = { add_core_of = ITA }
				169 = { add_core_of = ITA }
				173 = { add_core_of = ITA }
				168 = { add_core_of = ITA }
				290 = { add_core_of = ITA }
				788 = { add_core_of = ITA }
				789 = { add_core_of = ITA }
				790 = { add_core_of = ITA }
				791 = { add_core_of = ITA }
				792 = { add_core_of = ITA }
				793 = { add_core_of = ITA }
				794 = { add_core_of = ITA }
				29 = { add_core_of = ITA }
				18 = { add_core_of = ITA }
				17 = { add_core_of = ITA }
				28 = { add_core_of = ITA }
				15 = { add_core_of = ITA }
				16 = { add_core_of = ITA }
				27 = { add_core_of = ITA }
				14 = { add_core_of = ITA }
				30 = { add_core_of = ITA }
				24 = { add_core_of = ITA }
				23 = { add_core_of = ITA }
				33 = { add_core_of = ITA }
				26 = { add_core_of = ITA }
				20 = { add_core_of = ITA }
				32 = { add_core_of = ITA }
				735 = { add_core_of = ITA }
				25 = { add_core_of = ITA }
				22 = { add_core_of = ITA }
				21 = { add_core_of = ITA }
				19 = { add_core_of = ITA }
				20 = { add_core_of = ITA }
				1 = { add_core_of = ITA }
				785 = { add_core_of = ITA }
				31 = { add_core_of = ITA }
				458 = { add_core_of = ITA }
				665 = { add_core_of = ITA }
				460 = { add_core_of = ITA }
				513 = { add_core_of = ITA }
				459 = { add_core_of = ITA }
				461 = { add_core_of = ITA }
				677 = { add_core_of = ITA }
				680 = { add_core_of = ITA }
				553 = { add_core_of = ITA }
				554 = { add_core_of = ITA }
				127 = { add_core_of = ITA }
				123 = { add_core_of = ITA }
				338 = { add_core_of = ITA }
				126 = { add_core_of = ITA }
				125 = { add_core_of = ITA }
				129 = { add_core_of = ITA }
				128 = { add_core_of = ITA }
				122 = { add_core_of = ITA }
				132 = { add_core_of = ITA }
				130 = { add_core_of = ITA }
				131 = { add_core_of = ITA }
				452 = { add_core_of = ITA }
				447 = { add_core_of = ITA }
				446 = { add_core_of = ITA }
				456 = { add_core_of = ITA }
				457 = { add_core_of = ITA }
				453 = { add_core_of = ITA }
				454 = { add_core_of = ITA }
				455 = { add_core_of = ITA }
				183 = { add_core_of = ITA }
				656 = { add_core_of = ITA }
				118 = { add_core_of = ITA }
				116 = { add_core_of = ITA }
				797 = { add_core_of = ITA }
				798 = { add_core_of = ITA }
				799 = { add_core_of = ITA }
				800 = { add_core_of = ITA }
				801 = { add_core_of = ITA }
				802 = { add_core_of = ITA }
				803 = { add_core_of = ITA }
				804 = { add_core_of = ITA }
				805 = { add_core_of = ITA }
				806 = { add_core_of = ITA }
				set_global_flag = form_roman_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rome_formation_status
						option = ROME_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = FRA
							tag = SPR
							tag = POR
							tag = SWI
							tag = BEL
							tag = LUX
							tag = YUG
							tag = BUL
							tag = ALB
							tag = GRE
							tag = TUR
							tag = IRQ
						}
					}
					every_unit_leader = {
						set_nationality = ITA
					}
				}
				ITA = {
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					set_cosmetic_tag = SPQR_UNIFIED
					if = {
						limit = {
							has_country_leader = { ruling_only = yes name = "Benito Mussolini" }
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Augustus Mussolini"
							desc = "POLITICS_BENITO_MUSSOLINI_DESC"
							picture = "GFX_portrait_italy_emperor_mussolini"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								
							}
						}
					}
					if = {
						limit = {
							has_idea = victor_emmanuel
						}
						remove_ideas = victor_emmanuel
					}
					every_state = {
						limit = {
							OR = {
								state = 7
								state = 35
								state = 8
								state = 153
								state = 154
								state = 82
								state = 83
								state = 76
								state = 84
								state = 81
								state = 46
								state = 77
								state = 44
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 107
								state = 105
								state = 108
								state = 106
								state = 764
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 164
								state = 48
								state = 212
								state = 211
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 676
								state = 675
								state = 291
								state = 3
								state = 151
								state = 180
								state = 181
								state = 112
								state = 179
								state = 795
								state = 6
								state = 34
								state = 448
								state = 661
								state = 449
								state = 662
								state = 450
								state = 451
								state = 663
								state = 165
								state = 166
								state = 167
								state = 177
								state = 171
								state = 174
								state = 172
								state = 176
								state = 170
								state = 41
								state = 175
								state = 169
								state = 173
								state = 168
								state = 290
								state = 788
								state = 789
								state = 790
								state = 791
								state = 792
								state = 793
								state = 794
								state = 29
								state = 18
								state = 17
								state = 28
								state = 15
								state = 16
								state = 27
								state = 14
								state = 30
								state = 24
								state = 23
								state = 33
								state = 26
								state = 20
								state = 32
								state = 735
								state = 25
								state = 22
								state = 21
								state = 19
								state = 20
								state = 1
								state = 785
								state = 31
								state = 458
								state = 665
								state = 460
								state = 513
								state = 459
								state = 461
								state = 677
								state = 680
								state = 553
								state = 554
								state = 127
								state = 123
								state = 338
								state = 126
								state = 125
								state = 129
								state = 128
								state = 122
								state = 132
								state = 130
								state = 131
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
								state = 453
								state = 454
								state = 455
								state = 183
								state = 656
								state = 118
								state = 116
								state = 797
								state = 798
								state = 799
								state = 800
								state = 801
								state = 802
								state = 803
								state = 804
								state = 805
								state = 806
							}
						}
						ITA = { transfer_state = PREV }
						add_core_of = ITA
					}
				}
				set_global_flag = form_roman_empire_flag
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rome_formation_status
						option = BYZ_ROME_2
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = FRA
							tag = SPR
							tag = POR
							tag = SWI
							tag = BEL
							tag = LUX
						}
					}
					every_unit_leader = {
						set_nationality = ITA
					}
				}
				ITA = {
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					set_cosmetic_tag = SPQR_UNIFIED
					if = {
						limit = {
							has_country_leader = { ruling_only = yes name = "Benito Mussolini" }
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Augustus Mussolini"
							desc = "POLITICS_BENITO_MUSSOLINI_DESC"
							picture = "GFX_portrait_italy_emperor_mussolini"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								
							}
						}
					}
					if = {
						limit = {
							has_idea = victor_emmanuel
						}
						remove_ideas = victor_emmanuel
					}
					every_state = {
						limit = {
							OR = {
								state = 7
								state = 35
								state = 8
								state = 153
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 105
								state = 3
								state = 151
								state = 180
								state = 181
								state = 112
								state = 179
								state = 795
								state = 6
								state = 34
								state = 448
								state = 661
								state = 449
								state = 662
								state = 165
								state = 166
								state = 167
								state = 177
								state = 171
								state = 174
								state = 172
								state = 176
								state = 170
								state = 41
								state = 175
								state = 169
								state = 173
								state = 168
								state = 290
								state = 788
								state = 789
								state = 790
								state = 791
								state = 792
								state = 793
								state = 794
								state = 29
								state = 18
								state = 17
								state = 28
								state = 15
								state = 16
								state = 27
								state = 14
								state = 30
								state = 24
								state = 23
								state = 33
								state = 26
								state = 20
								state = 32
								state = 735
								state = 25
								state = 22
								state = 21
								state = 19
								state = 20
								state = 1
								state = 785
								state = 31
								state = 458
								state = 665
								state = 460
								state = 513
								state = 459
								state = 461
								state = 127
								state = 123
								state = 338
								state = 126
								state = 125
								state = 129
								state = 128
								state = 122
								state = 132
								state = 130
								state = 131
								state = 118
								state = 116
								state = 804
								state = 806
							}
						}
						ITA = { transfer_state = PREV }
						add_core_of = ITA
					}
					every_state = {
						limit = {
							is_owned_by = ITA
						}
						add_core_of = ITA
					}
				}
				set_global_flag = form_roman_empire_flag
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = BUL
							tag = ALB
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 44
								state = 82
								state = 81
								state = 46
								state = 77
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 48
								state = 212
								state = 211
								state = 107
								state = 108
								state = 106
								state = 764
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 453
								state = 454
								state = 455
								state = 183
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
								state = 802
								state = 803
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_global_flag = form_byzantine_empire_flag
				ITA = {
					create_faction = "Novus Imperium Romanum"
					add_to_faction = GRE
					add_ai_strategy = {
						type = alliance
						id = GRE
						value = 100
					}
				}
				GRE = {
					add_ai_strategy = {
						type = alliance
						id = ITA
						value = 100
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rome_formation_status
						option = BYZ_ROME_HRE
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = FRA
							tag = SPR
							tag = POR
						}
					}
					every_unit_leader = {
						set_nationality = ITA
					}
				}
				ITA = {
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					set_cosmetic_tag = SPQR_UNIFIED
					if = {
						limit = {
							has_country_leader = { ruling_only = yes name = "Benito Mussolini" }
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Augustus Mussolini"
							desc = "POLITICS_BENITO_MUSSOLINI_DESC"
							picture = "GFX_portrait_italy_emperor_mussolini"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								
							}
						}
					}
					if = {
						limit = {
							has_idea = victor_emmanuel
						}
						remove_ideas = victor_emmanuel
					}
					every_state = {
						limit = {
							OR = {
								state = 180
								state = 181
								state = 112
								state = 179
								state = 795
								state = 448
								state = 661
								state = 449
								state = 662
								state = 165
								state = 166
								state = 167
								state = 177
								state = 171
								state = 174
								state = 172
								state = 176
								state = 170
								state = 41
								state = 175
								state = 169
								state = 173
								state = 168
								state = 290
								state = 788
								state = 789
								state = 790
								state = 791
								state = 792
								state = 793
								state = 794
								state = 29
								state = 18
								state = 17
								state = 15
								state = 16
								state = 27
								state = 14
								state = 30
								state = 24
								state = 23
								state = 33
								state = 26
								state = 20
								state = 32
								state = 735
								state = 25
								state = 22
								state = 21
								state = 19
								state = 20
								state = 1
								state = 785
								state = 31
								state = 458
								state = 665
								state = 460
								state = 513
								state = 459
								state = 461
								state = 127
								state = 123
								state = 338
								state = 126
								state = 125
								state = 129
								state = 128
								state = 122
								state = 132
								state = 130
								state = 131
								state = 118
								state = 116
								state = 806
							}
						}
						ITA = { transfer_state = PREV }
						add_core_of = ITA
					}
					every_state = {
						limit = {
							is_owned_by = ITA
						}
						add_core_of = ITA
					}
				}
				set_global_flag = form_roman_empire_flag
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = YUG
							tag = BUL
							tag = ALB
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 44
								state = 82
								state = 81
								state = 46
								state = 77
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 48
								state = 212
								state = 211
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 105
								state = 107
								state = 108
								state = 106
								state = 764
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 453
								state = 454
								state = 455
								state = 183
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_global_flag = form_byzantine_empire_flag
				every_country = {
					limit = {
						OR = {
							tag = BEL
							tag = HOL
							tag = LUX
							tag = SWI
							tag = AUS
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 8
								state = 28
								state = 69
								state = 9
								state = 75
								state = 74
								state = 39
								state = 160
								state = 736
								state = 3
								state = 151
								state = 153
								state = 152
								state = 4
								state = 7
								state = 35
								state = 36
								state = 6
								state = 34
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					every_state = {
						limit = {
							is_owned_by = GER
						}
						add_core_of = GER
					}
					set_cosmetic_tag = HRE_UNIFIED
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
				}
				set_global_flag = form_hre_flag
				ITA = {
					create_faction = "Novus Imperium Romanum"
					add_to_faction = GRE
					add_to_faction = GER
					add_ai_strategy = {
						type = alliance
						id = GRE
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GER
						value = 100
					}
				}
				GRE = {
					add_ai_strategy = {
						type = alliance
						id = ITA
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GER
						value = 100
					}
				}
				GER = {
					add_ai_strategy = {
						type = alliance
						id = ITA
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GRE
						value = 100
					}
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = rome_formation_status
						option = BYZ_ROME_HRE_3RD
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = FRA
							tag = SPR
							tag = POR
						}
					}
					every_unit_leader = {
						set_nationality = ITA
					}
				}
				ITA = {
					annex_country = {
						target = FRA
						transfer_troops = yes
					}
					annex_country = {
						target = SPR
						transfer_troops = yes
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					set_cosmetic_tag = SPQR_UNIFIED
					if = {
						limit = {
							has_country_leader = { ruling_only = yes name = "Benito Mussolini" }
						}
						kill_country_leader = yes
						create_country_leader = {
							name = "Augustus Mussolini"
							desc = "POLITICS_BENITO_MUSSOLINI_DESC"
							picture = "GFX_portrait_italy_emperor_mussolini"
							expire = "1965.1.1"
							ideology = fascism_ideology
							traits = {
								
							}
						}
					}
					if = {
						limit = {
							has_idea = victor_emmanuel
						}
						remove_ideas = victor_emmanuel
					}
					every_state = {
						limit = {
							OR = {
								state = 180
								state = 181
								state = 112
								state = 179
								state = 795
								state = 448
								state = 661
								state = 449
								state = 662
								state = 165
								state = 166
								state = 167
								state = 177
								state = 171
								state = 174
								state = 172
								state = 176
								state = 170
								state = 41
								state = 175
								state = 169
								state = 173
								state = 168
								state = 290
								state = 788
								state = 789
								state = 790
								state = 791
								state = 792
								state = 793
								state = 794
								state = 29
								state = 18
								state = 17
								state = 15
								state = 16
								state = 27
								state = 14
								state = 30
								state = 24
								state = 23
								state = 33
								state = 26
								state = 20
								state = 32
								state = 735
								state = 25
								state = 22
								state = 21
								state = 19
								state = 20
								state = 1
								state = 785
								state = 31
								state = 458
								state = 665
								state = 460
								state = 513
								state = 459
								state = 461
								state = 127
								state = 123
								state = 338
								state = 126
								state = 125
								state = 129
								state = 128
								state = 122
								state = 132
								state = 130
								state = 131
								state = 118
								state = 116
								state = 806
							}
						}
						ITA = { transfer_state = PREV }
						add_core_of = ITA
					}
					every_state = {
						limit = {
							is_owned_by = ITA
						}
						add_core_of = ITA
					}
				}
				set_global_flag = form_roman_empire_flag
				every_country = {
					limit = {
						OR = {
							tag = TUR
							tag = YUG
							tag = BUL
							tag = ALB
						}
					}
					every_unit_leader = {
						set_nationality = GRE
					}
				}
				GRE = {
					annex_country = {
						target = TUR
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 44
								state = 82
								state = 81
								state = 46
								state = 77
								state = 185
								state = 731
								state = 47
								state = 186
								state = 184
								state = 187
								state = 182
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 48
								state = 212
								state = 211
								state = 102
								state = 103
								state = 109
								state = 104
								state = 45
								state = 105
								state = 107
								state = 108
								state = 106
								state = 764
								state = 677
								state = 680
								state = 553
								state = 554
								state = 164
								state = 453
								state = 454
								state = 455
								state = 183
								state = 450
								state = 451
								state = 663
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
							}
						}
						GRE = { transfer_state = PREV }
						add_core_of = GRE
					}
					every_state = {
						limit = {
							is_owned_by = GRE
						}
						add_core_of = GRE
					}
					set_cosmetic_tag = BYZ_UNIFIED
					set_capital = 797
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_global_flag = form_byzantine_empire_flag
				every_country = {
					limit = {
						OR = {
							tag = BEL
							tag = HOL
							tag = LUX
							tag = SWI
							tag = AUS
						}
					}
					every_unit_leader = {
						set_nationality = GER
					}
				}
				GER = {
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					annex_country = {
						target = SWI
						transfer_troops = yes
					}
					annex_country = {
						target = AUS
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 8
								state = 28
								state = 69
								state = 9
								state = 75
								state = 74
								state = 39
								state = 160
								state = 736
								state = 3
								state = 151
								state = 153
								state = 152
								state = 4
								state = 7
								state = 35
								state = 36
								state = 6
								state = 34
							}
						}
						GER = { transfer_state = PREV }
						add_core_of = GER
					}
					every_state = {
						limit = {
							is_owned_by = GER
						}
						add_core_of = GER
					}
					set_cosmetic_tag = HRE_UNIFIED
					42 = { set_demilitarized_zone = no }
					51 = { set_demilitarized_zone = no }
				}
				set_global_flag = form_hre_flag
				SOV = {
					every_state = {
						limit = {
							OR = {
								state = 2
								state = 797
								state = 454
							}
						}
						add_claim_by = SOV
					}
					add_ideas = SOV_romanov_spirit_idea
					add_ideas = SOV_legacy_of_rome
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.9
					}
					promote_character = SOV_metropolitan_meletius
					set_country_leader_name = {
					  ideology = neutrality
					  name = SOV_patriarch_meletius
					}
					set_cosmetic_tag = SOV_ROME
				}
				ITA = {
					create_faction = "Novus Imperium Romanum"
					add_to_faction = GRE
					add_to_faction = GER
					add_ai_strategy = {
						type = alliance
						id = GRE
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GER
						value = 100
					}
				}
				GRE = {
					add_ai_strategy = {
						type = alliance
						id = ITA
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GER
						value = 100
					}
				}
				GER = {
					add_ai_strategy = {
						type = alliance
						id = ITA
						value = 100
					}
					add_ai_strategy = {
						type = alliance
						id = GRE
						value = 100
					}
				}
				FRA = {
					remove_ideas = FRA_protected_by_the_maginot_line
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = siberia_formation_status
						option = SIBERIA_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 516 }
					delete_unit = { state = 563 }
					delete_unit = { state = 564 }
					delete_unit = { state = 574 }
					delete_unit = { state = 644 }
				}
				YAK = {
					every_state = {
						limit = {
							OR = {
								state = 516
								state = 563
								state = 564
								state = 574
								state = 644
							}
						}
						add_core_of = YAK
						YAK = { transfer_state = PREV }
					}
					516 = { add_core_of = ROOT }
					564 = { add_core_of = ROOT }
					329 = { add_core_of = ROOT }
					563 = { add_core_of = ROOT }
					574 = { add_core_of = ROOT }
					644 = { add_core_of = ROOT }
					654 = { add_core_of = ROOT }
					40 = { add_core_of = ROOT }
					577 = { add_core_of = ROOT }
					580 = { add_core_of = ROOT }
					824 = { add_core_of = ROOT }
					579 = { add_core_of = ROOT }
					403 = { add_core_of = ROOT }
					571 = { add_core_of = ROOT }
					578 = { add_core_of = ROOT }
					570 = { add_core_of = ROOT }
					576 = { add_core_of = ROOT }
					569 = { add_core_of = ROOT }
					568 = { add_core_of = ROOT }
					567 = { add_core_of = ROOT }
					566 = { add_core_of = ROOT }
					575 = { add_core_of = ROOT }
					565 = { add_core_of = ROOT }
					set_cosmetic_tag = siberia_unified
					change_tag_from = TAN
				}
				set_global_flag = form_siberian_republic_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = siberia_formation_status
						option = SIBERIA_FORMED_MAX
					}
				}
				SOV = {
					delete_unit = { state = 40 }
					delete_unit = { state = 329 }
					delete_unit = { state = 398 }
					delete_unit = { state = 403 }
					delete_unit = { state = 408 }
					delete_unit = { state = 409 }
					delete_unit = { state = 516 }
					delete_unit = { state = 560 }
					delete_unit = { state = 561 }
					delete_unit = { state = 562 }
					delete_unit = { state = 563 }
					delete_unit = { state = 564 }
					delete_unit = { state = 565 }
					delete_unit = { state = 566 }
					delete_unit = { state = 567 }
					delete_unit = { state = 568 }
					delete_unit = { state = 569 }
					delete_unit = { state = 570 }
					delete_unit = { state = 571 }
					delete_unit = { state = 572 }
					delete_unit = { state = 573 }
					delete_unit = { state = 574 }
					delete_unit = { state = 575 }
					delete_unit = { state = 576 }
					delete_unit = { state = 577 }
					delete_unit = { state = 578 }
					delete_unit = { state = 579 }
					delete_unit = { state = 580 }
					delete_unit = { state = 581 }
					delete_unit = { state = 582 }
					delete_unit = { state = 637 }
					delete_unit = { state = 644 }
					delete_unit = { state = 653 }
					delete_unit = { state = 654 }
					delete_unit = { state = 655 }
					delete_unit = { state = 657 }
					delete_unit = { state = 822 }
					delete_unit = { state = 824 }
				}
				JAP = {
					delete_unit = { state = 536 }
					delete_unit = { state = 537 }
					delete_unit = { state = 555 }
				}
				TAN = {
					every_state = {
						limit = {
							OR = {
								state = 40
								state = 329
								state = 398
								state = 403
								state = 408
								state = 409
								state = 516
								state = 536
								state = 537
								state = 555
								state = 560
								state = 561
								state = 562
								state = 563
								state = 564
								state = 565
								state = 566
								state = 567
								state = 568
								state = 569
								state = 570
								state = 571
								state = 572
								state = 573
								state = 574
								state = 575
								state = 576
								state = 577
								state = 578
								state = 579
								state = 580
								state = 581
								state = 582
								state = 637
								state = 644
								state = 653
								state = 654
								state = 655
								state = 657
								state = 822
								state = 824
							}
						}
						add_core_of = TAN
						TAN = { transfer_state = PREV }
					}
					set_cosmetic_tag = siberia_unified
				}
				set_global_flag = form_siberian_republic_flag
				set_global_flag = far_east_integrated_flag
				set_global_flag = urals_integrated_flag
				set_global_flag = ainu_integrated_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_formation_status
						option = SOV_FORMED_PANSLAVIC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = CZE
							tag = BUL
							tag = POL
							tag = YUG
							tag = LIT
							tag = LAT
							tag = EST
							tag = SWE
							tag = FIN
							tag = MON
							tag = TAN
							tag = ROM
						}
					}
					every_unit_leader = {
						set_nationality = SOV
					}
				}
				SOV = {
					annex_country = {
						target = CZE
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = POL
						transfer_troops = yes
					}
					annex_country = {
						target = YUG
						transfer_troops = yes
					}
					annex_country = {
						target = LIT
						transfer_troops = yes
					}
					annex_country = {
						target = LAT
						transfer_troops = yes
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = SWE
						transfer_troops = yes
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					annex_country = {
						target = MON
						transfer_troops = yes
					}
					annex_country = {
						target = TAN
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CZE
								is_core_of = BUL
								is_core_of = POL
								is_core_of = YUG
								is_core_of = LIT
								is_core_of = LAT
								is_core_of = EST
								is_core_of = SWE
								is_core_of = FIN
								is_core_of = MON
								is_core_of = TAN
								is_core_of = ROM
							}
						}
						add_core_of = SOV
						SOV = { transfer_state = PREV }
					}
					add_ideas = SOV_romanov_spirit_idea
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.9
					}
					promote_character = SOV_tsar_vladimir_kirillovich
					set_cosmetic_tag = SOV_PANSLAVIC
					set_country_flag = SOV_integrated_czechoslovakia_flag
					set_country_flag = SOV_integrated_bulgaria_flag
					set_country_flag = SOV_integrated_poland_flag
					set_country_flag = SOV_integrated_yugoslavia_flag
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = sov_formation_status
						option = SOV_FORMED_ROME
					}
				}
				ENG = {
					delete_unit = { state = 454 }
				}
				SOV = {
					every_state = {
						limit = {
							OR = {
								state = 2
								state = 797
								state = 454
							}
						}
						add_claim_by = SOV
						SOV = { transfer_state = PREV }
					}
					add_ideas = SOV_romanov_spirit_idea
					add_ideas = SOV_legacy_of_rome
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					add_popularity = {
						ideology = neutrality
						popularity = 0.9
					}
					promote_character = SOV_metropolitan_meletius
					set_country_leader_name = {
					  ideology = neutrality
					  name = SOV_patriarch_meletius
					}
					set_cosmetic_tag = SOV_ROME
				}
				797 = { set_demilitarized_zone = no }
			}
			if = {
				limit = {
					has_game_rule = {
						rule = spr_formation_status
						option = SPR_FORMED_1898
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = CUB
							tag = PHI
						}
					}
					every_unit_leader = {
						set_nationality = SPR
					}
				}
				USA = {
					delete_unit = { state = 327 }
					delete_unit = { state = 638 }
					delete_unit = { state = 686 }
				}
				JAP = {
					delete_unit = { state = 646 }
					delete_unit = { state = 647 }
					delete_unit = { state = 684 }
				}
				SPR = {
					annex_country = {
						target = CUB
						transfer_troops = yes
					}
					annex_country = {
						target = PHI
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CUB
								is_core_of = PHI
								is_core_of = PUE
								state = 638
								state = 646
								state = 647
								state = 684
							}
						}
						SPR = {
							transfer_state = PREV
						}
						add_core_of = SPR
					}
					every_state = {
						limit = {
							is_owned_by = SPR
						}
						add_core_of = SPR
					}
					set_cosmetic_tag = SPA_spanish_empire
					set_politics = {
						ruling_party = fascism
						elections_allowed = yes
					}
					create_country_leader = {
						name = "José Antonio Primo de Rivera"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "GFX_portrait_SPA_jose_antonio_primo_de_rivera"
						expire = "1965.1.1"
						ideology = falangism
						traits = {
							sins_of_the_father
						}
					}
					complete_national_focus = SPA_a_great_spain
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = spr_formation_status
						option = SPR_FORMED_1808
					}
				}
				USA = {
					delete_unit = { state = 327 }
					delete_unit = { state = 638 }
					delete_unit = { state = 686 }
					delete_unit = { state = 375 }
					delete_unit = { state = 378 }
					delete_unit = { state = 384 }
					delete_unit = { state = 685 }
				}
				JAP = {
					delete_unit = { state = 646 }
					delete_unit = { state = 647 }
					delete_unit = { state = 684 }
				}
				ARG = {
					delete_unit = { state = 508 }
					delete_unit = { state = 510 }
				}
				CHL = {
					delete_unit = { state = 506 }
				}
				every_country = {
					limit = {
						OR = {
							tag = CUB
							tag = PHI
							tag = MEX
							tag = GUA
							tag = HON
							tag = NIC
							tag = ELS
							tag = COS
							tag = PAN
							tag = DOM
							tag = VEN
							tag = COL
							tag = ECU
							tag = PRU
							tag = BOL
							tag = PAR
							tag = URG
						}
					}
					every_unit_leader = {
						set_nationality = SPR
					}
				}
				SPR = {
					annex_country = {
						target = CUB
						transfer_troops = yes
					}
					annex_country = {
						target = PHI
						transfer_troops = yes
					}
					annex_country = {
						target = MEX
						transfer_troops = yes
					}
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					annex_country = {
						target = PAN
						transfer_troops = yes
					}
					annex_country = {
						target = DOM
						transfer_troops = yes
					}
					annex_country = {
						target = VEN
						transfer_troops = yes
					}
					annex_country = {
						target = COL
						transfer_troops = yes
					}
					annex_country = {
						target = ECU
						transfer_troops = yes
					}
					annex_country = {
						target = PRU
						transfer_troops = yes
					}
					annex_country = {
						target = BOL
						transfer_troops = yes
					}
					annex_country = {
						target = PAR
						transfer_troops = yes
					}
					annex_country = {
						target = URG
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CUB
								is_core_of = PHI
								is_core_of = PUE
								is_core_of = MEX
								is_core_of = GUA
								is_core_of = HON
								is_core_of = NIC
								is_core_of = ELS
								is_core_of = COS
								is_core_of = PAN
								is_core_of = DOM
								is_core_of = VEN
								is_core_of = COL
								is_core_of = ECU
								is_core_of = PRU
								is_core_of = BOL
								is_core_of = PAR
								is_core_of = URG
								is_core_of = BLZ
								state = 638
								state = 646
								state = 647
								state = 684
								state = 366
								state = 371
								state = 372
								state = 373
								state = 374
								state = 375
								state = 376
								state = 377
								state = 378
								state = 379
								state = 380
								state = 381
								state = 382
								state = 383
								state = 384
								state = 388
								state = 389
								state = 390
								state = 391
								state = 392
								state = 690
								state = 506
								state = 508
								state = 509
								state = 510
								state = 299
								state = 641
							}
						}
						SPR = {
							transfer_state = PREV
						}
						add_core_of = SPR
					}
					every_state = {
						limit = {
							is_owned_by = SPR
						}
						add_core_of = SPR
					}
					set_cosmetic_tag = SPA_spanish_empire
					set_politics = {
						ruling_party = fascism
						elections_allowed = yes
					}
					create_country_leader = {
						name = "José Antonio Primo de Rivera"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "GFX_portrait_SPA_jose_antonio_primo_de_rivera"
						expire = "1965.1.1"
						ideology = falangism
						traits = {
							sins_of_the_father
						}
					}
					complete_national_focus = SPA_a_great_spain
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = spr_formation_status
						option = SPR_FORMED_1713
					}
				}
				USA = {
					delete_unit = { state = 327 }
					delete_unit = { state = 638 }
					delete_unit = { state = 686 }
					delete_unit = { state = 375 }
					delete_unit = { state = 378 }
					delete_unit = { state = 384 }
					delete_unit = { state = 685 }
				}
				JAP = {
					delete_unit = { state = 646 }
					delete_unit = { state = 647 }
					delete_unit = { state = 684 }
				}
				ARG = {
					delete_unit = { state = 508 }
					delete_unit = { state = 510 }
				}
				CHL = {
					delete_unit = { state = 506 }
				}
				FRA = {
					delete_unit = { state = 17 }
				}
				ITA = {
					delete_unit = { state = 115 }
					delete_unit = { state = 158 }
				}
				ENG = {
					delete_unit = { state = 118 }
				}
				every_country = {
					limit = {
						OR = {
							tag = CUB
							tag = PHI
							tag = MEX
							tag = GUA
							tag = HON
							tag = NIC
							tag = ELS
							tag = COS
							tag = PAN
							tag = DOM
							tag = VEN
							tag = COL
							tag = ECU
							tag = PRU
							tag = BOL
							tag = PAR
							tag = URG
							tag = HOL
							tag = BEL
							tag = LUX
						}
					}
					every_unit_leader = {
						set_nationality = SPR
					}
				}
				SPR = {
					annex_country = {
						target = CUB
						transfer_troops = yes
					}
					annex_country = {
						target = PHI
						transfer_troops = yes
					}
					annex_country = {
						target = MEX
						transfer_troops = yes
					}
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					annex_country = {
						target = PAN
						transfer_troops = yes
					}
					annex_country = {
						target = DOM
						transfer_troops = yes
					}
					annex_country = {
						target = VEN
						transfer_troops = yes
					}
					annex_country = {
						target = COL
						transfer_troops = yes
					}
					annex_country = {
						target = ECU
						transfer_troops = yes
					}
					annex_country = {
						target = PRU
						transfer_troops = yes
					}
					annex_country = {
						target = BOL
						transfer_troops = yes
					}
					annex_country = {
						target = PAR
						transfer_troops = yes
					}
					annex_country = {
						target = URG
						transfer_troops = yes
					}
					annex_country = {
						target = HOL
						transfer_troops = yes
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = CUB
								is_core_of = PHI
								is_core_of = PUE
								is_core_of = MEX
								is_core_of = GUA
								is_core_of = HON
								is_core_of = NIC
								is_core_of = ELS
								is_core_of = COS
								is_core_of = PAN
								is_core_of = DOM
								is_core_of = VEN
								is_core_of = COL
								is_core_of = ECU
								is_core_of = PRU
								is_core_of = BOL
								is_core_of = PAR
								is_core_of = URG
								is_core_of = BLZ
								is_core_of = HOL
								is_core_of = BEL
								is_core_of = LUX
								is_core_of = JAM
								is_core_of = HAI
								state = 638
								state = 646
								state = 647
								state = 684
								state = 366
								state = 371
								state = 372
								state = 373
								state = 374
								state = 375
								state = 376
								state = 377
								state = 378
								state = 379
								state = 380
								state = 381
								state = 382
								state = 383
								state = 384
								state = 388
								state = 389
								state = 390
								state = 391
								state = 392
								state = 690
								state = 506
								state = 508
								state = 509
								state = 510
								state = 299
								state = 17
								state = 158
								state = 117
								state = 156
								state = 115
								state = 114
								state = 118
								state = 641
							}
						}
						SPR = {
							transfer_state = PREV
						}
						add_core_of = SPR
					}
					every_state = {
						limit = {
							is_owned_by = SPR
						}
						add_core_of = SPR
					}
					set_cosmetic_tag = SPA_spanish_empire
					set_politics = {
						ruling_party = fascism
						elections_allowed = yes
					}
					create_country_leader = {
						name = "José Antonio Primo de Rivera"
						desc = "POLITICS_JOSE_ANTONIO_PRIMO_DE_RIVERA_DESC"
						picture = "GFX_portrait_SPA_jose_antonio_primo_de_rivera"
						expire = "1965.1.1"
						ideology = falangism
						traits = {
							sins_of_the_father
						}
					}
					complete_national_focus = SPA_a_great_spain
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = transcauc_formation_status
						option = TRANSCAUC_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 229 }
					delete_unit = { state = 230 }
					delete_unit = { state = 231 }
					delete_unit = { state = 826 }
				}
				GEO = {
					every_state = {
						limit = {
							OR = {
								state = 229
								state = 230
								state = 231
								state = 826
							}
						}
						add_core_of = GEO
						GEO = { transfer_state = PREV }
					}
					set_cosmetic_tag = transcaucasia_unified
					change_tag_from = PER
				}
				set_global_flag = form_transcaucasia_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = transcauc_formation_status
						option = TRANSCAUC_FORMED_MAX
					}
				}
				SOV = {
					delete_unit = { state = 229 }
					delete_unit = { state = 230 }
					delete_unit = { state = 231 }
					delete_unit = { state = 232 }
					delete_unit = { state = 233 }
					delete_unit = { state = 821 }
					delete_unit = { state = 826 }
					delete_unit = { state = 827 }
					delete_unit = { state = 828 }
				}
				PER = {
					delete_unit = { state = 419 }
					delete_unit = { state = 420 }
				}
				TUR = {
					delete_unit = { state = 354 }
					delete_unit = { state = 800 }
				}
				GEO = {
					every_state = {
						limit = {
							OR = {
								state = 229
								state = 230
								state = 231
								state = 232
								state = 233
								state = 354
								state = 419
								state = 420
								state = 800
								state = 821
								state = 826
								state = 827
								state = 828
							}
						}
						add_core_of = GEO
						GEO = { transfer_state = PREV }
					}
					set_cosmetic_tag = transcaucasia_unified
					change_tag_from = PER
				}
				set_global_flag = form_transcaucasia_flag
				set_global_flag = azeris_united_flag
				set_global_flag = northern_caucasus_claimed_flag
				set_global_flag = anatolians_liberated_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = transcauc_formation_status
						option = TRANSCAUC_FORMED_KHANATES
					}
				}
				SOV = {
					delete_unit = { state = 137 }
					delete_unit = { state = 196 }
					delete_unit = { state = 200 }
					delete_unit = { state = 217 }
					delete_unit = { state = 218 }
					delete_unit = { state = 226 }
					delete_unit = { state = 227 }
					delete_unit = { state = 228 }
					delete_unit = { state = 229 }
					delete_unit = { state = 230 }
					delete_unit = { state = 231 }
					delete_unit = { state = 232 }
					delete_unit = { state = 233 }
					delete_unit = { state = 234 }
					delete_unit = { state = 245 }
					delete_unit = { state = 236 }
					delete_unit = { state = 237 }
					delete_unit = { state = 238 }
					delete_unit = { state = 401 }
					delete_unit = { state = 406 }
					delete_unit = { state = 407 }
					delete_unit = { state = 821 }
					delete_unit = { state = 826 }
					delete_unit = { state = 827 }
					delete_unit = { state = 828 }
					delete_unit = { state = 829 }
				}
				PER = {
					delete_unit = { state = 419 }
					delete_unit = { state = 420 }
				}
				TUR = {
					delete_unit = { state = 354 }
					delete_unit = { state = 800 }
				}
				KAL = {
					add_state_core = 217
					add_state_core = 236
					add_state_core = 237
					add_state_core = 238
					add_state_core = 401
					add_state_core = 406
					add_state_core = 407
					add_state_core = 829
					transfer_state = 217
					transfer_state = 236
					transfer_state = 237
					transfer_state = 238
					transfer_state = 401
					transfer_state = 406
					transfer_state = 407
					transfer_state = 829
					add_popularity = {
						ideology = neutrality
						popularity = 1
					}
					set_politics = {
						ruling_party = neutrality
						elections_allowed = no
					}
					load_oob = "KAL_khanate_battalions"
				}
				CRI = {
					add_state_core = 137
					add_state_core = 196
					add_state_core = 200
					add_state_core = 218
					add_state_core = 226
					add_state_core = 227
					add_state_core = 228
					add_state_core = 234
					add_state_core = 245
					transfer_state = 137
					transfer_state = 196
					transfer_state = 200
					transfer_state = 218
					transfer_state = 226
					transfer_state = 227
					transfer_state = 228
					transfer_state = 234
					transfer_state = 245
					add_popularity = {
						ideology = fascism
						popularity = 1
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					load_oob = "CRI_khanate_soldiers"
				}
				GEO = {
					every_state = {
						limit = {
							OR = {
								state = 229
								state = 230
								state = 231
								state = 232
								state = 233
								state = 354
								state = 419
								state = 420
								state = 800
								state = 821
								state = 826
								state = 827
								state = 828
							}
						}
						add_core_of = GEO
						GEO = { transfer_state = PREV }
					}
					set_cosmetic_tag = transcaucasia_unified
					change_tag_from = PER
				}
				random_other_country = {
					limit = {
						OR = {
							tag = KAL
							tag = CRI
						}
					}
					change_tag_from = SOV
				}
				set_global_flag = form_transcaucasia_flag
				set_global_flag = azeris_united_flag
				set_global_flag = northern_caucasus_claimed_flag
				set_global_flag = anatolians_liberated_flag
				set_global_flag = kalmyk_khanate_restored_flag
				set_global_flag = crimean_khanate_restored_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkestan_formation_status
						option = TURKESTAN_FORMED
					}
				}
				SOV = {
					delete_unit = { state = 40 }
					delete_unit = { state = 329 }
					delete_unit = { state = 402 }
					delete_unit = { state = 404 }
					delete_unit = { state = 405 }
					delete_unit = { state = 406 }
					delete_unit = { state = 407 }
					delete_unit = { state = 583 }
					delete_unit = { state = 584 }
					delete_unit = { state = 585 }
					delete_unit = { state = 586 }
					delete_unit = { state = 587 }
					delete_unit = { state = 588 }
					delete_unit = { state = 589 }
					delete_unit = { state = 590 }
					delete_unit = { state = 654 }
					delete_unit = { state = 732 }
					delete_unit = { state = 742 }
					delete_unit = { state = 823 }
					delete_unit = { state = 830 }
					delete_unit = { state = 831 }
					delete_unit = { state = 832 }
				}
				TAN = {
					every_unit_leader = {
						set_nationality = SIK
					}
				}
				SIK = {
					annex_country = {
						target = TAN
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								is_core_of = KAZ
								is_core_of = UZB
								state = 40
								state = 329
								state = 584
								state = 654
								state = 732
								state = 742
								state = 832
							}
						}
						add_core_of = SIK
						SIK = { transfer_state = PREV }
					}
					set_cosmetic_tag = turkestan_united
					add_ideas = soldiers_of_the_steppe
				}
				set_global_flag = form_turkestan_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_OTTOMAN
					}
				}
				TUR = {
					every_state = {
						limit = {
							OR = {
								state = 679
								state = 293
								state = 454
								state = 455
								state = 656
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 799
							}
						}
						TUR = { transfer_state = PREV }
						add_core_of = TUR
					}
					set_cosmetic_tag = OTT_UNIFIED_neutrality
					add_country_leader_role = {
						character = TUR_halife_abdulmecid_efendi
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								gentle_scholar
							}
						}
						promote_leader = yes
					}
				}
				676 = { add_core_of = TUR }
				675 = { add_core_of = TUR }
				291 = { add_core_of = TUR }
				677 = { add_core_of = TUR }
				680 = { add_core_of = TUR }
				553 = { add_core_of = TUR }
				554 = { add_core_of = TUR }
				448 = { add_core_of = TUR }
				661 = { add_core_of = TUR }
				449 = { add_core_of = TUR }
				662 = { add_core_of = TUR }
				450 = { add_core_of = TUR }
				451 = { add_core_of = TUR }
				663 = { add_core_of = TUR }
				164 = { add_core_of = TUR }
				452 = { add_core_of = TUR }
				447 = { add_core_of = TUR }
				446 = { add_core_of = TUR }
				456 = { add_core_of = TUR }
				457 = { add_core_of = TUR }
				453 = { add_core_of = TUR }
				454 = { add_core_of = TUR }
				455 = { add_core_of = TUR }
				183 = { add_core_of = TUR }
				656 = { add_core_of = TUR }
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_ottoman_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_OTTOMAN_II
					}
				}
				TUR = {
					every_state = {
						limit = {
							OR = {
								state = 679
								state = 293
								state = 454
								state = 455
								state = 656
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 799
							}
						}
						TUR = { transfer_state = PREV }
						add_core_of = TUR
					}
					set_cosmetic_tag = OTT_UNIFIED
				}
				676 = { add_core_of = TUR }
				675 = { add_core_of = TUR }
				291 = { add_core_of = TUR }
				677 = { add_core_of = TUR }
				680 = { add_core_of = TUR }
				553 = { add_core_of = TUR }
				554 = { add_core_of = TUR }
				448 = { add_core_of = TUR }
				661 = { add_core_of = TUR }
				449 = { add_core_of = TUR }
				662 = { add_core_of = TUR }
				450 = { add_core_of = TUR }
				451 = { add_core_of = TUR }
				663 = { add_core_of = TUR }
				164 = { add_core_of = TUR }
				452 = { add_core_of = TUR }
				447 = { add_core_of = TUR }
				446 = { add_core_of = TUR }
				456 = { add_core_of = TUR }
				457 = { add_core_of = TUR }
				453 = { add_core_of = TUR }
				454 = { add_core_of = TUR }
				455 = { add_core_of = TUR }
				183 = { add_core_of = TUR }
				656 = { add_core_of = TUR }
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_ottoman_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_OTTOMAN_MAX
					}
				}
				IRQ = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				BUL = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				SAU = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				YEM = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				OMA = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				ALB = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				GRE = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				ROM = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				TUR = {
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					annex_country = {
						target = BUL
						transfer_troops = yes
					}
					annex_country = {
						target = SAU
						transfer_troops = yes
					}
					annex_country = {
						target = YEM
						transfer_troops = yes
					}
					annex_country = {
						target = OMA
						transfer_troops = yes
					}
					annex_country = {
						target = ALB
						transfer_troops = yes
					}
					annex_country = {
						target = GRE
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 679
								state = 293
								state = 454
								state = 455
								state = 656
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 448
								state = 661
								state = 449
								state = 662
								state = 450
								state = 451
								state = 663
								state = 164
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
								state = 453
								state = 454
								state = 455
								state = 183
								state = 656
								state = 458
								state = 665
								state = 184
								state = 731
								state = 106
								state = 212
								state = 211
								state = 801
								state = 48
								state = 803
								state = 802
								state = 108
								state = 107
								state = 104
								state = 804
								state = 103
								state = 46
								state = 81
								state = 82
								state = 83
								state = 84
								state = 76
								state = 79
								state = 78
								state = 460
								state = 513
								state = 459
								state = 292
								state = 678
								state = 765
								state = 658
								state = 659
								state = 799
								state = 187
								state = 184
								state = 229
								state = 230
								state = 231
								state = 233
								state = 232
								state = 419
								state = 420
								state = 413
								state = 417
								state = 421
								state = 105
								state = 44
								state = 805
								state = 77
								state = 766
								state = 552
								state = 767
								state = 551
								state = 294
								state = 185
								state = 47
								state = 186
								state = 182
								state = 821
								state = 826
								state = 827
								state = 828
							}
						}
						TUR = { transfer_state = PREV }
						add_core_of = TUR
					}
					every_state = {
						limit = {
							is_owned_by = TUR
						}
						add_core_of = TUR
					}
					set_cosmetic_tag = OTT_UNIFIED_neutrality
					add_country_leader_role = {
						character = TUR_halife_abdulmecid_efendi
						country_leader = {
							expire = "1965.1.1"
							ideology = despotism
							traits = {
								gentle_scholar
							}
						}
						promote_leader = yes
					}
				}
				POL = {
					transfer_state = 80
				}
				TUR = {
					remove_state_core = 80
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_ottoman_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_OTTOMAN_MAX_II
					}
				}
				IRQ = {
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				TUR = {
					annex_country = {
						target = IRQ
						transfer_troops = yes
					}
					every_state = {
						limit = {
							OR = {
								state = 679
								state = 293
								state = 454
								state = 455
								state = 656
								state = 341
								state = 340
								state = 339
								state = 342
								state = 343
								state = 347
								state = 49
								state = 346
								state = 345
								state = 356
								state = 348
								state = 344
								state = 355
								state = 349
								state = 350
								state = 354
								state = 353
								state = 352
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 676
								state = 675
								state = 291
								state = 677
								state = 680
								state = 553
								state = 554
								state = 448
								state = 661
								state = 449
								state = 662
								state = 450
								state = 451
								state = 663
								state = 164
								state = 452
								state = 447
								state = 446
								state = 456
								state = 457
								state = 453
								state = 454
								state = 455
								state = 183
								state = 656
								state = 458
								state = 665
								state = 799
							}
						}
						TUR = { transfer_state = PREV }
						add_core_of = TUR
					}
					every_state = {
						limit = {
							is_owned_by = TUR
						}
						add_core_of = TUR
					}
					set_cosmetic_tag = OTT_UNIFIED
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_ottoman_empire_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_TURAN
					}
				}
				797 = { add_core_of = TUR }
				341 = { add_core_of = TUR }
				340 = { add_core_of = TUR }
				339 = { add_core_of = TUR }
				342 = { add_core_of = TUR }
				343 = { add_core_of = TUR }
				347 = { add_core_of = TUR }
				49 = { add_core_of = TUR }
				798 = { add_core_of = TUR }
				346 = { add_core_of = TUR }
				345 = { add_core_of = TUR }
				356 = { add_core_of = TUR }
				348 = { add_core_of = TUR }
				344 = { add_core_of = TUR }
				355 = { add_core_of = TUR }
				349 = { add_core_of = TUR }
				350 = { add_core_of = TUR }
				354 = { add_core_of = TUR }
				353 = { add_core_of = TUR }
				352 = { add_core_of = TUR }
				800 = { add_core_of = TUR }
				799 = { add_core_of = TUR }
				677 = { add_core_of = TUR }
				680 = { add_core_of = TUR }
				676 = { add_core_of = TUR }
				291 = { add_core_of = TUR }
				421 = { add_core_of = TUR }
				419 = { add_core_of = TUR }
				420 = { add_core_of = TUR }
				417 = { add_core_of = TUR }
				413 = { add_core_of = TUR }
				266 = { add_core_of = TUR }
				416 = { add_core_of = TUR }
				229 = { add_core_of = TUR }
				233 = { add_core_of = TUR }
				232 = { add_core_of = TUR }
				235 = { add_core_of = TUR }
				234 = { add_core_of = TUR }
				237 = { add_core_of = TUR }
				238 = { add_core_of = TUR }
				236 = { add_core_of = TUR }
				407 = { add_core_of = TUR }
				406 = { add_core_of = TUR }
				218 = { add_core_of = TUR }
				227 = { add_core_of = TUR }
				228 = { add_core_of = TUR }
				200 = { add_core_of = TUR }
				196 = { add_core_of = TUR }
				137 = { add_core_of = TUR }
				582 = { add_core_of = TUR }
				402 = { add_core_of = TUR }
				583 = { add_core_of = TUR }
				587 = { add_core_of = TUR }
				585 = { add_core_of = TUR }
				584 = { add_core_of = TUR }
				405 = { add_core_of = TUR }
				404 = { add_core_of = TUR }
				586 = { add_core_of = TUR }
				732 = { add_core_of = TUR }
				742 = { add_core_of = TUR }
				589 = { add_core_of = TUR }
				588 = { add_core_of = TUR }
				590 = { add_core_of = TUR }
				654 = { add_core_of = TUR }
				40 = { add_core_of = TUR }
				569 = { add_core_of = TUR }
				568 = { add_core_of = TUR }
				329 = { add_core_of = TUR }
				567 = { add_core_of = TUR }
				566 = { add_core_of = TUR }
				564 = { add_core_of = TUR }
				563 = { add_core_of = TUR }
				565 = { add_core_of = TUR }
				561 = { add_core_of = TUR }
				574 = { add_core_of = TUR }
				562 = { add_core_of = TUR }
				644 = { add_core_of = TUR }
				637 = { add_core_of = TUR }
				230 = { add_core_of = TUR }
				231 = { add_core_of = TUR }
				821 = { add_core_of = TUR }
				826 = { add_core_of = TUR }
				827 = { add_core_of = TUR }
				828 = { add_core_of = TUR }
				823 = { add_core_of = TUR }
				830 = { add_core_of = TUR }
				831 = { add_core_of = TUR }
				832 = { add_core_of = TUR }
				set_global_flag = form_turan_flag
				TUR = {
					every_state = {
						limit = {
							is_core_of = TUR
						}
						TUR = { transfer_state = PREV }
					}
					every_state = {
						limit = {
							is_owned_by = TUR
						}
						add_core_of = TUR
					}
					set_cosmetic_tag = TRN_neutrality
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_turan_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = turkey_formation_status
						option = TUR_FORMED_TURAN_MAX
					}
				}
				797 = { add_core_of = TUR }
				341 = { add_core_of = TUR }
				340 = { add_core_of = TUR }
				339 = { add_core_of = TUR }
				342 = { add_core_of = TUR }
				343 = { add_core_of = TUR }
				347 = { add_core_of = TUR }
				49 = { add_core_of = TUR }
				798 = { add_core_of = TUR }
				346 = { add_core_of = TUR }
				345 = { add_core_of = TUR }
				356 = { add_core_of = TUR }
				348 = { add_core_of = TUR }
				344 = { add_core_of = TUR }
				355 = { add_core_of = TUR }
				349 = { add_core_of = TUR }
				350 = { add_core_of = TUR }
				354 = { add_core_of = TUR }
				353 = { add_core_of = TUR }
				352 = { add_core_of = TUR }
				800 = { add_core_of = TUR }
				799 = { add_core_of = TUR }
				677 = { add_core_of = TUR }
				680 = { add_core_of = TUR }
				676 = { add_core_of = TUR }
				291 = { add_core_of = TUR }
				421 = { add_core_of = TUR }
				419 = { add_core_of = TUR }
				420 = { add_core_of = TUR }
				417 = { add_core_of = TUR }
				413 = { add_core_of = TUR }
				266 = { add_core_of = TUR }
				416 = { add_core_of = TUR }
				229 = { add_core_of = TUR }
				233 = { add_core_of = TUR }
				232 = { add_core_of = TUR }
				235 = { add_core_of = TUR }
				234 = { add_core_of = TUR }
				237 = { add_core_of = TUR }
				238 = { add_core_of = TUR }
				236 = { add_core_of = TUR }
				407 = { add_core_of = TUR }
				406 = { add_core_of = TUR }
				218 = { add_core_of = TUR }
				227 = { add_core_of = TUR }
				228 = { add_core_of = TUR }
				200 = { add_core_of = TUR }
				196 = { add_core_of = TUR }
				137 = { add_core_of = TUR }
				582 = { add_core_of = TUR }
				402 = { add_core_of = TUR }
				583 = { add_core_of = TUR }
				587 = { add_core_of = TUR }
				585 = { add_core_of = TUR }
				584 = { add_core_of = TUR }
				405 = { add_core_of = TUR }
				404 = { add_core_of = TUR }
				586 = { add_core_of = TUR }
				732 = { add_core_of = TUR }
				742 = { add_core_of = TUR }
				589 = { add_core_of = TUR }
				588 = { add_core_of = TUR }
				590 = { add_core_of = TUR }
				654 = { add_core_of = TUR }
				40 = { add_core_of = TUR }
				569 = { add_core_of = TUR }
				568 = { add_core_of = TUR }
				329 = { add_core_of = TUR }
				567 = { add_core_of = TUR }
				566 = { add_core_of = TUR }
				564 = { add_core_of = TUR }
				563 = { add_core_of = TUR }
				565 = { add_core_of = TUR }
				561 = { add_core_of = TUR }
				574 = { add_core_of = TUR }
				562 = { add_core_of = TUR }
				644 = { add_core_of = TUR }
				637 = { add_core_of = TUR }
				43 = { add_core_of = TUR }
				154 = { add_core_of = TUR }
				155 = { add_core_of = TUR }
				76 = { add_core_of = TUR }
				84 = { add_core_of = TUR }
				83 = { add_core_of = TUR }
				82 = { add_core_of = TUR }
				764 = { add_core_of = TUR }
				45 = { add_core_of = TUR }
				664 = { add_core_of = TUR }
				231 = { add_core_of = TUR }
				230 = { add_core_of = TUR }
				821 = { add_core_of = TUR }
				826 = { add_core_of = TUR }
				827 = { add_core_of = TUR }
				828 = { add_core_of = TUR }
				823 = { add_core_of = TUR }
				830 = { add_core_of = TUR }
				831 = { add_core_of = TUR }
				832 = { add_core_of = TUR }
				set_global_flag = form_turan_flag
				every_country = {
					limit = {
						OR = {
							tag = EST
							tag = FIN
							tag = SIK
							tag = XSM
							tag = MON
							tag = MEN
							tag = TAN
							tag = ROM
							tag = HUN
						}
					}
					every_unit_leader = {
						set_nationality = TUR
					}
				}
				TUR = {
					every_state = {
						limit = {
							OR = {
								is_core_of = EST
								is_core_of = FIN
								is_core_of = SIK
								is_core_of = XSM
								is_core_of = MON
								is_core_of = MEN
								is_core_of = TAN
								is_core_of = ROM
								is_core_of = HUN
							}
						}
						add_core_of = TUR
					}
					annex_country = {
						target = EST
						transfer_troops = yes
					}
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
					annex_country = {
						target = SIK
						transfer_troops = yes
					}
					annex_country = {
						target = XSM
						transfer_troops = yes
					}
					annex_country = {
						target = MON
						transfer_troops = yes
					}
					annex_country = {
						target = MEN
						transfer_troops = yes
					}
					annex_country = {
						target = TAN
						transfer_troops = yes
					}
					annex_country = {
						target = ROM
						transfer_troops = yes
					}
					annex_country = {
						target = HUN
						transfer_troops = yes
					}
					every_state = {
						limit = {
							is_core_of = TUR
						}
						TUR = { transfer_state = PREV }
					}
					every_state = {
						limit = {
							is_owned_by = TUR
						}
						add_core_of = TUR
					}
					set_cosmetic_tag = TRN_neutrality
				}
				341 = { set_demilitarized_zone = no }
				797 = { set_demilitarized_zone = no }
				340 = { set_demilitarized_zone = no }
				set_global_flag = form_turan_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = united_kingdom_formation_status
						option = FRA_ENG_FORMED
					}
				}
				every_state = {
					limit = {
						is_core_of = FRA
					}
					ENG = {
						add_state_core = PREV
					}
				}
				FRA = {
					every_unit_leader = {
						set_unit_leader_flag = flag_former_french_general
						set_nationality = ENG
					}
				}
				ENG = {
					annex_country = { target = FRA transfer_troops = yes }
					set_cosmetic_tag = FRA_UK
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = united_kingdom_formation_status
						option = IMP_FED_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
							tag = MAL
						}
					}
					every_unit_leader = {
						set_nationality = ENG
					}
				}
				ENG = {
					every_state = {
						limit = {
							OR = {
								is_core_of = CAN
								is_core_of = SAF
								is_core_of = RAJ
								is_core_of = AST
								is_core_of = NZL
								is_core_of = MAL
							}
						}
						add_core_of = ENG
					}
					annex_country = {
						target = CAN
						transfer_troops = yes
					}
					annex_country = {
						target = SAF
						transfer_troops = yes
					}
					annex_country = {
						target = RAJ
						transfer_troops = yes
					}
					annex_country = {
						target = AST
						transfer_troops = yes
					}
					annex_country = {
						target = NZL
						transfer_troops = yes
					}
					annex_country = {
						target = MAL
						transfer_troops = yes
					}
					set_cosmetic_tag = ENG_imperial_federation_india_unified
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = united_kingdom_formation_status
						option = IMP_FED_FORMED_MAX
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = CAN
							tag = SAF
							tag = RAJ
							tag = AST
							tag = NZL
							tag = IRE
							tag = USA
							tag = MAL
						}
					}
					every_unit_leader = {
						set_nationality = ENG
					}
				}
				ENG = {
					every_state = {
						limit = {
							OR = {
								is_core_of = CAN
								is_core_of = SAF
								is_core_of = RAJ
								is_core_of = AST
								is_core_of = NZL
								is_core_of = IRE
								is_core_of = USA
								is_core_of = MAL
							}
						}
						add_core_of = ENG
					}
					annex_country = {
						target = CAN
						transfer_troops = yes
					}
					annex_country = {
						target = SAF
						transfer_troops = yes
					}
					annex_country = {
						target = RAJ
						transfer_troops = yes
					}
					annex_country = {
						target = AST
						transfer_troops = yes
					}
					annex_country = {
						target = NZL
						transfer_troops = yes
					}
					annex_country = {
						target = IRE
						transfer_troops = yes
					}
					annex_country = {
						target = USA
						transfer_troops = yes
					}
					annex_country = {
						target = MAL
						transfer_troops = yes
					}
					set_cosmetic_tag = ENG_imperial_federation_india_unified
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = united_hol_formation_status
						option = UNITED_HOL_FORMED
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = BEL
							tag = LUX
						}
					}
					every_unit_leader = {
						set_nationality = HOL
					}
				}
				HOL = {
					every_state = {
						limit = {
							OR = {
								is_core_of = BEL
								is_core_of = LUX
							}
						}
						add_core_of = HOL
					}
					annex_country = {
						target = BEL
						transfer_troops = yes
					}
					annex_country = {
						target = LUX
						transfer_troops = yes
					}
					set_cosmetic_tag = UNL_UNIFIED
					set_rule = { can_create_factions = yes }
					create_faction = "Benelux"
				}
				set_global_flag = form_united_netherlands_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = porto_brazil_formation_status
						option = PORTO_BRAZIL_FORMED_BRA
					}
				}
				POR = {
					every_unit_leader = {
						set_nationality = BRA
					}
				}
				BRA = {
					transfer_state = 301
					transfer_state = 300
					transfer_state = 510
					transfer_state = 170
					transfer_state = 169
					add_state_core = 301
					add_state_core = 300
					add_state_core = 510
					add_state_core = 170
					add_state_core = 169
					every_state = {
						limit = {
							is_core_of = POR
						}
						add_core_of = BRA
					}
					annex_country = {
						target = POR
						transfer_troops = yes
					}
					create_country_leader = {
						name = "Dom Pedro III"
						desc = "POLITICS_PRINCE_PEDRO_HENRIQUE_DESC"
						picture = "gfx/leaders/BRA/portrait_bra_prince_pedro_hernique_de_orleans_e_braganza.dds"
						expire = "1981.07.05"
						ideology = despotism
						traits = {
							inexperienced_monarch
						}
					}
					set_cosmetic_tag = KPB_kingdom_portugal_and_brazil
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = porto_brazil_formation_status
						option = PORTO_BRAZIL_FORMED_POR
					}
				}
				BRA = {
					every_unit_leader = {
						set_nationality = POR
					}
				}
				POR = {
					transfer_state = 301
					transfer_state = 300
					transfer_state = 510
					transfer_state = 170
					transfer_state = 169
					add_state_core = 301
					add_state_core = 300
					add_state_core = 510
					add_state_core = 170
					add_state_core = 169
					every_state = {
						limit = {
							is_core_of = BRA
						}
						add_core_of = POR
					}
					annex_country = {
						target = BRA
						transfer_troops = yes
					}
					create_country_leader = {
						name = "Dom Duarte Nuno"
						desc = "POLITICS_DOM_DUARTE_NUNO_DESC"
						picture = "gfx/leaders/POR/portrait_por_duarte_nuno.dds"
						expire = "1976.12.24"
						ideology = despotism
						traits = { 
							constitutional_monarch_minor
						}
					}
					set_cosmetic_tag = KPB_kingdom_portugal_and_brazil
					remove_ideas = POR_estado_novo
					swap_ideas = {
						remove_idea = POR_unstable_republic
						add_idea = POR_unstable_monarchy
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = porto_brazil_formation_status
						option = PORTO_BRAZIL_FORMED_PORTUGAL
					}
				}
				BRA = {
					every_unit_leader = {
						set_nationality = POR
					}
				}
				POR = {
					transfer_state = 770
					transfer_state = 545
					transfer_state = 771
					transfer_state = 336
					transfer_state = 667
					transfer_state = 301
					transfer_state = 300
					transfer_state = 510
					add_state_core = 301
					add_state_core = 300
					add_state_core = 510
					every_state = {
						limit = {
							is_core_of = BRA
						}
						add_core_of = POR
					}
					annex_country = {
						target = BRA
						transfer_troops = yes
					}
					add_popularity = {
						ideology = fascism
						popularity = 0.6
					}
					set_politics = {
						ruling_party = fascism
						elections_allowed = no
					}
					set_cosmetic_tag = POR_empire
					remove_ideas = POR_estado_novo
					swap_ideas = {
						remove_idea = POR_unstable_republic
						add_idea = POR_the_fifth_empire
					}
				}
			}
			if = {
				limit = {
					has_game_rule = {
						rule = centroamerica_formation_status
						option = CENTROAMERICA_FORMED_HON
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GUA
							tag = ELS
							tag = COS
							tag = NIC
							tag = BLZ
						}
					}
					every_unit_leader = {
						set_nationality = HON
					}
				}
				HON = {
					every_state = {
						limit = {
							OR = {
								is_core_of = GUA
								is_core_of = ELS
								is_core_of = HON
								is_core_of = NIC
								is_core_of = COS
								is_core_of = BLZ
							}
						}
						add_core_of = HON
					}
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					transfer_state = 311
					set_cosmetic_tag = USC_UNIFIED
				}
				set_global_flag = form_united_central_america_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = centroamerica_formation_status
						option = CENTROAMERICA_FORMED_NIC
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GUA
							tag = ELS
							tag = COS
							tag = HON
							tag = BLZ
						}
					}
					every_unit_leader = {
						set_nationality = NIC
					}
				}
				NIC = {
					every_state = {
						limit = {
							OR = {
								is_core_of = GUA
								is_core_of = ELS
								is_core_of = HON
								is_core_of = NIC
								is_core_of = COS
								is_core_of = BLZ
							}
						}
						add_core_of = NIC
					}
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = ELS
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					transfer_state = 311
					set_cosmetic_tag = USC_UNIFIED
				}
				set_global_flag = form_united_central_america_flag
			}
			if = {
				limit = {
					has_game_rule = {
						rule = centroamerica_formation_status
						option = CENTROAMERICA_FORMED_ELS
					}
				}
				every_country = {
					limit = {
						OR = {
							tag = GUA
							tag = HON
							tag = COS
							tag = NIC
							tag = BLZ
						}
					}
					every_unit_leader = {
						set_nationality = ELS
					}
				}
				ELS = {
					every_state = {
						limit = {
							OR = {
								is_core_of = GUA
								is_core_of = ELS
								is_core_of = HON
								is_core_of = NIC
								is_core_of = COS
								is_core_of = BLZ
							}
						}
						add_core_of = ELS
					}
					annex_country = {
						target = GUA
						transfer_troops = yes
					}
					annex_country = {
						target = HON
						transfer_troops = yes
					}
					annex_country = {
						target = NIC
						transfer_troops = yes
					}
					annex_country = {
						target = COS
						transfer_troops = yes
					}
					transfer_state = 311
					set_cosmetic_tag = USC_UNIFIED
				}
				set_global_flag = form_united_central_america_flag
			}
		}
	}
}
