form_scandinavia_category = {
	
	form_scandinavia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = NOR
				original_tag = DEN
				original_tag = SWE
				original_tag = EST
				original_tag = ICE
				original_tag = FIN
			}
			OR = {
				has_dlc = "Waking the Tiger"
				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_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
				original_tag = EST
				original_tag = ICE
				original_tag = FIN
			}
			NOT = { has_country_flag = form_nordic_nation_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 = {
				NOR = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
				#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 = {
				SWE = {
					every_core_state = {
						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 }
				#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 = {
				DEN = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
				FIN = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
				ICE = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
				EST = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
				#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_country_flag = form_nordic_nation_flag
				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 = 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 }
				924 = { 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 = 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

		allowed = {
			OR = {
				original_tag = AUS
				original_tag = CZE
				original_tag = CRO
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			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
			custom_trigger_tooltip = {
				tooltip = form_country_austria_required_states_tt
				controls_state = 848
				controls_state = 153
				controls_state = 152
				controls_state = 4
			}
			# Czechoslovakia
			custom_trigger_tooltip = {
				tooltip = form_country_czechoslovakia_required_states_tt
				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
			}
			# Hungary
			custom_trigger_tooltip = {
				tooltip = form_country_hungary_required_states_tt
				controls_state = 155
				controls_state = 43
				controls_state = 154
			}
		}

		visible = {
			OR = {
				original_tag = AUS
				original_tag = CZE
				original_tag = CRO
			}
			NOT = { has_global_flag = form_austria_hungary_flag }
		}

		complete_effect = {
			set_cosmetic_tag = HUN_EMPIRE
			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 }
			}
			# 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 }
			}
			# Hungary
			custom_effect_tooltip = form_country_hungary_coring_states_tt
			hidden_effect = {
				155 = { add_core_of = ROOT }
				43 = { 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"
		}

		available = {
			is_subject = no
			controls_state = 155
			controls_state = 43
			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
		}

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

		complete_effect = {
			155 = { add_core_of = ROOT }
			43 = { add_core_of = ROOT }
			154 = { add_core_of = ROOT }
			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 }
			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 = BEL
				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
			}
		}

		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 }
			}
			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
			}
			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
			}
			# 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
				controls_state = 186
			}
			#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 = 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 }
				186 = { 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 }
				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 = 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 }
			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
			
		}

		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 }
			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
		}

		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 }
			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

		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
			}
			OR = {
				has_dlc = "Waking the Tiger"
				has_dlc = "Man the Guns"
			}
		}

		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
			}
			# 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 = 20
				controls_state = 1
				controls_state = 785
				controls_state = 31
			}
			# 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 = 163
				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 = 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
			}
		}

		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
					has_country_leader = {
						character = ENG_oswald_mosley
						ruling_only = yes
					}
					has_completed_focus = ENG_imperial_federation
				}
			}
			NOT = { has_global_flag = form_european_union_flag }
			is_major = yes
		}

		complete_effect = {
			if = {
				limit = {
					NOT = { original_tag = ENG }
				}
			set_cosmetic_tag = EUR_UNIFIED
			}
			else = {
				set_cosmetic_tag = ENG_imperial_federation_unified #Europe-a-Nation
			}
			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 }
			}
			# France
			custom_effect_tooltip = form_eu_france_coring_states_tt
			hidden_effect = {
				29 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				1 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
			}
			# 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 }
				114 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
			}
			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				51 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				909 = { add_core_of = ROOT } #New state of SCHLESWIG
				60 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				64 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				5 = { add_core_of = ROOT }
				763 = { add_core_of = ROOT }
			}
			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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}

form_mutapa_category = {

	form_mutapa = {

		icon = generic_form_nation

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

		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
		}

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

		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 }
			hidden_effect = {
				news_event = { id = wtt_news.63 hours = 6 }
				set_global_flag = form_mutapa_flag
			}
		}

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

