form_scandinavia_category = {
	
	form_scandinavia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = NOR
				original_tag = DEN
				original_tag = SWE
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Arms Against Tyranny"
			}
		}

		available = {
			is_subject = no
			# Norway
			custom_trigger_tooltip = {
				tooltip = form_country_norway_required_states_tt
				controls_state = 110
				controls_state = 142
				controls_state = 143
				controls_state = 144
				controls_state = 920
				controls_state = 921
				controls_state = 922
				controls_state = 923
				controls_state = 924
				controls_state = 925
			}
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_country_sweden_required_states_tt
				controls_state = 38
				controls_state = 124
				controls_state = 138
				controls_state = 139
				controls_state = 140
				controls_state = 141
				controls_state = 666
				controls_state = 913
				controls_state = 915
				controls_state = 916
				controls_state = 917
				controls_state = 918
				controls_state = 919
			}
			# Denmark
			custom_trigger_tooltip = {
				tooltip = form_country_denmark_required_states_tt
				controls_state = 37
				controls_state = 99
				#controls_state = 100 Iceland should not be included here
				#controls_state = 101 Greenland should not be included here
				controls_state = 337
				controls_state = 910
				controls_state = 911
				controls_state = 912
			}
		}

		visible = {
			OR = {
				original_tag = NOR
				original_tag = DEN
				original_tag = SWE
			}
			NOT = { has_global_flag = form_nordic_league_flag }
			NOT = { has_global_flag = form_scandinavia_flag }
		}

		complete_effect = {
			set_cosmetic_tag = SCA_UNIFIED
			# Norway
			custom_effect_tooltip = form_country_norway_coring_states_tt
			hidden_effect = {
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				921 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				925 = { add_core_of = ROOT }
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				38 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
			}
			# Denmark / European Mainland
			custom_effect_tooltip = form_scandinavia_denmark_coring_states_tt
			hidden_effect = {
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.53 hours = 6 }
				set_global_flag = form_scandinavia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_nordic_league_category = {

	form_nordic_league = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = NOR
				original_tag = DEN
				original_tag = SWE
				original_tag = FIN
				original_tag = ICE
				original_tag = EST
				original_tag = GRN
				original_tag = SMI
				original_tag = KAR
			}
			OR = {
				has_dlc = "Waking the Tiger"
				AND = {
					has_dlc = "Arms Against Tyranny"
					OR = {
						original_tag = NOR
						original_tag = DEN
						original_tag = SWE
						original_tag = FIN
						original_tag = ICE
						original_tag = GRN
						original_tag = SMI
						original_tag = KAR
					}
				}
				AND = {
					has_dlc = "No Step Back"
					original_tag = EST
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = form_nordic_nation_flag
				hidden_trigger = {
					NOT = { has_country_flag = form_nordic_nation_flag }
				}
			}
			is_subject = no
			if = {
				limit = {
					NOT = { original_tag = EST }
				}
				# Norway
				custom_trigger_tooltip = {
					tooltip = form_country_norway_required_states_tt
					controls_state = 110
					controls_state = 142
					controls_state = 143
					controls_state = 144
					controls_state = 920
					controls_state = 921
					controls_state = 922
					controls_state = 923
					controls_state = 924
					controls_state = 925
					controls_state = 914
				}
				# Sweden
				custom_trigger_tooltip = {
					tooltip = form_country_sweden_required_states_tt
					controls_state = 38
					controls_state = 124
					controls_state = 138
					controls_state = 139
					controls_state = 140
					controls_state = 141
					controls_state = 666
					controls_state = 913
					controls_state = 915
					controls_state = 916
					controls_state = 917
					controls_state = 918
					controls_state = 919
				}
				# Denmark
				custom_trigger_tooltip = {
					tooltip = form_country_denmark_required_states_tt
					controls_state = 37
					controls_state = 99
					controls_state = 101
					controls_state = 337
					controls_state = 910
					controls_state = 911
					controls_state = 912
				}
				# Finland
				custom_trigger_tooltip = {
					tooltip = form_country_finland_required_states_tt
					controls_state = 111
					controls_state = 145
					controls_state = 148
					controls_state = 149
					controls_state = 150
					controls_state = 926
					controls_state = 927
					controls_state = 928
					controls_state = 929
					controls_state = 930
					# PETSAMO, SALLA and KARJALA left out intentionally
				}
				#Iceland
				custom_trigger_tooltip = {
					tooltip = form_country_iceland_required_states_tt
					controls_state = 100
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = control_all_nordic_states_tt
					all_state = {
						OR = {
							controls_or_subject_of = yes
							controller = {
								original_tag = FIN
								is_in_faction_with = ROOT
							}
							NOT = {
								AND = {
									is_core_of = NOR
									is_core_of = DEN
									is_core_of = SWE
								}
							}
						}
					}
				}
			}
		}

		visible = {
			OR = {
				original_tag = NOR
				original_tag = DEN
				original_tag = SWE
				original_tag = FIN
				original_tag = ICE
				original_tag = GRN
				original_tag = SMI
				original_tag = KAR
				AND = {
					original_tag = EST
					has_completed_focus = EST_form_scandinavia
				}
			}
			NOT = { has_country_flag = form_nordic_nation_flag }
			NOT = { has_global_flag = form_nordic_league_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
					limit = {
						original_tag = FIN
						has_government = communism
					}
					set_country_flag = FIN_formed_nordic_union #Used to bring back this cosmetic tag after Kuusinen's cosmetic tag
				}
			}
			set_cosmetic_tag = NDC_UNIFIED
			# Norway
			custom_effect_tooltip = form_country_norway_coring_states_tt
			hidden_effect = {
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				921 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				925 = { add_core_of = ROOT }
				914 = { add_core_of = ROOT }
			}

			if = {
				limit = {
					NOR = {
						is_subject_of = ROOT
					}
				}
				
				NOR = {
					every_unit_leader = {
						set_nationality = ROOT
					}
				}
				
				annex_country = {
					target = NOR
					transfer_troops = yes
				}
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				38 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
			}

			if = {
				limit = {
					SWE = {
						is_subject_of = ROOT
					}
				}
				
				SWE = {
					every_unit_leader = {
						set_nationality = ROOT
					}
				}
				
				annex_country = {
					target = SWE
					transfer_troops = yes
				}
			}
			# Denmark
			custom_effect_tooltip = form_country_denmark_coring_states_tt
			hidden_effect = {
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				100 = { add_core_of = ROOT }
				101 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
			}

			if = {
				limit = {
					DEN = {
						is_subject_of = ROOT
					}
				}
				
				DEN = {
					every_unit_leader = {
						set_nationality = ROOT
					}
				}				
				
				annex_country = {
					target = DEN
					transfer_troops = yes
				}
			}
			
			# Finland
			custom_effect_tooltip = form_country_finland_coring_states_tt
			hidden_effect = {
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				926 = { add_core_of = ROOT }
				927 = { add_core_of = ROOT }
				928 = { add_core_of = ROOT }
				929 = { add_core_of = ROOT }
				930 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
			}

			#Iceland
			custom_effect_tooltip = form_country_iceland_coring_states_tt
			hidden_effect = {
				100 = { add_core_of = ROOT }
			}
			
			if = {
				limit = {
					FIN = {
						is_subject_of = ROOT
						OR = {
							is_subject_of = ROOT
							all_core_state = {
								controller = {
									tag = ROOT
								} 
							}
						}
					}
				}
				
				FIN = {
					every_unit_leader = {
						set_nationality = ROOT
					}
				}

				annex_country = {
					target = FIN
					transfer_troops = yes
				}
			}

			IF = {
				limit = {
					933 = {
						NOT = {
							OR = {
								is_owned_by = ROOT
								is_claimed_by = ROOT
								is_core_of = ROOT
							}
						}
					}
				}
				933 = { add_claim_by = ROOT }
			}

			IF = {
				limit = {
					213 = {
						NOT = {
							OR = {
								is_owned_by = ROOT
								is_claimed_by = ROOT
								is_core_of = ROOT
							}
						}
					}
				}
				213 = { add_claim_by = ROOT }
			}

			IF = {
				limit = {
					215 = {
						NOT = {
							OR = {
								is_owned_by = ROOT
								is_claimed_by = ROOT
								is_core_of = ROOT
							}
						}
					}
				}
				215 = { add_claim_by = ROOT }
			}

			IF = {
				limit = {
					216 = {
						NOT = {
							OR = {
								is_owned_by = ROOT
								is_claimed_by = ROOT
								is_core_of = ROOT
							}
						}
					}
				}
				216 = { add_claim_by = ROOT }
			}
			
			hidden_effect = {
				if = {
					limit = { NOT = { original_tag = EST } }
					news_event = { id = wtt_news.54 hours = 6 }
				}
				else = {
					news_event = { id = EST_events.3 hours = 6 }
				}
				set_country_flag = form_nordic_nation_flag
				set_global_flag = form_nordic_league_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
} 

form_north_sea_category = {
	
	form_north_sea_empire = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = NOR
				original_tag = DEN
			}
			has_dlc = "Arms Against Tyranny"
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = form_nordic_nation_flag
				hidden_trigger = {
					NOT = { has_country_flag = form_nordic_nation_flag }
				}
			}
			is_subject = no
			# Norway
			custom_trigger_tooltip = {
				tooltip = form_north_sea_empire_norway_required_states_tt
				controls_state = 110
				controls_state = 142
				controls_state = 143
				controls_state = 144
				controls_state = 920
				controls_state = 921
				controls_state = 922
				controls_state = 923
				controls_state = 924
				controls_state = 925
			}
			# Denmark
			custom_trigger_tooltip = {
				tooltip = form_scandinavia_denmark_required_states_tt
				controls_state = 37
				controls_state = 99
				controls_state = 911
				controls_state = 912
				#None of the islands are required
			}
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_north_sea_empire_swedish_required_states_tt
				controls_state = 138
				controls_state = 915
			}
			# England
			controls_state = 123
			controls_state = 125
			controls_state = 126
			controls_state = 127
			controls_state = 128
			controls_state = 129
			controls_state = 130
			controls_state = 131
			controls_state = 931
			controls_state = 932
			controls_state = 132
			controls_state = 338
			controls_state = 931
		}

		visible = {
			OR = {
				original_tag = NOR
				original_tag = DEN
			}
			hidden_trigger = {
				NOT = { has_country_flag = form_nordic_nation_flag }
				NOT = { has_global_flag = form_north_sea_empire_flag }
			}
		}

		complete_effect = {
			set_cosmetic_tag = NSE_UNIFIED
			# Norway
			custom_effect_tooltip = form_country_norway_coring_states_tt
			hidden_effect = {
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				921 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				925 = { add_core_of = ROOT }
			}
			# Denmark / European Mainland
			custom_effect_tooltip = form_scandinavia_denmark_coring_states_tt
			hidden_effect = {
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				#None of the islands are cored
			}
			# Sweden
			custom_effect_tooltip = form_north_sea_empire_swedish_coring_states_tt
			hidden_effect = {
				138 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
			}
			# England
			ROOT = {
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 932
				add_state_core = 132
				add_state_core = 338
				add_state_core = 931
			}
			hidden_effect = {
				news_event = { id = aat_news.666 hours = 6 }
				set_country_flag = form_nordic_nation_flag
				set_global_flag = form_north_sea_empire_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_baltic_sea_empire_category = {

	form_baltic_sea_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = DEN
			has_dlc = "Arms Against Tyranny"
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = form_nordic_nation_flag
				hidden_trigger = {
					NOT = { has_country_flag = form_nordic_nation_flag }
				}
			}
			is_subject = no
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_country_sweden_required_states_tt
				controls_state = 38
				controls_state = 124
				controls_state = 138
				controls_state = 139
				controls_state = 140
				controls_state = 141
				controls_state = 666
				controls_state = 913
				controls_state = 915
				controls_state = 916
				controls_state = 917
				controls_state = 918
				controls_state = 919
			}
			# Denmark
			custom_trigger_tooltip = {
				tooltip = form_scandinavia_denmark_required_states_tt
				controls_state = 37
				controls_state = 99
				controls_state = 911
				controls_state = 912
				#None of the islands are required
			}
			# Finland
			custom_trigger_tooltip = {
				tooltip = form_country_finland_required_states_tt
				controls_state = 111
				controls_state = 145
				controls_state = 148
				controls_state = 149
				controls_state = 150
				controls_state = 926
				controls_state = 927
				controls_state = 928
				controls_state = 929
				controls_state = 930
				# PETSAMO, SALLA and KARJALA left out intentionally
			}
			custom_trigger_tooltip = {
				tooltip = form_country_estonia_required_states_tt
				controls_state = 13
				controls_state = 191
				controls_state = 811
				controls_state = 812
				controls_state = 813
			}
			# Latvia
			custom_trigger_tooltip = {
				tooltip = form_country_latvia_required_states_tt
				controls_state = 12
				controls_state = 190
				controls_state = 808
				controls_state = 809
				controls_state = 810
			}
			# Lithuania
			custom_trigger_tooltip = {
				tooltip = form_country_lithuania_required_states_tt
				controls_state = 11
				controls_state = 189
				controls_state = 814
				controls_state = 815
			}
		}

		visible = {
			original_tag = DEN
			hidden_trigger = {
				NOT = { has_country_flag = form_nordic_nation_flag }
			}
		}

		complete_effect = {
			set_cosmetic_tag = DEN_imperial
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				38 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
			}
			# Denmark / European Mainland
			custom_effect_tooltip = form_scandinavia_denmark_coring_states_tt
			hidden_effect = {
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
			}
			# Finland
			custom_effect_tooltip = form_country_finland_coring_states_tt
			hidden_effect = {
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				926 = { add_core_of = ROOT }
				927 = { add_core_of = ROOT }
				928 = { add_core_of = ROOT }
				929 = { add_core_of = ROOT }
				930 = { add_core_of = ROOT }
				# PETSAMO, SALLA and KARJALA left out intentionally
			}
			# Estonia
			custom_effect_tooltip = form_country_estonia_coring_states_tt
			hidden_effect = {
				13 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
			}
			# Latvia
			custom_effect_tooltip = form_country_latvia_coring_states_tt
			hidden_effect = {
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
			}
			# Lithuania
			custom_effect_tooltip = form_country_lithuania_coring_states_tt
			hidden_effect = {
				11 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				188 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
			}

			hidden_effect = {
				news_event = { id = aat_news.777 hours = 6 }
				set_country_flag = form_nordic_nation_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
} 

form_gran_colombia_category = {

	form_gran_colombia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PAN
				original_tag = ECU
				original_tag = COL
				original_tag = VEN
				original_tag = PRU
				original_tag = CRC
				original_tag = GYA
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			controls_state = 490
			controls_state = 491
			controls_state = 304
			# Ecuador
			custom_trigger_tooltip = {
				tooltip = form_country_ecuador_required_states_tt
				controls_state = 305
				controls_state = 649
			}
			# Colombia
			custom_trigger_tooltip = {
				tooltip = form_country_colombia_required_states_tt
				controls_state = 486
				controls_state = 306
				controls_state = 493
			}
			# Venezuela
			custom_trigger_tooltip = {
				tooltip = form_country_venezuela_required_states_tt
				controls_state = 489
				controls_state = 307
				controls_state = 488
			}
		}

		visible = {
			OR = {
				original_tag = PAN
				original_tag = ECU
				original_tag = COL
				original_tag = VEN
				original_tag = PRU
			}
			NOT = { has_global_flag = form_gran_colombia_flag }
		}

		complete_effect = {
			set_cosmetic_tag = GCO_UNIFIED
			490 = { add_core_of = ROOT }
			491 = { add_core_of = ROOT }
			304 = { add_core_of = ROOT }
			685 = { add_core_of = ROOT }
			695 = { add_core_of = ROOT }
			687 = { add_core_of = ROOT }
			# Ecuador
			custom_effect_tooltip = form_country_ecuador_coring_states_tt
			hidden_effect = {
				305 = { add_core_of = ROOT }
				649 = { add_core_of = ROOT }
			}	
			# Colombia
			custom_effect_tooltip = form_country_colombia_coring_states_tt
			hidden_effect = {
				486 = { add_core_of = ROOT }
				306 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
			}
			# Venezuela
			custom_effect_tooltip = form_country_venezuela_coring_states_tt
			hidden_effect = {
				489 = { add_core_of = ROOT }
				307 = { add_core_of = ROOT }
				488 = { add_core_of = ROOT }
			}

			hidden_effect = {
				news_event = { id = wtt_news.55 hours = 6 }
				set_global_flag = form_gran_colombia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_austria_hungary_category = {

	form_austria_hungary = {

		icon = generic_form_nation

		highlight_states = {
			highlight_state_targets = {
				state = 102
				state = 853
				state = 103
				state = 104
				state = 804
				state = 109
				state = 45
				state = 83
				state = 76
				state = 84
				state = 764
				state = 82
				state = 848
				state = 153
				state = 152
				state = 4
				state = 975
				state = 976
				state = 69
				state = 9
				state = 75
				state = 74
				state = 72
				state = 70
				state = 664
				state = 71
				state = 73
				state = 972
				state = 155
				state = 43
				state = 973
				state = 974
				state = 154
			}
		}

		on_map_mode = decision_view_only

		allowed = {
			OR = {
				original_tag = AUS
				original_tag = CZE
				original_tag = CRO
				original_tag = SLO
				original_tag = SLV
				original_tag = TRA
				original_tag = LBV
				original_tag = BOS
				original_tag = SIL
			}
			has_dlc = "Waking the Tiger"
		}


		available = {
			is_subject = no

			custom_trigger_tooltip = {
				tooltip = has_control_over_all_highlighted_states_tt
				controls_state = 102
				controls_state = 853
				controls_state = 103
				controls_state = 104
				controls_state = 804
				controls_state = 109
				controls_state = 45
				controls_state = 83
				controls_state = 76
				controls_state = 84
				controls_state = 764
				controls_state = 82
				# Austria
				controls_state = 848
				controls_state = 153
				controls_state = 152
				controls_state = 4
				controls_state = 975
				controls_state = 976
				
				# Czechoslovakia
				controls_state = 69
				controls_state = 9
				controls_state = 75
				controls_state = 74
				controls_state = 72
				controls_state = 70
				controls_state = 664
				controls_state = 71
				controls_state = 73
				controls_state = 972
				
				# Hungary
				controls_state = 155
				controls_state = 43
				controls_state = 973
				controls_state = 974
				controls_state = 154
			}
			
		}

		visible = {
			OR = {
				original_tag = AUS
				original_tag = CZE
				original_tag = CRO
				original_tag = SLO
				original_tag = SLV
				original_tag = TRA
				original_tag = LBV
				original_tag = BOS
				original_tag = SIL
			}
			NOT = { has_global_flag = form_austria_hungary_flag }
		}

		complete_effect = {
			set_cosmetic_tag = HUN_EMPIRE

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt

			hidden_effect = {
				IF = {
					limit = {
						NOT = { tag = AUS }
					}
					AUS = { set_cosmetic_tag = AUS_NOT_WHITE }
				}

				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }

				# Austria
				custom_effect_tooltip = form_country_austria_coring_states_tt
				hidden_effect = {
					848 = { add_core_of = ROOT }
					153 = { add_core_of = ROOT }
					152 = { add_core_of = ROOT }
					4 = { add_core_of = ROOT }
					975 = { add_core_of = ROOT }
					976 = { add_core_of = ROOT }
				}

				# Czechoslovakia
				custom_effect_tooltip = form_country_czechoslovakia_coring_states_tt
				hidden_effect = {
					69 = { add_core_of = ROOT }
					9 = { add_core_of = ROOT }
					75 = { add_core_of = ROOT }
					74 = { add_core_of = ROOT }
					72 = { add_core_of = ROOT }
					70 = { add_core_of = ROOT }
					664 = { add_core_of = ROOT }
					71 = { add_core_of = ROOT }
					73 = { add_core_of = ROOT }
					972 = { add_core_of = ROOT }
				}

				# Hungary
				custom_effect_tooltip = form_country_hungary_coring_states_tt
				hidden_effect = {
					155 = { add_core_of = ROOT }
					43 = { add_core_of = ROOT }
					973 = { add_core_of = ROOT }
					974 = { add_core_of = ROOT }
					154 = { add_core_of = ROOT }
				}

				hidden_effect = {
					news_event = { id = wtt_news.56 hours = 6 }
					set_global_flag = form_austria_hungary_flag
				}
			}
			

		}

		ai_will_do = {
			factor = 202
		}
	}

	reintegrate_austro_hungarian_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = HUN
			has_dlc = "Waking the Tiger"
		}

		highlight_states = {
			highlight_state_targets = {
				state = 155
				state = 43
				state = 973
				state = 974
				state = 154
				state = 102
				state = 853
				state = 103
				state = 104
				state = 804
				state = 109
				state = 45
				state = 83
				state = 76
				state = 84
				state = 764
				state = 82
				state = 975
				state = 976
				state = 4
				state = 152
				state = 153
				state = 848
				state = 73
				state = 664
				state = 71
				state = 70
				state = 75
				state = 972
				state = 9
				state = 69
				state = 74
				state = 72
				state = 852
				state = 736
				state = 39
				state = 850
				state = 160
				state = 159
				state = 163
			}
		}

		on_map_mode = decision_view_only

		visible = {
			tag = HUN
			OR = {
				has_completed_focus = HUN_proclaim_the_restoration_of_austria_hungary
				has_completed_focus = wuw_HUN_renovato_imperii
			}
			NOT = { has_global_flag = reintegrate_the_empire_flag }
		}

		available = {
			is_subject = no
			controls_state = 155
			controls_state = 43
			controls_state = 973
			controls_state = 974
			controls_state = 154
			controls_state = 102
			controls_state = 853
			controls_state = 103
			controls_state = 104
			controls_state = 804
			controls_state = 109
			controls_state = 45
			controls_state = 83
			controls_state = 76
			controls_state = 84
			controls_state = 764
			controls_state = 82
			controls_state = 975
			controls_state = 976
			controls_state = 4
			controls_state = 152
			controls_state = 153
			controls_state = 848
			controls_state = 73
			controls_state = 664
			controls_state = 71
			controls_state = 70
			controls_state = 75
			controls_state = 972
			controls_state = 9
			controls_state = 69
			controls_state = 74
			controls_state = 72
			controls_state = 852
			controls_state = 736
			controls_state = 39
			controls_state = 850
			controls_state = 160
			controls_state = 159
			controls_state = 163
		}

		complete_effect = {
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 155
						state = 43
						state = 973
						state = 974
						state = 154
						state = 102
						state = 853
						state = 103
						state = 104
						state = 804
						state = 109
						state = 45
						state = 83
						state = 76
						state = 84
						state = 39
						state = 163
						state = 736
						state = 852
						state = 850
						state = 764
						state = 82
						state = 975
						state = 976
						state = 4
						state = 152
						state = 153
						state = 848
						state = 73
						state = 664
						state = 71
						state = 70
						state = 75
						state = 972
						state = 9
						state = 69
						state = 74
						state = 72
						state = 852
						state = 736
						state = 39
						state = 850
						state = 160
						state = 159
						state = 163
					}
				}
				add_core_of = ROOT
			}
			set_global_flag = reintegrate_the_empire_flag
		}

		ai_will_do = {
			factor = 202
		}
	}
}

form_commonwealth_category = {

	form_commonwealth = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = POL
				original_tag = LIT
			}
		}

		available = {
			is_subject = no
			# Lithuania
			custom_trigger_tooltip = {
				tooltip = form_country_lithuania_required_states_tt
				controls_state = 11
				controls_state = 189
			}
			# Poland
			custom_trigger_tooltip = {
				tooltip = form_country_poland_required_states_tt
				controls_state = 86
				controls_state = 87
				controls_state = 88
				controls_state = 90
				controls_state = 98
				controls_state = 10
				controls_state = 97
				controls_state = 92
				controls_state = 91
				controls_state = 89
				controls_state = 93
				controls_state = 94
				controls_state = 95
				controls_state = 96
				controls_state = 784
			}
			OR = {
				AND = {
					original_tag = POL
					core_compliance = {
						occupied_country_tag = LIT
						value > 80
					}
				}
				AND = {
					original_tag = LIT
					core_compliance = {
						occupied_country_tag = POL
						value > 80
					}
				}
			}
		}

		visible = {
			OR = {
				original_tag = POL
				original_tag = LIT
			}
			NOT = { has_global_flag = form_commonwealth_flag }
		}

		complete_effect = {
			if = {
				limit = { has_cosmetic_tag = POL_KINGDOM_RUS }
				set_cosmetic_tag = PLC_UNIFIED_RUS
			}
			else = {
				set_cosmetic_tag = PLC_UNIFIED
			}
			POL_basic_form_commonwealth = yes
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_united_netherlands_category = {

	form_united_netherlands = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = LUX
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			controls_state = 8
			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}
			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 977
				controls_state = 980
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
			}
			NOT = { has_global_flag = form_united_netherlands_flag }
			NOT = { has_global_flag = HOL_benelux_formed }
		}

		complete_effect = {
			set_cosmetic_tag = UNL_UNIFIED
			8 = { add_core_of = ROOT }
			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt
			hidden_effect = {
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
			}
			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				977 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.58 hours = 6 }
				set_global_flag = form_united_netherlands_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_united_central_america_category = {

	form_united_central_america = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			#is_subject = no
			controls_state = 313
			controls_state = 314
			controls_state = 312
			controls_state = 317
			controls_state = 316
		}

		visible = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ
			}
			NOT = { has_global_flag = form_united_central_america_flag }
		}

		complete_effect = {
			set_cosmetic_tag = USC_UNIFIED
			313 = { add_core_of = ROOT }
			314 = { add_core_of = ROOT }
			312 = { add_core_of = ROOT }
			317 = { add_core_of = ROOT }
			316 = { add_core_of = ROOT }
			311 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.59 hours = 6 }
				set_global_flag = form_united_central_america_flag
			}
		}

		ai_will_do = {
			factor = 200
			#modifier = {
			#	factor = 0
			#	is_historical_focus_on = yes
			#}
		}
	}

	integrate_northern_gran_colombia = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			controls_state = 304
		}

		visible = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
			}
			has_global_flag = form_united_central_america_flag
			NOT = { has_global_flag = integrated_panama_flag }
		}

		complete_effect = {
			304 = { add_core_of = ROOT }
			685 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = integrated_panama_flag
			}
		}

		ai_will_do = {
			factor = 500
		}
	}

	integrate_yucatan = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			controls_state = 474
		}

		visible = {
			OR = {
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
			}
			has_global_flag = form_united_central_america_flag
			NOT = { has_global_flag = integrated_yucatan_flag }
		}

		complete_effect = {
			474 = { add_core_of = ROOT }
			475 = { add_claim_by = ROOT }
			hidden_effect = {
				set_global_flag = integrated_yucatan_flag
			}
		}

		ai_will_do = {
			factor = 500
		}
	}
}

form_baltic_federation_category = {

	form_baltic_federation = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "No Step Back"
			}
		}

		available = {
			is_subject = no
			# Estonia
			custom_trigger_tooltip = {
				tooltip = form_country_estonia_required_states_tt
				controls_state = 13
				controls_state = 191
				controls_state = 811
				controls_state = 812
				controls_state = 813
			}
			# Latvia
			custom_trigger_tooltip = {
				tooltip = form_country_latvia_required_states_tt
				controls_state = 12
				controls_state = 190
				controls_state = 808
				controls_state = 809
				controls_state = 810
			}
			# Lithuania
			custom_trigger_tooltip = {
				tooltip = form_country_lithuania_required_states_tt
				controls_state = 11
				controls_state = 189
				controls_state = 814
				controls_state = 815
			}
		}

		visible = {
			OR = {
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
			NOT = { has_global_flag = form_baltic_federation_flag }
			NOT = { has_cosmetic_tag = LIVONIA }
			NOT = { has_completed_focus = LIT_claim_livonia_monarchy }
			NOT = { has_completed_focus = LIT_POL_union }
		}

		complete_effect = {
			set_cosmetic_tag = BAL_UNIFIED
			# Estonia
			custom_effect_tooltip = form_country_estonia_coring_states_tt
			hidden_effect = {
				13 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
			}
			# Latvia
			custom_effect_tooltip = form_country_latvia_coring_states_tt
			hidden_effect = {
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
			}
			# Lithuania
			custom_effect_tooltip = form_country_lithuania_coring_states_tt
			hidden_effect = {
				11 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				188 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.60 hours = 6 }
				set_global_flag = form_baltic_federation_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_ottoman_empire_category = {

	form_ottoman_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Waking the Tiger"
			NOT = { has_dlc = "Battle for the Bosporus" }
		}

		available = {
			is_subject = no
			controls_state = 679
			controls_state = 855
			controls_state = 856
			controls_state = 293
			controls_state = 454
			controls_state = 455
			controls_state = 656
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 798
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 800
				controls_state = 799
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				# Syria
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
			}
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = form_ottoman_empire_flag }
		}

		complete_effect = {
			set_cosmetic_tag = OTT_UNIFIED
			679 = { add_core_of = ROOT }
			855 = { add_core_of = ROOT }
			856 = { add_core_of = ROOT }
			293 = { add_core_of = ROOT }
			665 = { add_core_of = ROOT }
			458 = { add_core_of = ROOT }
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
			}
			# Italian North Africa and Dodecanese
			custom_effect_tooltip = form_ottoman_italy_coring_states_tt
			hidden_effect = {
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.61 hours = 6 }
				set_global_flag = form_ottoman_empire_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_reform_the_eyalet_of_rumelia = { #Greece + Albania + Bulgaria + South Yugoslavia

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			#Greece
			custom_trigger_tooltip = {
				tooltip = form_rumelia_greece_required_states_tt
				controls_state = 47
				controls_state = 185
				controls_state = 731
				controls_state = 184
			}
			#Bulgaria
			custom_trigger_tooltip = {
				tooltip = form_rumelia_bulgaria_required_states_tt
				controls_state = 48
				controls_state = 801
				controls_state = 212
				controls_state = 211
			}
			#Yugoslavia 
			custom_trigger_tooltip = {
				tooltip = form_rumelia_yugoslavia_required_states_tt
				controls_state = 106 
				controls_state = 970 
				controls_state = 803
				controls_state = 802
				controls_state = 108 
				controls_state = 105 
				controls_state = 107
			}
			#Albania			
			custom_trigger_tooltip = {
				tooltip = form_rumelia_albania_required_states_tt
				controls_state = 44
				controls_state = 805
				controls_state = 934
			}
		}
		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_balkans_flag }
			has_completed_focus = TUR_reclaim_macedonia
		}

		complete_effect = {
			# Greece
			custom_effect_tooltip = form_rumelia_greece_coring_states_tt
			hidden_effect = {
				47 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
			}
			# Bulgaria
			custom_effect_tooltip = form_rumelia_bulgaria_coring_states_tt
			hidden_effect = {
				48 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
			}
			# Yugoslavia
			custom_effect_tooltip = form_rumelia_yugoslavia_coring_states_tt
			hidden_effect = {
				106 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
			}
			custom_effect_tooltip = form_rumelia_albania_coring_states_tt
			hidden_effect = {
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				934 = { add_core_of = ROOT }
			}
			hidden_effect = {
				set_global_flag = ottoman_balkans_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_merge_the_eyalets_of_morea_crete_and_kibris = { #Greece + Cyprus

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			#Greece
			controls_state = 186
			controls_state = 182
			controls_state = 187
			controls_state = 164 #Dodecanese
			controls_state = 183 #Cyprus
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_greece_flag }
			has_completed_focus = TUR_reclaim_macedonia
		}

		complete_effect = {
			186 = { add_core_of = ROOT }
			182 = { add_core_of = ROOT }
			187 = { add_core_of = ROOT }
			164 = { add_core_of = ROOT }
			183 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_greece_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_enlarge_the_vilayet_of_bosnia = { #Bosnia + Croatia

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 104
			controls_state = 804
			controls_state = 103
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_bosnia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			104 = { add_core_of = ROOT }
			804 = { add_core_of = ROOT }
			103 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_bosnia_flag
				163 = { add_core_of = ROOT }
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_restore_the_vilayet_of_the_danube_and_moldova = { #Romania

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 46
			controls_state = 971
			controls_state = 79
			controls_state = 81
			controls_state = 77
			controls_state = 766 
			controls_state = 84 
			controls_state = 76
			controls_state = 83 
			controls_state = 82 
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_romania_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			46 = { add_core_of = ROOT }
			971 = { add_core_of = ROOT }
			79 = { add_core_of = ROOT }
			81 = { add_core_of = ROOT }
			77 = { add_core_of = ROOT }
			766 = { add_core_of = ROOT }
			84 = { add_core_of = ROOT }
			76 = { add_core_of = ROOT }
			83 = { add_core_of = ROOT }
			82 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_romania_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_restore_the_vilayet_of_halep = { #Syria

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				# Syria
				controls_state = 680
				controls_state = 554
				controls_state = 799
				controls_state = 677
			}
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_syria_flag }
			OR = {
				has_completed_focus = TUR_reclaiming_our_lost_empire
				has_completed_focus = TUR_the_damascus_diktat
			}
		}

		complete_effect = {
			# French Syria
			custom_effect_tooltip = form_persia_france_coring_states_tt 
			hidden_effect = {
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
			}
			hidden_effect = {
				set_global_flag = ottoman_syria_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_restore_the_vilayet_of_beirut = { #Lebanon + Levant

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 454
			controls_state = 455
			controls_state = 553
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_levant_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			454 = { add_core_of = ROOT }
			455 = { add_core_of = ROOT }
			553 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_levant_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_restore_the_vilayet_of_baghdad = { #Iraq

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
			}
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_mesopotamia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
			}
			hidden_effect = {
				set_global_flag = ottoman_mesopotamia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_extend_the_lasha_eyalet = { #Arabia + Gulf + Oman

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 656
			controls_state = 765
			controls_state = 658
			controls_state = 292
			controls_state = 678
			controls_state = 857
			controls_state = 858
			controls_state = 854
			controls_state = 859
			controls_state = 907
			controls_state = 1014
			
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_arabia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			656 = { add_core_of = ROOT }
			765 = { add_core_of = ROOT }
			658 = { add_core_of = ROOT }
			292 = { add_core_of = ROOT }
			857 = { add_core_of = ROOT }
			858 = { add_core_of = ROOT }
			854 = { add_core_of = ROOT }
			855 = { add_core_of = ROOT }
			856 = { add_core_of = ROOT }
			859 = { add_core_of = ROOT }
			678 = { add_core_of = ROOT }
			294 = { add_core_of = ROOT }
			857 = { add_core_of = ROOT }
			858 = { add_core_of = ROOT }
			854 = { add_core_of = ROOT }
			859 = { add_core_of = ROOT }
			907 = { add_core_of = ROOT }
			1014 = { add_core_of = ROOT }
			create_wargoal = { 
				type = annex_everything
				target = OMA
			}
			hidden_effect = {
				set_global_flag = ottoman_arabia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_merge_the_eyalets_of_jeddah_habesh_and_yemen = { #Yemen + Hejaz

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 679
			controls_state = 293
			controls_state = 659
			controls_state = 855
			controls_state = 856
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_yemen_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			679 = { add_core_of = ROOT }
			293 = { add_core_of = ROOT }
			659 = { add_core_of = ROOT }
			855 = { add_core_of = ROOT }
			856 = { add_core_of = ROOT } 
			hidden_effect = {
				set_global_flag = ottoman_yemen_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_integrate_the_khedivate_of_egypt = { #Egypt

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 446
			controls_state = 447
			controls_state = 453
			controls_state = 452
			controls_state = 456
			controls_state = 457
			controls_state = 552
			controls_state = 767
			controls_state = 551
			controls_state = 883
			controls_state = 907
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_egypt_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			446 = { add_core_of = ROOT }
			447 = { add_core_of = ROOT }
			453 = { add_core_of = ROOT }
			452 = { add_core_of = ROOT }
			456 = { add_core_of = ROOT }
			457 = { add_core_of = ROOT }
			552 = { add_core_of = ROOT }
			767 = { add_core_of = ROOT }
			551 = { add_core_of = ROOT }
			883 = { add_core_of = ROOT }
			907 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_egypt_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_restore_the_vilayet_of_tripolitania = { #Libya

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 448
			controls_state = 661
			controls_state = 449
			controls_state = 662
			controls_state = 450
			controls_state = 451
			controls_state = 663
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_libya_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			# Italian North Africa
			custom_effect_tooltip = form_ottoman_italy_coring_states_tt
			hidden_effect = {
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
			}
			hidden_effect = {
				set_global_flag = ottoman_libya_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ott_absorb_the_tunis_and_algerian_eyalets = { #Tunisia + Algeria

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			OR = { 
				has_country_leader = {
					character = TUR_abdulmejid_ii
					ruling_only = yes
				}
				has_country_leader = {
					character = TUR_durrushehvar_i
					ruling_only = yes
				}
			}
			controls_state = 458
			controls_state = 665
			controls_state = 459
			controls_state = 460
			controls_state = 513
		}

		visible = {
			original_tag = TUR
			NOT = { has_global_flag = ottoman_tunisia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			458 = { add_core_of = ROOT }
			665 = { add_core_of = ROOT }
			459 = { add_core_of = ROOT }
			460 = { add_core_of = ROOT }
			513 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = ottoman_tunisia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_european_union_category = {

	form_european_union = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 8
				state = 7
				state = 35
				state = 36
				state = 6
				state = 34
				state = 977
				state = 980
				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 = 851
				state = 19
				state = 1
				state = 785
				state = 31
				state = 806
				state = 158
				state = 159
				state = 39
				state = 160
				state = 161
				state = 162
				state = 157
				state = 2
				state = 117
				state = 156
				state = 115
				state = 114
				state = 736
				state = 849
				state = 850
				state = 852
				state = 51
				state = 42
				state = 56
				state = 57
				state = 55
				state = 50
				state = 978
				state = 59
				state = 58
				state = 909
				state = 60
				state = 54
				state = 52
				state = 53
				state = 61
				state = 64
				state = 65
				state = 62
				state = 68
				state = 66
				state = 67
				state = 63
				state = 5
				state = 763
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = {

			OR = { 
				AND = {
					OR = {
						original_tag = HOL
						original_tag = BEL
						original_tag = LUX
						original_tag = FRA
						original_tag = ITA
						original_tag = GER
					}
					has_government = democratic
				}
				AND = {
					original_tag = ENG
					OR = {
						AND = {
							has_country_leader = {
								character = ENG_oswald_mosley
								ruling_only = yes
							}
							has_completed_focus = ENG_a_european_identity
						}
						AND = {
							has_government = democratic
							has_completed_focus = ENG_preparations_for_a_european_union
						}
						has_completed_focus = ENG_a_union_of_european_states
					}
				}
				AND = {
					original_tag = HUN
					has_country_leader = {
						character = HUN_otto_von_habsburg
						ruling_only = yes
					}
					has_government = neutrality
					has_completed_focus = wuw_HUN_renovato_imperii
				}
				AND = {
					original_tag = AUS
					OR = {
						AND = {
							has_country_leader = {
								character = HUN_otto_von_habsburg
								ruling_only = yes
							}
							has_completed_focus = AUS_the_danubian_federation
							is_faction_leader = yes
						}	
						AND = {
							has_completed_focus = AUS_the_right_to_self_determination
							has_government = democratic
						}
					}
				}
				AND = {
					original_tag = GER
					has_completed_focus = GER_european_confederation
				}
			}

			NOT = { has_global_flag = form_european_union_flag }

			is_major = yes

		}

		available = {
			is_subject = no

			controls_state = 8

			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}

			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 977
				controls_state = 980
			}

			# France
			custom_trigger_tooltip = {
				tooltip = form_eu_france_required_states_tt
				controls_state = 29
				controls_state = 18
				controls_state = 17
				controls_state = 28
				controls_state = 15
				controls_state = 16
				controls_state = 27
				controls_state = 14
				controls_state = 30
				controls_state = 24
				controls_state = 23
				controls_state = 33
				controls_state = 26
				controls_state = 20
				controls_state = 32
				controls_state = 735
				controls_state = 25
				controls_state = 22
				controls_state = 21
				controls_state = 851
				controls_state = 19
				controls_state = 1
				controls_state = 785
				controls_state = 31
				controls_state = 806
			}

			# Italy
			custom_trigger_tooltip = {
				tooltip = form_eu_italy_required_states_tt
				controls_state = 158
				controls_state = 159
				controls_state = 39
				controls_state = 160
				controls_state = 161
				controls_state = 162
				controls_state = 157
				controls_state = 2
				controls_state = 117
				controls_state = 156
				controls_state = 115
				controls_state = 114
				controls_state = 736
				controls_state = 849
				controls_state = 850
				controls_state = 852
			}

			# Germany
			custom_trigger_tooltip = {
				tooltip = form_country_germany_required_states_tt
				controls_state = 51
				controls_state = 42
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 978 #BADEN
				controls_state = 59
				controls_state = 58
				controls_state = 909 #New state of SCHLESWIG
				controls_state = 60
				controls_state = 54
				controls_state = 52
				controls_state = 53
				controls_state = 61
				controls_state = 64
				controls_state = 65
				controls_state = 62
				controls_state = 68
				controls_state = 66
				controls_state = 67
				controls_state = 63
				controls_state = 5
				controls_state = 763
			}
		}

		complete_effect = {

			IF = {
				limit = {
					OR  = {
						NOT = { original_tag = ENG }
						NOT = { has_completed_focus = ENG_a_european_identity }
					}
				}
				set_cosmetic_tag = EUR_UNIFIED
			}
			ELSE = {
				set_cosmetic_tag = ENG_imperial_federation_unified #Europe-a-Nation
			}

			IF = {
				limit = {
					tag = ENG
					has_completed_focus = ENG_preparations_for_a_european_union
					check_variable = {
						var = UK_promote_federalization_in_britain_times_completed_var
						value = 5
						compare = less_than
					}
				}
				hidden_effect = {
					country_event = {
						id = ukrework.34
						days = 14
					}
				}
			}

			8 = { add_core_of = ROOT } # Luxembourg

			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt 
			hidden_effect = {
				7 = { add_core_of = ROOT } # Holland
				35 = { add_core_of = ROOT } # Brabant
				36 = { add_core_of = ROOT } # Friesland
			}

			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT } # Vlaanderen
				34 = { add_core_of = ROOT } # Wallonie
				977 = { add_core_of = ROOT } # Antwerp
				980 = { add_core_of = ROOT } # Ardennes
			}

			# France
			custom_effect_tooltip = form_eu_france_coring_states_tt
			hidden_effect = {
				29 = { add_core_of = ROOT } # Nord-pas-de-calais
				18 = { add_core_of = ROOT } # Champagne
				17 = { add_core_of = ROOT } # Franche-Comte
				28 = { add_core_of = ROOT } # Alsace-Lorraine
				15 = { add_core_of = ROOT } # Normandy
				16 = { add_core_of = ROOT } # Ile de France
				27 = { add_core_of = ROOT } # Bourgogne
				14 = { add_core_of = ROOT } # Brittany
				30 = { add_core_of = ROOT } # Loire
				24 = { add_core_of = ROOT } # Centre
				23 = { add_core_of = ROOT } # Poitou
				33 = { add_core_of = ROOT } # Centre-sud
				26 = { add_core_of = ROOT } # Auveragne
				20 = { add_core_of = ROOT } # Rhone
				32 = { add_core_of = ROOT } # Alpes
				735 = { add_core_of = ROOT } # Savoy
				25 = { add_core_of = ROOT } # Limousin
				22 = { add_core_of = ROOT } # Languedoc
				21 = { add_core_of = ROOT } # Bouches-du-Rhone
				851 = { add_core_of = ROOT } # Var
				19 = { add_core_of = ROOT } # Aquitaine
				1 = { add_core_of = ROOT } # Corsica
				785 = { add_core_of = ROOT } # Picardy
				31 = { add_core_of = ROOT } # Midi Pyrinees
				806 = { add_core_of = ROOT } # Pyrinees-Atlantique
			}

			# Italy
			custom_effect_tooltip = form_eu_italy_coring_states_tt
			hidden_effect = {
				158 = { add_core_of = ROOT } # Piemonte
				159 = { add_core_of = ROOT } # Lombardy
				39 = { add_core_of = ROOT } # Alto Adige
				160 = { add_core_of = ROOT } # Venice
				161 = { add_core_of = ROOT } # Emilia Romagna
				162 = { add_core_of = ROOT } # Tuscany
				157 = { add_core_of = ROOT } # Abruzzo
				2 = { add_core_of = ROOT } # Lazio
				117 = { add_core_of = ROOT } # Campania
				156 = { add_core_of = ROOT } # Calbria
				115 = { add_core_of = ROOT } # Sicily
				114 = { add_core_of = ROOT } # Sardinia
				736 = { add_core_of = ROOT } # Litorale
				163 = { add_core_of = ROOT } # Zara
				849 = { add_core_of = ROOT } # Puglia
				850 = { add_core_of = ROOT } # Trentino
				852 = { add_core_of = ROOT } # Istria
			}

			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				51 = { add_core_of = ROOT } # Rhineland
				42 = { add_core_of = ROOT } # Moselland
				56 = { add_core_of = ROOT } # Weser-ems
				57 = { add_core_of = ROOT } # Westfalen
				55 = { add_core_of = ROOT } # Hessen
				50 = { add_core_of = ROOT } # Wurttemberg
				978 = { add_core_of = ROOT } # Baden
				59 = { add_core_of = ROOT } # Hannover
				58 = { add_core_of = ROOT } # Holstein
				909 = { add_core_of = ROOT } # Schleswig
				60 = { add_core_of = ROOT } # Thuringia
				54 = { add_core_of = ROOT } # Franken
				52 = { add_core_of = ROOT } # Oberbayern
				53 = { add_core_of = ROOT } # Niederbayern
				61 = { add_core_of = ROOT } # Mecklenburg
				64 = { add_core_of = ROOT } # Brandenberg
				65 = { add_core_of = ROOT } # Sachsen
				62 = { add_core_of = ROOT } # Vorpommern
				68 = { add_core_of = ROOT } # Ostmark
				66 = { add_core_of = ROOT } # Niederschlesien
				67 = { add_core_of = ROOT } # Oberschlesien
				63 = { add_core_of = ROOT } # Hinterpommern
				5 = { add_core_of = ROOT } # Ermland-Masuren
				763 = { add_core_of = ROOT } # Königsberg
			}

			116 = { add_core_of = ROOT } # Malta

			hidden_effect = {
				news_event = { id = wtt_news.62 hours = 6 }
				set_global_flag = form_european_union_flag
				set_country_flag = form_european_union_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_alpine_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 845 # Jura Mountains
				state = 3 # Swiss Plateu
				state = 847 # Western Swiss Alps
				state = 846 # Ticino
				state = 151 # Eastern Swiss Alps
				state = 848 # Vorarlberg
				state = 153 # Tyrol
				state = 152 # Oberösterreich
				state = 976 # Steiermark-Kärnten
				state = 4 # Niederösterreich
				state = 975 # Burgenland
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_alpine_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 845 # Jura Mountains
			controls_state = 3 # Swiss Plateu
			controls_state = 847 # Western Swiss Alps
			controls_state = 846 # Ticino
			controls_state = 151 # Eastern Swiss Alps
			controls_state = 848 # Vorarlberg
			controls_state = 153 # Tyrol
			controls_state = 152 # Oberösterreich
			controls_state = 976 # Steiermark-Kärnten
			controls_state = 4 # Niederösterreich
			controls_state = 975 # Burgenland
		}

		days_remove = 70

		# YES it is intentional that these don't have any cancel triggers!

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 845 # Jura Mountains
							state = 3 # Swiss Plateu
							state = 847 # Western Swiss Alps
							state = 846 # Ticino
							state = 151 # Eastern Swiss Alps
							state = 848 # Vorarlberg
							state = 153 # Tyrol
							state = 152 # Oberösterreich
							state = 976 # Steiermark-Kärnten
							state = 4 # Niederösterreich
							state = 975 # Burgenland
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_alpine_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_iberian_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 177 # Islas Baleares
				state = 165 # Catalonia
				state = 167 # Valencia
				state = 794 # Eastern Aragon
				state = 166 # Western Aragon
				state = 172 # Navarra
				state = 792 # Pais Vasco
				state = 790 # Asturias
				state = 171 # Galicia
				state = 174 # Leon
				state = 791 # Valladolid
				state = 176 # Burgos
				state = 793 # Guadalajara
				state = 168 # Murcia
				state = 788 # Salamanca
				state = 41 # Madrid
				state = 175 # Ciudad Real
				state = 170 # Extramadura
				state = 789 # Cordoba
				state = 173 # Granada
				state = 169 # Sevilla
				state = 118 # Gibraltar
				state = 180 # Porto
				state = 181 # Guarda
				state = 112 # Lisbon
				state = 795 # Santarem
				state = 179 # Beja
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_iberian_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 177 # Islas Baleares
			controls_state = 165 # Catalonia
			controls_state = 167 # Valencia
			controls_state = 794 # Eastern Aragon
			controls_state = 166 # Western Aragon
			controls_state = 172 # Navarra
			controls_state = 792 # Pais Vasco
			controls_state = 790 # Asturias
			controls_state = 171 # Galicia
			controls_state = 174 # Leon
			controls_state = 791 # Valladolid
			controls_state = 176 # Burgos
			controls_state = 793 # Guadalajara
			controls_state = 168 # Murcia
			controls_state = 788 # Salamanca
			controls_state = 41 # Madrid
			controls_state = 175 # Ciudad Real
			controls_state = 170 # Extramadura
			controls_state = 789 # Cordoba
			controls_state = 173 # Granada
			controls_state = 169 # Sevilla
			controls_state = 118 # Gibraltar
			controls_state = 180 # Porto
			controls_state = 181 # Guarda
			controls_state = 112 # Lisbon
			controls_state = 795 # Santarem
			controls_state = 179 # Beja
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 177 # Islas Baleares
							state = 165 # Catalonia
							state = 167 # Valencia
							state = 794 # Eastern Aragon
							state = 166 # Western Aragon
							state = 172 # Navarra
							state = 792 # Pais Vasco
							state = 790 # Asturias
							state = 171 # Galicia
							state = 174 # Leon
							state = 791 # Valladolid
							state = 176 # Burgos
							state = 793 # Guadalajara
							state = 168 # Murcia
							state = 788 # Salamanca
							state = 41 # Madrid
							state = 175 # Ciudad Real
							state = 170 # Extramadura
							state = 789 # Cordoba
							state = 173 # Granada
							state = 169 # Sevilla
							state = 118 # Gibraltar
							state = 180 # Porto
							state = 181 # Guarda
							state = 112 # Lisbon
							state = 795 # Santarem
							state = 179 # Beja
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_iberian_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_west_slavic_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 69 # North Sudetenland
				state = 972 # South Sudetenland
				state = 9 # Bohemia
				state = 75 # Moravia
				state = 74 # Czech Silesia
				state = 72 # Zaolzie
				state = 70 # Western Slovakia
				state = 664 # Southern Slovakia
				state = 71 # Eastern Slovakia
				state = 73 # Carpathian Ruthenia
				state = 762 # Katowice
				state = 86 # Poznan
				state = 85 # Danzig
				state = 807 # Gdynia
				state = 98 # Plock
				state = 87 # Lodz
				state = 10 # Warsaw
				state = 90 # Kielce
				state = 88 # Krakow
				state = 89 # Stanislawow
				state = 91 # Lwow
				state = 92 # Lublin
				state = 97 # Bialystok
				state = 95 # Nowgrodek
				state = 96 # Wiljeka
				state = 784 # Wilno
				state = 94 # Polesie
				state = 93 # Wolyn
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_west_slavic_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 69 # North Sudetenland
			controls_state = 972 # South Sudetenland
			controls_state = 9 # Bohemia
			controls_state = 75 # Moravia
			controls_state = 74 # Czech Silesia
			controls_state = 72 # Zaolzie
			controls_state = 70 # Western Slovakia
			controls_state = 664 # Southern Slovakia
			controls_state = 71 # Eastern Slovakia
			controls_state = 73 # Carpathian Ruthenia
			controls_state = 762 # Katowice
			controls_state = 86 # Poznan
			controls_state = 85 # Danzig
			controls_state = 807 # Gdynia
			controls_state = 98 # Plock
			controls_state = 87 # Lodz
			controls_state = 10 # Warsaw
			controls_state = 90 # Kielce
			controls_state = 88 # Krakow
			controls_state = 89 # Stanislawow
			controls_state = 91 # Lwow
			controls_state = 92 # Lublin
			controls_state = 97 # Bialystok
			controls_state = 95 # Nowgrodek
			controls_state = 96 # Wiljeka
			controls_state = 784 # Wilno
			controls_state = 94 # Polesie
			controls_state = 93 # Wolyn
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 69 # North Sudetenland
							state = 972 # South Sudetenland
							state = 9 # Bohemia
							state = 75 # Moravia
							state = 74 # Czech Silesia
							state = 72 # Zaolzie
							state = 70 # Western Slovakia
							state = 664 # Southern Slovakia
							state = 71 # Eastern Slovakia
							state = 73 # Carpathian Ruthenia
							state = 762 # Katowice
							state = 86 # Poznan
							state = 85 # Danzig
							state = 807 # Gdynia
							state = 98 # Plock
							state = 87 # Lodz
							state = 10 # Warsaw
							state = 90 # Kielce
							state = 88 # Krakow
							state = 89 # Stanislawow
							state = 91 # Lwow
							state = 92 # Lublin
							state = 97 # Bialystok
							state = 95 # Nowgrodek
							state = 96 # Wiljeka
							state = 784 # Wilno
							state = 94 # Polesie
							state = 93 # Wolyn
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_west_slavic_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_baltic_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 188 # Memel
				state = 189 # Semigallen
				state = 814 # Sudava
				state = 11 # Kaunas
				state = 815 # Aukstailjia
				state = 190 # Kurzeme
				state = 809 # Zemgale
				state = 808 # Riga
				state = 810 # Latgale
				state = 12 # Vidzeme
				state = 191 # Tartu
				state = 13 # Pärnu
				state = 813 # Virumaa
				state = 812 # Harju
				state = 811 # Saremaa
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_baltic_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 188 # Memel
			controls_state = 189 # Semigallen
			controls_state = 814 # Sudava
			controls_state = 11 # Kaunas
			controls_state = 815 # Aukstailjia
			controls_state = 190 # Kurzeme
			controls_state = 809 # Zemgale
			controls_state = 808 # Riga
			controls_state = 810 # Latgale
			controls_state = 12 # Vidzeme
			controls_state = 191 # Tartu
			controls_state = 13 # Pärnu
			controls_state = 813 # Virumaa
			controls_state = 812 # Harju
			controls_state = 811 # Saremaa
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 188 # Memel
							state = 189 # Semigallen
							state = 814 # Sudava
							state = 11 # Kaunas
							state = 815 # Aukstailjia
							state = 190 # Kurzeme
							state = 809 # Zemgale
							state = 808 # Riga
							state = 810 # Latgale
							state = 12 # Vidzeme
							state = 191 # Tartu
							state = 13 # Pärnu
							state = 813 # Virumaa
							state = 812 # Harju
							state = 811 # Saremaa
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_baltic_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_british_isles_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 127 # Sussex
				state = 123 # South-West England
				state = 338 # Gloustershire
				state = 126 # Greater London Area
				state = 125 # East Anglia
				state = 129 # East Midlands
				state = 128 # West Midlands
				state = 122 # Wales
				state = 132 # Lancashire
				state = 130 # Yorkshire
				state = 931 # Cumbria
				state = 131 # Northumberland
				state = 932 # Isle of Man
				state = 133 # Lanark
				state = 121 # Lothian
				state = 136 # Aberdeenshire
				state = 120 # Scottish Highlands
				state = 933 # Shetland Islands
				state = 119 # Northern Ireland
				state = 113 # Leinster
				state = 134 # Connaught
				state = 135 # Munster
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_isles_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 127 # Sussex
			controls_state = 123 # South-West England
			controls_state = 338 # Gloustershire
			controls_state = 126 # Greater London Area
			controls_state = 125 # East Anglia
			controls_state = 129 # East Midlands
			controls_state = 128 # West Midlands
			controls_state = 122 # Wales
			controls_state = 132 # Lancashire
			controls_state = 130 # Yorkshire
			controls_state = 931 # Cumbria
			controls_state = 131 # Northumberland
			controls_state = 932 # Isle of Man
			controls_state = 133 # Lanark
			controls_state = 121 # Lothian
			controls_state = 136 # Aberdeenshire
			controls_state = 120 # Scottish Highlands
			controls_state = 933 # Shetland Islands
			controls_state = 119 # Northern Ireland
			controls_state = 113 # Leinster
			controls_state = 134 # Connaught
			controls_state = 135 # Munster
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 127 # Sussex
							state = 123 # South-West England
							state = 338 # Gloustershire
							state = 126 # Greater London Area
							state = 125 # East Anglia
							state = 129 # East Midlands
							state = 128 # West Midlands
							state = 122 # Wales
							state = 132 # Lancashire
							state = 130 # Yorkshire
							state = 931 # Cumbria
							state = 131 # Northumberland
							state = 932 # Isle of Man
							state = 133 # Lanark
							state = 121 # Lothian
							state = 136 # Aberdeenshire
							state = 120 # Scottish Highlands
							state = 933 # Shetland Islands
							state = 119 # Northern Ireland
							state = 113 # Leinster
							state = 134 # Connaught
							state = 135 # Munster
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_isles_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_scandinavian_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 912 # North Schleswig
				state = 99 # Jutland
				state = 911 # Fyn
				state = 37 # Sjaelland
				state = 910 # Bornholm
				state = 138 # Skåne
				state = 124 # Gotland
				state = 139 # Småland
				state = 140 # Västergötland
				state = 915 # Bohuslän
				state = 913 # Östergötland
				state = 919 # Värmland
				state = 141 # Södermanland
				state = 916 # Dalarna
				state = 38 # Gävleborg
				state = 917 # Jämtland
				state = 918 # Västerbotten
				state = 666 # Norrbotten
				state = 110 # Oslofjord
				state = 921 # Telemark
				state = 922 # agder
				state = 142 # Vestlandet
				state = 920 # Opplandene
				state = 143 # Trondelag
				state = 923 # Helgeland
				state = 144 # Nordland
				state = 924 # Troms
				state = 925 # Finnmark
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_scandinavia_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 912 # North Schleswig
			controls_state = 99 # Jutland
			controls_state = 911 # Fyn
			controls_state = 37 # Sjaelland
			controls_state = 910 # Bornholm
			controls_state = 138 # Skåne
			controls_state = 124 # Gotland
			controls_state = 139 # Småland
			controls_state = 140 # Västergötland
			controls_state = 915 # Bohuslän
			controls_state = 913 # Östergötland
			controls_state = 919 # Värmland
			controls_state = 141 # Södermanland
			controls_state = 916 # Dalarna
			controls_state = 38 # Gävleborg
			controls_state = 917 # Jämtland
			controls_state = 918 # Västerbotten
			controls_state = 666 # Norrbotten
			controls_state = 110 # Oslofjord
			controls_state = 921 # Telemark
			controls_state = 922 # agder
			controls_state = 142 # Vestlandet
			controls_state = 920 # Opplandene
			controls_state = 143 # Trondelag
			controls_state = 923 # Helgeland
			controls_state = 144 # Nordland
			controls_state = 924 # Troms
			controls_state = 925 # Finnmark
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 912 # North Schleswig
							state = 99 # Jutland
							state = 911 # Fyn
							state = 37 # Sjaelland
							state = 910 # Bornholm
							state = 138 # Skåne
							state = 124 # Gotland
							state = 139 # Småland
							state = 140 # Västergötland
							state = 915 # Bohuslän
							state = 913 # Östergötland
							state = 919 # Värmland
							state = 141 # Södermanland
							state = 916 # Dalarna
							state = 38 # Gävleborg
							state = 917 # Jämtland
							state = 918 # Västerbotten
							state = 666 # Norrbotten
							state = 110 # Oslofjord
							state = 921 # Telemark
							state = 922 # agder
							state = 142 # Vestlandet
							state = 920 # Opplandene
							state = 143 # Trondelag
							state = 923 # Helgeland
							state = 144 # Nordland
							state = 924 # Troms
							state = 925 # Finnmark
						}
					}
					add_core_of = ROOT
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			# Faroe Islands
			337 = {
				add_core_of = ROOT
			}

			# Jan Mayen
			914 = {
				add_core_of = ROOT
			}

			# Iceland
			100 = {
				add_core_of = ROOT
			}

			# Greenland
			101 = {
				add_core_of = ROOT
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_scandinavia_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_karelo_finnish_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 148 # Lappi
				state = 722 # Petsamo
				state = 147 # Salla
				state = 929 # Oulu
				state = 150 # Kuopio
				state = 146 # Karjala
				state = 928 # Kymi
				state = 930 ## Mikkeli
				state = 149 # Vaasa
				state = 927 # Häme
				state = 926 # Turku
				state = 111 # Helsinki
				state = 145 # Åland
				state = 213 # Murmansk
				state = 215 # Onega
				state = 216 # Olonets
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_finnish_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 148 # Lappi
			controls_state = 722 # Petsamo
			controls_state = 147 # Salla
			controls_state = 929 # Oulu
			controls_state = 150 # Kuopio
			controls_state = 146 # Karjala
			controls_state = 928 # Kymi
			controls_state = 930 ## Mikkeli
			controls_state = 149 # Vaasa
			controls_state = 927 # Häme
			controls_state = 926 # Turku
			controls_state = 111 # Helsinki
			controls_state = 145 # Åland
			controls_state = 213 # Murmansk
			controls_state = 215 # Onega
			controls_state = 216 # Olonets
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 148 # Lappi
							state = 722 # Petsamo
							state = 147 # Salla
							state = 929 # Oulu
							state = 150 # Kuopio
							state = 146 # Karjala
							state = 928 # Kymi
							state = 930 ## Mikkeli
							state = 149 # Vaasa
							state = 927 # Häme
							state = 926 # Turku
							state = 111 # Helsinki
							state = 145 # Åland
							state = 213 # Murmansk
							state = 215 # Onega
							state = 216 # Olonets
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_finnish_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_balkan_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 150

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 155 # North Transdanubia
				state = 974 # South Transdanubia
				state = 973 # Bacs-Bodrog
				state = 43 # Northern Hungary
				state = 154 # Alföld
				state = 80 # Bucovina
				state = 78 # Besarabia
				state = 766 # Southern Besarabia
				state = 79 # Moldova
				state = 76 # North Transylvania
				state = 83 # Crisana
				state = 84 # Transylvania
				state = 82 # Banat
				state = 81 # Oltenia
				state = 46 # Muntenia
				state = 971 # Northern Dobruja
				state = 77 # Dobruja
				state = 102 # North Slovenia
				state = 853 # Ljubljana
				state = 103 # Dalmatia
				state = 109 # Croatia
				state = 45 # Vojvodina
				state = 764 # West Banat
				state = 104 # Bosnia
				state = 804 # Herzegovina
				state = 105 # Montenegro
				state = 107 # Serbia
				state = 108 # Morava
				state = 802 # Kosovo
				state = 803 # Southern Serbia
				state = 970 # Debar
				state = 106 # Macedonia
				state = 934 # Schkoder
				state = 44 # Tirana
				state = 805 # Northern Epirus
				state = 48 # Sofia
				state = 801 # Moesia
				state = 211 # Burgas
				state = 212 # Plovdiv
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_balkan_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 155 # North Transdanubia
			controls_state = 974 # South Transdanubia
			controls_state = 973 # Bacs-Bodrog
			controls_state = 43 # Northern Hungary
			controls_state = 154 # Alföld
			controls_state = 80 # Bucovina
			controls_state = 78 # Besarabia
			controls_state = 766 # Southern Besarabia
			controls_state = 79 # Moldova
			controls_state = 76 # North Transylvania
			controls_state = 83 # Crisana
			controls_state = 84 # Transylvania
			controls_state = 82 # Banat
			controls_state = 81 # Oltenia
			controls_state = 46 # Muntenia
			controls_state = 971 # Northern Dobruja
			controls_state = 77 # Dobruja
			controls_state = 102 # North Slovenia
			controls_state = 853 # Ljubljana
			controls_state = 103 # Dalmatia
			controls_state = 109 # Croatia
			controls_state = 45 # Vojvodina
			controls_state = 764 # West Banat
			controls_state = 104 # Bosnia
			controls_state = 804 # Herzegovina
			controls_state = 105 # Montenegro
			controls_state = 107 # Serbia
			controls_state = 108 # Morava
			controls_state = 802 # Kosovo
			controls_state = 803 # Southern Serbia
			controls_state = 970 # Debar
			controls_state = 106 # Macedonia
			controls_state = 934 # Schkoder
			controls_state = 44 # Tirana
			controls_state = 805 # Northern Epirus
			controls_state = 48 # Sofia
			controls_state = 801 # Moesia
			controls_state = 211 # Burgas
			controls_state = 212 # Plovdiv
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 155 # North Transdanubia
							state = 974 # South Transdanubia
							state = 973 # Bacs-Bodrog
							state = 43 # Northern Hungary
							state = 154 # Alföld
							state = 80 # Bucovina
							state = 78 # Besarabia
							state = 766 # Southern Besarabia
							state = 79 # Moldova
							state = 76 # North Transylvania
							state = 83 # Crisana
							state = 84 # Transylvania
							state = 82 # Banat
							state = 81 # Oltenia
							state = 46 # Muntenia
							state = 971 # Northern Dobruja
							state = 77 # Dobruja
							state = 102 # North Slovenia
							state = 853 # Ljubljana
							state = 103 # Dalmatia
							state = 109 # Croatia
							state = 45 # Vojvodina
							state = 764 # West Banat
							state = 104 # Bosnia
							state = 804 # Herzegovina
							state = 105 # Montenegro
							state = 107 # Serbia
							state = 108 # Morava
							state = 802 # Kosovo
							state = 803 # Southern Serbia
							state = 970 # Debar
							state = 106 # Macedonia
							state = 934 # Schkoder
							state = 44 # Tirana
							state = 805 # Northern Epirus
							state = 48 # Sofia
							state = 801 # Moesia
							state = 211 # Burgas
							state = 212 # Plovdiv
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_balkan_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_aegean_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 185 # Epirus
				state = 186 # Pelopennese
				state = 47 # Attica
				state = 731 # Central Macedonia
				state = 184 # Thrace
				state = 341 # Edirne
				state = 797 # Istanbul
				state = 187 # Aegean Islands
				state = 182 # Crete
				state = 164 # Dodecanese Islands
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_aegean_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 185 # Epirus
			controls_state = 186 # Pelopennese
			controls_state = 47 # Attica
			controls_state = 731 # Central Macedonia
			controls_state = 184 # Thrace
			controls_state = 341 # Edirne
			controls_state = 797 # Istanbul
			controls_state = 187 # Aegean Islands
			controls_state = 182 # Crete
			controls_state = 164 # Dodecanese Islands
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 185 # Epirus
							state = 186 # Pelopennese
							state = 47 # Attica
							state = 731 # Central Macedonia
							state = 184 # Thrace
							state = 341 # Edirne
							state = 797 # Istanbul
							state = 187 # Aegean Islands
							state = 182 # Crete
							state = 164 # Dodecanese Islands
						}
					}
					add_core_of = ROOT
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			# Cyprus
			183 = {
				add_core_of = ROOT
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_aegean_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_belarusian_and_ukrainian_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 207 # Vitebsk
				state = 206 # Minsk
				state = 204 # Bobrysk
				state = 194 # Mozyr
				state = 241 # Gomel
				state = 199 # Proskuriv
				state = 201 # Zhytomyr
				state = 198 # Vinnytsia
				state = 202 # Kyiv
				state = 193 # Chernihiv
				state = 203 # Cherkasy
				state = 834 # Balta-Tiraspol
				state = 192 # Odessa
				state = 197 # Mykholaiv
				state = 259 # Poltava
				state = 225 # Sumy
				state = 226 # Dnipropetrovsk
				state = 196 # Kharkiv
				state = 200 # Zaporizhia
				state = 221 # Kharkiv
				state = 227 # Donetsk
				state = 228 # Luhansk
				state = 137 # Crimea
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_ukrainian_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 207 # Vitebsk
			controls_state = 206 # Minsk
			controls_state = 204 # Bobrysk
			controls_state = 194 # Mozyr
			controls_state = 241 # Gomel
			controls_state = 199 # Proskuriv
			controls_state = 201 # Zhytomyr
			controls_state = 198 # Vinnytsia
			controls_state = 202 # Kyiv
			controls_state = 193 # Chernihiv
			controls_state = 203 # Cherkasy
			controls_state = 834 # Balta-Tiraspol
			controls_state = 192 # Odessa
			controls_state = 197 # Mykholaiv
			controls_state = 259 # Poltava
			controls_state = 225 # Sumy
			controls_state = 226 # Dnipropetrovsk
			controls_state = 196 # Kharkiv
			controls_state = 200 # Zaporizhia
			controls_state = 221 # Kharkiv
			controls_state = 227 # Donetsk
			controls_state = 228 # Luhansk
			controls_state = 137 # Crimea
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 207 # Vitebsk
							state = 206 # Minsk
							state = 204 # Bobrysk
							state = 194 # Mozyr
							state = 241 # Gomel
							state = 199 # Proskuriv
							state = 201 # Zhytomyr
							state = 198 # Vinnytsia
							state = 202 # Kyiv
							state = 193 # Chernihiv
							state = 203 # Cherkasy
							state = 834 # Balta-Tiraspol
							state = 192 # Odessa
							state = 197 # Mykholaiv
							state = 259 # Poltava
							state = 225 # Sumy
							state = 226 # Dnipropetrovsk
							state = 196 # Kharkiv
							state = 200 # Zaporizhia
							state = 221 # Kharkiv
							state = 227 # Donetsk
							state = 228 # Luhansk
							state = 137 # Crimea
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_ukrainian_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_caucasian_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 233 # Sochi
				state = 827 # Kabardino-Balkaria
				state = 828 # North Ossetia
				state = 821 # Chechnya
				state = 232 # Dagestan
				state = 826 # Abkhazia
				state = 231 # Georgia
				state = 230 # Armenia
				state = 229 # Azerbaijan
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_caucasian_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 233 # Sochi
			controls_state = 827 # Kabardino-Balkaria
			controls_state = 828 # North Ossetia
			controls_state = 821 # Chechnya
			controls_state = 232 # Dagestan
			controls_state = 826 # Abkhazia
			controls_state = 231 # Georgia
			controls_state = 230 # Armenia
			controls_state = 229 # Azerbaijan
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 233 # Sochi
							state = 827 # Kabardino-Balkaria
							state = 828 # North Ossetia
							state = 821 # Chechnya
							state = 232 # Dagestan
							state = 826 # Abkhazia
							state = 231 # Georgia
							state = 230 # Armenia
							state = 229 # Azerbaijan
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_caucasian_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_kuban_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 235 # Stavropol
				state = 234 # Krasnodar
				state = 218 # Rostov
				state = 238 # Volgodonsk
				state = 245 # Millerovo
				state = 237 # Kalmykia
				state = 217 # Stalingrad
				state = 236 # Astrakhan
				state = 265 # Mikhaylovka
				state = 239 # Saratov
				state = 829 # Volga Germany
				state = 401 # Balakovo
				state = 407 # Uralsk
				state = 406 # Guryev
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_kuban_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 235 # Stavropol
			controls_state = 234 # Krasnodar
			controls_state = 218 # Rostov
			controls_state = 238 # Volgodonsk
			controls_state = 245 # Millerovo
			controls_state = 237 # Kalmykia
			controls_state = 217 # Stalingrad
			controls_state = 236 # Astrakhan
			controls_state = 265 # Mikhaylovka
			controls_state = 239 # Saratov
			controls_state = 829 # Volga Germany
			controls_state = 401 # Balakovo
			controls_state = 407 # Uralsk
			controls_state = 406 # Guryev
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 235 # Stavropol
							state = 234 # Krasnodar
							state = 218 # Rostov
							state = 238 # Volgodonsk
							state = 245 # Millerovo
							state = 237 # Kalmykia
							state = 217 # Stalingrad
							state = 236 # Astrakhan
							state = 265 # Mikhaylovka
							state = 239 # Saratov
							state = 829 # Volga Germany
							state = 401 # Balakovo
							state = 407 # Uralsk
							state = 406 # Guryev
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_kuban_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

	EU_russian_expansion_decision = {

		icon = GFX_decision_generic_nationalism

		cost = 150

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 195 # Leningrad
				state = 208 # Luga
				state = 244 # Volkhov
				state = 263 # Novgorod
				state = 209 # Pskov
				state = 210 # Nevel
				state = 246 # Rhzev
				state = 264 # Tikhvin
				state = 247 # Kalinin
				state = 248 # Yaroslavl
				state = 351 # Vologda
				state = 879 # Kargopol
				state = 880 # Kotlas
				state = 214 # Arkhangelsk
				state = 825 # Nenetsi
				state = 262 # Pechora
				state = 397 # Syktyvkar
				state = 400 # Kirov
				state = 581 # Northern Urals
				state = 398 # Perm
				state = 242 # Smolensk
				state = 243 # Roslavl
				state = 224 # Bryansk
				state = 222 # Orel
				state = 220 # Kursk
				state = 240 # Belgorod
				state = 260 # Voronezh
				state = 258 # Lipetsk
				state = 257 # Tambov
				state = 205 # Kaluga
				state = 223 # Tula
				state = 254 # Ryazan
				state = 219 # Moscow
				state = 253 # Ivanovo
				state = 255 # Penza
				state = 252 # Gorky
				state = 250 # Ulyanosky
				state = 251 # Kuybyshev
				state = 652 # Orenburg
				state = 651 # Ufa
				state = 399 # Udmurtia
				state = 249 # kazan
				state = 833 # Mari El
				state = 256 # Chuvashia
				state = 573 # Zlatoust
			}
		}

		allowed = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = WGR
				original_tag = ENG
				AND = {
					OR = {
						original_tag = AUS
						original_tag = HUN
					}
					has_dlc = "Gotterdammerung"
				}
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		visible = { 
			NOT = { has_global_flag = EU_integrated_russian_states_flag }
			has_global_flag = form_european_union_flag
		}

		available = {
			controls_state = 195 # Leningrad
			controls_state = 208 # Luga
			controls_state = 244 # Volkhov
			controls_state = 263 # Novgorod
			controls_state = 209 # Pskov
			controls_state = 210 # Nevel
			controls_state = 246 # Rhzev
			controls_state = 264 # Tikhvin
			controls_state = 247 # Kalinin
			controls_state = 248 # Yaroslavl
			controls_state = 351 # Vologda
			controls_state = 879 # Kargopol
			controls_state = 880 # Kotlas
			controls_state = 214 # Arkhangelsk
			controls_state = 825 # Nenetsi
			controls_state = 262 # Pechora
			controls_state = 397 # Syktyvkar
			controls_state = 400 # Kirov
			controls_state = 581 # Northern Urals
			controls_state = 398 # Perm
			controls_state = 242 # Smolensk
			controls_state = 243 # Roslavl
			controls_state = 224 # Bryansk
			controls_state = 222 # Orel
			controls_state = 220 # Kursk
			controls_state = 240 # Belgorod
			controls_state = 260 # Voronezh
			controls_state = 258 # Lipetsk
			controls_state = 257 # Tambov
			controls_state = 205 # Kaluga
			controls_state = 223 # Tula
			controls_state = 254 # Ryazan
			controls_state = 219 # Moscow
			controls_state = 253 # Ivanovo
			controls_state = 255 # Penza
			controls_state = 252 # Gorky
			controls_state = 250 # Ulyanosky
			controls_state = 251 # Kuybyshev
			controls_state = 652 # Orenburg
			controls_state = 651 # Ufa
			controls_state = 399 # Udmurtia
			controls_state = 249 # kazan
			controls_state = 833 # Mari El
			controls_state = 256 # Chuvashia
			controls_state = 573 # Zlatoust
		}

		days_remove = 70

		remove_effect = {

			custom_effect_tooltip = gain_cores_on_the_highlighted_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 195 # Leningrad
							state = 208 # Luga
							state = 244 # Volkhov
							state = 263 # Novgorod
							state = 209 # Pskov
							state = 210 # Nevel
							state = 246 # Rhzev
							state = 264 # Tikhvin
							state = 247 # Kalinin
							state = 248 # Yaroslavl
							state = 351 # Vologda
							state = 879 # Kargopol
							state = 880 # Kotlas
							state = 214 # Arkhangelsk
							state = 825 # Nenetsi
							state = 262 # Pechora
							state = 397 # Syktyvkar
							state = 400 # Kirov
							state = 581 # Northern Urals
							state = 398 # Perm
							state = 242 # Smolensk
							state = 243 # Roslavl
							state = 224 # Bryansk
							state = 222 # Orel
							state = 220 # Kursk
							state = 240 # Belgorod
							state = 260 # Voronezh
							state = 258 # Lipetsk
							state = 257 # Tambov
							state = 205 # Kaluga
							state = 223 # Tula
							state = 254 # Ryazan
							state = 219 # Moscow
							state = 253 # Ivanovo
							state = 255 # Penza
							state = 252 # Gorky
							state = 250 # Ulyanosky
							state = 251 # Kuybyshev
							state = 652 # Orenburg
							state = 651 # Ufa
							state = 399 # Udmurtia
							state = 249 # kazan
							state = 833 # Mari El
							state = 256 # Chuvashia
							state = 573 # Zlatoust
						}
					}
					add_core_of = ROOT
				}
			}
			 
			hidden_effect = { 
				set_global_flag = EU_integrated_russian_states_flag
			}

		}

		ai_will_do = {
			base = 200
		}
	}

}

form_mutapa_category = {

	form_mutapa = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = SAF
				original_tag = BOT
				original_tag = ZIM
				original_tag = MZB
				original_tag = BAR
				original_tag = ZAM
			}
			has_dlc = "Waking the Tiger"
		}

		visible = {
			OR = {
				original_tag = SAF
				original_tag = BOT
				original_tag = ZIM
				original_tag = MZB
				original_tag = BAR
				original_tag = ZAM
			}
			NOT = { has_global_flag = form_mutapa_flag }
		}

		available = {
			#is_subject = no
			controls_state = 541
			controls_state = 893
			controls_state = 894
			controls_state = 895
			controls_state = 681
			controls_state = 719
			controls_state = 275
			controls_state = 542
			controls_state = 545
			controls_state = 544
			controls_state = 896
			controls_state = 897
			controls_state = 771
			controls_state = 981
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 541
				state = 893
				state = 894
				state = 895
				state = 681
				state = 719
				state = 275
				state = 542
				state = 545
				state = 544
				state = 896
				state = 897
				state = 771
				state = 981
			}
		}

		complete_effect = {
			set_cosmetic_tag = MUT_UNIFIED
			541 = { add_core_of = ROOT }
			681 = { add_core_of = ROOT }
			719 = { add_core_of = ROOT }
			275 = { add_core_of = ROOT }
			542 = { add_core_of = ROOT }
			545 = { add_core_of = ROOT }
			544 = { add_core_of = ROOT }
			896 = { add_core_of = ROOT }
			897 = { add_core_of = ROOT }
			893 = { add_core_of = ROOT }
			894 = { add_core_of = ROOT }
			895 = { add_core_of = ROOT }
			771 = { add_core_of = ROOT }
			981 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.63 hours = 6 }
				set_global_flag = form_mutapa_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}