form_roman_empire_category = {

	form_roman_empire = {

		icon = generic_form_nation

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

		available = {
			IF = { #TODO_JA add focus requirement when implemented
				limit = {
					has_dlc = "By Blood Alone"
				}

			}
			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 = {
			original_tag = ITA
			NOT = { has_global_flag = form_roman_empire_flag }
			ITA = {
				OR = {
					has_completed_focus = ITA_mare_nostrum_bba
					has_completed_focus = ITA_the_catholic_dominion
				}
			}
		}

		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 = 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 = 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 }

			# 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 }

			# 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 = 154 #Alfold
			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 }

			# Alfold
			154 = { add_core_of = ROOT }

			# Transdanubia
			155 = { 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 = 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 }

			# 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 = 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 }

			# 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

		}

		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 }
			
			
			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 = 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 }
 
			# 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
						}
					}
				}
			}
		}

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

form_persian_empire_category = {

	form_persian_empire = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = PER
				original_tag = AFG
			}
			has_dlc = "Waking the Tiger"
		}

		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
			}
			# 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 = 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
			}
			# 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
			}
		}

		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 }
			}
			# 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 }
			}
			# 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 }
			}
			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 = 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 = 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 }
			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 }
				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 = 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 = 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 }
				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 }
				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

		allowed = {
			OR = {
				original_tag = IRQ
				original_tag = SAU
				original_tag = YEM
				original_tag = OMA
				original_tag = EGY
				original_tag = LBA
				original_tag = JOR
				original_tag = PAL
				original_tag = LEB
				original_tag = SYR
				original_tag = KUW
				original_tag = UAE
				original_tag = QAT
			}
			has_dlc = "Waking the Tiger"
		}

		available = {
			is_subject = no
			# Spain: Northern Africa
			controls_state = 290
			# 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
			}
			# Italy: Libya
			custom_trigger_tooltip = {
				tooltip = form_arabia_italy_required_states_tt
				controls_state = 448
				controls_state = 661
				controls_state = 449
				controls_state = 662
				controls_state = 450
				controls_state = 451
				controls_state = 663
			}
			# France: Syria, Northern Africa
			custom_trigger_tooltip = {
				tooltip = form_arabia_france_required_states_tt
				# North Africa
				controls_state = 458
				controls_state = 665
				controls_state = 460
				controls_state = 513
				controls_state = 459
				controls_state = 461
				controls_state = 462
				# Syria
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
			}
			# Britain: Egypt, Middle East, Arabia
			custom_trigger_tooltip = {
				tooltip = form_arabia_britain_required_states_tt
				controls_state = 452
				controls_state = 447
				controls_state = 446
				controls_state = 456
				controls_state = 457
				controls_state = 453
				controls_state = 551
				controls_state = 454
				controls_state = 455
				controls_state = 656
				controls_state = 658
				controls_state = 659
				controls_state = 907
			}
		}

		visible = {
			OR = {
				original_tag = IRQ
				original_tag = SAU
				original_tag = YEM
				original_tag = OMA
				original_tag = EGY
				original_tag = LBA
				original_tag = JOR
				original_tag = PAL
				original_tag = LEB
				original_tag = SYR
			}
			NOT = { has_global_flag = form_arabia_flag }
		}

		complete_effect = {
			set_cosmetic_tag = ARA_UNIFIED
			290 = { 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 }
			}
			# 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 }
			}
			# Italy
			custom_effect_tooltip = form_arabia_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 }
			}
			# France
			custom_effect_tooltip = form_arabia_france_coring_states_tt
			hidden_effect = {
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				462 = { add_core_of = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_arabia_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 }
				551 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.67 hours = 6 }
				set_global_flag = form_arabia_flag
			}
		}

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