form_roman_empire_category = {

	form_roman_empire = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = ITA
				original_tag = ENG
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = form_country_albania_required_states_tt
				# Albania
				controls_state = 44
				controls_state = 934
				controls_state = 805
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_required_states_tt
				controls_state = 163
				controls_state = 853
				controls_state = 103
				controls_state = 104 
				controls_state = 804
				controls_state = 105
			}
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
				controls_state = 164 #DODECANESE initially controlled by Italy
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_turkey_required_states_tt
				controls_state = 341
				controls_state = 797
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 345
				controls_state = 344
				if = { # HATAY will most likely be handed over from FRA to TUR, this hopefully prevents some confusion
					limit = {
						799 = {
							is_controlled_by = TUR
						}
					}
					controls_state = 799
				}
			}
			# Italy
			custom_trigger_tooltip = {
				tooltip = form_spqr_italy_required_states_tt
				controls_state = 158
				controls_state = 162
				controls_state = 114
				controls_state = 2
				controls_state = 117
				controls_state = 156
				controls_state = 115
				controls_state = 849
				controls_state = 157
				controls_state = 161
				controls_state = 160
				controls_state = 736
				controls_state = 852
				controls_state = 39
				controls_state = 850
				controls_state = 849
				controls_state = 852
				controls_state = 159
			}
			# Spain
			custom_trigger_tooltip = {
				tooltip = form_spqr_coastal_spain_required_states_tt
				controls_state = 165
				controls_state = 177
				controls_state = 167
				controls_state = 168
				controls_state = 173
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_spqr_coastal_france_required_states_tt
				controls_state = 1
				controls_state = 735
				controls_state = 851
				controls_state = 21
				controls_state = 22
				controls_state = 31
			}
			# British Mediterranean
			custom_trigger_tooltip = {
				tooltip = form_mare_nostrum_coastal_uk_required_states_tt
				controls_state = 118
				controls_state = 116
				controls_state = 183
			}
			# North Africa (Morocco to Libya)
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_north_africa_required_states_tt
				#Morocco
				controls_state = 290
				controls_state = 461
				#Algeria
				controls_state = 459
				controls_state = 460
				#Tunisia
				controls_state = 458
				controls_state = 665
				#Libya
				controls_state = 448
				controls_state = 449
				controls_state = 450
				controls_state = 451
				controls_state = 661
				controls_state = 662
				controls_state = 663
			}
			# Middle East (Egypt to Syria)
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_middle_east_required_states_tt
				#Egypt
				controls_state = 452
				controls_state = 447
				controls_state = 907
				controls_state = 446
				controls_state = 453
				#Palestine
				controls_state = 454
				#Lebanon
				controls_state = 553
				#Syria
				controls_state = 677
				if = { # HATAY will most likely be handed over from FRA to TUR, this hopefully prevents some confusion
					limit = {
						799 = {
							NOT = { is_controlled_by = TUR }
						}
					}
					controls_state = 799
				}
			}
		}

		visible = {
			NOT = { has_global_flag = form_roman_empire_flag }
			OR = {
				AND = {
					original_tag = ITA
					ITA = {
						OR = {
							has_completed_focus = ITA_mare_nostrum_bba
							has_completed_focus = ITA_the_catholic_dominion
						}
					}
				}
				AND = {
					original_tag = ENG
					has_completed_focus = ENG_the_real_roman_empire
				}
			}
		}

		complete_effect = {
			set_cosmetic_tag = SPQR_UNIFIED
			custom_effect_tooltip = form_spqr_core_mare_nostrum_states_tt
 			hidden_effect = {

 				1 = { add_core_of = ROOT }
 				735 = { add_core_of = ROOT }
 				851 = { add_core_of = ROOT }
 				21 = { add_core_of = ROOT }
 				22 = { add_core_of = ROOT }
 				31 = { add_core_of = ROOT }
 				165 = { add_core_of = ROOT }
 				177 = { add_core_of = ROOT }
 				167 = { add_core_of = ROOT }
 				168 = { add_core_of = ROOT }
 				173 = { add_core_of = ROOT }
 				118 = { add_core_of = ROOT }
 				290 = { add_core_of = ROOT }
 				461 = { add_core_of = ROOT }
 				459 = { add_core_of = ROOT }
 				460 = { add_core_of = ROOT }
 				116 = { add_core_of = ROOT }
 				458 = { add_core_of = ROOT }
 				665 = { add_core_of = ROOT }
 				448 = { add_core_of = ROOT }
 				661 = { add_core_of = ROOT }
 				273 = { add_core_of = ROOT }
 				662 = { add_core_of = ROOT }
 				449 = { add_core_of = ROOT }
 				450 = { add_core_of = ROOT }
 				663 = { add_core_of = ROOT }
 				451 = { add_core_of = ROOT }
 				452 = { add_core_of = ROOT }
 				447 = { add_core_of = ROOT }
 				907 = { add_core_of = ROOT }
 				446 = { add_core_of = ROOT }
 				453 = { add_core_of = ROOT }
 				454 = { add_core_of = ROOT }
 				553 = { add_core_of = ROOT }
 				183 = { add_core_of = ROOT }
 				677 = { add_core_of = ROOT }
 				799 = { add_core_of = ROOT }
 				344 = { add_core_of = ROOT }
 				345 = { add_core_of = ROOT }
 				342 = { add_core_of = ROOT }
 				164 = { add_core_of = ROOT }
 				182 = { add_core_of = ROOT }
 				339 = { add_core_of = ROOT }
 				187 = { add_core_of = ROOT }
 				340 = { add_core_of = ROOT }
 				797 = { add_core_of = ROOT }
 				341 = { add_core_of = ROOT }
 				184 = { add_core_of = ROOT }
 				731 = { add_core_of = ROOT }
 				47 = { add_core_of = ROOT }
 				186 = { add_core_of = ROOT }
 				185 = { add_core_of = ROOT }
 				805 = { add_core_of = ROOT }
 				44 = { add_core_of = ROOT }
 				934 = { add_core_of = ROOT }
 				105 = { add_core_of = ROOT }
 				103 = { add_core_of = ROOT }
 				163 = { add_core_of = ROOT }
 				804 = { add_core_of = ROOT }
 				104 = { add_core_of = ROOT }
 				853 = { add_core_of = ROOT }

 			}
			
			
			hidden_effect = {
				news_event = { id = wtt_news.64 hours = 6 }
				set_global_flag = form_roman_empire_flag
				if = {
					limit = {
						has_country_leader = { ruling_only = yes character = ITA_benito_mussolini }
					}
					ITA_benito_mussolini = {
						set_character_name = {
							name = ITA_benito_mussolini_roman_emperor
						}
						set_portraits = {
							civilian = { large = GFX_portrait_italy_emperor_mussolini }
						}
					}
				}
				#else_if = { #Skipping Balbo and Grandi for now since they have no roman emperor portraits
				#	limit = {
				#		has_country_leader = { ruling_only = yes character = ITA_italo_balbo }
				#	}
				#	ITA_italo_balbo = {
				#		set_character_name = {
				#			name = ITA_italo_balbo_roman_emperor
				#		}
				#	}
				#}
				#else_if = { #Skipping Balbo and Grandi for now since they have no roman emperor portraits
				#	limit = {
				#		has_country_leader = { ruling_only = yes character = ITA_dino_grandi }
				#	}
				#	ITA_dino_grandi = {
				#		set_character_name = {
				#			name = ITA_dino_grandi_roman_emperor
				#		}
				#	}
				#}
				else_if = { #Skipping Balbo and Grandi for now since they have no roman emperor portraits
					limit = {
						has_country_leader = { ruling_only = yes character = ITA_vittorio_emanuele_iii }
					}
					ITA_vittorio_emanuele_iii = {
						set_character_name = {
							name = ITA_vittorio_emanuele_iii_roman_emperor
						}
						set_portraits = {
							civilian = { large = GFX_portrait_ITA_emperor_vittorio_emanuele_III }
						}
					}
				}
				else_if = { #Skipping Balbo and Grandi for now since they have no roman emperor portraits
					limit = {
						has_country_leader = { ruling_only = yes character = ITA_prince_umberto }
					}
					ITA_prince_umberto = {
						set_character_name = {
							name = ITA_prince_umberto_roman_emperor
						}

						set_portraits = {
							civilian = { large = GFX_portrait_ITA_emperor_umberto }
						}
					}
				}
				if = {
					limit = {
						has_government = fascism
					}
					ITA_remove_king_vittorio_emanuele_as_idea = yes
				}
			}

			add_stability = 0.1

		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}


	reintigrate_hispania = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 794 #Eastern Aragon
			controls_state = 166 #Western Aragon
			controls_state = 172 #Navarra
			controls_state = 792 #Pais Vasco
			controls_state = 790 #Asturias
			controls_state = 171 #Galicia
			controls_state = 174 #Leon
			controls_state = 791 #Valladolid
			controls_state = 176 #Burgos
			controls_state = 793 #Guadalajara
			controls_state = 788 #Salamanca
			controls_state = 41 #Madrid
			controls_state = 175 #Ciudad Real
			controls_state = 170 #Extramadura
			controls_state = 789 #Cordoba
			controls_state = 169 #Sevilla
			controls_state = 179 #Beja
			controls_state = 795 #Santarem
			controls_state = 112 #Lisbon
			controls_state = 181 #Guarda
			controls_state = 180 #Porto

		}

		visible = {
			original_tag = ITA
			NOT = { has_global_flag = reclaim_hispania_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# Eastern Aragon
			794 = { add_core_of = ROOT }

			# Western Aragon
			166 = { add_core_of = ROOT }

			# Navarra
			172 = { add_core_of = ROOT }

			# Pais Vasco
			792 = { add_core_of = ROOT }

			# Asturias
			790 = { add_core_of = ROOT }

			# Galicia
			171 = { add_core_of = ROOT }

			# Leon
			174 = { add_core_of = ROOT }

			# Valladolid
			791 = { add_core_of = ROOT }

			# Burgos
			176 = { add_core_of = ROOT }

			# Guadalajara
			793 = { add_core_of = ROOT }

			# Salamanca
			788 = { add_core_of = ROOT }

			# Madrid
			41 = { add_core_of = ROOT }

			# Ciudad Real
			175 = { add_core_of = ROOT }

			# Extramadura
			170 = { add_core_of = ROOT }

			# Cordoba
			789 = { add_core_of = ROOT }

			# Sevilla
			169 = { add_core_of = ROOT }

			# Beja
			179 = { add_core_of = ROOT }

			# Santarem
			795 = { add_core_of = ROOT }

			# Lisbon
			112 = { add_core_of = ROOT }

			# Guarda
			181 = { add_core_of = ROOT }

			# Porto
			180 = { add_core_of = ROOT }
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = reclaim_hispania_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}


	reintigrate_dacia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 76 #North Transylvania
			controls_state = 84 #Transylvania
			controls_state = 83 #Crisana
			controls_state = 81 #Oltenia
			controls_state = 82 #Banat
			controls_state = 764 #West Banat

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = reclaim_dacia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# North Transylvania
			76 = { add_core_of = ROOT }

			# Transylvania
			84 = { add_core_of = ROOT }

			# Crisana
			83 = { add_core_of = ROOT }

			# Oltenia
			81 = { add_core_of = ROOT }

			# Banat
			82 = { add_core_of = ROOT }

			# West Banat
			764 = { add_core_of = ROOT }

			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = reclaim_dacia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}


	reintigrate_moesia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 766 #Southern Bessarabia

			controls_state = 46 #Muntenia

			controls_state = 971 #Constanta

			controls_state = 77 #Dobrudja

			controls_state = 211 #Burgas

			controls_state = 801 #Moesia

			controls_state = 212 #Plovdiv

			controls_state = 48 #Sofia

			controls_state = 803 #Southern Serbia

			controls_state = 106 #Macedonia

			controls_state = 970 #Debar
 
			controls_state = 802 #Kosovo

			controls_state = 108 #Morava

			controls_state = 107 #Serbia
			

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = reclaim_moesia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# Southern Bessarabia
			766 = { add_core_of = ROOT }

			# Muntenia
			46 = { add_core_of = ROOT }

			# Constanta
			971 = { add_core_of = ROOT }

			# Dobrudja
			77 = { add_core_of = ROOT }

			# Burgas
			211 = { add_core_of = ROOT }

			# Moesia
			801 = { add_core_of = ROOT }

			# Plovdiv
			212 = { add_core_of = ROOT }

			# Sofia
			48 = { add_core_of = ROOT }

			# Southern Serbia
			803 = { add_core_of = ROOT }

			# Macedonia
			106 = { add_core_of = ROOT }

			# Debar
			970 = { add_core_of = ROOT }

			# Kosovo
			802 = { add_core_of = ROOT }

			# Morava
			108 = { add_core_of = ROOT }

			# Serbia
			107 = { add_core_of = ROOT }



			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = reclaim_moesia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	reintigrate_aegyptus = {

		icon = GFX_decision_generic_nationalism

		cost = 75

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 552 #Western Desert
			controls_state = 456 #Aswan
			controls_state = 457 #Eastern Desert

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = reclaim_aegyptus_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# Western Desert
			552 = { add_core_of = ROOT }

			# Aswan
			456 = { add_core_of = ROOT }

			# Eastern Desert
			457 = { add_core_of = ROOT }

			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = reclaim_aegyptus_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_mesopotamia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 656 #Kuwait
			controls_state = 291 #Baghdad
			controls_state = 675 #Al Hajara
			controls_state = 676 #Mosul
			controls_state = 680 #Deir-az-Zur
			controls_state = 350 #Diyarbakir

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = restore_mesopotamia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
 

			# Kuwait
			656 = { add_core_of = ROOT }

			# Baghdad
			291 = { add_core_of = ROOT }

			# Al Hajara
			675 = { add_core_of = ROOT }

			# Mosul
			676 = { add_core_of = ROOT }

			# Deir-az-Zur
			680 = { add_core_of = ROOT }

			# Diyarbakir
			350 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = restore_mesopotamia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	reconquer_galatia_et_cappadocia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 347 #Izmit
			controls_state = 49 #Ankara
			controls_state = 343 #Afyon
			controls_state = 346 #Konya
			controls_state = 356 #Kastamonu
			controls_state = 798 #Amasya
			controls_state = 348 #Kayseri
			controls_state = 349 #Sivas
			controls_state = 355 #Samsun
			controls_state = 354 #Trabzon
			

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = reconquer_cappadocia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
 

			# Izmit
			347 = { add_core_of = ROOT }

			# Ankara
			49 = { add_core_of = ROOT }

			# Afyon
			343 = { add_core_of = ROOT }

			# Konya
			346 = { add_core_of = ROOT }

			# Kastamonu
			356 = { add_core_of = ROOT }

			# Amasya
			798 = { add_core_of = ROOT }

			# Kayseri
			348 = { add_core_of = ROOT }

			# Sivas
			349 = { add_core_of = ROOT } 

			# Samsun
			355 = { add_core_of = ROOT }

			# Trabzon
			354 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = reconquer_cappadocia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	integrate_armenian_lands = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 230 #Armenia
			controls_state = 800 #Van
			controls_state = 353 #Tunceli
			controls_state = 352 #Hakkari
			

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_armenia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Armenia
			230 = { add_core_of = ROOT }

			# Van
			800 = { add_core_of = ROOT }

			# Tunceli
			353 = { add_core_of = ROOT }

			# Hakkari
			352 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_armenia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_order_in_arabia_petra = {

		icon = GFX_decision_generic_nationalism

		cost = 75

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 554 #Damascus
			controls_state = 455 #Jordan
			controls_state = 854 #Jawf
			controls_state = 855 #Tabuk
			

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_petra_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Damascus
			554 = { add_core_of = ROOT }

			# Jordan
			455 = { add_core_of = ROOT }

			# Jawf
			854 = { add_core_of = ROOT }

			# Tabuk
			855 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_petra_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_order_in_mauretania = {

		icon = GFX_decision_generic_nationalism

		cost = 75

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 513 #Tlemcen
			controls_state = 514 #Algerian Desert
			controls_state = 462 #Marrakech
			controls_state = 783 #Sidi Ifni

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_mauretania_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Tlemcen
			513 = { add_core_of = ROOT }

			# Algerian Desert
			514 = { add_core_of = ROOT }

			# Marrakech
			462 = { add_core_of = ROOT }

			# Sidi Ifni
			783 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_mauretania_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	return_to_pannonia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 43 #Northern Hungary
			controls_state = 973 #Bacs
			controls_state = 974 #Southern Transdanubia
			controls_state = 154 #Alföld
			controls_state = 155 #Transdanubia
			controls_state = 45 #Vojvodina
			controls_state = 109 #Croatia
			controls_state = 102 #North Slovenia

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_pannonia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Northern Hungary
			43 = { add_core_of = ROOT }

			# Alföld
			154 = { add_core_of = ROOT }

			# Bacs
			973 = { add_core_of = ROOT }

			# Transdanubia
			155 = { add_core_of = ROOT }

			# South Transdanubia
			974 = { add_core_of = ROOT }

			# Vojvodina
			45 = { add_core_of = ROOT }

			# Croatia
			109 = { add_core_of = ROOT }

			# North Slovenia
			102 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_pannonia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_roman_rule_to_raetia_et_noricum = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 4 #Lower Austria
			controls_state = 152 #Upper Austria
			controls_state = 153 #Tyrol
			controls_state = 848 #Vorarlberg
			controls_state = 975 #Burgenland
			controls_state = 976 #Steirmark Kärten
			controls_state = 151 #Eastern Swiss Alps
			controls_state = 846 #Ticino
			controls_state = 847 #Western Swiss Alps
			controls_state = 3 #Swiss Plateu
			controls_state = 845 #Jura Mountains

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_alps_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Lower Austria 
			4 = { add_core_of = ROOT }

			# Upper Austria
			152 = { add_core_of = ROOT }

			# Tyrol
			153 = { add_core_of = ROOT }
			
			# Vorarlberg
			848 = { add_core_of = ROOT }

			#Burgenland
			975 = { add_core_of = ROOT }

			#Steirmark Kärten
			976 = { add_core_of = ROOT }

			# Eastern Swiss Alps
			151 = { add_core_of = ROOT }

			# Ticino
			846 = { add_core_of = ROOT }

			# Western Swiss Alps
			847 = { add_core_of = ROOT }

			# Swiss Plateu
			3 = { add_core_of = ROOT }

			# Jura Mountains
			845 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_alps_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_roman_rule_to_gaul = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 806 #Pyrenees-Atlantiques
			controls_state = 19 #Aquitaine
			controls_state = 25 #Limousin
			controls_state = 26 #Auveragne
			controls_state = 20 #Rhone
			controls_state = 32 #Alpes
			controls_state = 33 #Centre-Sud
			controls_state = 23 #Poitou
			controls_state = 30 #Loire
			controls_state = 14 #Brittany
			controls_state = 27 #Bourgogne
			controls_state = 17 #Franche-Comte
			controls_state = 28 #Alsace-Lorraine
			controls_state = 16 #Ile De France
			controls_state = 24 #Centre
			controls_state = 15 #Normandy
			controls_state = 785 #Picardy
			controls_state = 18 #Champagne

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_gaul_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Pyrenees-Atlantiques 
			806 = { add_core_of = ROOT }

			# Aquitaine
			19 = { add_core_of = ROOT }

			# Limousin
			25 = { add_core_of = ROOT }

			# Auveragne
			26 = { add_core_of = ROOT }

			# Rhone
			20 = { add_core_of = ROOT }

			# Alpes
			32 = { add_core_of = ROOT }

			# Centre-Sud
			33 = { add_core_of = ROOT }

			# Poitou
			23 = { add_core_of = ROOT }

			# Loire
			30 = { add_core_of = ROOT }

			# Brittany
			14 = { add_core_of = ROOT }

			# Bourgogne
			27 = { add_core_of = ROOT }

			# Franche-Comte
			17 = { add_core_of = ROOT }

			# Alsace-Lorraine
			28 = { add_core_of = ROOT }

			# Ile De France
			16 = { add_core_of = ROOT }

			# Centre
			24 = { add_core_of = ROOT }

			# Normandy
			15 = { add_core_of = ROOT }

			# Picardy
			785 = { add_core_of = ROOT }

			# Champagne
			18 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
				set_global_flag = integrate_gaul_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	restore_roman_rule_to_belgica = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 35 #Brabant
			controls_state = 6 #Vlaanderen
			controls_state = 34 #Wallonia
			controls_state = 977 #Antwerpen
			controls_state = 980 #Ardennes
			controls_state = 8 #Luxembourg
			controls_state = 29 #Nord-Pas-De-Calais
			

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = integrate_belgica_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Brabant
			35 = { add_core_of = ROOT }

			# Vlaanderen
			6 = { add_core_of = ROOT }

			# Wallonia
			34 = { add_core_of = ROOT }

			# Antwerpen
			977 = { add_core_of = ROOT }

			# Ardennes
			980 = { add_core_of = ROOT }

			# Luxembourg
			8 = { add_core_of = ROOT }

			# Nord-Pas-De-Calais
			29 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = integrate_belgica_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	occupy_iberia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 229 #Azerbaijan
			controls_state = 231 #Georgia
			controls_state = 826 #Abkhazia

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = occupy_iberia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Azerbaijan
			229 = { add_core_of = ROOT }

			# Georgia
			231 = { add_core_of = ROOT }
 
			# Abkhazia
			826 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = occupy_iberia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	return_to_britannia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 127 #Sussex
			controls_state = 123 #South-West England
			controls_state = 338 #Gloucestershire
			controls_state = 126 #Greater London Area
			controls_state = 125 #East Anglia
			controls_state = 128 #West Midlands
			controls_state = 122 #Wales
			controls_state = 129 #East Midlands
			controls_state = 132 #Lancashire
			controls_state = 130 #Yorkshire
			controls_state = 131 #Nothern England
			controls_state = 931 #Cumbria
			controls_state = 932 #Mann

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = return_to_britannia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Sussex
			127 = { add_core_of = ROOT }

			# South-West England
			123 = { add_core_of = ROOT }
 
			# Gloucestershire
			338 = { add_core_of = ROOT }

			# Greater London Area
			126 = { add_core_of = ROOT }

			# East Anglia
			125 = { add_core_of = ROOT }

			# West Midlands
			128 = { add_core_of = ROOT }

			# Wales
			122 = { add_core_of = ROOT }

			# East Midlands
			129 = { add_core_of = ROOT }

			# Lancashire
			132 = { add_core_of = ROOT }

			# Yorkshire
			130 = { add_core_of = ROOT }

			# Nothern England
			131 = { add_core_of = ROOT }

			# Cumbria
			931 = { add_core_of = ROOT } 

			# Mann
			932 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = return_to_britannia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	conquer_hibernia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 113 #Leinster
			controls_state = 135 #Munster
			controls_state = 134 #Connaught
			controls_state = 119 #Northern Ireland

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = conquer_hibernia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Leinster
			113 = { add_core_of = ROOT }

			# Munster
			135 = { add_core_of = ROOT }
 
			# Connaught
			134 = { add_core_of = ROOT }

			# Northern Ireland
			119 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = conquer_hibernia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	conquer_caledonia = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 133 #Lanark
			controls_state = 121 #Lothian
			controls_state = 136 #Aberdeenshire
			controls_state = 120 #Scottish Highlands

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = conquer_caledonia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Lanark
			133 = { add_core_of = ROOT }

			# Lothian
			121 = { add_core_of = ROOT }
 
			# Aberdeenshire
			136 = { add_core_of = ROOT }

			# Scottish Highlands
			120 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = conquer_caledonia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	avenge_teutoburg = {

		icon = GFX_decision_generic_nationalism

		cost = 100

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 7 #Holland
			controls_state = 36 #Friesland
			controls_state = 56 #Weser-Ems
			controls_state = 57 #Westfalen
			controls_state = 51 #Rhineland
			controls_state = 42 #Moselland
			controls_state = 55 #Hessen
			controls_state = 54 #Franken
			controls_state = 50 #Wurtemberg
			controls_state = 978 #Baden
			controls_state = 52 #Oberbayern
			controls_state = 53 #Niederbayern

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = avenge_teutoberg_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Holland
			7 = { add_core_of = ROOT }

			# Friesland
			36 = { add_core_of = ROOT }
 
			# Weser-Ems
			56 = { add_core_of = ROOT }

			# Westfalen
			57 = { add_core_of = ROOT }

			# Rhineland
			51 = { add_core_of = ROOT }

			# Moselland
			42 = { add_core_of = ROOT }

			# Hessen
			55 = { add_core_of = ROOT }

			# Franken
			54 = { add_core_of = ROOT }

			# Wurtemberg
			50 = { add_core_of = ROOT }

			# Baden
			978 = { add_core_of = ROOT }
 
			# Oberbayern
			52 = { add_core_of = ROOT }

			# Niederbayern
			53 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			  
			hidden_effect = { 
				set_global_flag = avenge_teutoberg_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	reestablish_the_bosporan_kingdom = {

		icon = GFX_decision_generic_nationalism

		cost = 120

		allowed = {
			original_tag = ITA
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "By Blood Alone"
			}
		}

		available = {
			
			controls_state = 192 #Odessa
			controls_state = 197 #Mykolaiv
			controls_state = 196 #Kherson
			controls_state = 137 #Crimea
			controls_state = 226 #Dnipropetrovsk
			controls_state = 200 #Zaporozhe
			controls_state = 227 #Stalino
			controls_state = 218 #Rostov
			controls_state = 234 #Krasnodar

			OR = {
				CRI = {
					exists = no
				}
				CRI = {
					is_subject_of = ITA
				}
			}

		}

		visible = { 
			original_tag = ITA
			NOT = { has_global_flag = the_bosporan_kingdom_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Odessa
			192 = { add_core_of = CRI }

			# Mykolaiv
			197 = { add_core_of = CRI }

			# Kherson
			196 = { add_core_of = CRI }

			# Dnipropetrovsk
			226 = { add_core_of = CRI }

			# Zaporozhe
			200 = { add_core_of = CRI }

			# Stalino
			227 = { add_core_of = CRI }

			# Rostov
			218 = { add_core_of = CRI }

			# Krasnodar
			234 = { add_core_of = CRI }
				
			CRI = {
				transfer_state = 192
				transfer_state = 197
				transfer_state = 196
				transfer_state = 137
				transfer_state = 226
				transfer_state = 200
				transfer_state = 227
				transfer_state = 218
				transfer_state = 234

				set_cosmetic_tag = regnum_bospori
			}

			  
			hidden_effect = { 
				set_global_flag = the_bosporan_kingdom_flag

				IF = {
					limit = {
						ITA = {
							has_government = fascism
						}
					}
					CRI = {
						set_politics = {
							ruling_party = fascism
						    elections_allowed = no
						    last_election = "1935.12.17"
						    election_frequency = 48
						}
					}
				}
				IF = {
					limit = {
						ITA = {
							has_government = neutrality
						}
					}
					CRI = {
						set_politics = {
							ruling_party = neutrality
						    elections_allowed = no
						    last_election = "1935.12.17"
						    election_frequency = 48
						}
					}
				}

				ROOT = {
					puppet = CRI
				}
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_persian_empire_category = {

	form_persian_empire = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		allowed = {
			OR = {
				original_tag = PER
				original_tag = AFG
			}
			has_dlc = "Waking the Tiger"
			NOT = {
				has_dlc = "Graveyard of Empires"
			}
		}

		available = {
			is_subject = no
			# Iran
			custom_trigger_tooltip = {
				tooltip = form_country_iran_required_states_tt
				controls_state = 419
				controls_state = 421
				controls_state = 420
				controls_state = 417
				controls_state = 413
				controls_state = 266
				controls_state = 418
				controls_state = 411
				controls_state = 412
				controls_state = 416
				controls_state = 414
				controls_state = 410
				controls_state = 1000
				controls_state = 1001
				controls_state = 1004
				controls_state = 1002
				controls_state = 1003
			}
			# Afghanistan
			custom_trigger_tooltip = {
				tooltip = form_country_afghanistan_required_states_tt
				controls_state = 415
				controls_state = 267
				controls_state = 1009
				controls_state = 1007
				controls_state = 1008
				controls_state = 1006
				controls_state = 1005
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
				controls_state = 1010
				controls_state = 1011
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 798
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 800
				controls_state = 799
			}
			# France: Syria
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
			}
			# Italy: North Africa / Dodecanese
			custom_trigger_tooltip = {
				tooltip = form_persia_italy_required_states_tt
				controls_state = 164
				controls_state = 450
				controls_state = 451
				controls_state = 663
			}
			# Britain: Egypt / Middle East
			custom_trigger_tooltip = {
				tooltip = form_persia_britain_required_states_tt
				controls_state = 452
				controls_state = 447
				controls_state = 446
				controls_state = 456
				controls_state = 457
				controls_state = 453
				controls_state = 454
				controls_state = 455
				controls_state = 183
				controls_state = 656
				controls_state = 907
			}
			controls_state = 1013
		}

		highlight_states = { 
			highlight_state_targets = {
				state = 452
				state = 447
				state = 446
				state = 456
				state = 457
				state = 453
				state = 454
				state = 455
				state = 183
				state = 656
				state = 907
				state = 164
				state = 450
				state = 451
				state = 663
				state = 677
				state = 680
				state = 553
				state = 554
				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 = 799
				state = 676
				state = 675
				state = 291
				state = 415
				state = 267
				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 = 1010
				state = 1011
				state = 1000
				state = 1001
				state = 1004
				state = 1002
				state = 1003
				state = 1009
				state = 1007
				state = 1008
				state = 1006
				state = 1005
				state = 1013
			}
		}

		visible = {
			OR = {
				original_tag = PER
				original_tag = AFG
			}
			NOT = { has_global_flag = form_persian_empire_flag }
		}

		complete_effect = {
			set_cosmetic_tag = PER_UNIFIED
			# Iran
			custom_effect_tooltip = form_country_iran_coring_states_tt
			hidden_effect = {
				419 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				1000 = { add_core_of = ROOT }
				1001 = { add_core_of = ROOT }
				1004 = { add_core_of = ROOT }
				1002 = { add_core_of = ROOT }
				1003 = { add_core_of = ROOT }
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1006 = { add_core_of = ROOT }
				1005 = { add_core_of = ROOT }
			}
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				797 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				347= { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_persia_italy_coring_states_tt
			hidden_effect = {
				164 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
			}

			1013 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.65 hours = 6 }
				set_global_flag = form_persian_empire_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_byzantine_empire_category = {

	form_byzantine_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Waking the Tiger"
			NOT = { has_dlc = "Battle for the Bosporus" }
		}

		available = {
			is_subject = no
			controls_state = 82
			controls_state = 81
			controls_state = 46
			controls_state = 971
			controls_state = 77
			#Albania
			controls_state = 44
			controls_state = 805
			controls_state = 934
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 798
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 800
				controls_state = 799 #HATAY, REMOVE FROM AVAILABLE AND ADD CORE IN EFFECT
			}
			# Bulgaria
			custom_trigger_tooltip = {
				tooltip = form_country_bulgaria_required_states_tt
				controls_state = 48
				controls_state = 212
				controls_state = 211
				controls_state = 801
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_yugoslavia_required_states_tt
				controls_state = 102
				controls_state = 853
				controls_state = 103
				controls_state = 109
				controls_state = 104
				controls_state = 45
				controls_state = 107
				controls_state = 105
				controls_state = 108
				controls_state = 106
				controls_state = 970
				controls_state = 764
				controls_state = 802
				controls_state = 803
				controls_state = 804
			}
		}

		visible = {
			NOT = { has_global_flag = form_byzantine_empire_flag }
		}

		complete_effect = {
			set_cosmetic_tag = BYZ_UNIFIED
			set_capital = { state = 341 }
			341 = { add_core_of = ROOT }
			hidden_effect = { 341 = { set_state_name = "Constantinople" } }
			set_province_name = { id = 9833 name = "Constantinople" }
			82 = { add_core_of = ROOT }
			81 = { add_core_of = ROOT }
			46 = { add_core_of = ROOT }
			971 = { add_core_of = ROOT }
			77 = { add_core_of = ROOT }
			#Albania
			44 = { add_core_of = ROOT }
			805 = { add_core_of = ROOT }
			934 = { add_core_of = ROOT }
			# Greece
			custom_effect_tooltip = form_country_greece_coring_states_tt
			hidden_effect = {
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				341 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
			}
			# Bulgaria
			custom_effect_tooltip = form_country_bulgaria_coring_states_tt
			hidden_effect = {
				48 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
			}
			# Yugoslavia
			custom_effect_tooltip = form_country_yugoslavia_coring_states_tt
			hidden_effect = {
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				
			}
			hidden_effect = {
				news_event = { id = wtt_news.66 hours = 6 }
				set_global_flag = form_byzantine_empire_flag
			}
			set_country_flag = achivement_i_swear_im_not_a_byzantophile
			set_country_flag = achivement_istanbul_is_constantinople_again
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	byz_restore_byzantium = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			has_completed_focus = GRE_reviving_the_double_headed_eagle
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 798
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 800
			}
		}

		visible = {
			AND = { 
				has_completed_focus = GRE_horror_and_fear
				has_government = fascism
			}
			NOT = { has_global_flag = form_byzantine_empire_flag }
		}

		complete_effect = {
			set_country_flag = GRE_byz_unified_flag
			GRE_set_appropriate_cosmetic_tag = yes
			set_capital = { state = 797 }
			797 = { add_core_of = ROOT }
			hidden_effect = { 797 = { set_state_name = "Constantinople" } }
			set_province_name = { id = 9833 name = "Constantinople" }
			# Greece
			custom_effect_tooltip = form_country_greece_coring_states_tt
			hidden_effect = {
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				731 = { set_state_name = "Thessalonica" }
				184 = { set_state_name = "Strymon" }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				341 = { add_core_of = ROOT }
				340 = { set_state_name = "Thracia" }
				set_province_name = { id = 947 name = "Prusa" }
				340 = { add_core_of = ROOT }
				340 = { set_state_name = "Prusa" }
				set_province_name = { id = 947 name = "Prusa" }
				339 = { add_core_of = ROOT }
				339 = { set_state_name = "Samos" }
				set_province_name = { id = 4112 name = "Smyrna" }
				342 = { add_core_of = ROOT }
				342 = { set_state_name = "Cibyrrhaeot" }
				set_province_name = { id = 1005 name = "Attaleia" }
				343 = { add_core_of = ROOT }
				343 = { set_state_name = "Thrakesion" }
				set_province_name = { id = 9878 name = "Nicopolis" }
				set_province_name = { id = 10041 name = "Attouda" }
				347 = { add_core_of = ROOT }
				347 = { set_state_name = "Optimaton" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Pontoheraclea" }
				49 = { add_core_of = ROOT }
				49 = { set_state_name = "Bukellarion" }
				set_province_name = { id = 11747 name = "Ancyra" }
				set_province_name = { id = 3951 name = "Dorylaion" }
				346 = { add_core_of = ROOT }
				346 = { set_state_name = "Anatolikon" }
				set_province_name = { id = 940 name = "Ikonion" }
				345 = { add_core_of = ROOT }
				345 = { set_state_name = "Seleucia" }
				set_province_name = { id = 10056 name = "Hadrianopolis" }
				356 = { add_core_of = ROOT }
				356 = { set_state_name = "Paphlagonia" }
				set_province_name = { id = 6995 name = "Sinope" }
				set_province_name = { id = 6938 name = "Kastamone" }
				348 = { add_core_of = ROOT }
				348 = { set_state_name = "Cappadocia" }
				set_province_name = { id = 3870 name = "Caesarea" }
				344 = { add_core_of = ROOT }
				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 = "Ravanda" }
				355 = { add_core_of = ROOT }
				355 = { set_state_name = "Armeniakon" }
				set_province_name = { id = 11881 name = "Amisos" }
				349 = { add_core_of = ROOT }
				349 = { set_state_name = "Koloneia" }
				set_province_name = { id = 9777 name = "Sebasteia" }
				798 = { add_core_of = ROOT }
				798 = { set_state_name = "Carsiano" }
				set_province_name = { id = 919 name = "Amaseia" }
				set_province_name = { id = 3862 name = "Taouion" }
				350 = { add_core_of = ROOT }
				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 = { add_core_of = ROOT }
				354 = { set_state_name = "Chaldia" }
				set_province_name = { id = 9932 name = "Trebizond" }
				353 = { add_core_of = ROOT }
				353 = { set_state_name = "Manzikert" }
				set_province_name = { id = 11853 name = "Theodosiopolis" }
				352 = { add_core_of = ROOT }
				352 = { set_state_name = "Hubushkia" }
				set_province_name = { id = 12476 name = "Kondylis" }
				800 = { add_core_of = ROOT }
				800 = { set_state_name = "Vaspurakan" }
				set_province_name = { id = 6935 name = "Eua" }
				799 = { add_core_of = ROOT }
				799 = { set_state_name = "Antioch" }
				set_province_name = { id = 12029 name = "Antiochia" }
			}
			hidden_effect = {
				news_event = { id = wtt_news.66 hours = 6 }
				set_global_flag = form_byzantine_empire_flag
				swap_ruler_traits = { remove = archon_basileus add = autokrator }
			}
			set_country_flag = achivement_i_swear_im_not_a_byzantophile
			set_country_flag = achivement_istanbul_is_constantinople_again
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	byz_triumph_for_the_balkans = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			# Albania
			custom_trigger_tooltip = {
				tooltip = form_country_dyrrachium_required_states_tt
				controls_state = 44
				controls_state = 105
				controls_state = 805
				controls_state = 934
			}
			# Romania
			custom_trigger_tooltip = {
				tooltip = form_country_paristrion_required_states_tt
				controls_state = 82
				controls_state = 81
				controls_state = 46
				controls_state = 971
				controls_state = 77
				controls_state = 766
			}
			# Bulgaria
			custom_trigger_tooltip = {
				tooltip = form_country_boulgarias_required_states_tt
				controls_state = 48
				controls_state = 212
				controls_state = 211
				controls_state = 106
				controls_state = 970
				controls_state = 801
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_sirmium_required_states_tt
				controls_state = 102
				controls_state = 853
				controls_state = 103
				controls_state = 109
				controls_state = 104
				controls_state = 45
				controls_state = 107
				controls_state = 108
				controls_state = 802
				controls_state = 803
				controls_state = 804
				controls_state = 764
			}
		}

		visible = {
			if = {
				limit = { has_dlc = "Battle for the Bosporus" }
				has_completed_focus = GRE_byzantine_themata
			}
			NOT = { has_global_flag = triumph_for_the_balkans }
		}

		complete_effect = {
			# Albania
			custom_effect_tooltip = form_country_dyrrachium_coring_states_tt
			hidden_effect = {
				44 = { add_core_of = ROOT }
				44 = { set_state_name = "Illyria" }
				set_province_name = { id = 9914 name = "Kastrioti" }
				set_province_name = { id = 11767 name = "Aulon" }
				105 = { add_core_of = ROOT }
				105 = { set_state_name = "Dyrrhachion" }
				set_province_name = { id = 9809 name = "Dyrrhachium" }
				805 = { add_core_of = ROOT }
				set_province_name = { id = 914 name = "Argyrokastro" }
				934 = { add_core_of = ROOT }
			}
			# Romania
			custom_effect_tooltip = form_country_paristrion_coring_states_tt
			hidden_effect = {
				82 = { add_core_of = ROOT }
				82 = { set_state_name = "Pannonia" }
				81 = { add_core_of = ROOT }
				48 = { set_state_name = "Wallachia" }
				set_province_name = { id = 6652 name = "Pelendava" }
				46 = { add_core_of = ROOT }
				971 = { add_core_of = ROOT }
				46 = { set_state_name = "Paristrion" }
				set_province_name = { id = 9617 name = "Kosmidis" }
				set_province_name = { id = 3663 name = "Tarnovo" }
				77 = { add_core_of = ROOT }
				77 = { set_state_name = "Anchialus" }
				set_province_name = { id = 11597 name = "Mesembria" }
				766 = { add_core_of = ROOT }
				766 = { set_state_name = "Silistra" }
				set_province_name = { id = 6727 name = "Velissarios" }
				
			}
			# Bulgaria
			custom_effect_tooltip = form_country_boulgarias_coring_states_tt
			hidden_effect = {
				48 = { add_core_of = ROOT }
				48 = { set_state_name = "Philippopolis" }
				set_province_name = { id = 949 name = "Serdica" }
				212 = { add_core_of = ROOT }
				212 = { set_state_name = "Philippopolis" }
				set_province_name = { id = 6923 name = "Philippopolis" }
				211 = { add_core_of = ROOT }
				211 = { set_state_name = "Pyrgos" }
				set_province_name = { id = 9902 name = "Poros" }
				set_province_name = { id = 9783 name = "Odessos" }
				106 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				106 = { set_state_name = "Boulgarias" }
				set_province_name = { id = 3882 name = "Scupi" }
				731 = { set_state_name = "Macedonia" }
				801 = { add_core_of = ROOT }
			}
			# Yugoslavia
			custom_effect_tooltip = form_country_sirmium_coring_states_tt
			hidden_effect = {
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				set_province_name = { id = 3924 name = "Spalatum" }
				109 = { add_core_of = ROOT }
				set_province_name = { id = 11581 name = "Venizelos" }
				104 = { add_core_of = ROOT }
				104 = { set_state_name = "Bosona" }
				45 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				107 = { set_state_name = "Sirmium" }
				set_province_name = { id = 11586 name = "Belograd" }
				108 = { add_core_of = ROOT }
				108 = { set_state_name = "Pizren" }
				set_province_name = { id = 9602 name = "Naissus" }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
			}
			hidden_effect = {
				set_global_flag = triumph_for_the_balkans
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	byz_triumph_for_italy = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Battle for the Bosporus"
			}
		}

		available = {
			is_subject = no
			# Italy
			custom_trigger_tooltip = {
				tooltip = form_eu_italy_required_states_tt
				controls_state = 158
				controls_state = 159
				controls_state = 39
				controls_state = 160
				controls_state = 161
				controls_state = 162
				controls_state = 157
				controls_state = 2
				controls_state = 117
				controls_state = 156
				controls_state = 115
				controls_state = 736
				controls_state = 849
				controls_state = 850
				controls_state = 852
				controls_state = 163
			}
		}

		visible = {
			original_tag = GRE
			NOT = { has_global_flag = triumph_for_italy }
			if = {
				limit = {
					has_dlc = "Battle for the Bosporus"
				}
				has_completed_focus = GRE_byzantine_themata
			}
		}

		complete_effect = {
			# Italy
			custom_effect_tooltip = form_eu_italy_coring_states_tt
			hidden_effect = {
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				set_global_flag = triumph_for_italy
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	byz_triumph_for_middle_east = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Battle for the Bosporus"
			}
		}

		available = {
			is_subject = no
			# France: Syria
			controls_state = 677
			controls_state = 680
			controls_state = 553
			controls_state = 554
			# Italy: Dodecanese
			controls_state = 164
			# Britain: Middle East
			controls_state = 453
			controls_state = 454
			controls_state = 455
			controls_state = 183
			controls_state = 799
		}

		visible = {
			original_tag = GRE
			NOT = { has_global_flag = triumph_for_middle_east }
			if = {
				limit = { has_dlc = "Battle for the Bosporus"}
				has_completed_focus = GRE_byzantine_themata
			}
		}

		complete_effect = {
			677 = { add_core_of = ROOT }
			680 = { add_core_of = ROOT }
			553 = { add_core_of = ROOT } 
			554 = { add_core_of = ROOT }
			164 = { add_core_of = ROOT }
			453 = { add_core_of = ROOT }
			454 = { add_core_of = ROOT }
			455 = { add_core_of = ROOT }
			183 = { add_core_of = ROOT }
			799 = { add_core_of = ROOT }
			set_global_flag = triumph_for_middle_east
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	byz_triumph_for_egypt_and_tunis = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			if = {
				limit = { has_dlc = "Battle for the Bosporus"}
				has_completed_focus = GRE_reviving_the_double_headed_eagle
			}
			# French North Africa
			controls_state = 458
			controls_state = 665
			# Italian North Africa
			controls_state = 449
			controls_state = 662
			controls_state = 448
			controls_state = 661
			controls_state = 450
			controls_state = 451
			controls_state = 663
			# Britain: Egypt
			controls_state = 452
			controls_state = 447
			controls_state = 446
			controls_state = 456
			controls_state = 457
			controls_state = 907
		}

		visible = {
			
			NOT = { has_global_flag = triumph_for_egypt_and_tunis }
			if = {
				limit = {
					has_dlc = "Battle for the Bosporus"
				}
				has_completed_focus = GRE_byzantine_themata
			}
		}

		complete_effect = {
			458 = { add_core_of = ROOT }
			665 = { add_core_of = ROOT }
			449 = { add_core_of = ROOT }
			662 = { add_core_of = ROOT }
			448 = { add_core_of = ROOT }
			661 = { add_core_of = ROOT }
			450 = { add_core_of = ROOT }
			451 = { add_core_of = ROOT }
			663 = { add_core_of = ROOT }
			452 = { add_core_of = ROOT }
			447 = { add_core_of = ROOT }
			446 = { add_core_of = ROOT }
			456 = { add_core_of = ROOT }
			457 = { add_core_of = ROOT }
			907 = { add_core_of = ROOT }
			set_global_flag = triumph_for_egypt_and_tunis
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_arabia_category = {

	form_arabia = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = {
			OR = {
				# Iraq
				original_tag = IRQ
				# Saudi Arabia
				original_tag = SAU
				# Yemen
				original_tag = YEM
				# Oman
				original_tag = OMA
				# Egypt
				original_tag = EGY
				# Libya
				original_tag = LBA
				# Jordan
				original_tag = JOR
				# Palestine
				original_tag = PAL
				# Lebanon
				original_tag = LEB
				# Syria
				original_tag = SYR
				# Kuwait
				original_tag = KUW
				# United Arab Emirates
				original_tag = UAE
				# Qatar
				original_tag = QAT
				# Tunisia
				original_tag = TUN
				# Algeria
				original_tag = ALG
				# Morocco
				original_tag = MOR
				# Sahrawi Arab Republic
				original_tag = WES
				# Mauretania
				original_tag = MRT
				# Sudan
				original_tag = SUD
				# Bahrain
				original_tag = BHR
				# South Arabia
				original_tag = FSA
				# Imamate of Oman
				original_tag = IMO
			}
			NOT = { has_global_flag = form_arabia_flag }
		}

		highlight_states = { 
			highlight_state_targets = {
				state = 293 
				state = 992 
				state = 659 
				state = 906 
				state = 658 
				state = 765 
				state = 294 
				state = 1014
				state = 1013
				state = 1015
				state = 1016
				state = 292
				state = 679
				state = 678
				state = 857
				state = 858
				state = 854
				state = 855
				state = 856
				state = 859
				state = 293
			}
		}

		available = {
			
			# Saudi Arabia + Yemen
			controls_state = 292
			controls_state = 679
			controls_state = 678
			controls_state = 857
			controls_state = 858
			controls_state = 854
			controls_state = 855
			controls_state = 856
			controls_state = 859
			controls_state = 293

			# Omani States
			controls_state = 1013 # Musandam
			controls_state = 1015 # Oman
			controls_state = 1016 # Dhofar
			controls_state = 294 # Muscat

		}

		complete_effect = {

			set_cosmetic_tag = ARA_UNIFIED
			
			# Saudi Arabia
			custom_effect_tooltip = form_country_saudi_coring_states_tt
			hidden_effect = {
				292 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
			}

			293 = { add_core_of = ROOT } # Yemen
			992 = { add_core_of = ROOT } # Aden Province
			659 = { add_core_of = ROOT } # South Yemen
			906 = { add_core_of = ROOT } # Socotra		
			658 = { add_core_of = ROOT } # Trucial States
			765 = { add_core_of = ROOT } # Qatar
			294 = { add_core_of = ROOT } # Muscat
			1014 = { add_core_of = ROOT } # Bahrain
			1013 = { add_core_of = ROOT } # Musandam
			1015 = { add_core_of = ROOT } # Oman
			1016 = { add_core_of = ROOT } # Dhofar

			hidden_effect = {
				news_event = { id = wtt_news.67 hours = 6 }
				set_global_flag = form_arabia_flag
				set_country_flag = is_arabia_flag
			}

		}

		ai_will_do = {
			base = 200
		}

	}

	# Iraq + Kuwait
	integrate_the_fertile_crescent = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 676 
				state = 675 
				state = 291 
				state = 1011
				state = 1010
				state = 656
				state = 413
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 676 
			controls_state = 675 
			controls_state = 291 
			controls_state = 1011
			controls_state = 1010

		}

		complete_effect = {
			
			676 = { add_core_of = ROOT }
			675 = { add_core_of = ROOT }
			291 = { add_core_of = ROOT }
			413 = { add_core_of = ROOT }
			656 = { add_core_of = ROOT }
			1011 = { add_core_of = ROOT }
			1010 = { add_core_of = ROOT }
			
		}

		ai_will_do = {
			base = 200
		}
	}

	# Syria + Lebanon + Jordan + Palestine
	integrate_the_levantine_states = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 677
				state = 680
				state = 553
				state = 554
				state = 455
				state = 454
				state = 799
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 677
			controls_state = 680
			controls_state = 553
			controls_state = 554
			controls_state = 455
			controls_state = 454

		}

		complete_effect = {
			
			677 = { add_core_of = ROOT } # Aleppo
			680 = { add_core_of = ROOT } # Deir az zur
			553 = { add_core_of = ROOT } # Lebanon 
			554 = { add_core_of = ROOT } # Damascus

			455 = { add_core_of = ROOT } # Jordan
			454 = { add_core_of = ROOT } # Palestine
			799 = { add_core_of = ROOT } # Hatay
			
		}

		ai_will_do = {
			base = 200
		}
	}

	# Egypt + North Sudan
	integrate_the_western_mashriq = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 907
				state = 552
				state = 452
				state = 447
				state = 446
				state = 456
				state = 457
				state = 453
				state = 551
				state = 883
				state = 767
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 907
			controls_state = 452
			controls_state = 447
			controls_state = 446
			controls_state = 456
			controls_state = 457
			controls_state = 453
			controls_state = 551
			controls_state = 883

		}

		complete_effect = {
			
			907 = { add_core_of = ROOT } # Cairo
			552 = { add_core_of = ROOT } # Western Desert
			452 = { add_core_of = ROOT } # Matrouh
			447 = { add_core_of = ROOT } # Alexandria
			446 = { add_core_of = ROOT } # Suez
			456 = { add_core_of = ROOT } # Aswan
			457 = { add_core_of = ROOT } # Eastern Desert
			453 = { add_core_of = ROOT } # Sinai
			551 = { add_core_of = ROOT } # Kharthoum
			883 = { add_core_of = ROOT } # Kassala
			767 = { add_core_of = ROOT } # North Darfur
			
		}

		ai_will_do = {
			base = 200
		}
	}

	# Libya + Tunisia
	integrate_the_eastern_maghreb = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 448
				state = 661
				state = 449
				state = 662
				state = 450
				state = 451
				state = 663
				state = 273
				state = 458
				state = 665
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 448
			controls_state = 661
			controls_state = 449
			controls_state = 662
			controls_state = 450
			controls_state = 451
			controls_state = 663
			controls_state = 458
			controls_state = 665

		}

		complete_effect = {

			# Tunisia
			458 = { add_core_of = ROOT }
			665 = { add_core_of = ROOT }
			
			# Libya
			448 = { add_core_of = ROOT }
			661 = { add_core_of = ROOT }
			449 = { add_core_of = ROOT }
			662 = { add_core_of = ROOT }
			450 = { add_core_of = ROOT }
			451 = { add_core_of = ROOT }
			663 = { add_core_of = ROOT }
			273 = { add_core_of = ROOT }
			
		}

		ai_will_do = {
			base = 200
		}
	}

	# Algeria + Morocco
	integrate_the_al_maghribiyah_and_al_jazair = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 290
				state = 783
				state = 460
				state = 513
				state = 459
				state = 461
				state = 462
				state = 514
				state = 799
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 290
			controls_state = 783
			controls_state = 460
			controls_state = 513
			controls_state = 459
			controls_state = 461
			controls_state = 462

		}

		complete_effect = {
			
			# Spanish Africa
			290 = { add_core_of = ROOT }
			783 = { add_core_of = ROOT }

			# French Africa
			460 = { add_core_of = ROOT }
			513 = { add_core_of = ROOT }
			459 = { add_core_of = ROOT }
			461 = { add_core_of = ROOT }
			462 = { add_core_of = ROOT }
			514 = { add_core_of = ROOT }

		}

		ai_will_do = {
			base = 200
		}
	}

	# West Sahara + Mauretania
	integrate_the_west_sahara = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 699
				state = 786
				state = 557
			}
		}

		allowed = {
			has_dlc = "Waking the Tiger"
		}

		visible = { 
			has_global_flag = form_arabia_flag
			has_country_flag = is_arabia_flag
		}

		available = {
			
			controls_state = 699
			controls_state = 557

		}

		complete_effect = {
			
			699 = { add_core_of = ROOT }
			786 = { add_core_of = ROOT }
			557 = { add_core_of = ROOT }
			
		}

		ai_will_do = {
			base = 200
		}
	}

}

form_majapahit_empire_category = {

	form_majapahit_empire = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 672
				state = 335
				state = 334
				state = 667
				state = 673
				state = 668
				state = 667
				state = 738
				state = 669
				state = 336
				state = 333
			}
		}

		allowed = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			
			# Dutch East Indies
			custom_trigger_tooltip = {
				tooltip = form_majapahit_nei_required_states_tt
				controls_state = 672
				controls_state = 335
				controls_state = 334
				controls_state = 667
				controls_state = 673
				controls_state = 668
				controls_state = 667
				controls_state = 738
				controls_state = 669
			}
			# British Malaya
			custom_trigger_tooltip = {
				tooltip = form_majapahit_malaya_required_states_tt
				controls_state = 336
				controls_state = 333
			}
		}

		visible = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			NOT = { has_global_flag = form_majapahit_empire_flag }
		}

		complete_effect = {
			set_cosmetic_tag = MAJ_UNIFIED
			# Dutch East Indies
			custom_effect_tooltip = form_country_nei_coring_states_tt
			hidden_effect = {
				672 = { add_core_of = ROOT }
				335 = { add_core_of = ROOT }
				334 = { add_core_of = ROOT }
				667 = { add_core_of = ROOT }
				673 = { add_core_of = ROOT }
				668 = { add_core_of = ROOT }
				667 = { add_core_of = ROOT }
				738 = { add_core_of = ROOT }
				669 = { add_core_of = ROOT }
			}
			# British Malaya
			custom_effect_tooltip = form_country_malaya_coring_states_tt
			hidden_effect = {
				336 = { add_core_of = ROOT }
				333 = { add_core_of = ROOT }
			}
			721 = { add_core_of = ROOT }
			711 = { add_core_of = ROOT }
			712 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.68 hours = 6 }
				set_global_flag = form_majapahit_empire_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	integrate_papua = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 523
				state = 979
			}
		}

		allowed = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_dlc = "Waking the Tiger"
		}

		fire_only_once = yes

		available = {
			controls_state = 523
			controls_state = 979
		}

		visible = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_global_flag = form_majapahit_empire_flag 
		}

		complete_effect = {
			523 = { add_core_of = ROOT }
			979 = { add_core_of = ROOT }
		}

		ai_will_do = {
			base = 200
		}
	}

	integrate_the_northern_malays = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 724
			}
		}

		allowed = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_dlc = "Waking the Tiger"
		}

		fire_only_once = yes

		available = {
			controls_state = 724
		}

		visible = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_global_flag = form_majapahit_empire_flag 
		}

		complete_effect = {
			724 = { add_core_of = ROOT }
		}

		ai_will_do = {
			base = 200
		}
	}

	integrate_the_philippines = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 623 
				state = 327
				state = 624
				state = 626
				state = 628
				state = 625
				state = 627
			}
		}

		allowed = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_dlc = "Waking the Tiger"
		}

		fire_only_once = yes

		available = {
			controls_state = 623 
			controls_state = 327
			controls_state = 624
			controls_state = 626
			controls_state = 628
			controls_state = 625
			controls_state = 627
		}

		visible = {
			OR = {
				original_tag = INS
				original_tag = MAL
			}
			has_global_flag = form_majapahit_empire_flag 
		}

		complete_effect = {
			623 = { add_core_of = ROOT }
			327 = { add_core_of = ROOT }
			624 = { add_core_of = ROOT }
			626 = { add_core_of = ROOT }
			628 = { add_core_of = ROOT }
			625 = { add_core_of = ROOT }
			627 = { add_core_of = ROOT }
		}

		ai_will_do = {
			base = 200
		}
	}

}