form_majapahit_empire_category = {

	form_majapahit_empire = {

		icon = generic_form_nation

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

		available = {
			is_subject = no
			# 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 }
			}
			hidden_effect = {
				news_event = { id = wtt_news.68 hours = 6 }
				set_global_flag = form_majapahit_empire_flag
			}
		}

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

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 = {
			original_tag = GER
			has_dlc = "Waking the Tiger"
		}

		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 = 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 = 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
			# 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
			}
		}

		visible = {
			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 = {
			set_cosmetic_tag = HRE_UNIFIED
			8 = { add_core_of = ROOT }
			28 = { add_core_of = ROOT }
			735 = { add_core_of = ROOT }
			69 = { add_core_of = ROOT }
			9 = { add_core_of = ROOT }
			75 = { add_core_of = ROOT }
			74 = { add_core_of = ROOT }
			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 }
			736 = { add_core_of = ROOT }
			850 = { add_core_of = ROOT }
			852 = { add_core_of = ROOT }
			# 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 }
				848 = { 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 }
			}
			hidden_effect = {
				news_event = { id = wtt_news.70 hours = 6 }
				set_global_flag = form_hre_flag
			}
		}

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

form_greater_german_reich_category = {

	form_greater_german_reich = {

		icon = generic_form_nation

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

		available = {
			is_subject = no
			has_full_control_of_state = 195
			has_full_control_of_state = 217
			all_owned_state = {
				is_fully_controlled_by = ROOT
			}
		}

		visible = {
			AND = {
				original_tag = GER
				has_government = fascism
				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
				}
			}
		}

		complete_effect = {
			set_cosmetic_tag = GER_greater_german_reich
			set_province_name = { id = 6521 name = "Germania" }
			hidden_effect = {
				set_global_flag = form_greater_german_reich_flag
			}
		}

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

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
			}
			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
			# Portugal
			controls_state = 179
			controls_state = 795
		}

		visible = {
			OR = {
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = WES
				original_tag = LBA
			}
			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
				controls_state = 514
				#Libya
				controls_state = 273
				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
			}
			custom_trigger_tooltip = {
				tooltip = form_country_egypt_required_states_tt
				controls_state = 552
				controls_state = 453
				controls_state = 456
				controls_state = 446
				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
		}

		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 }
				# French 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 }
				# Egypt
				552 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				446 = { 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
			# Grozny
			controls_state = 232
			controls_state = 233
			# Turkey
			controls_state = 350
			controls_state = 352
			controls_state = 353
			controls_state = 354
		}

		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 }
			# Turkey
			350 = { add_core_of = ROOT }
			352 = { add_core_of = ROOT }
			353 = { add_core_of = ROOT }
			354 = { 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
			}
		}
	}
	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 = 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 = 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 }
			}
			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
			}
			# 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
			}
		}

		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 }
				#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 }
				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 = 154
			controls_state = 664
			# Romania + Banat
			controls_state = 76
			controls_state = 84
			controls_state = 82
			controls_state = 764
			controls_state = 45
			controls_state = 78
		}

		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 } }
			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 } }
			78 = { 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 #HAME
			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_mengilik_el_category = {
	form_mongol_empire = {
		icon = generic_form_nation
		allowed = {
			OR = {
				original_tag = CRI
				original_tag = KAZ
				original_tag = CHI
				original_tag = PRC
				original_tag = MON
				original_tag = SOV
				original_tag = PER
			}
		}
		available = {
			is_subject = no
			#SOV = {					#Placed unnecessary hardships forcing to have a war with NATO wihtout indonesian oil
			#	all_core_state = {
			#		is_owned_by = ROOT
			#	}
			#}
			MON = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
			SIK = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
			SHX = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
			XSM = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
			ROOT = {
				controls_state = 744
				controls_state = 607
				controls_state = 597
				controls_state = 743
				controls_state = 745
				controls_state = 716
				controls_state = 328
				controls_state = 717
				controls_state = 714
				controls_state = 761
				controls_state = 715
				controls_state = 610
				controls_state = 609
				controls_state = 608
				controls_state = 614
				# Soviet important states correct listing
				#TRANSCAUCASIAN BORDER AREA
				#controls_state = 826 #was not subdued during the first Batu-Khan offensive
				#controls_state = 231
				controls_state = 229
				controls_state = 230
				#TURKESTANI BORDER AREA
				controls_state = 584
				controls_state = 830
				controls_state = 742
				controls_state = 732
				controls_state = 589
				controls_state = 588
				controls_state = 654
				#TYVAN BORDER AREA
				controls_state = 329
				#TRANSBAIKAL BORDER AREA
				controls_state = 564
				controls_state = 563
				controls_state = 561
				controls_state = 657
				controls_state = 409
				controls_state = 408
				#SOUTHERN STEPPE AREA
				controls_state = 234
				controls_state = 218
				controls_state = 227
				controls_state = 200
				controls_state = 196
				controls_state = 137 #Crimea proper
				controls_state = 197
				controls_state = 192
				controls_state = 834
				#PODOL EYALET
				controls_state = 198
				controls_state = 199
				controls_state = 201
				#AK RESEY
				controls_state = 194
				controls_state = 206
				controls_state = 204
				controls_state = 207
				controls_state = 210
				#NOVGOROD BORDER AREA #Karjala and Petsamo aren't required, they were not part of the Alexander Nevsky's autonomous state.
				controls_state = 209
				controls_state = 208
				controls_state = 195
				controls_state = 215
				controls_state = 213
				controls_state = 216

				
			}
			PER = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
			AFG = {
				all_core_state = {
					is_owned_by = ROOT
				}
			}
		}
		visible = {
			OR = {
				original_tag = CRI
				original_tag = KAZ
				original_tag = CHI
				original_tag = PRC
				original_tag = MON
				original_tag = SOV
				original_tag = PER
			}
			NOT = { has_global_flag = form_mongol_empire_flag }
		}
		complete_effect = {
			set_global_flag = form_mongol_empire_flag
			set_cosmetic_tag = CRI_MON_bigger_empire
			set_capital = {state = 608 remember_old_capital = no }
			set_province_name = {id = 9843 name = "Khanbalyq"}
			SOV = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			CHI = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			SHX = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			GXC = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			YUN = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			SIK = { 					#for you specifically because of chinese resistance mechanic
				every_core_state = {
					add_core_of = ROOT
				}
			}
			TIB = {						#for you specifically because of chinese resistance mechanic
				every_core_state = {
					add_core_of = ROOT
				}
			}
			MON = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			KOR = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			PER = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			AFG = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			POL = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			CZE = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			SLO = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			HUN = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			TUR = {
				every_owned_state = {
					add_core_of = ROOT
				}
			}
			KUR = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			GRE = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			LIT = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			LAT = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			EST = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			FIN = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			ROM = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			SLV = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			CRO = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			BOS = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			SER = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			KOS = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			MNT = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			BUL = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			MAC = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			ALB = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			671 = {add_core_of = ROOT}
		}
	}
}
form_turkestan_category = {
	
	form_turkestan = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = AZR
				original_tag = TUR

				original_tag = CRI
				original_tag = TAY

				original_tag = CHU
				original_tag = TAT
				original_tag = BSK

				original_tag = TAN
				original_tag = ALT
				original_tag = YAK

				original_tag = KBK
				original_tag = DAG # Kumyks

				original_tag = KAZ # Kazakhstan
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				#original_tag = TAJ # Tajikistan #Not a turk!
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				#original_tag = BUK # Bukhara does not exist
				#original_tag = KHI # Khiva does not exist
				original_tag = KKP # Karakalpakstan
			}
		}

		available = {
			is_subject = no
			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
			}
			custom_trigger_tooltip = {
				tooltip = form_country_uzbekistan_required_states
				OR = {
					AND = {
						controls_state = 405
						controls_state = 585
						controls_state = 830
						controls_state = 823
						controls_state = 831
					}
					UZB = {
						is_ally_with = CRI
					}
				}
			}
			controls_state = 732 # Kyrgyzstan
			#controls_state = 742 # Tajikistan #Not A Turk
			OR = {
				AND = {
					controls_state = 584 # Turkmenistan
					controls_state = 832 # Tashauz
				}
				TMS = {
					is_ally_with = CRI
				}
			}			
		}

		visible = {
			OR = {
				original_tag = AZR
				original_tag = TUR

				original_tag = CRI
				original_tag = TAY

				original_tag = CHU
				original_tag = TAT
				original_tag = BSK

				original_tag = ALT
				original_tag = TAN
				original_tag = YAK

				original_tag = KBK
				original_tag = DAG #Kumyks

				original_tag = KAZ # Kazakhstan
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				#original_tag = TAJ # Tajikistan #Not a turk!
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				#original_tag = BUK # Bukhara does not exist
				#original_tag = KHI # Khiva does not exist
				original_tag = KKP # Karakalpakstan
			}
			NOT = { has_global_flag = form_turkestan_flag }
		}

		complete_effect = {
			#set_cosmetic_tag = turkestan_united #will mess up the Crimean Empire so much...
			
			# Kazakhstan
			custom_effect_tooltip = form_country_kazakhstan_coring_states_tt
			hidden_effect = {
				KAZ = {
					every_core_state = {
						add_core_of = ROOT
					}
				}
			}
			TAT = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			CRI = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			CHU = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			YAK = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			BSK = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			TUR = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			AZR = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			TAY = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			KBK = {
				every_core_state = {
					add_core_of = ROOT
				}
			}
			DAG = {
				every_core_state = {
					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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}




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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				news_event = { id = nsb_news.301 hours = 8 }
				set_global_flag = form_mountainous_republic_flag
			}
		}

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