form_rattanakosin_kingdom_category = {

	form_rattanakosin_kingdom = {

		icon = generic_form_nation

		allowed = {
			original_tag = SIA
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			# Siam
			controls_state = 289
			controls_state = 868
			controls_state = 869
			controls_state = 724
			# Cambodia
			controls_state = 741
			# Laos
			controls_state = 670
		}

		visible = {
			original_tag = SIA
			NOT = { has_global_flag = form_rattanakosin_kingdom_flag }
		}

		complete_effect = {
			set_cosmetic_tag = RAT_UNIFIED
			741 = { add_core_of = ROOT }
			670 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.69 hours = 6 }
				set_global_flag = form_rattanakosin_kingdom_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_hre_category = {

	form_hre = {

		icon = generic_form_nation

		allowed = {

			OR = {
				original_tag = GER
				original_tag = ENG
				AND = {
					original_tag = AUS 
					has_dlc = "Gotterdammerung"
				}
			}
			
		}

		available = {

			is_subject = no

			# Germany
			custom_trigger_tooltip = {
				tooltip = form_hre_germany_required_states_tt
				controls_state = 51
				controls_state = 42
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 978 #BADEN
				controls_state = 59
				controls_state = 58
				controls_state = 909 #New state of SCHLESWIG
				controls_state = 60
				controls_state = 54
				controls_state = 52
				controls_state = 53
				controls_state = 61
				controls_state = 64
				controls_state = 65
				controls_state = 62
				controls_state = 68
				controls_state = 66
				controls_state = 67
				controls_state = 63
			}

			controls_state = 8
			controls_state = 28
			controls_state = 735
			controls_state = 69
			controls_state = 972
			controls_state = 9
			controls_state = 75
			controls_state = 74
			controls_state = 158
			controls_state = 159
			controls_state = 39
			controls_state = 850
			controls_state = 160
			controls_state = 161
			controls_state = 162
			controls_state = 736
			controls_state = 852
			controls_state = 102

			# Switzerland
			custom_trigger_tooltip = {
				tooltip = form_country_switzerland_required_states_tt
				controls_state = 3 #Swiss Plateau
				controls_state = 151 #Eastern Swiss Alps
				controls_state = 845 #Jura Mountains
				controls_state = 847 #Western Swiss Alps
				controls_state = 846 #Ticino
			}

			# Austria
			custom_trigger_tooltip = {
				tooltip = form_country_austria_required_states_tt
				controls_state = 848
				controls_state = 153
				controls_state = 152
				controls_state = 4
				controls_state = 848 #Vorarlberg
			}

			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}

			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 977
				controls_state = 980
			}
			
		}

		visible = {
			IF = {
				limit = {
					has_dlc = "Gotterdammerung"
				}
				OR = {
					AND = {
						original_tag = GER
						has_completed_focus = GER_restore_the_holy_roman_empire
					}
					AND = {
						original_tag = AUS
						has_government = neutrality
						has_completed_focus = AUS_legacy_of_the_empire
						OR = {
							has_country_leader = {
								ruling_only = yes # default = yes
								character = AUS_ernst_rudiger_starhemberg
							}
							has_country_leader = {
								ruling_only = yes # default = yes
								character = AUS_alois_of_liechtenstein
							}
						}
					}
					AND = {
						original_tag = ENG
						OR = {
							has_completed_focus = ENG_form_the_hre_hanover
							has_completed_focus = ENG_restore_the_hre
						}
					}
				}
			}
			ELSE_IF = {
				limit = {
					NOT = {
						has_dlc = "Gotterdammerung"
					}
				}
				OR = {
					AND = {
						original_tag = ENG
						OR = {
							has_completed_focus = ENG_form_the_hre_hanover
							has_completed_focus = ENG_restore_the_hre
						}
					}
					AND = {
						original_tag = GER
						has_government = neutrality
						has_country_leader = { 
							ruling_only = yes 
							character = GER_victoria 
						}
					}
				}
			}
			
			NOT = { has_global_flag = form_hre_flag }
		}

		complete_effect = {

			IF = {
				limit = {
					NOT = {
						has_completed_focus = ENG_imperial_federation
					}
				}
				set_cosmetic_tag = HRE_UNIFIED
			}
			IF = {
				limit = {
					tag = ENG
				}
				IF = {
					limit = {
						NOT = {
							has_completed_focus = ENG_restore_the_hre
						}
					}
					set_victory_points = {
						province = 6377
						value = 30
					}
					set_capital = {
  						state = 59
					}
					else = {
						set_capital = {
  							state = 52
						}
						IF = {
							limit = {
								controls_state = 2
							}
							set_country_flag = ENG_HRE_can_form_real_roman_empire_flag
							mark_focus_tree_layout_dirty = yes
						}
					}
				}
			}

			8 = { add_core_of = ROOT } #Luxembourg
			28 = { add_core_of = ROOT } #Alsace
			735 = { add_core_of = ROOT } #Savoy
			158 = { add_core_of = ROOT } #Piedmont
			159 = { add_core_of = ROOT } #Lombardy
			39 = { add_core_of = ROOT } #South Tyrol
			160 = { add_core_of = ROOT } #Veneto
			161 = { add_core_of = ROOT } #Emilia Romagna
			162 = { add_core_of = ROOT } #Tuscany
			736 = { add_core_of = ROOT } #Litorale
			850 = { add_core_of = ROOT } #Trentino
			852 = { add_core_of = ROOT } #Istria
			102 = { add_core_of = ROOT } #North Slovenia

			#Czechoslovakia, not all
			69 = { add_core_of = ROOT } #Sudetenland
			972 = { add_core_of = ROOT } #South Sudetenland
			9 = { add_core_of = ROOT } #Bohemia
			75 = { add_core_of = ROOT } #Moravia
			74 = { add_core_of = ROOT } #East Sudetenland

			#Germany
			custom_effect_tooltip = form_hre_germany_coring_states_tt
			hidden_effect = {
				51 = { add_core_of = ROOT } # Rhineland
				42 = { add_core_of = ROOT } # Moselland
				56 = { add_core_of = ROOT } # Weser-ems
				57 = { add_core_of = ROOT } # Westfalen
				55 = { add_core_of = ROOT } # Hessen
				50 = { add_core_of = ROOT } # Wurttemberg
				978 = { add_core_of = ROOT } # Baden
				59 = { add_core_of = ROOT } # Hannover
				58 = { add_core_of = ROOT } # Holstein
				909 = { add_core_of = ROOT } # Schleswig
				60 = { add_core_of = ROOT } # Thuringia
				54 = { add_core_of = ROOT } # Franken
				52 = { add_core_of = ROOT } # Oberbayern
				53 = { add_core_of = ROOT } # Niederbayern
				61 = { add_core_of = ROOT } # Mecklenburg
				64 = { add_core_of = ROOT } # Brandenberg
				65 = { add_core_of = ROOT } # Sachsen
				62 = { add_core_of = ROOT } # Vorpommern
				68 = { add_core_of = ROOT } # Ostmark
				66 = { add_core_of = ROOT } # Niederschlesien
				67 = { add_core_of = ROOT } # Oberschlesien
				63 = { add_core_of = ROOT } # Hinterpommern
			}

			# Switzerland
			custom_effect_tooltip = form_country_switzerland_coring_states_tt
			hidden_effect = {
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
			}

			# Austria
			custom_effect_tooltip = form_country_austria_coring_states_tt
			hidden_effect = {
				848 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				975 = { add_core_of = ROOT }
				976 = { add_core_of = ROOT }
			}

			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt
			hidden_effect = {
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
			}

			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				977 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
			}

			hidden_effect = {
				news_event = { id = wtt_news.70 hours = 6 }
				set_global_flag = form_hre_flag
			}

		}

		ai_will_do = {
			factor = 200
		}
	}
}

form_greater_german_reich_category = {

	form_greater_german_reich = {

		icon = generic_form_nation

		allowed = {
			original_tag = GER
			has_dlc = "Waking the Tiger"
		}

		cost = 25

		available = {
			is_subject = no
			16 = { #Paris
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			9 = { #Prague
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			10 = { #Warsaw
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			195 = { #Leningrad
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			219 = { #Moscow
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			217 = { #Stalingrad
				state_is_fully_controlled_by_ROOT_or_subject = yes
			}
			all_owned_state = {
				is_fully_controlled_by = ROOT
			}
		}

		visible = {
			AND = {
				original_tag = GER
				has_government = fascism
				# Should be formable by other Nazis as well
				#has_country_leader = { 
				#	ruling_only = yes 
				#	character = GER_adolf_hitler 
				#}
			}
			NOT = { has_global_flag = form_greater_german_reich_flag }
			OR = {
				AND = {
					has_war_with = FRA
					FRA = { has_capitulated = yes }
				}
				AND = {
					owns_state = 16
					has_full_control_of_state = 16
				}
				219 = {
					state_is_fully_controlled_by_ROOT_or_subject = yes
				}
			}
		}

		complete_effect = {
			add_war_support = 0.05
			add_stability = 0.05
			set_cosmetic_tag = GER_greater_german_reich
			set_province_name = { 
				id = 6521 
				name = VICTORY_POINTS_6521_Germania 
			}
			add_victory_points = {
				province = 6521
				value = 25
			}	
			hidden_effect = {
				set_global_flag = form_greater_german_reich_flag
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			if = {
				limit = {
					39 = { #Alto Adige
						NOT = { is_core_of = GER}
						any_neighbor_state = {
							is_core_of = GER
						}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						39 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 39
				}
			}
			if = {
				limit = {
					850 = { #Trentino
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
					39 = { #Alto Adige needs to be in German control to gain a core on Trentino
						any_neighbor_state = {
							is_core_of = GER
						}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						850 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 850
				}
			}
			if = {
				limit = {
					3 = { #Swiss Plateau
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						3 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 3
				}
			}
			if = {
				limit = {
					847 = { #Western Swiss Alps
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						847 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 847
				}
			}
			if = {
				limit = {
					151 = { #Eastern Swiss Alps
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						151 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 151
				}
			}
			if = {
				limit = {
					85 = { #Danzig
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						85 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 85
				}
			}
			if = {
				limit = {
					807 = { #Gdynia
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						807 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 807
				}
			}
			if = {
				limit = {
					86 = { #Poznan
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						86 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 86
				}
			}
			if = {
				limit = {
					762 = { #Katowice
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						762 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 762
				}
			}
			if = {
				limit = {
					912 = { #Sonderjylland
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
					}
				}
				if = {
					limit = {
						912 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 912
				}
			}
			if = {
				limit = {
					102 = { #North Slovenia
						NOT = { is_core_of = GER}
						state_is_fully_controlled_by_ROOT_or_subject = yes
						any_neighbor_state = {
							is_core_of = GER
						}
					}
				}
				if = {
					limit = {
						102 = {
							state_is_fully_controlled_by_ROOT_or_subject = yes
						}
					}
					add_state_core = 102
				}
			}
		}

		ai_will_do = {
			factor = 200
		}
	}
}

form_greater_german_state_category = {

	form_greater_proletarian_state = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 8
				state = 7
				state = 35
				state = 36
				state = 6
				state = 34
				state = 977
				state = 980
				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 = 851
				state = 19
				state = 1
				state = 785
				state = 31
				state = 806
				#state = 158
				#state = 159
				#state = 39
				#state = 160
				#state = 161
				#state = 162
				#state = 157
				#state = 2
				#state = 117
				#state = 156
				#state = 115
				#state = 114
				#state = 736
				#state = 849
				#state = 850
				#state = 852
				state = 51
				state = 42
				state = 56
				state = 57
				state = 55
				state = 50
				state = 978
				state = 59
				state = 58
				state = 909
				state = 60
				state = 54
				state = 52
				state = 53
				state = 61
				state = 64
				state = 65
				state = 62
				state = 68
				state = 66
				state = 67
				state = 63
				state = 5
				state = 763
				state = 127 # Sussex
				state = 123 # South-West England
				state = 338 # Gloustershire
				state = 126 # Greater London Area
				state = 125 # East Anglia
				state = 129 # East Midlands
				state = 128 # West Midlands
				state = 122 # Wales
				state = 132 # Lancashire
				state = 130 # Yorkshire
				state = 931 # Cumbria
				state = 131 # Northumberland
				state = 133 # Lanark
				state = 121 # Lothian
				state = 136 # Aberdeenshire
				state = 120 # Scottish Highlands
			}
		}

		allowed = {
			has_dlc = "Gotterdammerung"
			original_tag = GER
		}

		visible = {
			is_major = yes
			has_completed_focus = GER_hegemony_over_europe
			NOT = { has_global_flag = form_greater_proletarian_state_flag }
		}

		available = {
			is_subject = no

			controls_state = 8

			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}

			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 977
				controls_state = 980
			}

			# France
			custom_trigger_tooltip = {
				tooltip = form_eu_france_required_states_tt
				controls_state = 29
				controls_state = 18
				controls_state = 17
				controls_state = 28
				controls_state = 15
				controls_state = 16
				controls_state = 27
				controls_state = 14
				controls_state = 30
				controls_state = 24
				controls_state = 23
				controls_state = 33
				controls_state = 26
				controls_state = 20
				controls_state = 32
				controls_state = 735
				controls_state = 25
				controls_state = 22
				controls_state = 21
				controls_state = 851
				controls_state = 19
				controls_state = 1
				controls_state = 785
				controls_state = 31
				controls_state = 806
			}

			# Italy
			#custom_trigger_tooltip = {
			#	tooltip = form_eu_italy_required_states_tt
			#	controls_state = 158
			#	controls_state = 159
			#	controls_state = 39
			#	controls_state = 160
			#	controls_state = 161
			#	controls_state = 162
			#	controls_state = 157
			#	controls_state = 2
			#	controls_state = 117
			#	controls_state = 156
			#	controls_state = 115
			#	controls_state = 114
			#	controls_state = 736
			#	controls_state = 849
			#	controls_state = 850
			#	controls_state = 852
			#}

			# Germany
			custom_trigger_tooltip = {
				tooltip = form_country_germany_required_states_tt
				controls_state = 51
				controls_state = 42
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 978 #BADEN
				controls_state = 59
				controls_state = 58
				controls_state = 909 #New state of SCHLESWIG
				controls_state = 60
				controls_state = 54
				controls_state = 52
				controls_state = 53
				controls_state = 61
				controls_state = 64
				controls_state = 65
				controls_state = 62
				controls_state = 68
				controls_state = 66
				controls_state = 67
				controls_state = 63
				controls_state = 5
				controls_state = 763
			}

			custom_trigger_tooltip = {
				tooltip = form_proletarian_state_british_mainland_required_states_tt
				controls_state = 127 # Sussex
				controls_state = 123 # South-West England
				controls_state = 338 # Gloustershire
				controls_state = 126 # Greater London Area
				controls_state = 125 # East Anglia
				controls_state = 129 # East Midlands
				controls_state = 128 # West Midlands
				controls_state = 122 # Wales
				controls_state = 132 # Lancashire
				controls_state = 130 # Yorkshire
				controls_state = 931 # Cumbria
				controls_state = 131 # Northumberland
				controls_state = 133 # Lanark
				controls_state = 121 # Lothian
				controls_state = 136 # Aberdeenshire
				controls_state = 120 # Scottish Highlands
			}
		}

		complete_effect = {
			set_global_flag = form_greater_proletarian_state_flag
			set_cosmetic_tag = GER_greater_proletarian_german_state

			custom_effect_tooltip = generic_skip_one_line_tt

			8 = { add_core_of = ROOT } # Luxembourg

			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt 
			hidden_effect = {
				7 = { add_core_of = ROOT } # Holland
				35 = { add_core_of = ROOT } # Brabant
				36 = { add_core_of = ROOT } # Friesland
			}

			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT } # Vlaanderen
				34 = { add_core_of = ROOT } # Wallonie
				977 = { add_core_of = ROOT } # Antwerp
				980 = { add_core_of = ROOT } # Ardennes
			}

			# France
			custom_effect_tooltip = form_eu_france_coring_states_tt
			hidden_effect = {
				29 = { add_core_of = ROOT } # Nord-pas-de-calais
				18 = { add_core_of = ROOT } # Champagne
				17 = { add_core_of = ROOT } # Franche-Comte
				28 = { add_core_of = ROOT } # Alsace-Lorraine
				15 = { add_core_of = ROOT } # Normandy
				16 = { add_core_of = ROOT } # Ile de France
				27 = { add_core_of = ROOT } # Bourgogne
				14 = { add_core_of = ROOT } # Brittany
				30 = { add_core_of = ROOT } # Loire
				24 = { add_core_of = ROOT } # Centre
				23 = { add_core_of = ROOT } # Poitou
				33 = { add_core_of = ROOT } # Centre-sud
				26 = { add_core_of = ROOT } # Auveragne
				20 = { add_core_of = ROOT } # Rhone
				32 = { add_core_of = ROOT } # Alpes
				735 = { add_core_of = ROOT } # Savoy
				25 = { add_core_of = ROOT } # Limousin
				22 = { add_core_of = ROOT } # Languedoc
				21 = { add_core_of = ROOT } # Bouches-du-Rhone
				851 = { add_core_of = ROOT } # Var
				19 = { add_core_of = ROOT } # Aquitaine
				1 = { add_core_of = ROOT } # Corsica
				785 = { add_core_of = ROOT } # Picardy
				31 = { add_core_of = ROOT } # Midi Pyrinees
				806 = { add_core_of = ROOT } # Pyrinees-Atlantique
			}

			# Italy
			#custom_effect_tooltip = form_eu_italy_coring_states_tt
			#hidden_effect = {
			#	158 = { add_core_of = ROOT } # Piemonte
			#	159 = { add_core_of = ROOT } # Lombardy
			#	39 = { add_core_of = ROOT } # Alto Adige
			#	160 = { add_core_of = ROOT } # Venice
			#	161 = { add_core_of = ROOT } # Emilia Romagna
			#	162 = { add_core_of = ROOT } # Tuscany
			#	157 = { add_core_of = ROOT } # Abruzzo
			#	2 = { add_core_of = ROOT } # Lazio
			#	117 = { add_core_of = ROOT } # Campania
			#	156 = { add_core_of = ROOT } # Calbria
			#	115 = { add_core_of = ROOT } # Sicily
			#	114 = { add_core_of = ROOT } # Sardinia
			#	736 = { add_core_of = ROOT } # Litorale
			#	163 = { add_core_of = ROOT } # Zara
			#	849 = { add_core_of = ROOT } # Puglia
			#	850 = { add_core_of = ROOT } # Trentino
			#	852 = { add_core_of = ROOT } # Istria
			#}

			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				51 = { add_core_of = ROOT } # Rhineland
				42 = { add_core_of = ROOT } # Moselland
				56 = { add_core_of = ROOT } # Weser-ems
				57 = { add_core_of = ROOT } # Westfalen
				55 = { add_core_of = ROOT } # Hessen
				50 = { add_core_of = ROOT } # Wurttemberg
				978 = { add_core_of = ROOT } # Baden
				59 = { add_core_of = ROOT } # Hannover
				58 = { add_core_of = ROOT } # Holstein
				909 = { add_core_of = ROOT } # Schleswig
				60 = { add_core_of = ROOT } # Thuringia
				54 = { add_core_of = ROOT } # Franken
				52 = { add_core_of = ROOT } # Oberbayern
				53 = { add_core_of = ROOT } # Niederbayern
				61 = { add_core_of = ROOT } # Mecklenburg
				64 = { add_core_of = ROOT } # Brandenberg
				65 = { add_core_of = ROOT } # Sachsen
				62 = { add_core_of = ROOT } # Vorpommern
				68 = { add_core_of = ROOT } # Ostmark
				66 = { add_core_of = ROOT } # Niederschlesien
				67 = { add_core_of = ROOT } # Oberschlesien
				63 = { add_core_of = ROOT } # Hinterpommern
				5 = { add_core_of = ROOT } # Ermland-Masuren
				763 = { add_core_of = ROOT } # Königsberg
			}

			# Germany
			custom_effect_tooltip = form_proletarian_state_british_mainland_coring_states_tt
			hidden_effect = {
				127 = { add_core_of = ROOT } # Sussex
				123 = { add_core_of = ROOT } # South-West England
				338 = { add_core_of = ROOT } # Gloustershire
				126 = { add_core_of = ROOT } # Greater London Area
				125 = { add_core_of = ROOT } # East Anglia
				129 = { add_core_of = ROOT } # East Midlands
				128 = { add_core_of = ROOT } # West Midlands
				122 = { add_core_of = ROOT } # Wales
				132 = { add_core_of = ROOT } # Lancashire
				130 = { add_core_of = ROOT } # Yorkshire
				931 = { add_core_of = ROOT } # Cumbria
				131 = { add_core_of = ROOT } # Northumberland
				133 = { add_core_of = ROOT } # Lanark
				121 = { add_core_of = ROOT } # Lothian
				136 = { add_core_of = ROOT } # Aberdeenshire
				120 = { add_core_of = ROOT } # Scottish Highlands
			}			

			hidden_effect = {
				news_event = { id = GOT_newsevents.1 hours = 6 }
				set_global_flag = form_greater_proletarian_state_flag
			}
		}
		ai_will_do = {
			base = 200
		}
	}
}

form_andalusia_category = {
	
	form_andalusia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
				original_tag = RIF
			}
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			# Spain
			controls_state = 173
			controls_state = 789
			controls_state = 168
			controls_state = 167
			controls_state = 175
			controls_state = 170
			controls_state = 169
			# Portugal
			controls_state = 179
			controls_state = 795
		}

		visible = {
			OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
				original_tag = RIF
			}
			NOT = { has_global_flag = form_andalusia_flag }
			ADU = { exists = no }
		}

		complete_effect = {
			set_cosmetic_tag = ADU
			# Andalusia
			custom_effect_tooltip = form_country_andalusia_coring_states_tt
			hidden_effect = {
				165 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				178 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				697 = { add_core_of = ROOT }
				698 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				set_capital = { state = 789 }
			}
			hidden_effect = {
				news_event = { id = lar_news.281 hours = 6 }
				set_global_flag = form_andalusia_flag
				set_country_flag = country_formed_andalusia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	adu_restore_sultanate_of_africa = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = north_africa_needed_tooltip
				#Morocco
				controls_state = 290
				controls_state = 461
				controls_state = 462
				controls_state = 783
				#Tunisia
				controls_state = 458
				controls_state = 665
				#Algeria
				controls_state = 459
				controls_state = 460
				controls_state = 513
				#Libya
				controls_state = 448
				controls_state = 449
				controls_state = 450
				controls_state = 451
				controls_state = 661
				controls_state = 662
				controls_state = 663
			}
		}

		visible = {
			has_country_flag = country_formed_andalusia_flag
			NOT = { has_global_flag = sultanate_of_africa_flag }
			has_dlc = "La Resistance"
		}

		complete_effect = {
			# North Africa
			custom_effect_tooltip = coring_north_africa_tt
			hidden_effect = {
				#Morocco
				290 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				462 = { add_core_of = ROOT }
				783 = { add_core_of = ROOT }
				#Tunisia
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				#Western Sahara
				699 = { add_core_of = ROOT }
				#Algeria
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				514 = { add_core_of = ROOT }
				#Libya
				273 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				set_global_flag = sultanate_of_africa_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	adu_mediterrenean_emirates = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			# Med Islands
				#Sicily
				controls_state = 115
				#Malta
				controls_state = 116
				#Rhodes
				controls_state = 164
				#Crete
				controls_state = 182
				#Cyprus
				controls_state = 183
		}

		visible = {
			has_country_flag = country_formed_andalusia_flag
			NOT = { has_global_flag = emirate_of_sicily_flag }
			has_dlc = "La Resistance"
		}

		complete_effect = {
			# Med Islands
				#Sicily
				115 = { add_core_of = ROOT }
				#Malta
				116 = { add_core_of = ROOT }
				#Rhodes
				164 = { add_core_of = ROOT }
				#Crete
				182 = { add_core_of = ROOT }
				#Cyprus
				183 = { add_core_of = ROOT }
				#Sardinia and Corsica
				114 = { add_core_of = ROOT }
				1 = { add_core_of = ROOT }
				
				hidden_effect = { set_global_flag = emirate_of_sicily_flag }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	adu_restore_umayyad_caliphate = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
			}
			# Saudi Arabia
			custom_trigger_tooltip = {
				tooltip = form_country_saudi_required_states_tt
				controls_state = 292
				controls_state = 679
				controls_state = 678
				controls_state = 857
				controls_state = 858
				controls_state = 854
				controls_state = 855
				controls_state = 856
				controls_state = 859
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				# Syria
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
				controls_state = 799
			}
			custom_trigger_tooltip = {
				tooltip = form_country_egypt_required_states_tt
				controls_state = 453
				controls_state = 456
				controls_state = 446
				controls_state = 907
				controls_state = 457
				controls_state = 452
				controls_state = 447
			}
			controls_state = 679
			controls_state = 293
			controls_state = 294
			controls_state = 454
			controls_state = 455
			controls_state = 656
			controls_state = 658
			controls_state = 765
			controls_state = 659
			controls_state = 906
			# New GOE States
			controls_state = 1010
			controls_state = 1011
			controls_state = 992
			controls_state = 1014
			controls_state = 1013
			controls_state = 1015
			controls_state = 1016
		}

		visible = {
			has_country_flag = country_formed_andalusia_flag
			has_global_flag = emirate_of_sicily_flag
			has_global_flag = sultanate_of_africa_flag
			NOT = { has_global_flag = restored_umayyad_flag }
			has_dlc = "La Resistance"
		}

		complete_effect = {
			custom_effect_tooltip = middle_east_coring_states_tt
			hidden_effect = {
				# Iraq
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				# Saudi Arabia
				292 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				# Colonial Arabia
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				906 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				992 = { add_core_of = ROOT }
				1014 = { add_core_of = ROOT }
				1013 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				# Egypt
				552 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				set_global_flag = restored_umayyad_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	adu_recreate_rashid_expansion = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			# Iran
			custom_trigger_tooltip = {
				tooltip = form_country_iran_required_states_tt
				controls_state = 419
				controls_state = 421
				controls_state = 420
				controls_state = 417
				controls_state = 413
				controls_state = 266
				controls_state = 418
				controls_state = 411
				controls_state = 412
				controls_state = 416
				controls_state = 414
				controls_state = 410
			}
			# Afghanistan
			custom_trigger_tooltip = {
				tooltip = form_country_afghanistan_required_states_tt
				controls_state = 415
				controls_state = 267
			}
			# Pakistan
			custom_trigger_tooltip = {
				tooltip = form_country_pakistani_required_states_tt
				controls_state = 787
				controls_state = 445
				controls_state = 442
				controls_state = 444
				controls_state = 440
				controls_state = 443
			}
			
		}

		visible = {
			has_country_flag = country_formed_andalusia_flag
			has_global_flag = restored_umayyad_flag
			NOT = { has_global_flag = restored_rashid_flag }
			has_dlc = "La Resistance"
		}

		complete_effect = {
			# Iran
			custom_effect_tooltip = form_country_iran_coring_states_tt
			hidden_effect = {
				419 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
			}
			# Pakistan
			custom_effect_tooltip = form_country_pakistan_coring_states_tt
			hidden_effect = {
				787 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
			}
			hidden_effect = { set_global_flag = restored_rashid_flag }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	adu_northern_expansion = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			# Azerbaijan
			controls_state = 229
			# Armenia
			controls_state = 230
			# Georgia
			controls_state = 231
			# Northern Caucasus
			controls_state = 232
			controls_state = 233
			controls_state = 821
			controls_state = 828
			controls_state = 827
			controls_state = 826
			# Turkey
			controls_state = 350
			controls_state = 352
			controls_state = 353
			controls_state = 354
			controls_state = 800
		}

		visible = {
			has_country_flag = country_formed_andalusia_flag
			has_global_flag = restored_umayyad_flag
			NOT = { has_global_flag = andalusia_north_expansion_flag }
			has_dlc = "La Resistance"
		}

		complete_effect = {
			# Azerbaijan
			229 = { add_core_of = ROOT }
			# Armenia
			230 = { add_core_of = ROOT }
			# Georgia
			231 = { add_core_of = ROOT }
			# Grozny
			232 = { add_core_of = ROOT }
			233 = { add_core_of = ROOT }
			821 = { add_core_of = ROOT }
			828 = { add_core_of = ROOT }
			827 = { add_core_of = ROOT }
			826 = { add_core_of = ROOT }
			# Turkey
			350 = { add_core_of = ROOT }
			352 = { add_core_of = ROOT }
			353 = { add_core_of = ROOT }
			354 = { add_core_of = ROOT }
			800 = { add_core_of = ROOT }
			hidden_effect = { set_global_flag = andalusia_north_expansion_flag }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_polynesia_category = {
	
	form_polynesia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = HAW
				original_tag = TAH
				original_tag = GUM
				original_tag = FSM
				original_tag = SAM
				original_tag = SOL
				original_tag = FIJ
				original_tag = NZL
				original_tag = RAP
			}
		}

		available = {
			OR = {
				is_subject = no
				has_autonomy_state = autonomy_dominion #New Zealand should be able to do it
			}
			# Polynesia
			controls_state = 284 #North Island
			controls_state = 629 #Hawaii
			controls_state = 684 #Caroline Islands
			controls_state = 638 #Guam
			controls_state = 641 #Tahiti
			controls_state = 646 #Saipan
			controls_state = 723 #South Island
			controls_state = 726 #Samoa
		}

		visible = {
			OR = {
				original_tag = HAW
				original_tag = TAH
				original_tag = GUM
				original_tag = FSM
				original_tag = SAM
				original_tag = SOL
				original_tag = FIJ
				original_tag = NZL
				original_tag = RAP
			}
			NOT = { has_global_flag = form_polynesia_flag }
		}

		complete_effect = {
			set_cosmetic_tag = united_polynesia
			# Polynesia
			custom_effect_tooltip = form_country_polynesia_coring_states_tt
			hidden_effect = {
				284 = { add_core_of = ROOT }
				524 = { add_core_of = ROOT } #Taiwan
				629 = { add_core_of = ROOT }
				630 = { add_core_of = ROOT }
				631 = { add_core_of = ROOT }
				632 = { add_core_of = ROOT }
				633 = { add_core_of = ROOT }
				634 = { add_core_of = ROOT }
				635 = { add_core_of = ROOT }
				636 = { add_core_of = ROOT }
				638 = { add_core_of = ROOT }
				639 = { add_core_of = ROOT }
				641 = { add_core_of = ROOT }
				642 = { add_core_of = ROOT }
				643 = { add_core_of = ROOT }
				645 = { add_core_of = ROOT } #Iwo Jima
				646 = { add_core_of = ROOT }
				647 = { add_core_of = ROOT }
				648 = { add_core_of = ROOT }
				684 = { add_core_of = ROOT }
				723 = { add_core_of = ROOT }
				725 = { add_core_of = ROOT }
				726 = { add_core_of = ROOT }
				727 = { add_core_of = ROOT }
				734 = { add_core_of = ROOT }
				270 = { add_core_of = ROOT } # Pitcairn
				948 = { add_core_of = ROOT } # Easter Island
			}
			hidden_effect = {
				news_event = { id = lar_news.291 hours = 6 }
				set_global_flag = form_polynesia_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	NZL_demand_islands = {

		icon = generic_form_nation

		allowed = {
			original_tag = NZL
		}

		available = {
			OR = {
				is_subject = no
				has_autonomy_state = autonomy_dominion #New Zealand should be able to do it
			}
			has_completed_focus = NZL_maori_volunteers
			hidden_trigger = {
				NOT = { has_country_flag = is_demanding_flag }
				any_country = {
					NOT = { tag = ROOT }
					is_in_faction_with = ROOT
					NOT = {
						OR = {
							original_tag = HAW
							original_tag = TAH
							original_tag = GUM
							original_tag = FSM
							original_tag = SAM
							original_tag = SOL
							original_tag = FIJ
							original_tag = NZL
						}
					}
					OR = {
						controls_state = 284
						controls_state = 629
						controls_state = 630
						controls_state = 631
						controls_state = 632
						controls_state = 633
						controls_state = 634
						controls_state = 635
						controls_state = 636
						controls_state = 638
						controls_state = 639
						controls_state = 641
						controls_state = 642
						controls_state = 643
						controls_state = 645 #Iwo Jima
						controls_state = 646
						controls_state = 647
						controls_state = 648
						controls_state = 684
						controls_state = 723
						controls_state = 725
						controls_state = 726
						controls_state = 727
						controls_state = 734
					}
					NOT = { has_country_flag = has_been_asked_for_islands_flag }
				}
			}
		}

		visible = {
			original_tag = NZL
			NOT = { has_global_flag = form_polynesia_flag }
			has_completed_focus = NZL_maori_volunteers
			hidden_trigger = {
				NOT = { has_country_flag = is_demanding_flag }
				any_country = {
					NOT = { tag = ROOT }
					is_in_faction_with = ROOT
					NOT = {
						OR = {
							original_tag = HAW
							original_tag = TAH
							original_tag = GUM
							original_tag = FSM
							original_tag = SAM
							original_tag = SOL
							original_tag = FIJ
							original_tag = NZL
						}
					}
					OR = {
						controls_state = 284
						controls_state = 629
						controls_state = 630
						controls_state = 631
						controls_state = 632
						controls_state = 633
						controls_state = 634
						controls_state = 635
						controls_state = 636
						controls_state = 638
						controls_state = 639
						controls_state = 641
						controls_state = 642
						controls_state = 643
						controls_state = 645 #Iwo Jima
						controls_state = 646
						controls_state = 647
						controls_state = 648
						controls_state = 684
						controls_state = 723
						controls_state = 725
						controls_state = 726
						controls_state = 727
						controls_state = 734
					}
					NOT = { has_country_flag = has_been_asked_for_islands_flag }
				}
			}
		}

		complete_effect = {
			random_country = {
				limit = {
					NOT = { tag = ROOT }
					is_in_faction_with = ROOT
					NOT = {
						OR = {
							original_tag = HAW
							original_tag = TAH
							original_tag = GUM
							original_tag = FSM
							original_tag = SAM
							original_tag = SOL
							original_tag = FIJ
							original_tag = NZL
						}
					}
					OR = {
						controls_state = 284
						controls_state = 629
						controls_state = 630
						controls_state = 631
						controls_state = 632
						controls_state = 633
						controls_state = 634
						controls_state = 635
						controls_state = 636
						controls_state = 638
						controls_state = 639
						controls_state = 641
						controls_state = 642
						controls_state = 643
						controls_state = 645 #Iwo Jima
						controls_state = 646
						controls_state = 647
						controls_state = 648
						controls_state = 684
						controls_state = 723
						controls_state = 725
						controls_state = 726
						controls_state = 727
						controls_state = 734
					}
					hidden_trigger = { NOT = { has_country_flag = has_been_asked_for_islands_flag } }
				}
				save_event_target_as = new_zealand_island_demand_target
			}
			event_target:new_zealand_island_demand_target = {
				country_event = { id = tfv_new_zealand.9 days = 3 }
				set_country_flag = has_been_asked_for_islands_flag
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
}

form_greater_greece_category = {

	form_greater_greece = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			if = { 
				limit = {
					has_government = democratic
				}
				has_completed_focus = GRE_nenikikamen
			}
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkish_coastal_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 347
			}
			# Dodecanese
			if = {
				limit = {
					NOT = { has_government = democratic }
				}
				custom_trigger_tooltip = {
					tooltip = form_country_dodecanese_required_state_tt
					controls_state = 164
				}
			}
			# Cyprus
			if = {
				limit = {
					NOT = { has_government = democratic }
				}
				custom_trigger_tooltip = {
					tooltip = form_country_cyprus_required_state_tt
					controls_state = 183
				}
			}
		}

		visible = {
			NOT = { has_global_flag = form_greater_greece_flag }
			OR = { 
				AND = {
					has_completed_focus = GRE_the_modern_movement
					has_country_leader = {
						character = GRE_ioannis_metaxas
						ruling_only = yes
					}
				}
				AND = { 
					has_completed_focus = GRE_resurrecting_the_megali_idea
					NOT = { 
						has_country_leader = {
							character = GRE_georgios_kosmidis
							ruling_only = yes
						}
					}
				}
				has_completed_focus = GRE_prepare_for_the_great_anti_fascist_war
			}
		}

		complete_effect = {
			set_country_flag = GRE_GREATER_GREECE_flag
			GRE_set_appropriate_cosmetic_tag = yes
			# Greece
			custom_effect_tooltip = form_country_greece_coring_states_tt
			hidden_effect = {
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkish_coast_coring_states_tt
			hidden_effect = {
				340 = { add_core_of = ROOT }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { add_core_of = ROOT }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				797 = { add_core_of = ROOT }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { add_core_of = ROOT }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { add_core_of = ROOT }
				347 = { set_state_name = "Nikomedeia" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 904 name = "Kieros" }
				if = {
					limit = {
						controls_state = 342
					}
					342 = { add_core_of = ROOT }
					342 = { set_state_name = "Attalis" }
					set_province_name = { id = 1005 name = "Attaleia" }
				}
			}
			# Cyprus
			custom_effect_tooltip = form_country_cyprus_coring_state_tt
			hidden_effect = {
				183 = { add_core_of = ROOT }
			}
			hidden_effect = {
				805 = { add_core_of = ROOT }
			}
			hidden_effect = {
				if = {
					limit = {
						has_government = democratic
					}
					news_event = { id = bftb_news.302 hours = 6 } 
				}
				set_global_flag = form_greater_greece_flag
				set_country_flag = achivement_istanbul_is_constantinople_again
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	GRE_appoint_aristotle_onassis_as_prime_minister = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			AND = {
				has_government = democratic
				has_completed_focus = GRE_nenikikamen
			}
		}

		visible = {
			has_global_flag = form_greater_greece_flag
		}

		fire_only_once = yes

		complete_effect = {
			retire_country_leader = yes
			add_country_leader_role = {
				character = GRE_aristotle_onassis
				country_leader = {
					expire = "1965.1.1"
					ideology = liberalism
					traits = {
						the_young_magnate
					}
				}
				promote_leader = yes
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	rename_antalya = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			if = { 
				limit = {
					has_government = democratic
				}
				has_completed_focus = GRE_nenikikamen
			}
			controls_state = 342
			# Dodecanese
			custom_trigger_tooltip = {
				tooltip = form_country_dodecanese_required_state_tt
				controls_state = 164
			}
		}

		visible = {
			has_global_flag = form_greater_greece_flag
			NOT = { 342 = { is_core_of = ROOT } }
		}

		fire_only_once = yes

		complete_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			342 = { add_core_of = ROOT }
			342 = { set_state_name = "Attalis" }
			set_province_name = { id = 1005 name = "Attaleia" }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	rename_gjirokaster = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			if = { 
				limit = {
					has_government = democratic
				}
				has_completed_focus = GRE_nenikikamen
			}
			controls_state = 805
		}

		visible = {
			has_global_flag = form_greater_greece_flag
		}

		fire_only_once = yes

		complete_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			set_province_name = { id = 914 name = "Argyrokastro" }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	GRE_move_capital_to_constantinople = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			if = { 
				limit = {
					has_government = democratic
				}
				has_completed_focus = GRE_nenikikamen
			}
			controls_state = 797
		}

		visible = {
			has_global_flag = form_greater_greece_flag
			NOT = { has_country_flag = GRE_chose_a_new_capital_city }
		}

		fire_only_once = yes

		complete_effect = {
			add_war_support = 0.05
			set_capital = { state = 797 }
			hidden_effect = {
				set_country_flag = GRE_chose_a_new_capital_city
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	move_capital_to_thessaloniki = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			if = { 
				limit = {
					has_government = democratic
				}
				has_completed_focus = GRE_nenikikamen
			}
			controls_state = 797
		}

		visible = {
			has_global_flag = form_greater_greece_flag
			NOT = { has_country_flag = GRE_chose_a_new_capital_city }
		}

		fire_only_once = yes

		complete_effect = {
			add_stability = 0.1
			set_capital = { state = 731 }
			hidden_effect = {
				set_country_flag = GRE_chose_a_new_capital_city
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_macedonian_empire_category = {

	form_macedonian_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			# Greece
			custom_trigger_tooltip = {
				tooltip = form_country_greece_required_states_tt
				controls_state = 185
				controls_state = 731
				controls_state = 47
				controls_state = 186
				controls_state = 184
				controls_state = 187
				controls_state = 182
			}
			# Macedonia [ Bulgaria / Yugoslav Macedonia / Albania ]
			custom_trigger_tooltip = {
				tooltip = form_country_southern_yugoslavia_required_states_tt
				controls_state = 48
				controls_state = 212
				controls_state = 801
				controls_state = 211
				controls_state = 106
				controls_state = 970
				controls_state = 803
				controls_state = 105
				controls_state = 44
				controls_state = 805
				controls_state = 934
			}
			# Iran
			custom_trigger_tooltip = {
				tooltip = form_country_iran_required_states_tt
				controls_state = 419
				controls_state = 421
				controls_state = 420
				controls_state = 417
				controls_state = 413
				controls_state = 266
				controls_state = 418
				controls_state = 411
				controls_state = 412
				controls_state = 416
				controls_state = 414
				controls_state = 410
			}
			# Afghanistan
			custom_trigger_tooltip = {
				tooltip = form_country_afghanistan_required_states_tt
				controls_state = 415
				controls_state = 267
			}
			# Central Asia
			custom_trigger_tooltip = {
				tooltip = form_country_southern_central_asia_required_states_tt
				controls_state = 742 # Tajikistan
				controls_state = 405 # Uzbekistan
				controls_state = 732 # Kyrgyzstan
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 797
				controls_state = 798
				controls_state = 799
				controls_state = 800
			}
			# France: Syria
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
			}
			# Britain: Egypt
			custom_trigger_tooltip = {
				tooltip = form_country_egypt_required_states_tt
				controls_state = 452
				controls_state = 447
				controls_state = 446
				controls_state = 456
				controls_state = 453
				controls_state = 457
				controls_state = 907
			}
			# Britain: Levant / Kuwait
			custom_trigger_tooltip = {
				tooltip = form_country_british_levant_required_states_tt
				controls_state = 454
				controls_state = 455
				controls_state = 656
			}
			# Raj / Punjab
			custom_trigger_tooltip = {
				tooltip = form_country_punjab_required_states_tt
				controls_state = 440
				controls_state = 443
				controls_state = 441
				controls_state = 787
				controls_state = 442
				controls_state = 445
				controls_state = 444
			}
		}

		visible = {
			original_tag = GRE
			OR = {
				AND = {
					has_completed_focus = GRE_moulding_the_new_world_order
					has_country_leader = {
						character = GRE_george_mercouris
						ruling_only = yes
					}
				}
				AND = {
					has_completed_focus = GRE_protectors_of_the_mediterranean
					has_country_leader = {
						name = "George II"
						ruling_only = yes
					}
				}
			}
			NOT = { has_global_flag = form_macedonian_empire_flag }
		}

		complete_effect = {
			set_country_flag = GRE_mae_flag
			GRE_set_appropriate_cosmetic_tag = yes
			# Iran
			custom_effect_tooltip = form_country_iran_coring_states_tt
			hidden_effect = {
				419 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
			}
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				341 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_persia_italy_coring_states_tt
			hidden_effect = {
				164 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
			}
			# Cyprus
			183 = { add_core_of = ROOT }
			# Macedonia
			106 = { add_core_of = ROOT }
			803 = { add_core_of = ROOT }
			# Bulgaria
			48 = { add_core_of = ROOT }
			212 = { add_core_of = ROOT }
			211 = { add_core_of = ROOT }
			801 = { add_core_of = ROOT }
			# Albania and Montenegro
			805 = { add_core_of = ROOT }
			44 = { add_core_of = ROOT }
			934 = { add_core_of = ROOT }
			105 = { add_core_of = ROOT }
			# Central Asia
			742 = { add_core_of = ROOT }
			405 = { add_core_of = ROOT }
			732 = { add_core_of = ROOT }
			# Pakistan
			441 = { add_core_of = ROOT }
			787 = { add_core_of = ROOT }
			440 = { add_core_of = ROOT }
			442 = { add_core_of = ROOT }
			445 = { add_core_of = ROOT }
			443 = { add_core_of = ROOT }
			444 = { add_core_of = ROOT }
			hidden_effect = {
				set_global_flag = form_macedonian_empire_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}


form_turan_category = {

	form_turan = {

		icon = generic_form_nation

		allowed = {
			original_tag = TUR
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 797
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 798
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 800
			}
			# Syria
			custom_trigger_tooltip = {
				tooltip = form_country_turan_syria_required_states_tt
				controls_state = 677
				controls_state = 680
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_turan_iraq_required_states_tt
				controls_state = 676
			}
			# Persia
			custom_trigger_tooltip = {
				tooltip = form_country_turan_iran_required_states_tt
				controls_state = 421
				controls_state = 419
				controls_state = 420
				controls_state = 417
				controls_state = 413
				controls_state = 266
				controls_state = 416
			}
			# Azerbaijan
			custom_trigger_tooltip = {
				tooltip = form_country_turan_azerbaijan_required_states_tt
				controls_state = 229
			}
			# Kuban Region + Crimea
			custom_trigger_tooltip = {
				tooltip = form_country_turan_kuban_crimea_required_states_tt
				controls_state = 233
				controls_state = 232
				controls_state = 235
				controls_state = 234
				controls_state = 237
				controls_state = 238
				controls_state = 236
				controls_state = 407
				controls_state = 406
				controls_state = 218
				controls_state = 227
				controls_state = 228
				controls_state = 200
				controls_state = 196
				controls_state = 137
			}
			# Urals + Central Asia
			custom_trigger_tooltip = {
				tooltip = form_country_turan_urals_central_asia_required_states_tt
				controls_state = 582
				controls_state = 402
				controls_state = 583
				controls_state = 587
				controls_state = 585
				controls_state = 584
				controls_state = 405
				controls_state = 404
				controls_state = 586
				controls_state = 732
				controls_state = 742
				controls_state = 589
				controls_state = 588
				controls_state = 590
				controls_state = 570
				controls_state = 571
				controls_state = 823
				controls_state = 832
				controls_state = 831
				controls_state = 830
				controls_state = 882
				controls_state = 881
			}
			# Siberia
			custom_trigger_tooltip = {
				tooltip = form_country_turan_siberia_required_states_tt
				controls_state = 654
				controls_state = 40
				controls_state = 569
				controls_state = 568
				controls_state = 329
				controls_state = 567
				controls_state = 566
				controls_state = 564
				controls_state = 563
				controls_state = 565
				controls_state = 561
				controls_state = 574
				controls_state = 576
				controls_state = 562
				controls_state = 874
				controls_state = 644
				controls_state = 876
				controls_state = 877
				controls_state = 637
				controls_state = 822
				controls_state = 878
			}
		}

		visible = {
			original_tag = TUR
			has_completed_focus = TUR_turanist_ambition
			NOT = { has_global_flag = form_turan_flag }
		}

		complete_effect = {
			set_country_flag = TUR_trn_flag
			TUR_set_appropriate_cosmetic_tag = yes
			hidden_effect = {
				news_event = { id = bftb_news.209 hours = 6 }
				#TURKEY
				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 }
				#SYRIA
				677 = { add_core_of = TUR }
				680 = { add_core_of = TUR }
				#IRAQ
				676 = { add_core_of = TUR }
				291 = { add_core_of = TUR }
				#PERSIA
				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 }
				#AZERBAIJAN
				229 = { add_core_of = TUR }
				#KUBAN REGION + CRIMEA
				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 }
				821 = { add_core_of = TUR }
				826 = { add_core_of = TUR }
				827 = { add_core_of = TUR }
				828 = { add_core_of = TUR }
				#URALS + CENTRAL ASIA
				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 }
				830 = { add_core_of = TUR }
				823 = { add_core_of = TUR }
				831 = { add_core_of = TUR }
				832 = { add_core_of = TUR }
				881 = { add_core_of = TUR }
				882 = { add_core_of = TUR }
				#SIBERIA
				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 }
				575 = { add_core_of = TUR }
				576 = { add_core_of = TUR }
				562 = { add_core_of = TUR }
				874 = { add_core_of = TUR }
				644 = { add_core_of = TUR }
				876 = { add_core_of = TUR }
				877 = { add_core_of = TUR }
				637 = { add_core_of = TUR }
				822 = { add_core_of = TUR }
				875 = { add_core_of = TUR }
				878 = { add_core_of = TUR }
				set_global_flag = form_turan_flag
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	integrate_the_magyars = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			has_global_flag = form_turan_flag
			# Hungary + Slovakia
			controls_state = 155
			controls_state = 43
			controls_state = 973
			controls_state = 974
			controls_state = 154
			controls_state = 664
			# Romania + Banat
			controls_state = 76
			controls_state = 84
			controls_state = 82
			controls_state = 764
			controls_state = 45
			controls_state = 83
		}

		visible = {
			has_completed_focus = TUR_subdue_the_magyars
		}

		fire_only_once = yes

		complete_effect = {
			# Hungary
			155 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			43 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			973 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			974 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			154 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			664 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			# Romania
			76 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			84 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			82 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			83 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			764 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			45 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	assimilate_the_chinese_turks = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			has_global_flag = form_turan_flag
			# Sinkiang
			controls_state = 619
			controls_state = 287
			controls_state = 759
			controls_state = 760
			controls_state = 617
			controls_state = 618
			# Xibei San Ma
			controls_state = 604
			controls_state = 755
			controls_state = 756
			controls_state = 754
			controls_state = 283
			controls_state = 753
			controls_state = 616
			# Nationalist China
			controls_state = 752
			controls_state = 751
			controls_state = 601
			# Mongolia / Manchuria
			controls_state = 330
			controls_state = 817
			controls_state = 818
			controls_state = 819
			controls_state = 820
			controls_state = 612
			controls_state = 611
			controls_state = 621
			controls_state = 761
			controls_state = 714
			controls_state = 717
		}

		visible = {
			has_completed_focus = TUR_cin_turkleri
		}

		fire_only_once = yes

		complete_effect = {
			# Sinkiang
			619 = { add_core_of = ROOT }
			287 = { add_core_of = ROOT }
			759 = { add_core_of = ROOT }
			760 = { add_core_of = ROOT }
			617 = { add_core_of = ROOT }
			618 = { add_core_of = ROOT }
			# China
			604 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			755 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			756 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			754 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			283 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			753 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			616 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			752 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			751 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			601 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			612 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			611 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			621 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			761 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			714 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			717 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			#Mongolia
			330 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			817 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			818 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			819 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			820 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	unite_with_the_finno_ugrians = {

		icon = generic_form_nation

		allowed = {
			has_dlc = "Battle for the Bosporus"
		}

		available = {
			is_subject = no
			has_global_flag = form_turan_flag
			# Finland + Karelia
			controls_state = 111 #UUSIMAA (Helsinki)
			controls_state = 150 #KUOPIO
			controls_state = 149 #VAASA
			controls_state = 148 #LAPPI
			controls_state = 146 #KARJALA
			controls_state = 147 #SALLA
			controls_state = 722 #PETSAMO
			controls_state = 926 #TURKU
			controls_state = 927 #HÄME
			controls_state = 928 #KYME
			controls_state = 929 #OULU
			controls_state = 930 #MIKKELI

			controls_state = 213 #MURMANSK
			controls_state = 215 #ONEGA
			controls_state = 216 #OLONETS

			# Estonia
			controls_state = 13
			controls_state = 191
			controls_state = 813
			controls_state = 812
			controls_state = 811
		}

		visible = {
			has_completed_focus = TUR_crowning_ourselves_with_the_fin_ugor
		}

		fire_only_once = yes

		complete_effect = {
			#FINLAND + KARELIA
			111 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			150 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			149 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			148 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			146 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			147 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			926 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			927 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			928 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			929 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			930 = { add_dynamic_modifier = { modifier = turanist_assimilation } }

			213 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			215 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			216 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			#ESTONIA
			13 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			191 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			811 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			812 = { add_dynamic_modifier = { modifier = turanist_assimilation } }	
			813 = { add_dynamic_modifier = { modifier = turanist_assimilation } }			
			
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_turkestan_category = {
	
	form_turkestan = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = TAN # Tannu Tuva
				original_tag = KAZ # Kazakhstan
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				original_tag = TAJ # Tajikistan
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				original_tag = BUK # Bukhara
				original_tag = KHI # Khiva
				original_tag = KKP # Karakalpakstan
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = form_country_kazakhstan_required_states
				controls_state = 402
				controls_state = 404
				controls_state = 406
				controls_state = 407
				controls_state = 583
				controls_state = 586
				controls_state = 587
				controls_state = 588
				controls_state = 589
				controls_state = 590
				controls_state = 881
				controls_state = 882
			}
			custom_trigger_tooltip = {
				tooltip = form_country_uzbekistan_required_states
				controls_state = 405
				controls_state = 585
				controls_state = 831
			}
			controls_state = 823
			controls_state = 830
			controls_state = 732 # Kyrgyzstan
			controls_state = 742 # Tajikistan
			controls_state = 584 # Turkmenistan
			controls_state = 832 # Tashauz
			controls_state = 881
			controls_state = 882
		}

		visible = {
			OR = {
				original_tag = TAN # Tannu Tuva
				original_tag = KAZ # Kazakhstan
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				original_tag = TAJ # Tajikistan
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				original_tag = BUK # Bukhara
				original_tag = KHI # Khiva
				original_tag = KKP # Karakalpakstan
			}
			NOT = { has_global_flag = form_turkestan_flag }
		}

		complete_effect = {
			set_cosmetic_tag = turkestan_united
			
			# Kazakhstan
			custom_effect_tooltip = form_country_kazakhstan_coring_states_tt
			hidden_effect = {
				402 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
				882 = { add_core_of = ROOT }
			}
			
			# Turkmenistan
			584 = { add_core_of = ROOT }
			
			# Tashauz
			832 = { add_core_of = ROOT }
			
			# Uzbekistan
			custom_effect_tooltip = form_country_uzbekistan_coring_states_tt
			hidden_effect = {
				405 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
			}
			
			# Kyrgyzstan
			732 = { add_core_of = ROOT }
			
			# Tajikistan
			742 = { add_core_of = ROOT }
			
			# Tuva
			329 = { add_core_of = ROOT }
			
			# Altai
			654 = { add_core_of = ROOT }
			40 = { add_core_of = ROOT }
			
			# Sinkiang
			custom_effect_tooltip = form_country_sinkiang_coring_states_tt
			hidden_effect = {
				287 = { add_core_of = ROOT }
				617 = { add_core_of = ROOT }
				618 = { add_core_of = ROOT }
				619 = { add_core_of = ROOT }
				759 = { add_core_of = ROOT }
				760 = { add_core_of = ROOT }
			}
			
			add_ideas = soldiers_of_the_steppe
			
			hidden_effect = {
				news_event = { id = nsb_news.3 hours = 6 }
				set_global_flag = form_turkestan_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}




form_mountainous_republic_category = {
	
	form_mountainous_republic = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = DAG # Dagestan
				original_tag = CIN # Chechnya-Ingushetia
				original_tag = NOA # North Ossetia-Alania
				original_tag = KBK # Kabardino-Balkaria
				original_tag = ABK # Abkhazia
			}
		}

		available = {
			controls_state = 232 # Dagestan
			controls_state = 821 # Chechnya-Ingushetia
			controls_state = 828 # North Ossetia
			controls_state = 827 # Kabardino-Balkaria
			controls_state = 826 # Abkhazia
		}

		visible = {
			OR = {
				original_tag = DAG # Dagestan
				original_tag = CIN # Chechnya-Ingushetia
				original_tag = NOA # North Ossetia-Alania
				original_tag = KBK # Kabardino-Balkaria
				original_tag = ABK # Abkhazia
			}
			NOT = { has_global_flag = form_mountainous_republic_flag }
			has_dlc = "No Step Back"
		}

		complete_effect = {
			set_cosmetic_tag = mountainous_republics_unified
			
			# Dagestan
			232 = { add_core_of = ROOT }
			
			# Chechnya-Ingushetia
			821 = { add_core_of = ROOT }
			
			# North Ossetia
			828 = { add_core_of = ROOT }
			
			# Kabardino-Balkaria
			827 = { add_core_of = ROOT }
			
			# Abkhazia
			826 = { add_core_of = ROOT }
			
			# Sochi
			233 = { add_core_of = ROOT }
			
			hidden_effect = { 
				news_event = { id = nsb_news.301 hours = 8 }
				set_global_flag = form_mountainous_republic_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}


form_transcaucasus_category = {
	
	form_transcaucasian_republic = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_dlc = "No Step Back"
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			NOT = { has_global_flag = form_transcaucasia_flag }
		}

		available = {
			controls_state = 826 # Abkhazia
			controls_state = 231 # Georgia
			controls_state = 230 # Armenia
			controls_state = 229 # Azerbaijan
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 826 # Abkhazia
				state = 231 # Georgia
				state = 230 # Armenia
				state = 229 # Azerbaijan
			}
		}

		complete_effect = {
			set_cosmetic_tag = transcaucasia_unified
			
			# Abkhazia
			826 = { add_core_of = ROOT }
			
			# Georgia
			231 = { add_core_of = ROOT }
			 
			# Armenia
			230 = { add_core_of = ROOT }
			
			# Azerbaijan
			229 = { add_core_of = ROOT }
			
			hidden_effect = { 
				news_event = { id = nsb_news.302 hours = 8 }
				set_global_flag = form_transcaucasia_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	
	unite_azeris = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = azeris_united_flag }
			has_dlc = "No Step Back"
		}

		available = {
			controls_state = 419 # West AZR
			controls_state = 1000 # East AZR
			controls_state = 420 # Gilan
		}

		complete_effect = {
			
			# West AZR
			419 = { add_core_of = ROOT }

			# East AZR
			1000 = { add_core_of = ROOT }
			
			# Gilan
			420 = { add_core_of = ROOT }
			
			hidden_effect = { 
				set_global_flag = azeris_united_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	claim_northern_caucasus = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = northern_caucasus_claimed_flag }
			has_dlc = "No Step Back"
		}

		available = {
			controls_state = 232 # Dagestan
			controls_state = 821 # Chechnya-Ingushetia
			controls_state = 828 # North Ossetia
			controls_state = 827 # Kabardino-Balkaria
			controls_state = 233 # Sochi
		}

		complete_effect = {
			
			# Sochi
			233 = { add_core_of = ROOT }
			
			# Kabardino-Balkaria
			827 = { add_core_of = ROOT }
			
			# North Ossetia
			828 = { add_core_of = ROOT }
			
			# Chechnya-Ingushetia
			821 = { add_core_of = ROOT }
			
			# Gagestan
			232 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				set_global_flag = northern_caucasus_claimed_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	liberate_anatolian_peoples = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia 
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = anatolians_liberated_flag }
			has_dlc = "No Step Back"
		}

		available = {
			controls_state = 354 # Trabzon
			controls_state = 800 # Van
		}

		complete_effect = {
			
			# Trabzon
			354 = { add_core_of = ROOT }
			
			# Van
			800 = { add_core_of = ROOT }
			
			hidden_effect = { 
				set_global_flag = anatolians_liberated_flag
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	restore_kalmyks = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia 
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			} 
		}
  
		available = {
			is_subject = no
			controls_state = 237 # Kalmykia
			controls_state = 236 # Astrakhan
			NOT = { has_government = communism }
			NOT = { has_government = democratic }
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = kalmyk_khanate_restored_flag }

				has_dlc = "No Step Back" 
		}

		complete_effect = {
			
			custom_effect_tooltip = release_kalmyk_khanate_tt
			
			hidden_effect = { 
			
				set_global_flag = kalmyk_khanate_restored_flag
				
				# Astrakhan
				236 = { add_core_of = KAL }
				
				KAL = {
					transfer_state = 237
					transfer_state = 236
					if = {
						limit = {
							ROOT = { controls_state = 217 } #Stalingrad
						}
						add_state_core = 217
						transfer_state = 217
					}
					if = {
						limit = {
							ROOT = { controls_state = 407 } #Uralsk
						}
						add_state_core = 407
						transfer_state = 407
					}
					if = {
						limit = {
							ROOT = { controls_state = 406 } #Guryev
						}
						add_state_core = 406
						transfer_state = 406
					}
					if = {
						limit = {
							ROOT = { controls_state = 401 } #Balakovo
						}
						add_state_core = 401
						transfer_state = 401
					}
					if = {
						limit = {
							ROOT = { controls_state = 829 } #Engels-Marxstadt
						}
						add_state_core = 829
						transfer_state = 829
					}
					if = {
						limit = {
							ROOT = { controls_state = 238 } #Volgodonsk
						}
						add_state_core = 238
						transfer_state = 238
					}
					load_oob = "KAL_khanate_battalions"
				}
				
				puppet = KAL
				
				if = {
					limit = {
						has_war_with = SOV
					}
					KAL = {
						add_to_war = {
							targeted_alliance = PREV 
							enemy = SOV
							hostility_reason = asked_to_join
						}
					}
				}
				
				
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	restore_crimean_khanate = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia 
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			} 
		}
  
		available = {
			is_subject = no
			controls_state = 137 # Crimea
			controls_state = 196 # Kherson
			NOT = { has_government = communism }
			NOT = { has_government = democratic }
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = crimean_khanate_restored_flag }

				has_dlc = "No Step Back"
		}

		complete_effect = {
			
			custom_effect_tooltip = restore_crimean_khanate_tt 
			
			
			hidden_effect = { 
			
				set_global_flag = crimean_khanate_restored_flag
				
				CRI = {
					transfer_state = 137 # Crimea
					transfer_state = 196 # Kherson
					if = {
						limit = {
							ROOT = { controls_state = 200 } #Zaporozhe
						}
						add_state_core = 200
						transfer_state = 200
					}
					if = {
						limit = {
							ROOT = { controls_state = 227 } #Stalino
						}
						add_state_core = 227
						transfer_state = 227
					}
					if = {
						limit = {
							ROOT = { controls_state = 218 } #Rostov
						}
						add_state_core = 218
						transfer_state = 218
					}
					if = {
						limit = {
							ROOT = { controls_state = 228 } #Voroshilovgrad
						}
						add_state_core = 228
						transfer_state = 228
					}
					if = {
						limit = {
							ROOT = { controls_state = 234 } #Krasnodar
						}
						add_state_core = 234
						transfer_state = 234
					}
					if = {
						limit = {
							ROOT = { controls_state = 245 } #Millerovo
						}
						add_state_core = 245
						transfer_state = 245
					}
					if = {
						limit = {
							ROOT = { controls_state = 226 } #Dnipropetrovsk
						}
						add_state_core = 226
						transfer_state = 226
					}
					load_oob = "CRI_khanate_soldiers"
				}
				
				puppet = CRI
				
				if = {
					limit = {
						has_war_with = SOV
					}
					CRI = {
						add_to_war = {
							targeted_alliance = ROOT 
							enemy = SOV
							hostility_reason = asked_to_join
						}
					}
				}
				if = {
					limit = {
						has_war_with = UKR
					}
					CRI = {
						add_to_war = {
							targeted_alliance = ROOT 
							enemy = UKR
							hostility_reason = asked_to_join
						}
					}
				}
				
				
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	release_turkish_kurdistan = {  

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GEO # Georgia 
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			} 
		}
  
		available = {
			is_subject = no
			controls_state = 352 # Hakkari
			controls_state = 353 # Tunceli
			controls_state = 350 # Diyarbakir
		}

		visible = {
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = anatolian_kurds_subjugated_flag }

				has_dlc = "No Step Back"
		}

		complete_effect = {
			
			custom_effect_tooltip = release_anatolian_kurdistan_tt 
			
			
			hidden_effect = { 
			
				set_global_flag = anatolian_kurds_subjugated_flag
				
				KUR = {
					transfer_state = 350 # Diyarbakir
					transfer_state = 352 # Hakkari
					transfer_state = 353 # Tunceli
					if = {
						limit = {
							ROOT = { controls_state = 344 } #Malatya
						}
						add_state_core = 344
						transfer_state = 344
					}
					load_oob = "KUR_liberation_troops"
				}
				
				puppet = KUR
				
				if = {
					limit = {
						has_war_with = TUR
					}
					KUR = {
						add_to_war = {
							targeted_alliance = ROOT 
							enemy = TUR
							hostility_reason = asked_to_join
						}
					}
				}
				
				
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}



form_siberia_category = {
	
	form_siberian_republic = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		visible = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
			NOT = { has_global_flag = form_siberian_republic_flag }
			has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 564 # Buryatia
				state = 563 # Chita
				state = 574 # Yakutsk
				state = 516 # Taymyria
				state = 644 # Kolyma
				state = 876 # Udachny
				state = 877 # Verkhoyansk
				state = 878 # Khatagansky
				state = 565 # Bodaybo
				state = 575 # Kirensk
				state = 576 # Yeniseisk
			}
		}

		available = {
			controls_state = 564 # Buryatia
			controls_state = 563 # Chita
			controls_state = 574 # Yakutsk
			controls_state = 516 # Taymyria
			controls_state = 644 # Kolyma
			controls_state = 876 # Udachny
			controls_state = 877 # Verkhoyansk
			controls_state = 878 # Khatagansky
			controls_state = 565 # Bodaybo
			controls_state = 575 # Kirensk
			controls_state = 576 # Yeniseisk
		}

		complete_effect = {

			set_cosmetic_tag = siberia_unified
			
			custom_effect_tooltip = form_siberia_russian_siberia_coring_states_tt
			
			custom_effect_tooltip = form_siberia_yakutia_coring_states_tt
			
			custom_effect_tooltip = form_siberia_altai_coring_states_tt
			
			custom_effect_tooltip = form_siberia_ostyak_coring_states_tt
			
			custom_effect_tooltip = form_siberia_yamalia_coring_states_tt
			
			# Taymyria
			516 = { add_core_of = ROOT }
			
			# Buryatia
			564 = { add_core_of = ROOT }
			
			# Tannu Tuva
			329 = { add_core_of = ROOT }
			
			# Chita
			563 = { add_core_of = ROOT }

			# Yeniseisk
			576 = { add_core_of = ROOT }

			# Kirensk
			575 = { add_core_of = ROOT }

			# Boyadbo
			565 = { add_core_of = ROOT }

			# Kemerovo/Khakassia
			569 = { add_core_of = ROOT }
			
			hidden_effect = { 
			
				# Yakutsk
				574 = { add_core_of = ROOT }
				
				# Kolyma
				644 = { add_core_of = ROOT }

				# Udachny
				876 = { add_core_of = ROOT }

				# Verkhoyansk
				877 = { add_core_of = ROOT }
				
				# Oyrot Region
				654 = { add_core_of = ROOT }
				
				# Altai Krai
				40 = { add_core_of = ROOT }
				
				# Surgut
				577 = { add_core_of = ROOT }
				
				# Tobolsk
				580 = { add_core_of = ROOT }
				
				# Yamalia
				824 = { add_core_of = ROOT }
				
				# Salekhard
				579 = { add_core_of = ROOT }
				
				# Tyumen
				403 = { add_core_of = ROOT }
				
				# Omsk
				571 = { add_core_of = ROOT }
				
				# Tomsk
				578 = { add_core_of = ROOT }
				
				# Novosibirsk
				570 = { add_core_of = ROOT }
				
				# Krasnoyarsk
				568 = { add_core_of = ROOT }
				
				# Bratsk
				567 = { add_core_of = ROOT }
				
				# Irkutsk
				566 = { add_core_of = ROOT }

				#Khatangsky
				878 = { add_core_of = ROOT }
				
				news_event = { id = nsb_news.303 hours = 8 }
				
				set_global_flag = form_siberian_republic_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	conquer_the_fareast = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		visible = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = far_east_integrated_flag }
			has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 822 # Chukotka
				state = 875 # Chukchi Peninsula
				state = 637 # Kamchatka
				state = 562 # Okhotsk
				state = 874 # Magadan
				state = 560 # Nikolayevsk
				state = 655 # North Sakhalin
				state = 561 # Amur
				state = 657 # Birobidzhan
				state = 409 # Khabravosk
				state = 408 # Vladivostok
			}
		}

		available = {
			controls_state = 822 # Chukotka
			controls_state = 875 # Chukchi Peninsula
			controls_state = 637 # Kamchatka
			controls_state = 562 # Okhotsk
			controls_state = 874 # Magadan
			controls_state = 560 # Nikolayevsk
			controls_state = 655 # North Sakhalin
			controls_state = 561 # Amur
			controls_state = 657 # Birobidzhan
			controls_state = 409 # Khabravosk
			controls_state = 408 # Vladivostok
		}

		complete_effect = {
			
			custom_effect_tooltip = far_eastern_states_coring_states_tt
			
			hidden_effect = { 
			
				# Chukotka
				822 = { add_core_of = ROOT }
				
				# Chukchi Peninsula
				875 = { add_core_of = ROOT }
				
				# Kamchatka
				637 = { add_core_of = ROOT }
				
				# Okhotsk
				562 = { add_core_of = ROOT }
				
				# Magadan
				874 = { add_core_of = ROOT }
				
				# Amur
				561 = { add_core_of = ROOT }
				
				# Birobidzhan
				657 = { add_core_of = ROOT }
				
				# Nikolayevsk
				560 = { add_core_of = ROOT }
				
				# North Sakhalin
				655 = { add_core_of = ROOT }
				
				# Khabravosk
				409 = { add_core_of = ROOT }
				
				# Vladivostok
				408 = { add_core_of = ROOT }
				
				set_global_flag = far_east_integrated_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	push_to_the_urals = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		visible = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = urals_integrated_flag }
			has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 653 # Sverdlovsk
				state = 572 # Chelyabinsk
				state = 582 # Magnitogorsk
				state = 573 # Zlatoust
				state = 398 # Perm
				state = 581 # Northern Urals
			}
		}

		available = {
			controls_state = 653 # Sverdlovsk
			controls_state = 572 # Chelyabinsk
			controls_state = 582 # Magnitogorsk
			controls_state = 573 # Zlatoust
			controls_state = 398 # Perm
			controls_state = 581 # Northern Urals
		}

		complete_effect = {
		
			# Sverdlovsk
			653 = { add_core_of = ROOT }
			
			# Chelyabinsk
			572 = { add_core_of = ROOT }
			
			# Magnitogorsk
			582 = { add_core_of = ROOT }
			
			# Zlatoust
			573 = { add_core_of = ROOT }
			
			# Perm
			398 = { add_core_of = ROOT }
			
			# Northern Urals
			581 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = urals_integrated_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
	
	
	liberate_the_ainu = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		visible = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = ainu_integrated_flag }
			has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 537 # South Sakhalin
				state = 555 # Kuril Islands
				state = 536 # Hokkaido
			}
		}

		available = {
			controls_state = 537 # South Sakhalin
			controls_state = 555 # Kuril Islands
			controls_state = 536 # Hokkaido
		}

		complete_effect = {
		
			# South Sakhalin
			537 = { add_core_of = ROOT }
			
			# Kuril Islands
			555 = { add_core_of = ROOT }
			
			# Hokkaido
			536 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = ainu_integrated_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	liberate_manchuria = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		visible = {
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = manchus_integrated_flag }
			has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 761 # Hulunbuir
				state = 714 # Heliungkiang
				state = 717 # Sungkiang
				state = 715 # Liaoning
				state = 328 # Kirin
				state = 716 # Liaotung
				state = 610 # Jehol
				state = 745 # Dalian
			}
		}

		available = {
			controls_state = 761 # Hulunbuir
			controls_state = 714 # Heliungkiang
			controls_state = 717 # Sungkiang
			controls_state = 715 # Liaoning
			controls_state = 328 # Kirin
			controls_state = 716 # Liaotung
			controls_state = 610 # Jehol
			controls_state = 745 # Dalian
		}

		complete_effect = {
		
			# Hulunbuir
			761 = { add_core_of = ROOT }
			
			# Heliungkiang
			714 = { add_core_of = ROOT }
			
			# Sungkiang
			717 = { add_core_of = ROOT }

			# Liaoning
			715 = { add_core_of = ROOT }

			# Kirin
			328 = { add_core_of = ROOT }

			# Liaotung
			716 = { add_core_of = ROOT }

			# Jehol
			610 = { add_core_of = ROOT }

			# Dalian
			745 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = manchus_integrated_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}




form_idel_ural_category = {
	
	form_idel_uralic_republic = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = MEL # Mari EL
				original_tag = CHU # Chuvashia
				original_tag = TAT # Tatarstan
				original_tag = UDM # Udmurtia
				original_tag = BSK # Bashkortostan
			}
		}

		visible = {
			OR = {
				original_tag = MEL # Mari EL
				original_tag = CHU # Chuvashia
				original_tag = TAT # Tatarstan
				original_tag = UDM # Udmurtia
				original_tag = BSK # Bashkortostan
			}
			NOT = { has_global_flag = form_idel_ural_flag }
			has_dlc = "No Step Back"
		}

		available = {
			controls_state = 833 # Mari El
			controls_state = 256 # Chuvashia
			controls_state = 249 # Kazan
			controls_state = 399 # Udmurtia
			controls_state = 651 # Ufa
		}

		complete_effect = {
			set_cosmetic_tag = idel_ural
			
			# Kazan
			249 = { add_core_of = ROOT }
			
			# Mari El
			833 = { add_core_of = ROOT }
			
			# Chuvashia
			256 = { add_core_of = ROOT }
			
			# Udmurtia
			399 = { add_core_of = ROOT }
			
			# Ufa
			651 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				news_event = { id = nsb_news.304 hours = 8 }
				
				set_global_flag = form_idel_ural_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}

form_ethiopian_empire_category  = {
	
	form_empire_of_axum = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ETH # Ethiopia # Maybe add Eritrea as well? 
		}

		available = {
			controls_all_ethiopian_core_states = yes 
			controls_state = 550 # Eritrea 
			controls_state = 293 # Yemen 
		}

		visible = {
			has_completed_focus = ETH_restore_the_empire_of_axum
			NOT = { has_global_flag = form_axum_flag }
		}

		complete_effect = {
			set_cosmetic_tag = empire_of_axum		
			659 = { add_core_of = ROOT }
			550 = { add_core_of = ROOT }
			293 = { add_core_of = ROOT }
			906 = { add_core_of = ROOT }
			268 = { add_core_of = ROOT }
			883 = { add_core_of = ROOT }
			551 = { add_core_of = ROOT }
			886 = { add_core_of = ROOT }
		
			hidden_effect = { 
				#TODO_TA make news event 
				# news_event = { id = nsb_news.304 hours = 8 }
				
				set_global_flag = form_axum_flag
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ETH_move_capital_to_axum = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ETH # Ethiopia 
		}

		available = {
			controls_all_ethiopian_core_states = yes 
			842 = { 
				is_owned_by = ROOT 
				is_fully_controlled_by = ROOT 
			}
			NOT = { has_country_flag = ETH_has_moved_capital_flag }
		}
		cost = 50 

		visible = {
			has_cosmetic_tag = empire_of_axum
		}
		fire_only_once = yes 

		complete_effect = {
			set_capital = {
				state = 842 
				remember_old_capital = no
			}
			842 = {
				add_victory_points = {
					province = 13237
					value = 5
				}
				ETH_upgrade_state_category = yes 
			}
			#custom_effect_tooltip = ETH_prevents_further_capital_moves_tt
			#set_country_flag = ETH_has_moved_capital_flag
		}

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	form_empire_of_solomon = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ETH # Ethiopia 
		}

		available = {
			controls_all_ethiopian_core_states = yes 
			controls_state = 454 # Palestine 
			controls_state = 453 # Siniai
			controls_state = 446 # Suez
		}

		visible = {
			has_completed_focus = ETH_the_one_true_heir_of_solomon
			NOT = { has_global_flag = form_empire_of_solomon_flag }
		}

		complete_effect = {
			set_cosmetic_tag = empire_of_solomon		
			453 = { add_core_of = ROOT }
			446 = { add_core_of = ROOT }
			907 = { add_core_of = ROOT }
			447 = { add_core_of = ROOT }
			457 = { add_core_of = ROOT }
			456 = { add_core_of = ROOT }
		
			hidden_effect = { 
				news_event = {
					id = bba_news.5
					hours = 8
				}
				
				set_global_flag = form_empire_of_solomon_flag
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	ETH_move_capital_to_jerusalem = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ETH # Ethiopia 
		}

		available = {
			controls_all_ethiopian_core_states = yes 
			454 = { 
				is_owned_by = ROOT 
				is_fully_controlled_by = ROOT 
			}
			NOT = { has_country_flag = ETH_has_moved_capital_flag }
		}
		cost = 50 

		visible = {
			454 = { is_owned_and_controlled_by = ROOT }
			OR = {
				has_government = neutrality
				has_government = fascism
			}
			NOT = { has_cosmetic_tag = gojjam }
			NOT = { has_cosmetic_tag = jimma }
		}
		fire_only_once = yes 

		complete_effect = {
			set_capital = {
				state = 454 
				remember_old_capital = no
			}
			454 = {
				add_victory_points = {
					province = 1086
					value = 9
				}
				ETH_upgrade_state_category = yes 
				add_core_of = ROOT 
			}
			custom_effect_tooltip = ETH_prevents_further_capital_moves_tt
			set_country_flag = ETH_has_moved_capital_flag
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	form_empire_of_zion = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ETH # Ethiopia 
		}

		available = {
			controls_all_ethiopian_core_states = yes 
			controls_state = 689
		}

		visible = {
			has_completed_focus = ETH_jah
			NOT = { has_global_flag = form_empire_of_zion_flag }
		}

		complete_effect = {
			set_cosmetic_tag = empire_of_zion
			custom_effect_tooltip = create_empire_of_zion_tt	
			hidden_effect = { 
				every_state = {
					limit = {
						OR = {
							region = 170
							region = 53
							state = 695
						}
						is_controlled_by_ROOT_or_subject = yes 
					}
					remove_claim_by = ROOT 
					add_core_of = ROOT 
				}
				
				set_global_flag = form_empire_of_zion_flag
				
			}
			news_event = {
				id = bba_news.6
				hours = 10
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}


form_east_africa_category = {
	
	form_east_africa = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				AND = {
					has_dlc = "Gotterdammerung"
					original_tag = COG # Congo
					has_completed_focus = COG_unify_east_africa
				}
			}
			NOT = { has_global_flag = form_east_africa_flag }
		}

		available = {
			controls_state = 546 # Tanganyika
			controls_state = 547 # Nairobi
			controls_state = 905 # Mombasa
			controls_state = 904 # Nyanza-Rift Velley
			controls_state = 548 # Uganda
		}

		complete_effect = {
			set_cosmetic_tag = east_africa
			
			# Tanganyika
			546 = { add_core_of = ROOT }
			
			# Nairobi
			547 = { add_core_of = ROOT }

			# Nyanza-Rift Valley
			904 = { add_core_of = ROOT }

			# Mombasa
			905 = { add_core_of = ROOT }
			
			# Uganda
			548 = { add_core_of = ROOT }

			# Rwanda
			768 = { add_claim_by = ROOT }
				
			# Burundi
			769 = { add_claim_by = ROOT }

			# Jubaland
			844 = { add_claim_by = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				news_event = { id = bba_africa_news.1 hours = 8 }
				
				set_global_flag = form_east_africa_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	integrate_ruanda_urundi = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		fire_only_once = yes

		visible = {
			
			has_global_flag = form_east_africa_flag
			

		}

		available = {
			controls_state = 768 # Rwanda
			controls_state = 769 # Burundi
		}

		complete_effect = {
		
			# Rwanda
			768 = { add_core_of = ROOT }
			
			# Burundi
			769 = { add_core_of = ROOT }
			
			
		}

		ai_will_do = {
			base = 200
		}
	}

	dominate_malawi = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

		available = {
			controls_state = 770 # Malawi
			controls_state = 897 # Zambezia-Mocambique 
		}

		fire_only_once = yes

		complete_effect = {
		
			# Malawi
			770 = { add_core_of = ROOT }
			
			# Zambezia-Mocambique 
			897 = { add_core_of = ROOT }
			
			
		}

		ai_will_do = {
			base = 200
		}
	}

	liberate_sidamo = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

		available = {
			controls_state = 837 # Sidamo
		}
		
		fire_only_once = yes

		complete_effect = {
		
			# Sidamo
			837 = { add_core_of = ROOT }
			
			
		}

		ai_will_do = {
			base = 200
		}
	}

	unite_the_somalis = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

		available = {
			controls_state = 844 # Jubaland
			controls_state = 559 # Somaliland
			controls_state = 269 # British Somaliland
			controls_state = 836 # Bale
			controls_state = 835 # Hararghe
			controls_state = 268 # Djibouti
			controls_state = 903 # Garissa
		}

		fire_only_once = yes

		complete_effect = {
		
			# Jubaland
			844 = { add_core_of = ROOT }

			# Garissa
			903 = { add_core_of = ROOT }

			# Somaliland
			559 = { add_core_of = ROOT }

			# British Somaliland
			269 = { add_core_of = ROOT }

			# Bale
			836 = { add_core_of = ROOT }

			# Hararghe
			835 = { add_core_of = ROOT }

			# Djibouti
			268 = { add_core_of = ROOT }

			# Socotra
			906 = { add_claim_by = ROOT }
			
			
		}

		ai_will_do = {
			base = 200
		}
	}

	conquer_the_comoros = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG # Congo
			}
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

		available = {
			controls_state = 708 # Comoro Islands
		}

		fire_only_once = yes

		complete_effect = {
		
			# Comoro Islands
			708 = { add_core_of = ROOT }
			
		}

		ai_will_do = {
			base = 200
		}
	}
}


form_horn_of_africa_africa_category = {
	
	form_the_horn_of_africa = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
		}

		visible = {
			IF = {
				limit = {
					original_tag = ETH
				}
				has_completed_focus = ETH_develop_the_horn_of_africa
			}
			ELSE_IF = {
				limit = {
					OR = {
						original_tag = AFA
						original_tag = ORO
						original_tag = QEM
						original_tag = TIG
						original_tag = BEG
						original_tag = HAR
						original_tag = SID
						original_tag = GBA
					}
				}
				has_completed_focus = HOA_proclaim_east-african_hegemony
			}
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
			NOT = { has_global_flag = form_horn_of_africa_flag }

			has_dlc = "By Blood Alone"
		}

		available = {
			IF = {
				limit = {
					original_tag = ETH
				}
				has_completed_focus = ETH_develop_the_horn_of_africa
				controls_state = 842 # Tigray
				controls_state = 843 # Wello
				controls_state = 908 # Afar
				controls_state = 841 # Begemder
				controls_state = 840 # Gojjam
				controls_state = 839 # Welega
				controls_state = 838 # Illubabor-Kaffa
				controls_state = 837 # Sidamo
				controls_state = 271 # Shewa
				controls_state = 836 # Bale
				controls_state = 835 # Hararghe
				controls_state = 550 # Eritrea
				controls_state = 268 # French Somaliland
				controls_state = 269 # British Somaliland
				controls_state = 559 # Somaliland
				controls_state = 844 # Jubaland
			}
			ELSE_IF = {
				limit = {
					OR = {
						original_tag = AFA
						original_tag = ORO
						original_tag = QEM
						original_tag = TIG
						original_tag = BEG
						original_tag = HAR
						original_tag = SID
						original_tag = GBA
					}
				}
				has_completed_focus = HOA_proclaim_east-african_hegemony
				controls_state = 842 # Tigray
				controls_state = 843 # Wello
				controls_state = 908 # Afar
				controls_state = 841 # Begemder
				controls_state = 840 # Gojjam
				controls_state = 839 # Welega
				controls_state = 838 # Illubabor-Kaffa
				controls_state = 837 # Sidamo
				controls_state = 271 # Shewa
				controls_state = 836 # Bale
				controls_state = 835 # Hararghe
				controls_state = 550 # Eritrea
				controls_state = 268 # French Somaliland
				controls_state = 269 # British Somaliland
				controls_state = 559 # Somaliland
				controls_state = 844 # Jubaland
			}
			ELSE = {
				controls_state = 842 # Tigray
				controls_state = 843 # Wello
				controls_state = 908 # Afar
				controls_state = 841 # Begemder
				controls_state = 840 # Gojjam
				controls_state = 839 # Welega
				controls_state = 838 # Illubabor-Kaffa
				controls_state = 837 # Sidamo
				controls_state = 271 # Shewa
				controls_state = 836 # Bale
				controls_state = 835 # Hararghe
				controls_state = 550 # Eritrea
				controls_state = 268 # French Somaliland
				controls_state = 269 # British Somaliland
				controls_state = 559 # Somaliland
				controls_state = 844 # Jubaland
			}
		}

		complete_effect = {
			set_cosmetic_tag = horn_of_africa
			
			# Tigray
			842 = { add_core_of = ROOT }
			
			# Wello
			843 = { add_core_of = ROOT }

			# Afar
			908 = { add_core_of = ROOT }
			
			# Begemder
			841 = { add_core_of = ROOT }
			
			# Gojjam
			840 = { add_core_of = ROOT }
			
			# Welega
			839 = { add_core_of = ROOT }

			# Illubabor-Kaffa
			838 = { add_core_of = ROOT }

			# Sidamo
			837 = { add_core_of = ROOT }

			# Shewa
			271 = { add_core_of = ROOT }

			# Bale
			836 = { add_core_of = ROOT }

			# Hararghe
			835 = { add_core_of = ROOT }

			# Eritrea
			550 = { add_core_of = ROOT }

			# French Somaliland
			268 = { add_core_of = ROOT }

			# British Somaliland
			269 = { add_core_of = ROOT }

			# Somaliland
			559 = { add_core_of = ROOT }

			# Jubaland
			844 = { add_core_of = ROOT }

			# Socotra
			906 = { add_claim_by = ROOT }
			
			hidden_effect = { 
				
				news_event = { id = bba_africa_news.2 hours = 8 }
				
				set_global_flag = form_horn_of_africa_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}

	conquer_socotra = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
		}

		visible = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = socotra_conquered_flag }
			has_dlc = "By Blood Alone"
		}

		available = {
			controls_state = 906 # Socotra
		}

		complete_effect = {
		
			# Socotra
			906 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = socotra_conquered_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}


	integrate_the_south = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
		}

		visible = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = integrate_the_south_flag }

			has_dlc = "By Blood Alone"
		}

		available = {
			controls_state = 903 # Garissa
			controls_state = 547 # Nairobi
			controls_state = 905 # Mombasa
			controls_state = 904 # Nyanza-Rift Valley
			controls_state = 548 # Uganda
		}

		complete_effect = {
		
			# Garissa
			903 = { add_core_of = ROOT }

			# Nairobi
			547 = { add_core_of = ROOT }

			# Mombasa
			905 = { add_core_of = ROOT }

			# Nyanza-Rift Valley
			904 = { add_core_of = ROOT }

			# Uganda
			548 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = integrate_the_south_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}


	the_upper_nile = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
		}

		visible = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = the_upper_nile_flag }

			has_dlc = "By Blood Alone"
		}

		available = {
			controls_state = 886 # Blue Nile
			controls_state = 884 # Upper Nile
		}

		complete_effect = {
		
			# Blue Nile
			886 = { add_core_of = ROOT }

			# Upper Nile
			884 = { add_core_of = ROOT }
			
			hidden_effect = { 
				
				set_global_flag = the_upper_nile_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}


greater_italy_category = {
	
	proclaim_greater_italy = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ITA # Italy
		}

		visible = {
			OR = {
				original_tag = ITA # Italy
			}
			
			NOT = { has_global_flag = greater_italy_flag }
			
		}

		available = {
			has_completed_focus = ITA_towards_a_greater_italy
			custom_trigger_tooltip = {
				tooltip = greater_italy_required_states
				controls_state = 852 # Istria
				controls_state = 736 # Litorale
				controls_state = 160 # Veneto
				controls_state = 39 # Alto Adige
				controls_state = 850 # Trentino
				controls_state = 159 # Lombardia
				controls_state = 158 # Piedmonte
				controls_state = 161 # Emilia Romagna
				controls_state = 162 # Toscana 
				controls_state = 157 # Abruzzo
				controls_state = 2 # Latium
				controls_state = 849 # Puglia
				controls_state = 117 # Campania
				controls_state = 156 # Calabria
				controls_state = 115 # Sicilia
				controls_state = 114 # Sardegna
			}  
			custom_trigger_tooltip = {
				tooltip = greater_italy_required_other_states 
				AND = {
					OR = {
						ITA = { 
						controls_state = 1 # Corsica 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 1 # Corsica
						}
					}
					OR = {
						ITA = { 
						controls_state = 846 # Ticino 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 846 # Ticino
						}
					}
					OR = {
						ITA = { 
						controls_state = 735 # Savoy 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 735 # Savoy
						}
					}
					OR = {
						ITA = { 
						controls_state = 163 # Zara 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 163 # Zara
						}
					}
					OR = {
						ITA = { 
						controls_state = 103 # Dalmatia 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 103 # Dalmatia
						}
					}
					OR = {
						ITA = { 
						controls_state = 853 # Ljubljana 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 853 # Ljubljana
						}
					}
					OR = {
						ITA = { 
						controls_state = 116 # Malta 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 116 # Malta
						}
					}
					OR = {
						ITA = { 
						controls_state = 182 # Crete 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 182 # Crete
						}
					}
					OR = {
						ITA = { 
						controls_state = 164 # Dodecaneso 
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 164 # Dodecaneso
						}
					}
				}
			}
			
		}

		complete_effect = {
			set_cosmetic_tag = greater_italy 
			
			custom_effect_tooltip = greater_italy_effect_tooltip
			
			add_ideas = ITA_italia_irredenta_achieved
			
			hidden_effect = { 

				# Corsica
				ITA = {
					transfer_state = 1
				}
				1 = { 
					add_core_of = ROOT
					set_state_name = ITA_italian_corsica_name
				}
				set_province_name = {
				    id = 3838 
				    name = ITA_italian_ajaccio_name   
				} 
				
				# Ticino
				ITA = {
					transfer_state = 846
				}
				846 = { add_core_of = ROOT }
				
				# Savoy
				ITA = {
					transfer_state = 735
				}
				735 = { 
					add_core_of = ROOT
					set_state_name = ITA_italian_savoy_name
				}
				set_province_name = {
				    id = 9909 
				    name = ITA_italian_nice_name
				} 
				set_province_name = {
				    id = 778  
				    name = ITA_italian_annecy_name
				} 
				 
				# Zara
				ITA = {
					transfer_state = 163
				} 
				163 = { add_core_of = ROOT }
				
				# Dalmatia
				ITA = {
					transfer_state = 103
				}
				103 = { 
					add_core_of = ROOT 
					set_state_name = ITA_italian_dalmatia_name
				}
				set_province_name = {
				    id = 3924
				    name = ITA_italian_split_name
				} 
				set_province_name = {
				    id = 6889  
				    name = ITA_italian_dubrovnik_name
				} 
	 
				# Ljubljana
				ITA = {
					transfer_state = 853
				}
				853 = { 
					add_core_of = ROOT 
					set_state_name = ITA_italian_ljubljana_state_name
				}
				set_province_name = {
				    id = 9627
				    name = ITA_italian_ljubljana_name
				}

				# Malta
				ITA = {
					transfer_state = 116
				}
				116 = { add_core_of = ROOT }

				# Crete
				ITA = {
					transfer_state = 182
				}
				182 = { 
					add_core_of = ROOT 
					set_state_name = ITA_italian_crete_name
				}
				set_province_name = {
				    id = 12058  
				    name = ITA_italian_chania_name 
				} 
				set_province_name = {
				    id = 9940  
				    name = ITA_italian_heraklion_name 
				} 

				# Dodecaneso
				ITA = {
					transfer_state = 164
				}
				164 = { add_core_of = ROOT }

				news_event = { id = bba_italian_formables_news.1 hours = 8 }	

				set_global_flag = greater_italy_flag

			}
		}

		ai_will_do = {
			base = 500
		}
	}
}