form_transcaucasus_category = {
	
	form_transcaucasian_republic = { 

		icon = generic_form_nation

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

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

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

				has_dlc = "No Step Back"
		}

		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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				news_event = { id = nsb_news.302 hours = 8 }
				set_global_flag = form_transcaucasia_flag
			}
		}

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

		icon = generic_form_nation

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

		available = {
			controls_state = 419 # Tabriz
			controls_state = 420 # Gilan
		}

		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"
		}

		complete_effect = {
			
			# Tabriz
			419 = { add_core_of = ROOT }
			
			# Gilan
			420 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				set_global_flag = azeris_united_flag
			}
		}

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

		icon = generic_form_nation

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

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

		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"
		}

		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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	liberate_anatolian_peoples = {  

		icon = generic_form_nation

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

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

		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"
		}

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

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	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
			}
		}

		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
		}

		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
			}
			NOT = { has_global_flag = form_siberian_republic_flag }

				has_dlc = "No Step Back"
		}

		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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			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 }
				
				# Yeniseisk
				576 = { add_core_of = ROOT }
				
				# Kemerovo
				569 = { add_core_of = ROOT }
				
				# Krasnoyarsk
				568 = { add_core_of = ROOT }
				
				# Bratsk
				567 = { add_core_of = ROOT }
				
				# Irkutsk
				566 = { add_core_of = ROOT }
				
				# Kirensk
				575 = { add_core_of = ROOT }
				
				# Boyadbo
				565 = { 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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	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
			}
		}

		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
		}

		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
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = far_east_integrated_flag }

				has_dlc = "No Step Back"
		}

		complete_effect = {
			
			custom_effect_tooltip = far_eastern_states_coring_states_tt
			
			#add_ideas = soldiers_of_the_steppe
			
			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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	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
			}
		}

		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
		}

		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
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = urals_integrated_flag }

				has_dlc = "No Step Back"
		}

		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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = urals_integrated_flag
				
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	
	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
			}
		}

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

		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
			}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = ainu_integrated_flag }

				has_dlc = "No Step Back"
		}

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

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




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
			}
		}

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

		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"
		}

		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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				news_event = { id = nsb_news.304 hours = 8 }
				
				set_global_flag = form_idel_ural_flag
				
			}
		}

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

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
						}
						is_controlled_by_ROOT_or_subject = yes 
					}
					remove_claim_by = ROOT 
					add_core_of = ROOT 
				}
				#TODO_TA make news event 
				# news_event = { id = nsb_news.304 hours = 8 }
				
				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
			}
		}

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

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			NOT = { has_global_flag = form_east_africa_flag }

				# has_dlc = "No Step Back"
		}

		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 = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	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
			}
		}

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

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			
			has_global_flag = form_east_africa_flag
			NOT = { has_global_flag = ruanda_urundi_integrated_flag }

				# has_dlc = "No Step Back"
		}

		complete_effect = {
		
				# Rwanda
				768 = { add_core_of = ROOT }
				
				# Burundi
				769 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = ruanda_urundi_integrated_flag
				
			}
		}

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

	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
			}
		}

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

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			
			has_global_flag = form_east_africa_flag
			NOT = { has_global_flag = malawi_dominated_flag }

				# has_dlc = "No Step Back"
		}

		complete_effect = {
		
				# Malawi
				770 = { add_core_of = ROOT }
				
				# Zambezia-Mocambique 
				897 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = malawi_dominated_flag
				
			}
		}

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

	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
			}
		}

		available = {
			controls_state = 837 # Sidamo
		}

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			
			has_global_flag = form_east_africa_flag
			NOT = { has_global_flag = sidamo_liberated_flag }

				# has_dlc = "No Step Back"
		}

		complete_effect = {
		
				# Sidamo
				837 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = sidamo_liberated_flag
				
			}
		}

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

	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
			}
		}

		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
		}

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			
			has_global_flag = form_east_africa_flag
			NOT = { has_global_flag = somalis_united_flag }

				# has_dlc = "No Step Back"
		}

		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 }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = somalis_united_flag
				
			}
		}

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

	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
			}
		}

		available = {
			controls_state = 708 # Comoro Islands
		}

		visible = {
			OR = {
				original_tag = KEN # Kenya
				original_tag = UGA # Uganda
				original_tag = TZN # Tanzania
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
			}
			
			has_global_flag = form_east_africa_flag
			NOT = { has_global_flag = comoros_conquered_flag }

				# has_dlc = "No Step Back"
		}

		complete_effect = {
		
				# Comoro Islands
				708 = { add_core_of = ROOT }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = comoros_conquered_flag
				
			}
		}

		ai_will_do = {
			factor = 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
			}
		}

		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
			}
		}

		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
			}
			NOT = { has_global_flag = form_horn_of_africa_flag }

			has_dlc = "By Blood Alone"
		}

		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 }
			
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				news_event = { id = bba_africa_news.2 hours = 8 }
				
				set_global_flag = form_horn_of_africa_flag
				
			}
		}

		ai_will_do = {
			factor = 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
			}
		}

		available = {
			controls_state = 906 # Socotra
		}

		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
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = socotra_conquered_flag }

				has_dlc = "By Blood Alone"
		}

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

		ai_will_do = {
			factor = 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
			}
		}

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

		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
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = integrate_the_south_flag }

			has_dlc = "By Blood Alone"
		}

		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 }
			
			#add_ideas = soldiers_of_the_steppe
			
			hidden_effect = { 
				
				set_global_flag = integrate_the_south_flag
				
			}
		}

		ai_will_do = {
			factor = 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
			}
		}

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

		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
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = the_upper_nile_flag }

			has_dlc = "By Blood Alone"
		}

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

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

		ai_will_do = {
			factor = 200
		}
	}
}


greater_italy_category = {
	
	proclaim_greater_italy = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ITA # Italy
		}

		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
						}
					}
				}
			}
			
			
			
		}

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

		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 = {
			factor = 500
		}
	}
}