form_sweden_hungary_category = {
	
	proclaim_sweden_hungary = { 

		icon = generic_form_nation

		allowed = {
			original_tag = HUN # Hungary
		}

		visible = {
			
			original_tag = HUN # Hungary
			
			NOT = { has_global_flag = sweden_hungary_formed_flag }

			has_completed_focus = wuw_HUN_elect_a_democratic_king
			
		}

		available = {
			has_completed_focus = wuw_HUN_elect_a_democratic_king # They have a Swedish King
			has_country_flag = HUN_carl_wilhelm_took_absolute_control
			custom_trigger_tooltip = {
				tooltip = sweden_hungary_required_states
				controls_state = 155 # North Transdanubia
				controls_state = 974 # South Transdanubia
				controls_state = 43 # Northern Hungary
				controls_state = 973 # Bacs Bodrog
				controls_state = 154 # Alföld
			}  
			custom_trigger_tooltip = {
				tooltip = sweden_hungary_required_other_states 
				AND = {
					OR = {
						HUN = { 
						controls_state = 138 # Skåne 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 138 # Skåne 
						}
					}
					OR = {
						HUN = { 
						controls_state = 139 # Småland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 139 # Småland
						}
					}
					OR = {
						HUN = { 
						controls_state = 140 # Västergötland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 140 # Västergötland
						}
					}
					OR = {
						HUN = { 
						controls_state = 915 # Bohuslän 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 915 # Bohuslän
						}
					}
					OR = {
						HUN = { 
						controls_state = 124 # Gotland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 124 # Gotland
						}
					}
					OR = {
						HUN = { 
						controls_state = 913 # Östergötland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 913 # Östergötland
						}
					}
					OR = {
						HUN = { 
						controls_state = 919 # Värmland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 919 # Värmland
						}
					}
					OR = {
						HUN = { 
						controls_state = 141 # Södermanland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 141 # Södermanland
						}
					}
					OR = {
						HUN = { 
						controls_state = 916 # Dalarna 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 916 # Dalarna
						}
					}
					OR = {
						HUN = { 
						controls_state = 38 # Gävleborg 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 38 # Gävleborg
						}
					}
					OR = {
						HUN = { 
						controls_state = 917 # Jämtland 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 917 # Jämtland
						}
					}
					OR = {
						HUN = { 
						controls_state = 918 # Västerbotten 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 918 # Västerbotten
						}
					}
					OR = {
						HUN = { 
						controls_state = 666 # Norrbotten 
						}
						any_country = {
							is_subject_of = HUN
							controls_state = 666 # Norrbotten
						}
					}
				}
			}
			
		}

		complete_effect = {
			set_cosmetic_tag = HUN_sweden_hungary_unified 
			
			custom_effect_tooltip = sweden_hungary_effect_tooltip
			
			hidden_effect = { 

				# Skåne
				HUN = {
					transfer_state = 138
				}
				138 = { 
					add_core_of = ROOT
				}
				
				# Småland
				HUN = {
					transfer_state = 139
				}
				139 = { 
					add_core_of = ROOT
				}

				# Västergötland
				HUN = {
					transfer_state = 140
				}
				140 = { 
					add_core_of = ROOT
				}

				# Bohuslän
				HUN = {
					transfer_state = 915
				}
				915 = { 
					add_core_of = ROOT
				}

				# Östergötland!!!!!!!
				HUN = {
					transfer_state = 913
				}
				913 = { 
					add_core_of = ROOT
				}

				# Gotland
				HUN = {
					transfer_state = 124
				}
				124 = { 
					add_core_of = ROOT
				}

				# Värmland..
				HUN = {
					transfer_state = 919
				}
				919 = { 
					add_core_of = ROOT
				}

				# Södermanland
				HUN = {
					transfer_state = 141
				}
				141 = { 
					add_core_of = ROOT
				}

				# Dalarna
				HUN = {
					transfer_state = 916
				}
				916 = { 
					add_core_of = ROOT
				}

				# Gävleborg
				HUN = {
					transfer_state = 38
				}
				38 = { 
					add_core_of = ROOT
				}

				# Jämtland
				HUN = {
					transfer_state = 917
				}
				917 = { 
					add_core_of = ROOT
				}

				# Västerbotten
				HUN = {
					transfer_state = 918
				}
				918 = { 
					add_core_of = ROOT
				}

				# Norrbotten
				HUN = {
					transfer_state = 666
				}
				666 = { 
					add_core_of = ROOT
				}

				set_global_flag = sweden_hungary_formed_flag

			}
		}

		ai_will_do = {
			base = 500
		}
	}
}

antilles_category = {
	
	unite_the_antilles = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
		}

		visible = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
			
			NOT = { has_global_flag = antilles_formed_flag }
			
		}

		available = {
			
			319 = {
				is_fully_controlled_by = ROOT
			}

			318 = {
				is_fully_controlled_by = ROOT
			}

			315 = {
				is_fully_controlled_by = ROOT
			}

		}

		complete_effect = {
			set_cosmetic_tag = antilles 

			custom_effect_tooltip = generic_skip_one_line_tt
			
			# Dominican Republic
			IF =  {
				limit = {
					NOT = {
						319 = {
							is_core_of = ROOT
						}
					}
				}
				319 = { add_core_of = ROOT }
			}
			
			# Haiti
			IF =  {
				limit = {
					NOT = {
						318 = {
							is_core_of = ROOT
						}
					}
				}
				318 = { add_core_of = ROOT }
			}

			# Cuba
			IF =  {
				limit = {
					NOT = {
						315 = {
							is_core_of = ROOT
						}
					}
				}
				315 = { add_core_of = ROOT }
			}

			# Jamaica
			IF =  {
				limit = {
					NOT = {
						689 = {
							is_core_of = ROOT
						}
					}
				}
				689 = { add_core_of = ROOT }
			}

			# Northern Bahamas
			IF =  {
				limit = {
					NOT = {
						690 = {
							is_core_of = ROOT
						}
					}
				}
				690 = { add_core_of = ROOT }
			}

			# Southern Bahamas
			IF =  {
				limit = {
					NOT = {
						693 = {
							is_core_of = ROOT
						}
					}
				}
				693 = { add_core_of = ROOT }
			}

			# Puerto Rico
			IF =  {
				limit = {
					NOT = {
						686 = {
							is_core_of = ROOT
						}
					}
				}
				686 = { add_core_of = ROOT }
			}

			# French Caribbean
			IF =  {
				limit = {
					NOT = {
						694 = {
							is_core_of = ROOT
						}
					}
				}
				694 = { add_core_of = ROOT }
			}

			# Leeward Islands
			IF =  {
				limit = {
					NOT = {
						308 = {
							is_core_of = ROOT
						}
					}
				}
				308 = { add_core_of = ROOT }
			}

			# Windward Islands
			IF =  {
				limit = {
					NOT = {
						692 = {
							is_core_of = ROOT
						}
					}
				}
				692 = { add_core_of = ROOT }
			}

			hidden_effect = {
				set_global_flag = antilles_formed_flag

				news_event = { 
					id = south_american_news.20
					hours = 6
				}

			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	integrate_the_netherlands_antilles = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
		}

		visible = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
			
			has_global_flag = antilles_formed_flag
			NOT = { has_global_flag = integrated_curacao_flag }
			
		}

		available = {
			
			695 = {
				is_fully_controlled_by = ROOT
			}

		}

		complete_effect = {

			custom_effect_tooltip = generic_skip_one_line_tt
			
			# Curacao
			IF =  {
				limit = {
					NOT = {
						695 = {
							is_core_of = ROOT
						}
					}
				}
				695 = { add_core_of = ROOT }
			}

			hidden_effect = {
				set_global_flag = integrated_curacao_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	integrate_trinidad_and_tobago = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
		}

		visible = {
			OR = {
				original_tag = HAI # Haiti
				original_tag = DOM # Dominican Republic
				original_tag = PUE # Puerto Rico
				original_tag = CUB # Cuba
				original_tag = JAM # Jamaica
				original_tag = BAH # Bahamas
				original_tag = GDL # Guadeloupe 
				original_tag = BAS # British Antilles 
			}
			
			has_global_flag = antilles_formed_flag
			NOT = { has_global_flag = integrated_tobago_flag }
			
		}

		available = {
			
			691 = {
				is_fully_controlled_by = ROOT
			}

		}

		complete_effect = {

			custom_effect_tooltip = generic_skip_one_line_tt
			
			# Tobago
			IF =  {
				limit = {
					NOT = {
						691 = {
							is_core_of = ROOT
						}
					}
				}
				691 = { add_core_of = ROOT }
			}

			hidden_effect = {
				set_global_flag = integrated_tobago_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}
}

latin_africa_category = {
	
	unite_latin_africa = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = COG # Congo Leopoldville
				original_tag = KAT # Katanga
				original_tag = RCG # Congo Brazzaville
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = ANG # Angola
				original_tag = GAB # Gabon 
				original_tag = EQG # Equatorial Guinea
				original_tag = CMR # Cameroon
				original_tag = CHA # Chad
				original_tag = CAR # Central African Republic
			}
		}

		visible = {
			OR = {
				original_tag = COG # Congo Leopoldville
				original_tag = KAT # Katanga
				original_tag = RCG # Congo Brazzaville
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = ANG # Angola
				original_tag = GAB # Gabon 
				original_tag = EQG # Equatorial Guinea
				original_tag = CMR # Cameroon
				original_tag = CHA # Chad
				original_tag = CAR # Central African Republic
			}
			
			NOT = { has_global_flag = latin_africa_formed_flag }
			
		}

		available = {
			
			295 = {
				is_controlled_by = ROOT
			}

			888 = {
				is_controlled_by = ROOT
			}

			889 = {
				is_controlled_by = ROOT
			}

			890 = {
				is_controlled_by = ROOT
			}

			718 = {
				is_controlled_by = ROOT
			}

			538 = {
				is_controlled_by = ROOT
			}

			768 = {
				is_controlled_by = ROOT
			}

			769 = {
				is_controlled_by = ROOT
			}

			796 = {
				is_controlled_by = ROOT
			}

			540 = {
				is_controlled_by = ROOT
			}

			891 = {
				is_controlled_by = ROOT
			}

			892 = {
				is_controlled_by = ROOT
			}

			772 = {
				is_controlled_by = ROOT
			}

			539 = {
				is_controlled_by = ROOT
			}

			297 = {
				is_controlled_by = ROOT
			}

			773 = {
				is_controlled_by = ROOT
			}

			660 = {
				is_controlled_by = ROOT
			}

			774 = {
				is_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 295
				state = 888
				state = 889
				state = 890
				state = 718
				state = 538
				state = 768
				state = 769
				state = 796
				state = 540
				state = 891
				state = 892
				state = 772
				state = 539
				state = 297
				state = 773
				state = 660
				state = 774
			}
		}

		complete_effect = {
			hidden_effect = {
				drop_cosmetic_tag = yes
			}
			set_cosmetic_tag = latin_africa 

			custom_effect_tooltip = generic_skip_one_line_tt
			
			# Leopoldville
			IF =  {
				limit = {
					NOT = {
						295 = {
							is_core_of = ROOT
						}
					}
				}
				295 = { add_core_of = ROOT }
			}
			
			# Coquilhatville
			IF =  {
				limit = {
					NOT = {
						538 = {
							is_core_of = ROOT
						}
					}
				}
				538 = { add_core_of = ROOT }
			}

			# Lusambo
			IF =  {
				limit = {
					NOT = {
						888 = {
							is_core_of = ROOT
						}
					}
				}
				888 = { add_core_of = ROOT }
			}

			# Elizabethville
			IF =  {
				limit = {
					NOT = {
						889 = {
							is_core_of = ROOT
						}
					}
				}
				889 = { add_core_of = ROOT }
			}

			# Costermanville
			IF =  {
				limit = {
					NOT = {
						890 = {
							is_core_of = ROOT
						}
					}
				}
				890 = { add_core_of = ROOT }
			}

			# Stanleyville
			IF =  {
				limit = {
					NOT = {
						718 = {
							is_core_of = ROOT
						}
					}
				}
				718 = { add_core_of = ROOT }
			}

			# Rwanda
			IF =  {
				limit = {
					NOT = {
						768 = {
							is_core_of = ROOT
						}
					}
				}
				768 = { add_core_of = ROOT }
			}

			# Burundi
			IF =  {
				limit = {
					NOT = {
						769 = {
							is_core_of = ROOT
						}
					}
				}
				769 = { add_core_of = ROOT }
			}

			# North Angola
			IF =  {
				limit = {
					NOT = {
						796 = {
							is_core_of = ROOT
						}
					}
				}
				796 = { add_core_of = ROOT }
			}

			# Luanda
			IF =  {
				limit = {
					NOT = {
						540 = {
							is_core_of = ROOT
						}
					}
				}
				540 = { add_core_of = ROOT }
			}

			# South West Angola
			IF =  {
				limit = {
					NOT = {
						892 = {
							is_core_of = ROOT
						}
					}
				}
				892 = { add_core_of = ROOT }
			}

			# Zambesi
			IF =  {
				limit = {
					NOT = {
						891 = {
							is_core_of = ROOT
						}
					}
				}
				891 = { add_core_of = ROOT }
			}

			# Middle Congo
			IF =  {
				limit = {
					NOT = {
						772 = {
							is_core_of = ROOT
						}
					}
				}
				772 = { add_core_of = ROOT }
			}

			# Gabon
			IF =  {
				limit = {
					NOT = {
						539 = {
							is_core_of = ROOT
						}
					}
				}
				539 = { add_core_of = ROOT }
			}

			# Equatorial Guinea
			IF =  {
				limit = {
					NOT = {
						297 = {
							is_core_of = ROOT
						}
					}
				}
				297 = { add_core_of = ROOT }
			}

			# Sao Tome
			IF =  {
				limit = {
					NOT = {
						705 = {
							is_core_of = ROOT
						}
					}
				}
				705 = { add_core_of = ROOT }
			}

			# Cameroon
			IF =  {
				limit = {
					NOT = {
						773 = {
							is_core_of = ROOT
						}
					}
				}
				773 = { add_core_of = ROOT }
			}

			# Equatorial Africa
			IF =  {
				limit = {
					NOT = {
						660 = {
							is_core_of = ROOT
						}
					}
				}
				660 = { add_core_of = ROOT }
			}

			# Chad
			IF =  {
				limit = {
					NOT = {
						774 = {
							is_core_of = ROOT
						}
					}
				}
				774 = { add_core_of = ROOT }
			}

			# B.E.T
			IF =  {
				limit = {
					NOT = {
						775 = {
							is_core_of = ROOT
						}
					}
				}
				775 = { add_core_of = ROOT }
			}

			hidden_effect = {
				set_global_flag = latin_africa_formed_flag

				news_event = { 
					id = ww_congo.16
					hours = 6
				}

			}
		}

		ai_will_do = {
			base = 2000
		}
	}
}


germany_formable_category = {
	
	declare_germany_reunified_decision = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = DNZ # Danzig
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
				AND = {
					original_tag = LUX # Luxembourg 
					has_game_rule = {
						rule = germany_fragmentation_status
						option = GERMANY_FRAGMENTED
					}
				}
				
			}
			
			NOT = { has_global_flag = germany_reformed_flag }
			
		}

		available = {
			
			909 = { # Schleswig
				is_controlled_by = ROOT
			}

			58 = { # Holstein
				is_controlled_by = ROOT
			}

			61 = { # Mecklenburg
				is_controlled_by = ROOT
			}

			62 = { # Vorpommern
				is_controlled_by = ROOT
			}

			#63 = { # Hinterpommern
			#	is_controlled_by = ROOT
			#}
			#
			#68 = { # Ostmark
			#	is_controlled_by = ROOT
			#}
			#
			#66 = { # Niederschlesien
			#	is_controlled_by = ROOT
			#}
			#
			#67 = { # Oberschlesien
			#	is_controlled_by = ROOT
			#}

			64 = { # Brandenburg
				is_controlled_by = ROOT
			}

			65 = { # Sachsen
				is_controlled_by = ROOT
			}

			60 = { # Thüringen
				is_controlled_by = ROOT
			}

			59 = { # Hannover
				is_controlled_by = ROOT
			}

			56 = { # Weser-Ems
				is_controlled_by = ROOT
			}

			57 = { # Westfalen
				is_controlled_by = ROOT
			}

			55 = { # Hessen
				is_controlled_by = ROOT
			}

			51 = { # Rhineland
				is_controlled_by = ROOT
			}

			42 = { # Moselland
				is_controlled_by = ROOT
			}

			978 = { # Baden
				is_controlled_by = ROOT
			}

			50 = { # Württemberg
				is_controlled_by = ROOT
			}

			54 = { # Franken
				is_controlled_by = ROOT
			}

			53 = { # Niederbayern
				is_controlled_by = ROOT
			}

			52 = { # Oberbayern
				is_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 909
				state = 58
				state = 61
				state = 62
				state = 64
				state = 65
				state = 60
				state = 59
				state = 56
				state = 57
				state = 55
				state = 51
				state = 42
				state = 978
				state = 50
				state = 54
				state = 53
				state = 52
			}
		}

		cost = 100

		complete_effect = {
			hidden_effect = {
				drop_cosmetic_tag = yes
			}
			set_cosmetic_tag = reunified_germany 

			custom_effect_tooltip = generic_skip_one_line_tt

			custom_effect_tooltip = declare_germany_reunified_decision_tt 
			hidden_effect = {
				# Brandenburg
				IF =  {
					limit = {
						NOT = {
							64 = {
								is_core_of = ROOT
							}
						}
					}
					64 = { add_core_of = ROOT }
				}

				# Vorpommern
				IF =  {
					limit = {
						NOT = {
							62 = {
								is_core_of = ROOT
							}
						}
					}
					62 = { add_core_of = ROOT }
				}

				# Mecklenburg
				IF =  {
					limit = {
						NOT = {
							61 = {
								is_core_of = ROOT
							}
						}
					}
					61 = { add_core_of = ROOT }
				}

				# Sachsen
				IF =  {
					limit = {
						NOT = {
							65 = {
								is_core_of = ROOT
							}
						}
					}
					65 = { add_core_of = ROOT }
				}

				# Holstein
				IF =  {
					limit = {
						NOT = {
							58 = {
								is_core_of = ROOT
							}
						}
					}
					58 = { add_core_of = ROOT }
				}

				# Schleswig
				IF =  {
					limit = {
						NOT = {
							909 = {
								is_core_of = ROOT
							}
						}
					}
					909 = { add_core_of = ROOT }
				}

				# Hannover
				IF =  {
					limit = {
						NOT = {
							59 = {
								is_core_of = ROOT
							}
						}
					}
					59 = { add_core_of = ROOT }
				}

				# Thüringen
				IF =  {
					limit = {
						NOT = {
							60 = {
								is_core_of = ROOT
							}
						}
					}
					60 = { add_core_of = ROOT }
				}

				# Weser-Ems
				IF =  {
					limit = {
						NOT = {
							56 = {
								is_core_of = ROOT
							}
						}
					}
					56 = { add_core_of = ROOT }
				}

				# Westfalen
				IF =  {
					limit = {
						NOT = {
							57 = {
								is_core_of = ROOT
							}
						}
					}
					57 = { add_core_of = ROOT }
				}

				# Hessen
				IF =  {
					limit = {
						NOT = {
							55 = {
								is_core_of = ROOT
							}
						}
					}
					55 = { add_core_of = ROOT }
				}

				# Rhineland
				IF =  {
					limit = {
						NOT = {
							51 = {
								is_core_of = ROOT
							}
						}
					}
					51 = { add_core_of = ROOT }
				}

				# Moselland
				IF =  {
					limit = {
						NOT = {
							42 = {
								is_core_of = ROOT
							}
						}
					}
					42 = { add_core_of = ROOT }
				}

				# Baden
				IF =  {
					limit = {
						NOT = {
							978 = {
								is_core_of = ROOT
							}
						}
					}
					978 = { add_core_of = ROOT }
				}

				# Württemberg
				IF =  {
					limit = {
						NOT = {
							50 = {
								is_core_of = ROOT
							}
						}
					}
					50 = { add_core_of = ROOT }
				}

				# Franken
				IF =  {
					limit = {
						NOT = {
							54 = {
								is_core_of = ROOT
							}
						}
					}
					54 = { add_core_of = ROOT }
				}

				# Oberbayern
				IF =  {
					limit = {
						NOT = {
							52 = {
								is_core_of = ROOT
							}
						}
					}
					52 = { add_core_of = ROOT }
				}

				# Niederbayern
				IF =  {
					limit = {
						NOT = {
							53 = {
								is_core_of = ROOT
							}
						}
					}
					53 = { add_core_of = ROOT }
				}

				set_global_flag = germany_reformed_flag

				country_event = { 
					id = wuw_GER_releasable.1
					hours = 0
				}

				news_event = { 
					id = wuw_GER_news.1
					hours = 16
				}
			}

		}

		ai_will_do = {
			base = 2500
		}
	}

	reintegrate_luxemburg = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				8 = {
					is_core_of = ROOT
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintegrated_lumexburg_flag }
			
		}

		available = {
			
			8 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 8
			}
		}

		cost = 25

		complete_effect = {
			
			# Luxemburg
			IF =  {
				limit = {
					NOT = {
						8 = {
							is_core_of = ROOT
						}
					}
				}
				8 = { add_core_of = ROOT }
			}

			hidden_effect = {
				8 = {
					set_state_name = 8_lux_name
				}

				set_province_name = {
					id = 6583
					name = 6583_german_unification_lux_name
				}
				
				set_global_flag = reintegrated_lumexburg_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	reintegrate_elsass_lothringen = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				28 = {
					is_core_of = ROOT
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintigrated_alsace_loraine_flag }
			
		}

		available = {
			
			28 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 28
			}
		}

		cost = 25

		complete_effect = {
			
			# Alsace-Lorraine
			IF =  {
				limit = {
					NOT = {
						28 = {
							is_core_of = ROOT
						}
					}
				}
				28 = { add_core_of = ROOT }
			}

			hidden_effect = {
				28 = { set_state_name = 28_german_name }
				set_province_name = { id = 9503 name = province_9503_german_name }
				set_province_name = { id = 678 name = province_678_german_name }
				
				set_global_flag = reintigrated_alsace_loraine_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	reintegrate_south_jutland = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				912 = {
					is_core_of = ROOT
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintigrated_south_jutland_flag }
			
		}

		available = {
			
			912 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 912
			}
		}

		cost = 25

		complete_effect = {
			
			# South Jutland
			IF =  {
				limit = {
					NOT = {
						912 = {
							is_core_of = ROOT
						}
					}
				}
				912 = { add_core_of = ROOT }
			}

			hidden_effect = {
				912 = { set_state_name = 912_german_name }
				set_province_name = { id = 13258 name = province_13258_german_name }
				
				set_global_flag = reintigrated_south_jutland_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	reintegrate_east_prussia = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				AND = {
					5 = {
						is_core_of = ROOT
					}
					763 = {
						is_core_of = ROOT
					}
					188 = {
						is_core_of = ROOT
					}
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintigrated_east_prussia_flag }
			
		}

		available = {
			
			5 = {
				is_fully_controlled_by = ROOT
			}

			763 = {
				is_fully_controlled_by = ROOT
			}

			188 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 5
				state = 763
				state = 188
			}
		}

		cost = 50

		complete_effect = {
			
			# Ermland-Masuren
			IF =  {
				limit = {
					NOT = {
						5 = {
							is_core_of = ROOT
						}
					}
				}
				5 = { add_core_of = ROOT }
			}

			# Königsberg
			IF =  {
				limit = {
					NOT = {
						763 = {
							is_core_of = ROOT
						}
					}
				}
				763 = { add_core_of = ROOT }
			}

			# Memel
			IF =  {
				limit = {
					NOT = {
						188 = {
							is_core_of = ROOT
						}
					}
				}
				188 = { add_core_of = ROOT }
			}

			hidden_effect = {
				set_global_flag = reintigrated_east_prussia_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	reintegrate_silesia = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				AND = {
					66 = {
						is_core_of = ROOT
					}
					67 = {
						is_core_of = ROOT
					}
					762 = {
						is_core_of = ROOT
					}
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintigrated_silesia_flag }
			
		}

		available = {
			
			66 = {
				is_fully_controlled_by = ROOT
			}

			67 = {
				is_fully_controlled_by = ROOT
			}

			762 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 66
				state = 67
				state = 762
			}
		}

		cost = 50

		complete_effect = {
			
			# Lower Silesia
			IF =  {
				limit = {
					NOT = {
						66 = {
							is_core_of = ROOT
						}
					}
				}
				66 = { add_core_of = ROOT }
			}

			# Upper Silesia
			IF =  {
				limit = {
					NOT = {
						67 = {
							is_core_of = ROOT
						}
					}
				}
				67 = { add_core_of = ROOT }
			}

			# Katowice
			IF =  {
				limit = {
					NOT = {
						762 = {
							is_core_of = ROOT
						}
					}
				}
				762 = { add_core_of = ROOT }
			}

			hidden_effect = {
				762 = { set_state_name = 762_german_name }
				set_province_name = { id = 6464 name = province_6464_german_name }

				set_global_flag = reintigrated_silesia_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	reintegrate_posen_west_prussia = { 

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}
		}

		visible = {
			OR = {
				original_tag = PRE # Prussia
				original_tag = MEK # Mecklenburg
				original_tag = VGE # Volga Germany
				original_tag = SHL # Schleswig-Holstein
				original_tag = HAN # Hannover
				original_tag = HES # Hesse
				original_tag = RHI # Rhineland 
				original_tag = WUR # Wurtemmburg
				original_tag = BAY # Bavaria
				original_tag = THU # Thuringia
				original_tag = SAX # Saxony
				original_tag = LUX # Luxembourg 
				original_tag = DNZ # Danzig 
				original_tag = WGR # West Germany
				original_tag = DDR # East Germany
				original_tag = UBD # United Baltic Duchy
			}

			NOT = {
				AND = {
					68 = {
						is_core_of = ROOT
					}
					63 = {
						is_core_of = ROOT
					}
					86 = {
						is_core_of = ROOT
					}
					807 = {
						is_core_of = ROOT
					}
					85 = {
						is_core_of = ROOT
					}
				}
			}
			
			has_global_flag = germany_reformed_flag
			NOT = { has_global_flag = reintigrated_posen_west_prussia_flag }
			
		}

		available = {
			
			68 = {
				is_fully_controlled_by = ROOT
			}

			63 = {
				is_fully_controlled_by = ROOT
			}

			86 = {
				is_fully_controlled_by = ROOT
			}

			807 = {
				is_fully_controlled_by = ROOT
			}

			85 = {
				is_fully_controlled_by = ROOT
			}

		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 68
				state = 63
				state = 86
				state = 807
				state = 85
			}
		}

		cost = 75

		complete_effect = {
			
			# Posen
			IF =  {
				limit = {
					NOT = {
						86 = {
							is_core_of = ROOT
						}
					}
				}
				86 = { add_core_of = ROOT }
			}

			# Ostmark
			IF =  {
				limit = {
					NOT = {
						68 = {
							is_core_of = ROOT
						}
					}
				}
				68 = { add_core_of = ROOT }
			}

			# Hinterpommern
			IF =  {
				limit = {
					NOT = {
						63 = {
							is_core_of = ROOT
						}
					}
				}
				63 = { add_core_of = ROOT }
			}

			# Gdynia
			IF =  {
				limit = {
					NOT = {
						807 = {
							is_core_of = ROOT
						}
					}
				}
				807 = { add_core_of = ROOT }
			}

			# Danzig
			IF =  {
				limit = {
					NOT = {
						85 = {
							is_core_of = ROOT
						}
					}
				}
				85 = { add_core_of = ROOT }
			}

			hidden_effect = {
				807 = { set_state_name = 807_german_name }
				86 = { set_state_name = 86_german_name }
				set_province_name = { id = 9263 name = province_9263_german_name }
				set_province_name = { id = 3295 name = province_3295_german_name }
				set_province_name = { id = 6558 name = province_6558_german_name }

				set_global_flag = reintigrated_posen_west_prussia_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}

	
}


neo_assyrian_empire_category = {
	
	neo_assyrian_empire_decision = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ASY # Assyria
		}

		visible = {
			original_tag = ASY # Assyria
			
			NOT = { has_global_flag = neo_assyria_formed_flag }
			
		}

		available = {

			676 = {
				is_controlled_by = ROOT
			}

			291 = {
				is_controlled_by = ROOT
			}

			1010 = {
				is_controlled_by = ROOT
			}

			675 = {
				is_controlled_by = ROOT
			}

			1011 = {
				is_controlled_by = ROOT
			}

			656 = {
				is_controlled_by = ROOT
			}

			680 = {
				is_controlled_by = ROOT
			}

			554 = {
				is_controlled_by = ROOT
			}

			677 = {
				is_controlled_by = ROOT
			}

			799 = {
				is_controlled_by = ROOT
			}

			553 = {
				is_controlled_by = ROOT
			}

			344 = {
				is_controlled_by = ROOT
			}

			350 = {
				is_controlled_by = ROOT
			}

			454 = {
				is_controlled_by = ROOT
			}

			455 = {
				is_controlled_by = ROOT
			}

			453 = {
				is_controlled_by = ROOT
			}

			446 = {
				is_controlled_by = ROOT
			}

			907 = {
				is_controlled_by = ROOT
			}

			447 = {
				is_controlled_by = ROOT
			}

			348 = {
				is_controlled_by = ROOT
			}

			345 = {
				is_controlled_by = ROOT
			}


		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 676
				state = 291
				state = 1010
				state = 675
				state = 1011
				state = 656
				state = 680
				state = 554
				state = 677
				state = 799
				state = 553
				state = 344
				state = 350
				state = 454
				state = 455
				state = 453
				state = 446
				state = 907
				state = 447
				state = 348
				state = 345
			}
		}

		complete_effect = {
			hidden_effect = {
				drop_cosmetic_tag = yes
			}
			set_cosmetic_tag = ASY_neo_assyrian_empire 

			custom_effect_tooltip = generic_skip_one_line_tt
			
			add_state_core = 676
			add_state_core = 291
			add_state_core = 1010
			add_state_core = 675
			add_state_core = 1011
			add_state_core = 656
			add_state_core = 680
			add_state_core = 554
			add_state_core = 677
			add_state_core = 799
			add_state_core = 553
			add_state_core = 344
			add_state_core = 350
			add_state_core = 454
			add_state_core = 455
			add_state_core = 453
			add_state_core = 446
			add_state_core = 907
			add_state_core = 447
			add_state_core = 348
			add_state_core = 345

			hidden_effect = {
				set_global_flag = neo_assyria_formed_flag
			}
		}

		ai_will_do = {
			base = 2000
		}
	}
}