form_scandinavia_category = {

	form_scandinavia = {

		icon = generic_form_nation

		allowed = {
			OR = {
				#original_tag = SWE
				#original_tag = DEN
				original_tag = NOR
				original_tag = SMI
				original_tag = KAR
			}
		}

		available = {
			is_subject = no
			# Norway
			custom_trigger_tooltip = {
				tooltip = form_country_norway_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 11
							region = 191					
							state = 1027
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_country_sweden_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 10
							region = 192
							state = 124
						}
						state = 1024	#exclude Bornholm
						is_controlled_by = ROOT 
					}
				}
			}
			# Denmark / European Mainland
			custom_trigger_tooltip = {
				tooltip = form_scandinavia_denmark_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 277
							state = 1024
						}
						state = 998	#only non-Danish part of region 277
						is_controlled_by = ROOT 
					}
				}
			}
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = NOR
				#original_tag = DEN
				#original_tag = SWE
			#}
			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 = {
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = NOR
                                    has_nationality = SWE
                                    has_nationality = DEN
                                    has_nationality = SMI
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
				every_state = {
					limit = {
						OR = {
							region = 11
							region = 191
							state = 1027
						}
					}
					add_core_of = ROOT
				}
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 10
							region = 192
							state = 124
						}
					}
					add_core_of = ROOT
				}
				if = {
					limit = {
						145 = { is_controlled_by = ROOT } 
					}
					145 = { add_core_of = ROOT }
				}
			}
			# Denmark / European Mainland
			custom_effect_tooltip = form_scandinavia_denmark_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 277
							state = 1024
						}
						NOT = {
							state = 998
						}				
					}
					add_core_of = ROOT
				}
			}
			hidden_effect = {
				news_event = { id = wtt_news.53 hours = 6 }
				set_global_flag = form_scandinavia_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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 = SWE
				#original_tag = DEN
				original_tag = NOR
				original_tag = FIN
				original_tag = ICE
				original_tag = SMI
				original_tag = KAR
				AND = {
					has_dlc = "No Step Back"
					original_tag = EST
				}
			}
		}

		available = {
			is_subject = no
			# Norway
			custom_trigger_tooltip = {
				tooltip = form_country_norway_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 11
							region = 191					
							state = 1027
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_country_sweden_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 10
							region = 192
							state = 124
						}
						state = 1024	#exclude Bornholm
						is_controlled_by = ROOT 
					}
				}
			}
			# Denmark
			custom_trigger_tooltip = {
				tooltip = form_country_denmark_required_states_tt
				all_state = {
					OR = {
						NOT = {
							region = 277
							state = 101
							state = 337
							state = 1024
						}
						state = 998	#only non-Danish part of region 277
						is_controlled_by = ROOT 
					}
				}
			}
			# Iceland 
			custom_trigger_tooltip = {
				tooltip = form_country_iceland_recuired_states_tt
				all_state = {
					OR = {
						NOT = {
							state = 1043	
							state = 100	
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Finland
			custom_trigger_tooltip = {
				tooltip = form_country_finland_required_states_tt
				all_state = {
					OR = {
						NOT = { 
							region = 13	#sorry, but you need Karelia, Petsamo and Salla too!
							AND = {
								region = 12
								NOT = {
									state = 213	#not Murmansk
								}
							}
							AND = {
								region = 9
								NOT = {
									state = 124	#Aland, not Gotland
								}
							}
						}
						is_controlled_by = ROOT 
					}
				}
				#controls_state = 111
				#controls_state = 145
				#controls_state = 148
				#controls_state = 149
				#controls_state = 150
			}
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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
				#}
			#}
			if = {	#56 
				limit = { original_tag = EST }
				has_completed_focus = EST_form_scandinavia
			}
			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 = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = SWE
                                    has_nationality = DEN
                                    has_nationality = NOR
                                    has_nationality = FIN
                                    has_nationality = ICE
                                    has_nationality = SMI
                                    has_nationality = KAR									
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				every_state = {
					limit = {	
						OR = {
							region = 11
							region = 191
							state = 1027
						}
					}
					add_core_of = ROOT
				}
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 10
							region = 192
							state = 124
						}
					}
					add_core_of = ROOT
				}
			}
			# Denmark
			custom_effect_tooltip = form_country_denmark_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 277
							state = 1024
							state = 101
							state = 337
						}
						NOT = {
							state = 998
						}	
					}
					add_core_of = ROOT
				}
			}
			# Iceland
			custom_effect_tooltip = form_country_denmark_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 1043
							state = 100
						}
					}
					add_core_of = ROOT
				}
			}
			# Finland
			custom_effect_tooltip = form_country_finland_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 13
							AND = {
								region = 12
								NOT = {
									state = 213
								}
							}
							AND = {
								region = 9
								NOT = {
									state = 124
								}
							}
						}
					}
					add_core_of = ROOT
				}
			}
			hidden_effect = {
				news_event = { id = wtt_news.54 hours = 6 }
				set_global_flag = form_nordic_league_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
			}
		}

		available = {
			#if = {
			#	limit = {
			#		tag = PRU
			#	}
			#	NOT = {
			#		has_completed_focus = PRU_incaism
			#	}
			#}
			OR = {
				is_subject = no
				is_subject_of = HON
			}
			if = {
				limit = {
					is_subject = no
				}
				controls_state = 491
				controls_state = 304
				controls_state = 937
			}
			# Ecuador
			custom_trigger_tooltip = {
				tooltip = form_country_ecuador_required_states_tt
				controls_state = 305
				controls_state = 490
				#controls_state = 649
			}
			# Colombia
			custom_trigger_tooltip = {
				tooltip = form_country_colombia_required_states_tt
				controls_state = 486
				controls_state = 306
				controls_state = 493
				controls_state = 1051
			}
			# Venezuela
			custom_trigger_tooltip = {
				tooltip = form_country_venezuela_required_states_tt
				controls_state = 489
				controls_state = 307
				controls_state = 488
				controls_state = 1073
				controls_state = 948
			}
			if = {
				limit = { original_tag = VEN }
				NOT = {
					has_completed_focus = VEN_push_north
				}
			}
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = PAN
				#original_tag = ECU
				#original_tag = COL
				#original_tag = VEN
				#original_tag = CRC
				#original_tag = GYA
			#}
			NOT = { has_global_flag = form_gran_colombia_flag }
		}

		complete_effect = {
			set_cosmetic_tag = GCO_UNIFIED
			491 = { add_core_of = ROOT }
			695 = { add_core_of = ROOT }
			if = {
				limit = {
					NOT = { original_tag = GYA }
				}
				687 = { add_core_of = ROOT }
			}
			# Ecuador
			custom_effect_tooltip = form_country_ecuador_coring_states_tt
			hidden_effect = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = PAN
                                    has_nationality = ECU
                                    has_nationality = COL
                                    has_nationality = VEN
                                    has_nationality = CRC
                                    has_nationality = GYA									
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }


				305 = { add_core_of = ROOT }
				649 = { add_core_of = ROOT }
				490 = { 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 }
				1051 = { 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 }
				1073 = { add_core_of = ROOT }
				948 = { add_core_of = ROOT }
			}
			# Panama
			custom_effect_tooltip = form_country_panama_coring_states_tt
			hidden_effect = {
				304 = { add_core_of = ROOT }
				937 = { add_core_of = ROOT }
				685 = { add_core_of = ROOT }
			}

			hidden_effect = {
				news_event = { id = wtt_news.55 hours = 6 }
				set_global_flag = form_gran_colombia_flag
				set_country_flag = has_formed_gran_colombia
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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
				original_tag = SLO
				original_tag = SLV
				original_tag = TRA
				#original_tag = LBV		- Tag removed from this mod due to lack of separatist movement
				original_tag = BOS
				original_tag = SIL
			}
			#has_dlc = "Waking the Tiger"	- Redundant check due to integration into base game
		}

		available = {
			is_subject = no

			# Austria
			custom_trigger_tooltip = {
				tooltip = form_country_austria_required_states_tt
				controls_state = 153
				controls_state = 152
				controls_state = 4
				controls_state = 848
				controls_state = 1054
				controls_state = 1086
			}
			# Czechoslovakia
			custom_trigger_tooltip = {
				tooltip = form_country_czechoslovakia_required_states_tt
				controls_state = 69
				controls_state = 1078
				controls_state = 9
				controls_state = 75
				controls_state = 74
				controls_state = 72
				controls_state = 70
				controls_state = 664
				controls_state = 71
				controls_state = 73
				controls_state = 996
			}
			# Hungary
			custom_trigger_tooltip = {
				tooltip = form_country_hungary_required_states_tt
				controls_state = 155
				controls_state = 1104
				controls_state = 43
				controls_state = 154
				controls_state = 913
			}

			# Slovenia
			custom_trigger_tooltip = {
				tooltip = form_country_slovenia_required_states_tt
				controls_state = 956
				controls_state = 853
				controls_state = 102	
			}
			# Croatia
			custom_trigger_tooltip = {
				tooltip = form_country_croatia_required_states_tt
				controls_state = 103
				controls_state = 958
				controls_state = 109
				controls_state = 959
				controls_state = 952	
			}
			# Bosnia
			custom_trigger_tooltip = {
				tooltip = form_country_bosnia_required_states_tt
				controls_state = 961
				controls_state = 962
				controls_state = 804
				controls_state = 104	
			}
			# Transylvania
			custom_trigger_tooltip = {
				tooltip = form_country_transylvania_required_states_tt
				controls_state = 76
				controls_state = 84
				controls_state = 83
				controls_state = 82	
				controls_state = 764	
			}
			controls_state = 45
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = AUS
				#original_tag = CZE
				#original_tag = CRO
				#original_tag = SLO
				#original_tag = SLV
				#original_tag = TRA
				#original_tag = LBV
				#original_tag = BOS
				#original_tag = SIL
			#}
			NOT = { 
				has_global_flag = form_austria_hungary_flag 
				has_country_flag = formed_european_union
			}
			if = {		#56 tree doesn't use this formable
				limit = { original_tag = AUS }
				has_focus_tree = austria_focus_tree
			}
		}

		complete_effect = {
			set_cosmetic_tag = HUN_EMPIRE
			if = {
				limit = {
					NOT = { tag = AUS }
				}
				AUS = { set_cosmetic_tag = AUS_NOT_WHITE }
			}	
			# Austria
			custom_effect_tooltip = form_country_austria_coring_states_tt
			hidden_effect = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = AUS
                                    has_nationality = HUN
                                    has_nationality = SLV
                                    has_nationality = CRO
                                    has_nationality = CZE
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				153 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
			}
			# Czechoslovakia
			custom_effect_tooltip = form_country_czechoslovakia_coring_states_tt
			hidden_effect = {
				69 = { add_core_of = ROOT }
				1078 = { 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 }
				996 = { add_core_of = ROOT }
			}
			# Hungary
			custom_effect_tooltip = form_country_hungary_coring_states_tt
			hidden_effect = {
				155 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
			}
			# Slovenia
			custom_effect_tooltip = form_country_slovenia_coring_states_tt
			hidden_effect = {
				956 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
			}
			# Croatia
			custom_effect_tooltip = form_country_croatia_coring_states_tt
			hidden_effect = {
				952 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
			}
			# Bosnia
			custom_effect_tooltip = form_country_bosnia_coring_states_tt
			hidden_effect = {
				961 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
			}
			# Transylvania
			custom_effect_tooltip = form_country_transylvania_coring_states_tt
			hidden_effect = {
				76 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
			}
			45 = { add_core_of = ROOT }
			39 = { add_core_of = ROOT }
			163 = { add_core_of = ROOT }
			#Istria/Litorale, not required
			736 = { add_core_of = ROOT }
			852 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.56 hours = 6 }
				set_global_flag = form_austria_hungary_flag
				set_country_flag = formed_austria_hungary
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

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

	reintegrate_austro_hungarian_empire = {

		icon = generic_form_nation

		allowed = {
			original_tag = HUN
		}

		available = {
			is_subject = no
			# Hungary
			custom_trigger_tooltip = {
				tooltip = form_country_hungary_required_states_tt
				controls_state = 155
				controls_state = 1104
				controls_state = 43
				controls_state = 154
				controls_state = 913
			}

			# Slovenia
			custom_trigger_tooltip = {
				tooltip = form_country_slovenia_required_states_tt
				controls_state = 956
				controls_state = 853
				controls_state = 102	
			}
			# Croatia
			custom_trigger_tooltip = {
				tooltip = form_country_croatia_required_states_tt
				controls_state = 103
				controls_state = 958
				controls_state = 109
				controls_state = 959
				controls_state = 952	
			}
			# Bosnia
			custom_trigger_tooltip = {
				tooltip = form_country_bosnia_required_states_tt
				controls_state = 961
				controls_state = 962
				controls_state = 804
				controls_state = 104	
			}
			# Transylvania
			custom_trigger_tooltip = {
				tooltip = form_country_transylvania_required_states_tt
				controls_state = 76
				controls_state = 84
				controls_state = 83
				controls_state = 82	
				controls_state = 764	
			}
			controls_state = 45
		}

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

		complete_effect = {
			# Hungary
			custom_effect_tooltip = form_country_hungary_coring_states_tt
			hidden_effect = {
				155 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
			}
			# Slovenia
			custom_effect_tooltip = form_country_slovenia_coring_states_tt
			hidden_effect = {
				956 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
			}
			# Croatia
			custom_effect_tooltip = form_country_croatia_coring_states_tt
			hidden_effect = {
				952 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
			}
			# Bosnia
			custom_effect_tooltip = form_country_bosnia_coring_states_tt
			hidden_effect = {
				961 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
			}
			# Transylvania
			custom_effect_tooltip = form_country_transylvania_coring_states_tt
			hidden_effect = {
				76 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
			}
			45 = { add_core_of = ROOT }
			39 = { add_core_of = ROOT }
			163 = { add_core_of = ROOT }
			88 = { add_core_of = ROOT }
			91 = { add_core_of = ROOT }
			89 = { add_core_of = ROOT }
			set_global_flag = reintegrate_the_empire_flag
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

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

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
				controls_state = 815
				controls_state = 814
			}
			# 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
				controls_state = 934
				controls_state = 935
				controls_state = 936
			}
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = POL
				#original_tag = LIT
			#}
			NOT = { has_global_flag = form_commonwealth_flag }
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		
		complete_effect = {
			hidden_effect = {
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = POL
                                    has_nationality = LIT									
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			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
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification	
		}
	}
}

form_united_netherlands_category = {

	form_united_netherlands = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = BEL
				original_tag = LUX
				original_tag = WLL
				original_tag = FLA
			}
		}

		available = {
			is_subject = no
			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}
			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 965
				controls_state = 1094
				controls_state = 1095
			}
			# Luxembourg
			controls_state = 8
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = BEL
				#original_tag = LUX
				#original_tag = WLL
				#original_tag = FLA
			#}
			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 = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
                                    has_nationality = HOL
                                    has_nationality = LUX
                                    has_nationality = BEL
                                    has_nationality = FLA
                                    has_nationality = WLL									
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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 }
				965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.58 hours = 6 }
				set_global_flag = form_united_netherlands_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification
		}

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

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = GUA
				#original_tag = ELS
				#original_tag = HON
				#original_tag = NIC
				#original_tag = COS
				#original_tag = BLZ
			#}
			NOT = { has_global_flag = form_united_central_america_flag }
		}

		complete_effect = {
			if = {
				limit = {
					ROOT = {
						NOT = {
							has_completed_focus = HON_monarchist_coup
							has_completed_focus = HON_banana_empire
							has_completed_focus = HON_free_our_markets
						}
					}
				}
				set_cosmetic_tag = USC_UNIFIED
				set_country_flag = USC_UNIFIED_FLAG
			}
			every_state = {
				limit = {
					NOT = {
						is_core_of = ROOT
					}
					OR = {
						state = 313
						state = 314
						state = 312
						state = 317
						state = 316
						state = 311
					}
				}
				add_core_of = ROOT
			}
			custom_effect_tooltip = r56_newline
			hidden_effect = {
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = GUA
									has_nationality = ELS
									has_nationality = HON
									has_nationality = NIC
									has_nationality = COS														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }
				news_event = { id = wtt_news.59 hours = 6 }
				set_global_flag = form_united_central_america_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

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

form_baltic_federation_category = {

	form_baltic_federation = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
		}

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = EST
				#original_tag = LAT
				#original_tag = LIT
			#}
			NOT = { has_global_flag = form_baltic_federation_flag }
		}

		complete_effect = {
			set_cosmetic_tag = BAL_UNIFIED
			# Estonia
			custom_effect_tooltip = form_country_estonia_coring_states_tt
			hidden_effect = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = EST
									has_nationality = LAT
									has_nationality = LIT														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				every_state = {
					limit = {
						OR = {
							state = 13 # Pärnu
							state = 191 # Tartu
							state = 811 # Saaremaa
							state = 812 # Harju
							state = 813 # Virumaa
						}
					}
					add_core_of = ROOT
				}
			}
			# Latvia
			custom_effect_tooltip = form_country_latvia_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 12 # Vidzeme
							state = 190 # Kurzeme
							state = 808 # Riga
							state = 809 # Zemgale
							state = 810 # Latgale
						}
					}
					add_core_of = ROOT
				}
			}
			# Lithuania
			custom_effect_tooltip = form_country_lithuania_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 11 # Kaunas
							state = 188 # Memel
							state = 189 # Siauliai
							state = 784 # Wilno
							state = 814 # Suduva
							state = 815 # Aukstaitija
						}
					}
					add_core_of = ROOT
				}
			}
			hidden_effect = {
				news_event = { id = wtt_news.60 hours = 6 }
				set_global_flag = form_baltic_federation_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

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

		available = {
			is_subject = no
			controls_state = 679
			controls_state = 293
			controls_state = 454
			controls_state = 1016
			controls_state = 1017
			controls_state = 949
			controls_state = 966
			controls_state = 455
			controls_state = 1021
			controls_state = 1022
			controls_state = 656
			controls_state = 731
			controls_state = 184
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 341
				controls_state = 340
				controls_state = 797	
				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 = 798
				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
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
			}
			# France
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				# Syria
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
				controls_state = 799
			}
		}

		visible = {
			has_completed_focus = EGY_rightful_successor_to_the_empire
		}

		complete_effect = {
			set_cosmetic_tag = OTT_UNIFIED
			set_capital = {
				state = 797
				remember_old_capital = no
			}
			679 = { 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 }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
			}
			# France/Syria
			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 }
			}
			# 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 }
				273 = { 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 }
				907 = { add_core_of = ROOT }	#Cairo
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.61 hours = 6 }
				set_global_flag = form_ottoman_empire_flag

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = IRQ
									has_nationality = SYR
									has_nationality = LEB
									has_nationality = PAL
									has_nationality = JOR														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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
				controls_state = 963
				controls_state = 953
			}
			#Albania
			custom_trigger_tooltip = {
				tooltip = form_rumelia_albania_required_states_tt
				controls_state = 44
				controls_state = 805
				controls_state = 910
			}
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = GRE
									has_nationality = MAC
									has_nationality = BUL
									has_nationality = ALB	
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }


				47 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				187 = { 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 }
				if = {
					limit = {
						controls_state = 77 # Southern Dobrudja
					}
					77 = { add_core_of = ROOT }
				}
			}
			# Yugoslavia
			custom_effect_tooltip = form_rumelia_yugoslavia_coring_states_tt
			hidden_effect = {
				106 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
			}
			# Albania 
			44 = { add_core_of = ROOT }
			805 = { add_core_of = ROOT }
			910 = { 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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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
			controls_state = 961
			controls_state = 962
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			961 = { add_core_of = ROOT }
			962 = { add_core_of = ROOT }			
			hidden_effect = {
				set_global_flag = ottoman_bosnia_flag
				163 = { add_core_of = ROOT }

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = BOS														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = 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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = ROM														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

			}
		}

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

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = SYR														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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 = 949
			controls_state = 966
			controls_state = 1016
			controls_state = 1017
			controls_state = 455
			controls_state = 553
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = ottoman_levant_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			set_province_name = { id = 1086 name = "Al-Quds" }
			454 = { add_core_of = ROOT }
			966 = { add_core_of = ROOT }
			949 = { add_core_of = ROOT }
			1016 = { add_core_of = ROOT }
			1017 = { add_core_of = ROOT }
			455 = { add_core_of = ROOT }
			1021 = { add_core_of = ROOT }
			1022 = { add_core_of = ROOT }
			553 = { add_core_of = ROOT }
			hidden_effect = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = LEB
									has_nationality = PAL
									has_nationality = JOR
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
			}
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
			}
			hidden_effect = {

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = IRQ														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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 = 1007
			controls_state = 658
			controls_state = 979
			controls_state = 292
			controls_state = 678
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			678 = { add_core_of = ROOT }
			294 = { add_core_of = ROOT }
			1102 = { add_core_of = ROOT }
			1103 = { add_core_of = ROOT }
			979 = { add_core_of = ROOT }
			create_wargoal = { 
				type = annex_everything
				target = OMA
			}
			hidden_effect = {
				set_global_flag = ottoman_arabia_flag

                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = KUW
									has_nationality = OMA														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

			}
		}

		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
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			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 = 907
			controls_state = 453
			controls_state = 452
			controls_state = 456
			controls_state = 457
			controls_state = 552
			#controls_state = 767		#desert state, might misbehave in peacedeals
			controls_state = 551
			controls_state = 447		#Alexandria
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = ottoman_egypt_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			907 = { 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 }
			447 = { add_core_of = ROOT }
			hidden_effect = {
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = EGY
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = LBA														
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

			}
		}

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

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			933 = { add_core_of = ROOT }
			hidden_effect = {
                if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUN
									has_nationality = ALG
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
				original_tag = ENG #United Kingdom
			}
		}

		available = {
			is_subject = no
			controls_state = 8
			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}
			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 965
				controls_state = 1094
				controls_state = 1095
			}
			# 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 = 19
				controls_state = 20
				controls_state = 1
				controls_state = 785
				controls_state = 31
				controls_state = 806
			}
			# Italy
			custom_trigger_tooltip = {
				tooltip = form_eu_italy_required_states_tt
				controls_state = 158
				controls_state = 159
				controls_state = 39
				controls_state = 160
				controls_state = 161
				controls_state = 162
				controls_state = 957 #marche
				controls_state = 157
				controls_state = 2
				controls_state = 117
				controls_state = 156
				controls_state = 115
				controls_state = 114
				controls_state = 850  #trentino
				#controls_state = 736 #istria
				#controls_state = 911 #litorale
				controls_state = 912 #friuli
				#controls_state = 163 #Zara
				
			}
			# Germany
			custom_trigger_tooltip = {
				tooltip = form_country_germany_required_states_tt
				controls_state = 51
				controls_state = 42
				controls_state = 1053
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 59
				controls_state = 58
				#controls_state = 60	#thuringen, DDR
				controls_state = 54
				controls_state = 52
				controls_state = 53
				#controls_state = 61	#mecklenburg, DDR
				#controls_state = 64	#berlin, DDR
				#controls_state = 65	#sachsen, DDR
				#controls_state = 62	#vorpommern, DDR
				#controls_state = 68	#neumark, Poland
				#controls_state = 66	#niederschlesien, Poland
				#controls_state = 67	#oberschlesien, Poland
				#controls_state = 63	#hinterpommern, Poland
				#controls_state = 5		#ermland-masuren, Poland
				#controls_state = 763	#königsberg, Soviet Union
				controls_state = 989
				controls_state = 922
				controls_state = 923
				controls_state = 998
			}
		}

		visible = {
			OR = { 
				AND = {
					OR = {
						original_tag = HOL
						original_tag = BEL
						original_tag = LUX
						original_tag = FRA
						original_tag = ITA
						original_tag = GER
						original_tag = AUS
						original_tag = CZE
						original_tag = HUN
						original_tag = YUG
						original_tag = NOR
						original_tag = SWE
						original_tag = SPR
						original_tag = POR
						original_tag = CAT #Catalonia
						original_tag = GLC #Galicia
						original_tag = SLV #Slovenia
						original_tag = CRO #Croatia
						original_tag = BOS #Bosnia
						original_tag = HRZ #Duchy of Saint Sava
						original_tag = MNT #Montenegro
						original_tag = KOS #Kosovo
						original_tag = SER #Serbia
						original_tag = MAC #Macedonia
						original_tag = BAY #Bavaria
						original_tag = SHL #Schleswig Holstein
						original_tag = PRE #Prussia
						original_tag = SAX #Saxony
						original_tag = HES #Hesse
						original_tag = MEK #Mecklenburg
						original_tag = HAN #Hannover
						original_tag = WUR #Württmberg
						original_tag = BAD #Baden
						original_tag = FAR #Faroe Islands
						original_tag = FLA #Flanders
						original_tag = WLL #Wallonia
						original_tag = IRE #Ireland
						original_tag = SCO #Scotland
						original_tag = WLS #Wales
						original_tag = OCC #Occitania
						original_tag = COR #Corsica
						original_tag = BRI #Brittany
						original_tag = NAP #Naples
						original_tag = SAD #Sardinia
						original_tag = VNZ #Venice
						original_tag = TTS #Kingdom of Two Sicilies
						original_tag = SIC #Sicily
						original_tag = PAP #Vatican
						original_tag = ADR #Andorra
						original_tag = SAN #San Marino
						original_tag = MNC #Monaco
						original_tag = LIE #Liechtenstein
					}
					has_government = democratic
				}
				AND = {
					original_tag = ENG
					has_country_leader = {
						character = ENG_oswald_mosley
						ruling_only = yes
					}
					has_completed_focus = ENG_imperial_federation
				}
				AND = {
					original_tag = HUN
					has_country_leader = {
						character = HUN_otto_von_habsburg
						ruling_only = yes
					}
					has_government = neutrality
					has_completed_focus = wuw_HUN_renovato_imperii
				}
				AND = {
					original_tag = AUS
					OR = {
						AND = {
							has_country_leader = {
								character = HUN_otto_von_habsburg
								ruling_only = yes
							}
							has_completed_focus = AUS_the_danubian_federation
							is_faction_leader = yes
						}	
						AND = {
							has_completed_focus = AUS_the_right_to_self_determination
							has_government = democratic
						}
					}
				}
				AND = {
					original_tag = GER
					has_completed_focus = GER_european_confederation
				}
			}  
			NOT = { has_global_flag = form_european_union_flag }
			is_major = yes
			NOT = {
				has_country_flag = formed_austria_hungary
			}			
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = HOL
									has_nationality = BEL
									has_nationality = LUX
									has_nationality = FRA
									has_nationality = ITA
									has_nationality = GER
									has_nationality = CZE
									has_nationality = HUN
									has_nationality = YUG
									has_nationality = SLV
									has_nationality = BAY
									has_nationality = FLA
									has_nationality = WLL
									has_nationality = IRE
									has_nationality = SCO
									has_nationality = WLS
									has_nationality = OCC
									has_nationality = AUS
									has_nationality = COR
									has_nationality = BRI
									has_nationality = NAP
									has_nationality = SAD
									has_nationality = VNZ	
									has_nationality = TTS
									has_nationality = SIC									
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }
			}

			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 }
				965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { 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 }
				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 }
				806 = { add_core_of = ROOT } # pyrenees-atlantiques
				1012 = { add_core_of = ROOT } #monaco
				851 = { add_core_of = ROOT } #var
			}
			# 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 }
				957 = { add_core_of = ROOT } #marche
				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 }
				736 = { add_core_of = ROOT } #litorale
				912 = { add_core_of = ROOT } #friuli
				#163 = { add_core_of = ROOT } #zara
				850 = { add_core_of = ROOT } #trentino
				849 = { add_core_of = ROOT } #puglia
				1015 = { add_core_of = ROOT } #Sanmarino
			}
			# 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 }
				998 = { add_core_of = ROOT }
				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 }
				989 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT}   #Saarland
				if = {
					limit = {
						controls_state = 763
					}
					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 = formed_european_union
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification
		}

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

		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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
		}

		available = {
			is_subject = no
			has_cosmetic_tag = EUR_UNIFIED
			# Spain
			custom_trigger_tooltip = {
				tooltip = form_country_spain_required_states_tt
				controls_state = 172
				controls_state = 176
				controls_state = 174
				controls_state = 171
				controls_state = 166
				controls_state = 41
				controls_state = 170
				controls_state = 165
				controls_state = 167
				controls_state = 175
				controls_state = 169
				controls_state = 173
				controls_state = 168
				controls_state = 177
				controls_state = 790 #asturia (probably LaR)
				controls_state = 791 #valladolid
				controls_state = 792 #pais vasco
				controls_state = 794 #eastern aragon
				controls_state = 793 #guadalajara
				controls_state = 788 #salamanca
				controls_state = 789 #cordoba
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
			has_government = democratic
			has_cosmetic_tag = EUR_UNIFIED
			is_major = yes
		}
		fire_only_once = yes
		cost = 50

		days_remove = 90

		remove_effect = {
			# Spain
			custom_effect_tooltip = form_eu_spain_coring_states_tt
			hidden_effect = {
				177 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				178 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT } #asturia 
				791 = { add_core_of = ROOT } #valladolid
				792 = { add_core_of = ROOT } #pais vasco
				794 = { add_core_of = ROOT } #eastern aragon
				793 = { add_core_of = ROOT } #guadalajara
				788 = { add_core_of = ROOT } #salamanca
				789 = { add_core_of = ROOT } #cordoba
				973	= { add_core_of = ROOT } #andorra
				if = {
					limit = {
						controls_state = 118 #membership for gibraltar too is controlled
					}
					118 = { add_core_of = ROOT }
				}
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	
	EUR_portuguese_membership = {

		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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = SPR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
		}
		fire_only_once = yes
		cost = 50

		days_remove = 90

		available = {
			is_subject = no
			has_cosmetic_tag = EUR_UNIFIED
			# portugal
			custom_trigger_tooltip = {
				tooltip = form_country_portugal_required_states_tt
				controls_state = 697
				controls_state = 698
				controls_state = 180
				controls_state = 181
				controls_state = 112
				controls_state = 179
				controls_state = 795
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = SPR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
			has_government = democratic
			has_cosmetic_tag = EUR_UNIFIED
			is_major = yes
		}

		remove_effect = {
			# portugal
			custom_effect_tooltip = form_eu_portugal_coring_states_tt
			hidden_effect = {
				697 = { add_core_of = ROOT }
				698 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT } #Santarem
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	EUR_danish_membership = {

		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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
		}
		fire_only_once = yes
		cost = 50

		days_remove = 90

		available = {
			is_subject = no
			has_cosmetic_tag = EUR_UNIFIED
			# Denmark / European Mainland
			custom_trigger_tooltip = {
				tooltip = form_scandinavia_denmark_required_states_tt
				controls_state = 37
				controls_state = 99
				controls_state = 964
				controls_state = 1024
				controls_state = 1025
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SWE
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
			has_government = democratic
			has_cosmetic_tag = EUR_UNIFIED
			is_major = yes
		}

		remove_effect = {
			# denmark
			custom_effect_tooltip = form_scandinavia_denmark_coring_states_tt
			hidden_effect = {
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT } #Fyn
				1024 = { add_core_of = ROOT } #Bornholm
				
				if = {
					limit = {
						controls_state = 337
					}
					337 = { add_core_of = ROOT }
				}
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	EUR_swedish_membership = {

		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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
		}
		fire_only_once = yes
		cost = 50

		days_remove = 90

		available = {
			is_subject = no
			has_cosmetic_tag = EUR_UNIFIED
			# Sweden
			custom_trigger_tooltip = {
				tooltip = form_country_sweden_required_states_tt
				controls_state = 124
				controls_state = 138
				controls_state = 139
				controls_state = 140
				controls_state = 141
				controls_state = 38
				controls_state = 666
				controls_state = 968
				controls_state = 969
				controls_state = 1026
				controls_state = 1030
				controls_state = 1028
				controls_state = 1029
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = NOR
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
			has_government = democratic
			has_cosmetic_tag = EUR_UNIFIED
			is_major = yes
		}

		remove_effect = {
			# sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				38 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				968 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1030 = { add_core_of = ROOT }
				1028 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	EUR_norwegian_membership = {

		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 = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = SWE
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
		}

		fire_only_once = yes
		cost = 50

		days_remove = 90

		available = {
			is_subject = no
			has_cosmetic_tag = EUR_UNIFIED
			# 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 = 967
				controls_state = 1027
				controls_state = 1031
				controls_state = 1032
				controls_state = 1033
				controls_state = 1034
				controls_state = 1035				
				
				
			}
		}

		visible = {
			OR = {
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FRA
				original_tag = ITA
				original_tag = GER
				original_tag = AUS
				original_tag = CZE
				original_tag = HUN
				original_tag = YUG
				original_tag = SWE
				original_tag = SPR
				original_tag = POR
				original_tag = CAT #Catalonia
				original_tag = GLC #Galicia
				original_tag = SLV #Slovenia
				original_tag = CRO #Croatia
				original_tag = BOS #Bosnia
				original_tag = HRZ #Duchy of Saint Sava
				original_tag = MNT #Montenegro
				original_tag = KOS #Kosovo
				original_tag = SER #Serbia
				original_tag = MAC #Macedonia
				original_tag = BAY #Bavaria
				original_tag = SHL #Schleswig Holstein
				original_tag = PRE #Prussia
				original_tag = SAX #Saxony
				original_tag = HES #Hesse
				original_tag = MEK #Mecklenburg
				original_tag = HAN #Hannover
				original_tag = WUR #Württmberg
				original_tag = BAD #Baden
				original_tag = FAR #Faroe Islands
				original_tag = FLA #Flanders
				original_tag = WLL #Wallonia
				original_tag = IRE #Ireland
				original_tag = SCO #Scotland
				original_tag = WLS #Wales
				original_tag = OCC #Occitania
				original_tag = COR #Corsica
				original_tag = BRI #Brittany
				original_tag = NAP #Naples
				original_tag = SAD #Sardinia
				original_tag = VNZ #Venice
				original_tag = TTS #Kingdom of Two Sicilies
				original_tag = SIC #Sicily
				original_tag = PAP #Vatican
				original_tag = ADR #Andorra
				original_tag = SAN #San Marino
				original_tag = MNC #Monaco
				original_tag = LIE #Liechtenstein
			}
			has_government = democratic
			has_cosmetic_tag = EUR_UNIFIED
			is_major = yes
		}

		remove_effect = {
			# 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 }
				967 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
				1027 = { add_core_of = ROOT }
			}
		}

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

form_mutapa_category = {

	form_mutapa = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = SAF
				original_tag = LES
				original_tag = SWA
				original_tag = NMB
				original_tag = BOT
				original_tag = ZIM
				original_tag = MZB
				original_tag = ZAM
				original_tag = BAR
			}
		}

		available = {
			is_subject = no
			controls_state = 681
			controls_state = 940
			controls_state = 275
			controls_state = 719
			controls_state = 938
			controls_state = 939
			controls_state = 893
			controls_state = 541
			controls_state = 894
			controls_state = 895
			controls_state = 542
			controls_state = 545
			controls_state = 544
			controls_state = 896
			controls_state = 771
			controls_state = 1097
			
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = SAF
				#original_tag = BOT
				#original_tag = ZIM
				#original_tag = MZB
				#original_tag = BAR
				#original_tag = ZAM
			#}
			NOT = { has_global_flag = form_mutapa_flag }
		}

		complete_effect = {
			set_cosmetic_tag = MUT_UNIFIED
			681 = { add_core_of = ROOT }
			940 = { add_core_of = ROOT }
			275 = { add_core_of = ROOT }
			938 = { add_core_of = ROOT }
			939 = { add_core_of = ROOT }
			893 = { add_core_of = ROOT }
			541 = { add_core_of = ROOT }
			894 = { add_core_of = ROOT }
			895 = { add_core_of = ROOT }
			542 = { add_core_of = ROOT }
			545 = { add_core_of = ROOT }
			544 = { add_core_of = ROOT }
			896 = { add_core_of = ROOT }
			771 = { add_core_of = ROOT }
			1097 = { add_core_of = ROOT }
			hidden_effect = {
				news_event = { id = wtt_news.63 hours = 6 }
				set_global_flag = form_mutapa_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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 = { # giving players a focus about Roman ambitions and not letting them fulfill them is fundamentally wrong from a game design perspective.
		#		has_dlc = "By Blood Alone"
		#	}
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = form_country_albania_required_states_tt
				# Albania
				controls_state = 44
				controls_state = 805
				controls_state = 910	#R56, Shkodër
			}
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_mare_nostrum_required_states_tt
				controls_state = 103
				controls_state = 104 
				controls_state = 804
				controls_state = 105
				controls_state = 853
			}
			# 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_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
				controls_state = 347	#Izmit, added because of miniscule Aegean bordering and constant Roman control
			}
			# Italy
			custom_trigger_tooltip = {
				tooltip = form_spqr_italy_required_states_tt
				controls_state = 158
				controls_state = 159
				controls_state = 39
				controls_state = 850
				controls_state = 160
				controls_state = 161
				controls_state = 162
				controls_state = 157
				controls_state = 2
				controls_state = 117
				controls_state = 849
				controls_state = 156
				controls_state = 115
				controls_state = 114
				controls_state = 736
				controls_state = 852
				controls_state = 163
				controls_state = 164
				controls_state = 849
				controls_state = 850
				controls_state = 852
				# North Africa / Dodecanese
				controls_state = 164
				controls_state = 448
				controls_state = 661
				controls_state = 449
				controls_state = 662
				controls_state = 450
				controls_state = 451
				controls_state = 663
			}
			# 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
				controls_state = 290

			}
			# 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
				# North Africa
				controls_state = 458
				controls_state = 665
				controls_state = 460
				controls_state = 459
				controls_state = 461
				# Syria
				controls_state = 677
				controls_state = 553
				controls_state = 799
			}
			# British Mediterranean
			custom_trigger_tooltip = {
				tooltip = form_spqr_coastal_uk_required_states_tt
				controls_state = 118	#Gibraltar
				controls_state = 116	#Malta
				controls_state = 183	#Cyprus
				controls_state = 454 	#Jaffa
				controls_state = 949	#Gaza
				controls_state = 966	#West Bank
				controls_state = 1016   #Jerusalem
				controls_state = 1017	#Beersheba
				controls_state = 453	#Sinai, Egypt
				controls_state = 911	#was Java, 446, now fixed, Suez
				controls_state = 907	#Cairo, Egypt
				controls_state = 447	#Alexandria, Egypt
				controls_state = 452	#Matrouh, Egypt
				controls_state = 949	#Gaza
			}
		}

		visible = {
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = FRA
									has_nationality = ITA
									has_nationality = TUR
									has_nationality = OCC
									has_nationality = YUG
									has_nationality = SLV
									
									has_nationality = COR
									has_nationality = NAP
									has_nationality = SAD
									has_nationality = VNZ
									has_nationality = TUN
									has_nationality = LBA
									has_nationality = EGY																
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }



 				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 }
 				453 = { add_core_of = ROOT }
 				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { 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 }
				347 = { add_core_of = ROOT }	#Izmit, added in R56 because of constant Roman control, less bordergore, etc.
 				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 }
				#Albania
 				805 = { add_core_of = ROOT }
 				44 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }	#R56, Shkodër

 				105 = { add_core_of = ROOT }
 				103 = { add_core_of = ROOT }
 				163 = { add_core_of = ROOT }
 				804 = { add_core_of = ROOT }	#Mostar
 				104 = { add_core_of = ROOT }	#Sarajevo
				958 = { add_core_of = ROOT }	#R56, Kvarner, additional coastal state
 				853 = { add_core_of = ROOT }
 				995 = { add_core_of = ROOT }	#East Suez
				911 = { add_core_of = ROOT }	#Suez
				973 = { add_core_of = ROOT }	#Andorra, free core because its encircled by coastal states required
				
				1012 = { add_core_of = ROOT }   #Monaco
				1015 = { add_core_of = ROOT }   #San Marino
 			}
			
			
			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
		}

		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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = reclaim_hispania_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = SPR
									has_nationality = ADU
									has_nationality = POR
									has_nationality = ADR
									has_nationality = CAT
									has_nationality = GLC																
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# 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
		}

		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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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
		}

		available = {
			
			controls_state = 766 #Southern Bessarabia

			controls_state = 955 #R56, Northern Dobrudja

			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
			
			controls_state = 950 #R56, Debar

			controls_state = 953 #R56, Mitrovica

			controls_state = 963 #R56, West Sandzak

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = reclaim_moesia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			hidden_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = ROM
									has_nationality = SER
									has_nationality = KOS
									has_nationality = BUL
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}				
			}

			# Southern Bessarabia
			766 = { add_core_of = ROOT }

			#R56, Northern Dobrudja
			955 = { 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 }

			# R56, Debar
			950 = { add_core_of = ROOT }

			# R56, Mitrovica
			953 = { add_core_of = ROOT }

			# R56, West Sandzak
			963 = { 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
		}

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

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = { 

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = EGY
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

				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
		}

		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
			controls_state = 1045
			controls_state = 1046
			controls_state = 1047
			controls_state = 1048
			controls_state = 1049

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { 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 = { 
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = IRQ
									has_nationality = KUW
									has_nationality = KUR
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			

				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
		}

		available = {
			
			#controls_state = 347 #Izmit, made default core
			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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = reconquer_cappadocia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
 

			# Izmit, made default core
			#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 = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUR		
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
							
				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
		}

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

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			
			#Nakhchivan
			1044 = { add_core_of = ROOT }

			#Iranian Azerbijan - According to the wikipedia map this state makes sense to include
			988 = { add_core_of = ROOT }
			
			add_stability = -0.05
			 
			hidden_effect = { 
			
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = ARM
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			

				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
		}

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

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			1021 = { add_core_of = ROOT }
			1022 = { add_core_of = ROOT }
			# Jawf
			854 = { add_core_of = ROOT }

			# Tabuk
			855 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 
			
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = LEB
									has_nationality = SYR
									has_nationality = JOR																
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			

				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
		}

		available = {
			
			controls_state = 513 #Tlemcen
			controls_state = 933 #R56, Batna
			controls_state = 514 #Algerian Desert
			controls_state = 462 #Marrakech
			controls_state = 783 #Sidi Ifni

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = integrate_mauretania_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Tlemcen
			513 = { add_core_of = ROOT }

			# R56, Batna
			933 = { 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 = { 
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = MOR
									has_nationality = ALG																
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

				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
		}

		available = {
			
			controls_state = 43 #Northern Hungary
			controls_state = 154 #Alföld
			controls_state = 155 #Transdanubia
			controls_state = 1104 #South Transdanubia
			controls_state = 913 #Solt-Kiskun
			controls_state = 45 #Vojvodina
			controls_state = 109 #Zagreb
			controls_state = 102 #North Slovenia
			controls_state = 956 #R56, Prekmurje
			controls_state = 959 #R56, Slavonia
			controls_state = 952 #R56, Syrmia
			controls_state = 961 #R56, Banja Luka
			controls_state = 962 #R56, Posavina
		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = integrate_pannonia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Northern Hungary
			43 = { add_core_of = ROOT }

			# Alföld
			154 = { add_core_of = ROOT }

			# Transdanubia
			155 = { add_core_of = ROOT }
			
			# South Transdanubia
			1104 = { add_core_of = ROOT }

			# Solt-Kiskun
			913 = { add_core_of = ROOT }

			# Vojvodina
			45 = { add_core_of = ROOT }

			# Croatia
			109 = { add_core_of = ROOT }

			# North Slovenia
			102 = { add_core_of = ROOT }

			# R56, Prekmurje
			956 = { add_core_of = ROOT }

			# R56, Slavonia
			959 = { add_core_of = ROOT }

			# R56, Syrmia
			952 = { add_core_of = ROOT }

			# R56, Banja Luka
			961 = { add_core_of = ROOT }

			# R56, Posavina
			962 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = HUN
									has_nationality = TRA
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

				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
		}

		available = {
			
			controls_state = 4 #Lower Austria
			controls_state = 152 #Upper Austria
			controls_state = 153 #Tyrol
			controls_state = 848 #Vorarlberg
			controls_state = 1054 #Styria
			controls_state = 1086 #Burgenland
			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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = integrate_alps_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = AUS
									has_nationality = SWI
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

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

			# Styria
			1054 = { add_core_of = ROOT }

			# Burgenland
			1086 = { 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 }

			# Lichtenstein
			997 = { 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
		}

		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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			
			# Channel Islands
			1076 = { add_core_of = ROOT }
			
			
			add_stability = -0.05
			 
			hidden_effect = { 

				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = BRI
									has_nationality = FRA
									has_nationality = OCC																
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			

				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
		}

		available = {
			
			controls_state = 35 #Brabant
			controls_state = 6 #Vlaanderen
			controls_state = 1094 #Antwerp
			controls_state = 34 #Wallonia
			controls_state = 1095 #Ardenns
			controls_state = 8 #Luxembourg
			controls_state = 29 #Nord-Pas-De-Calais
			controls_state = 1094 #Antwerpen
			controls_state = 1095 #Ardennes

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			
			# Antwerp
			1094 = { add_core_of = ROOT }

			# Wallonia
			34 = { add_core_of = ROOT }
			
			# Wallonia
			1095 = { add_core_of = ROOT }

			# Antwerpen
			1094 = { add_core_of = ROOT }

			# Ardennes
			1095 = { add_core_of = ROOT }

			# Luxembourg
			8 = { add_core_of = ROOT }

			# Nord-Pas-De-Calais
			29 = { add_core_of = ROOT }

			# R56, Eupen
			965 = { add_core_of = ROOT }
			
			
			add_stability = -0.05

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = BEL
									has_nationality = LUX
									has_nationality = WLL
									has_nationality = FLA
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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
		}

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

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = { 

			
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = GEO
									has_nationality = AZR
									has_nationality = ABK
				                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			

				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
		}

		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/Northumberland

			#R56
			controls_state = 1041 #Cumbria
			#controls_state = 1042 #Isle of Man - dont require, but do core
			controls_state = 1076

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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/Northumberland
			131 = { add_core_of = ROOT }

			#Cumbria
			1041 = { add_core_of = ROOT }

			#Isle of Man
			1042 = { add_core_of = ROOT }

			#guernsey
			1076 = { add_core_of = ROOT }

			add_stability = -0.05
			  
			hidden_effect = { 
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = WLS
									has_nationality = ENG
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }

				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
		}

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

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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
		}

		available = {
			
			controls_state = 133 #Lanark
			controls_state = 121 #Lothian
			controls_state = 136 #Aberdeenshire
			controls_state = 120 #Scottish Highlands
			controls_state = 971 #R56, Orkney

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }
			
			# R56, Orkney
			971 = { 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
		}

		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

			#r56 states
			controls_state = 922	#Frankfurt
			controls_state = 923	#Baden
			controls_state = 989	#Ostrhineland
			controls_state = 1053	#Saarland

		}

		visible = { 
			#original_tag = ITA		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 }

			# Saarland
			1053 = { 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 }
			
			# Frankfurt
			922 = { add_core_of = ROOT }
			
			# Baden
			923 = { add_core_of = ROOT }

			# Ostrhineland
			989 = { 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
		}

		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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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

			}
			
			puppet = CRI	#R56: ported from vanilla, but also removed some now obsolete ideology matching code
			  
			hidden_effect = { 
				set_global_flag = the_bosporan_kingdom_flag
			}
		}

		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 = {
			original_tag = KUR
		}

		available = {
			is_subject = no
			# Iran
			custom_trigger_tooltip = {
				tooltip = form_country_iran_required_states_tt
				all_state = {
					OR = {
						NOT = { 
							region = 116
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Afghanistan
			custom_trigger_tooltip = {
				tooltip = form_country_afghanistan_required_states_tt
				controls_state = 415
				controls_state = 267
				controls_state = 1008
				controls_state = 1009
				controls_state = 1010
				controls_state = 1011
			}
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
				
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				all_state = {
					OR = {
						NOT = { 
							region = 129
							state = 341
							state = 797
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# France: Syria
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
				controls_state = 799
			}
			# 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 = 907	#Cairo
				controls_state = 456
				controls_state = 457
				controls_state = 911	#Suez
				controls_state = 995	#East Suez
				controls_state = 453
				controls_state = 454
				controls_state = 1016
				controls_state = 1017
				controls_state = 966
				controls_state = 949
				controls_state = 455
				controls_state = 1022
				controls_state = 1021
				controls_state = 183
				controls_state = 656
			}
		}

		visible = {
			#original_tag = KUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = form_persian_empire_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUR
									has_nationality = AFG
									has_nationality = KUR
									has_nationality = IRQ
									has_nationality = SYR	
									has_nationality = LEB															
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}


			set_cosmetic_tag = PER_UNIFIED
			# Iran
			custom_effect_tooltip = form_country_iran_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						region = 116
					}
					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 }
				1010 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { 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 }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 129
							state = 341
							state = 797
						}
					}
					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 }
				799 = { 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 }
				907 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.65 hours = 6 }
				set_global_flag = form_persian_empire_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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
		}

		available = {
			is_subject = no
			controls_state = 185
			controls_state = 731
			controls_state = 47 
			controls_state = 186
			controls_state = 184
			controls_state = 187
			controls_state = 182
			controls_state = 341
			controls_state = 797
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = form_byzantine_empire_flag }
			NOT = {
				has_global_flag = gre_bftb_focus_tree
			}
		}

		complete_effect = {
			set_cosmetic_tag = BYZ_UNIFIED
			set_capital = { state = 797 }
			add_state_core = 341
			add_state_core = 797
			hidden_effect = { 797 = { set_state_name = "Constantinople" } }
			set_province_name = { id = 9833 name = "Constantinople" }

			341 = { set_state_name = "Thrace" }
			set_province_name = { id = 11842 name = "Adrianople" }

			# Greece
			custom_effect_tooltip = form_country_greece_coring_states_tt
			hidden_effect = {
				add_state_core = 185
				add_state_core = 731
				add_state_core = 47 				
				add_state_core = 186
				add_state_core = 184
				add_state_core = 187
				add_state_core = 182
			}
			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
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification					
		}

		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 }
			add_state_core = 797
			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 = {
				add_state_core = 185
				add_state_core = 731
				add_state_core = 47 				
				add_state_core = 186
				add_state_core = 184
				add_state_core = 187
				add_state_core = 182
				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 = 973 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 = 958 name = "Germanicia" }
				set_province_name = { id = 9893 name = "Antiochia" }
				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 = 987 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" }
			}
			hidden_effect = {
				news_event = { id = wtt_news.66 hours = 6 }
				set_global_flag = form_byzantine_empire_flag
				set_global_flag = byz_turkey_integrated
				swap_ruler_traits = { remove = archon_basileus add = autokrator }
			
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUR
									has_nationality = KUR
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
							
			}
			set_country_flag = achivement_i_swear_im_not_a_byzantophile
			set_country_flag = achivement_istanbul_is_constantinople_again
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification						
		}

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

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			controls_state = 44
			controls_state = 805
			controls_state = 910
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = byz_albania_integrated }
			has_global_flag = form_byzantine_empire_flag
		}


		cost = 30
		days_remove = 50		

		remove_effect  = {
			# Albania
			44 = { add_core_of = ROOT }
			805 = { add_core_of = ROOT }
			910 = { add_core_of = ROOT }
			set_global_flag = byz_albania_integrated

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                
								has_nationality = ALB															
                                
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

		}

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

	byz_integrate_wallachia = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}	
			controls_state = 81
			controls_state = 46
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = byz_wallachia_integrated }
			has_global_flag = byz_bulgaria_integrated
			has_global_flag = form_byzantine_empire_flag
		}


		cost = 50
		days_remove = 120

		remove_effect = {
			
				81 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				hidden_effect = {	
				set_global_flag = byz_wallachia_integrated
				hidden_effect = {
					if = {
						limit = {
							has_dlc = "La Resistance"
						}
						every_country = {
							every_operative = {
								limit = {	
									has_nationality = ROM
								
									NOT = {
										has_nationality = ROOT
									}
								}
								add_nationality = ROOT
							}
						}
					}				
				}				
			}			
		}

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

	byz_integrate_bulgaria = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			# Bulgaria
			controls_state = 48
			controls_state = 212
			controls_state = 211
			controls_state = 801 
			#romanian Dobrudja
			controls_state = 77
			controls_state = 955
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = byz_bulgaria_integrated }
			has_global_flag = form_byzantine_empire_flag
		}


		cost = 50
		days_remove = 120

		remove_effect = {
			# 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 }
			# Romania
			    77 = { add_core_of = ROOT }
			    955 = { add_core_of = ROOT }
				set_global_flag = byz_bulgaria_integrated
			}
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                
								has_nationality = BUL 
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
		}

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

	byz_integrate_yugoslavia = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			has_global_flag = byz_albania_integrated			
			# Yugoslavia
			custom_trigger_tooltip = {
				tooltip = form_country_yugoslavia_required_states_tt
				# macedonia #
				controls_state = 106
				controls_state = 950
				# montenegro #
				controls_state = 105
				controls_state = 963
				# serbia without vojvodina/west banat #
				controls_state = 802
				controls_state = 803
				controls_state = 108
				controls_state = 953
				controls_state = 107
				controls_state = 952	
				# bosnia #
				controls_state = 104
				controls_state = 804
				controls_state = 962
				controls_state = 961
				# croatia #
				controls_state = 103
				controls_state = 958
				controls_state = 109
				controls_state = 959
				# slovenia #
				controls_state = 853
				controls_state = 102
				controls_state = 956			
			}
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = byz_yugoslavia_integrated }
			has_global_flag = form_byzantine_empire_flag
		}

		cost = 75
		days_remove = 180

		remove_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = MAC
									has_nationality = YUG
									has_nationality = KOS
									has_nationality = SER
									has_nationality = BOS	
									has_nationality = CRO
									has_nationality = SLV
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			# Yugoslavia
			custom_effect_tooltip = form_country_yugoslavia_coring_states_tt
			hidden_effect = {
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }


				set_global_flag = byz_yugoslavia_integrated
			}
		}

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

	byz_integrate_turkey = {

		icon = generic_form_nation

		allowed = {
			original_tag = GRE
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			# 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 = 798
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
			}
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = byz_turkey_integrated }
			has_global_flag = form_byzantine_empire_flag
		}

		cost = 100
		days_remove = 180

		remove_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
								has_nationality = TUR
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			# Turkey
			custom_effect_tooltip = form_country_turkey_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 = 973 name = "Kieros" }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }				
				set_global_flag = byz_turkey_integrated
			}
		}

		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
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			# 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 = 114
				controls_state = 156
				controls_state = 115
				controls_state = 736
				controls_state = 163
				controls_state = 849
				controls_state = 957
				controls_state = 850
				controls_state = 852
			}
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = triumph_for_italy }
			has_global_flag = byz_bulgaria_integrated
			has_global_flag = byz_yugoslavia_integrated
			has_global_flag = form_byzantine_empire_flag
		}

		cost = 100
		days_remove = 180

		remove_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = VNZ
									has_nationality = COR
									has_nationality = NAP
									has_nationality = PAP
									has_nationality = TOS															
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = 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 }
				736 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { 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
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			# 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 = 1016
			controls_state = 1017
			controls_state = 949
			controls_state = 966
			controls_state = 455
			controls_state = 1022
			controls_state = 1021
			controls_state = 183
			controls_state = 911
			controls_state = 995
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = triumph_for_middle_east }
			has_global_flag = byz_turkey_integrated
			has_global_flag = form_byzantine_empire_flag
		}

		cost = 100
		days_remove = 180

		remove_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = PAL
									has_nationality = SYR	
									has_nationality = LEB															
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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 }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
			1016 = { add_core_of = ROOT }
			1017 = { add_core_of = ROOT }
			949 = { add_core_of = ROOT }
			966 = { add_core_of = ROOT }
			455 = { add_core_of = ROOT }
			1022 = { add_core_of = ROOT }
			1021 = { add_core_of = ROOT }
			183 = { add_core_of = ROOT }
			799 = { add_core_of = ROOT }
			911 = { add_core_of = ROOT }
			995 = { 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
		}

		available = {
			is_subject = no
			NOT = {
				has_idea = generic_recent_political_unification
				has_idea = generic_recent_army_unification
				has_idea = generic_recent_economic_unification		
			}
			OR = {
				has_global_flag = triumph_for_middle_east
				has_global_flag = triumph_for_italy
			}
			# French North Africa
			controls_state = 458
			controls_state = 665
			controls_state = 460
			controls_state = 459
			# 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 = 907
			controls_state = 456
			controls_state = 457
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			NOT = { has_global_flag = triumph_for_egypt_and_tunis }
			has_global_flag = form_byzantine_empire_flag
		}

		cost = 100
		days_remove = 180

		remove_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUN
									has_nationality = EGY	
									has_nationality = LBA															
                                }
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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 }
			907 = { add_core_of = ROOT }
			456 = { add_core_of = ROOT }
			457 = { add_core_of = ROOT }
			460 = { add_core_of = ROOT }
			459 = { 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 = IMO
				original_tag = EGY
				original_tag = SUD
				original_tag = LBA
				original_tag = JOR
				original_tag = PAL
				original_tag = LEB
				original_tag = SYR
				original_tag = KUW
				original_tag = UAE
				original_tag = QAT
				original_tag = BHR
				original_tag = TUN
				original_tag = ALG
				original_tag = MOR
				original_tag = ADU
				original_tag = DJI
				original_tag = COM
			}
		}

		available = {
			is_subject = no
			# Spain: Northern Africa
			controls_state = 290
			controls_state = 783
			controls_state = 699
			# Iraq
			custom_trigger_tooltip = {
				tooltip = form_country_iraq_required_states_tt
				controls_state = 676
				controls_state = 675
				controls_state = 291
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
			}
			# Saudi Arabia
			custom_trigger_tooltip = {
				tooltip = form_country_saudi_required_states_tt
				controls_state = 292
				controls_state = 679
				controls_state = 678
				controls_state = 858
				controls_state = 856
				controls_state = 859
				controls_state = 857
				controls_state = 855
				controls_state = 854
			}
			# 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 = 933
				controls_state = 459
				controls_state = 461
				controls_state = 462
				# Syria
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
				# Mauritania
				controls_state = 557
				controls_state = 786
			}
			# Britain: Egypt, Sudan, Middle East and Arabia
			custom_trigger_tooltip = {
				tooltip = form_arabia_britain_required_states_tt
				controls_state = 452
				controls_state = 447
				controls_state = 907	#Cairo
				controls_state = 911	#Suez
				controls_state = 456
				controls_state = 457
				controls_state = 995	#East Suez
				controls_state = 453
				controls_state = 551
				controls_state = 549
				controls_state = 454
				controls_state = 1016
				controls_state = 1017
				controls_state = 949
				controls_state = 966
				controls_state = 455
				controls_state = 1022
				controls_state = 1021
				controls_state = 656
				controls_state = 658
				controls_state = 659
				controls_state = 979
				controls_state = 1102
				controls_state = 1103
			}
		}

		visible = {
			OR = {
				original_tag = IRQ
				original_tag = SAU
				original_tag = YEM
				original_tag = OMA
				original_tag = IMO
				original_tag = EGY
				original_tag = SUD
				original_tag = LBA
				original_tag = JOR
				original_tag = PAL
				original_tag = LEB
				original_tag = SYR
				original_tag = KUW
				original_tag = UAE
				original_tag = QAT
				original_tag = BHR
				original_tag = TUN
				original_tag = ALG
				original_tag = MOR
				original_tag = ADU
				original_tag = DJI
				original_tag = COM
				if = {
					limit = {
						NOT = {
							has_dlc = "La Resistance"
						}
					}
					original_tag = ADU
				}				
								
			}
			NOT = { has_global_flag = form_arabia_flag }

		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = SAU
									has_nationality = YEM
									has_nationality = OMA
									has_nationality = IRQ
									has_nationality = SYR	
									has_nationality = LEB
									has_nationality = KUW
									has_nationality = QAT
									has_nationality = BHR
									has_nationality = UAE
									has_nationality = LBA
									has_nationality = TUN
									has_nationality = ALG
									has_nationality = MOR
									has_nationality = EGY
									has_nationality = SUD
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			set_cosmetic_tag = ARA_UNIFIED
			
			290 = { add_core_of = ROOT }
			783 = { add_core_of = ROOT }
			699 = { add_core_of = ROOT }
			set_province_name = { id = 1086 name = "Al-Quds" }
			# 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 }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { 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 }
				858 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				854 = { 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 }
				273 = { 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 }
				933 = { 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 }
				514 = { add_core_of = ROOT }
				557 = { add_core_of = ROOT }
				786 = { 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 }
				907 = { add_core_of = ROOT }	#Cairo
				911 = { add_core_of = ROOT }	#Suez
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }	#East Suez
				453 = { add_core_of = ROOT }
				551 = { add_core_of = ROOT }
				549 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				979 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				767 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				886 = { add_core_of = ROOT }
				887 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }	#Qatar
				906 = { add_core_of = ROOT }	#Socotra
				1007 = { add_core_of = ROOT }	#Bahrein
				979 = { add_core_of = ROOT }	#Khasab
			}
			293 = { add_core_of = ROOT }
			294 = { add_core_of = ROOT }
			1102 = { add_core_of = ROOT }
			1103 = { add_core_of = ROOT }
			every_state = {
				limit = {
					OR = {
						state = 413
						state = 421
						state = 419
						state = 988
						state = 352
						state = 800
						state = 353
						state = 350
						state = 344
						state = 799
						state = 268
						state = 708
					}
				}
				add_claim_by = ROOT
			}
			hidden_effect = {
				news_event = { id = wtt_news.67 hours = 6 }
				set_global_flag = form_arabia_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

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

form_malayan_confederation_category = {

	form_malayan_confederation = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = INS
				original_tag = MAL
				original_tag = PHI
				original_tag = SGP
				original_tag = SWK
				original_tag = BRN
			}
		}

		available = {
			is_subject = no
			# Dutch East Indies
			custom_trigger_tooltip = {
				tooltip = form_malayan_confederation_nei_required_states_tt
				controls_state = 974
				controls_state = 672
				controls_state = 335
				controls_state = 976
				controls_state = 446
				controls_state = 667
				controls_state = 978
				controls_state = 334
				controls_state = 977
				controls_state = 673
				controls_state = 975
				controls_state = 668
				controls_state = 669
				controls_state = 738
				controls_state = 909
			}
			# British Malaya
			custom_trigger_tooltip = {
				tooltip = form_malayan_confederation_malaya_required_states_tt
				controls_state = 333 #Sarawak
				controls_state = 916 #Sabah
				controls_state = 336
				controls_state = 951
				controls_state = 915
				controls_state = 960
				controls_state = 914
				controls_state = 1014 #Brunei
			}
			# Philippines
			custom_trigger_tooltip = {
				tooltip = form_malayan_confederation_phi_required_states_tt
				controls_state = 627
				controls_state = 628
				controls_state = 626
				controls_state = 625
				controls_state = 624
				controls_state = 623
				controls_state = 327
			}
		}

		visible = {
			OR = {
				original_tag = INS
				original_tag = MAL
				original_tag = PHI
				original_tag = SGP
				original_tag = SWK
				original_tag = BRN
			}
			NOT = { has_global_flag = form_malayan_confederation_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = INS
									has_nationality = MAL
									has_nationality = SGP
									has_nationality = SWK
									has_nationality = BRN
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }
			}

			set_cosmetic_tag = MAL_UNIFIED
			# Dutch East Indies
			if = {
				custom_effect_tooltip = form_country_nei_coring_states_tt
				hidden_effect = {
					every_state = {
						limit = {
							OR = {
								state = 974
								state = 672
								state = 335
								state = 336
								state = 976
								state = 446
								state = 667
								state = 978
								state = 334
								state = 977
								state = 673
								state = 975
								state = 668
								state = 669
								state = 738
								state = 909
								state = 721
							}
						}
						add_core_of = ROOT
					}
				}
			}
			# British Malaya
			if = {
				limit = {
					NOT = {
						original_tag = MAL
					}
				}
				custom_effect_tooltip = form_country_malaya_coring_states_tt
				hidden_effect = {
					every_state = {
						limit = {
							OR = {
								state = 333	#Sarawak
								state = 916	#Sabah
								state = 336
								state = 336
								state = 951
								state = 915
								state = 960
								state = 914
								state = 1014 #Brunei
							}
						}
						add_core_of = ROOT
					}
				}
			}
			# Philippines
			if = {
				limit = {
					NOT = {
						original_tag = PHI
					}
				}
				custom_effect_tooltip = form_country_phi_coring_states_tt
				hidden_effect = {
					every_state = {
						limit = {
							OR = {
								state = 627
								state = 628
								state = 626
								state = 625
								state = 624
								state = 623
								state = 327
							}
						}
						add_core_of = ROOT
					}
				}
			}
			hidden_effect = {
				news_event = { id = wtt_news.68 hours = 6 }
				set_global_flag = form_malayan_confederation_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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
		}

		available = {
			is_subject = no
			# Siam	
			custom_trigger_tooltip = {
				tooltip = state_in_siam_tt
				all_state = {
					OR = {
						NOT = {
							region = 229 #Siam
							state = 724	#Kra Isthmus
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Cambodia basically
			custom_trigger_tooltip = {
				tooltip = state_in_north_indochina_except_vietnam_tt
				all_state = {
					OR = {
						NOT = {
							AND = {
								region = 142
								NOT = {
									state = 671	#Tonkin
									state = 928	#North Annam
								}
							}
						}
						is_controlled_by = ROOT 
					}
				}
			}
			# Laos basically
			custom_trigger_tooltip = {
				tooltip = state_in_south_indochina_except_vietnam_tt
				all_state = {
					OR = {
						NOT = {
							AND = {
								region = 228
								NOT = {
									state = 286	#Cochinchina
									state = 927	#South Annam
								}
							}
						}
						is_controlled_by = ROOT 
					}
				}
			}
		}

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

		complete_effect = {
			set_cosmetic_tag = RAT_UNIFIED
            custom_effect_tooltip = form_country_gs_required_coring_states_tt
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
								has_nationality = LAO
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
				every_state = {
					limit = {
						OR= {
							region = 229 #Siam
							state = 724	#Kra Isthmus
							AND = {
								region = 142
								NOT = {
									state = 671	#Tonkin
									state = 928	#North Annam
								}
							}
							AND = {
								region = 228
								NOT = {
									state = 286	#Cochinchina
									state = 927	#South Annam
								}
							}
						}
					}
					add_core_of = ROOT
				}
				news_event = { id = wtt_news.69 hours = 6 }
				set_global_flag = form_rattanakosin_kingdom_flag
			}
		}

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

form_hre_category = {

	form_hre = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = GER
				original_tag = CZE
				original_tag = LUX
				original_tag = LIE
				original_tag = SAX
				original_tag = HAN
				original_tag = MEK
				original_tag = SHL
				original_tag = WUR
				original_tag = BAY
				original_tag = BAD
			}
		}

		available = {
			is_subject = no
			# Germany
			custom_trigger_tooltip = {
				tooltip = form_hre_germany_required_states_tt
				controls_state = 51
				controls_state = 42
				controls_state = 1053
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 59
				controls_state = 58
				controls_state = 998
				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 = 989 #Ostrhineland
				controls_state = 922 #Frankfurt
				controls_state = 923 #Baden
				controls_state = 998 #Southern Schleswig
			}
			custom_trigger_tooltip = {
				tooltip = form_country_czechia_required_states_tt
				controls_state = 69		#Sudetenland
				controls_state = 1078		#South Sudetenland
				controls_state = 9		#Bohemia
				controls_state = 75		#Morevia
				controls_state = 74		#Eastern Sudetenland
			}
			controls_state = 8 		#Luxembourgh
			controls_state = 28 	#Alsace
			controls_state = 735	#Savoy
			# Italy
			controls_state = 158
			controls_state = 159
			controls_state = 39
			controls_state = 160
			controls_state = 161
			controls_state = 162
			controls_state = 736
			#controls_state = 911	#For pre-BBA and pre-NSB this is not the right state, may have been intended as 852, Istria
			controls_state = 912
			controls_state = 850 # Trentino
			# Switzerland
			custom_trigger_tooltip = {
				tooltip = form_country_switzerland_required_states_tt
				controls_state = 3
				controls_state = 151
				controls_state = 845	#Jura Mountains
				controls_state = 846	#Ticino
				controls_state = 847	#Western Swiss Alps
			}
			# Liechtenstein
			controls_state = 997
			# Austria
			custom_trigger_tooltip = {
				tooltip = form_country_austria_required_states_tt
				controls_state = 153
				controls_state = 152
				controls_state = 4
				controls_state = 848	#Vorarlberg
				controls_state = 1054	#Styria
				controls_state = 1086	#Burgenland
			}
			# Slovenia
			controls_state = 102
			controls_state = 853
			controls_state = 956
			# Netherlands
			custom_trigger_tooltip = {
				tooltip = form_eu_netherlands_required_states_tt
				controls_state = 7
				controls_state = 35
				controls_state = 36
			}
			# Belgium
			custom_trigger_tooltip = {
				tooltip = form_eu_belgium_required_states_tt
				controls_state = 6
				controls_state = 34
				controls_state = 965
				controls_state = 1094
				controls_state = 1095
			}
		}

		visible = {
			OR = {
				AND = {
					original_tag = GER
					has_government = neutrality
					has_country_leader = {
						character = GER_victoria
						ruling_only = yes
					}
				}
				AND = {
					original_tag = AUS
					has_government = neutrality
				}
				AND = {
					original_tag = CZE
					has_government = neutrality
				}
				AND = {
					original_tag = LIE
					has_government = neutrality
					NOT = {
						has_country_leader = {
						    character = LIE_boris_smyslovsky
						    ruling_only = yes
						}
					}
				}
				AND = {
					original_tag = LUX
					has_government = neutrality
				}
				AND = {
					original_tag = LUX
					has_government = neutrality
				}
				AND = {
					original_tag = SAX
					has_government = neutrality					
				}
				AND = {
					original_tag = HAN
					has_government = neutrality					
				}
				AND = {
					original_tag = MEK
					has_government = neutrality					
				}
				AND = {
					original_tag = SHL
					has_government = neutrality					
				}												
				AND = {
					original_tag = WUR
					has_government = neutrality					
				}
				AND = {
					original_tag = BAY
					has_government = neutrality					
				}
				AND = {
					original_tag = BAD
					has_government = neutrality					
				}												
			}
			NOT = { has_global_flag = form_hre_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = AUS
									has_nationality = CZE
									has_nationality = GER
									has_nationality = LIE
									has_nationality = BEL
									has_nationality = HOL
									has_nationality = LUX
									has_nationality = SAX
									has_nationality = HAN
									has_nationality = MEK
									has_nationality = SHL
									has_nationality = WUR
									has_nationality = PRE
									has_nationality = BAY
									has_nationality = BAD									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}


			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 }
			1078 = { 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 }
			102 = { add_core_of = ROOT }
			853 = { add_core_of = ROOT }
			956 = { add_core_of = ROOT }
			850 = { add_core_of = ROOT }	#r56 Trentino
			912 = { add_core_of = ROOT }	#r56 Friuli
			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				add_state_core = 51
				add_state_core = 42
				add_state_core = 1053
				add_state_core = 56
				add_state_core = 57
				add_state_core = 55
				add_state_core = 50
				add_state_core = 59
				add_state_core = 58
				add_state_core = 998
				add_state_core = 60
				add_state_core = 54
				add_state_core = 52
				add_state_core = 53
				add_state_core = 61
				add_state_core = 64
				add_state_core = 65
				add_state_core = 62
				add_state_core = 68
				add_state_core = 66
				add_state_core = 67
				add_state_core = 63
				add_state_core = 989 #Ostrhineland
				add_state_core = 922 #Frankfurt
				add_state_core = 923 #Baden
				add_state_core = 998 #Southern Schleswig
			}
			# 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 }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
			}
			# Liechtenstein
			997 = { add_core_of = ROOT }
			# Austria
			custom_effect_tooltip = form_country_austria_coring_states_tt
			hidden_effect = {
				153 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { 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 }
				965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
			}
			hidden_effect = {
				news_event = { id = wtt_news.70 hours = 6 }
				set_global_flag = form_hre_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
		}

		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
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = form_country_germany_required_states_tt
				controls_state = 5
				controls_state = 763
				controls_state = 51
				controls_state = 42
				controls_state = 1053
				controls_state = 56
				controls_state = 57
				controls_state = 55
				controls_state = 50
				controls_state = 59
				controls_state = 58
				controls_state = 998
				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 = 989 #Ostrhineland
				controls_state = 922 #Frankfurt
				controls_state = 923 #Baden
				controls_state = 998 #Southern Schleswig
			}
			# Austria
			custom_trigger_tooltip = {
				tooltip = form_country_austria_required_states_tt
				controls_state = 153
				controls_state = 152
				controls_state = 4
				controls_state = 848
				controls_state = 1054
				controls_state = 1086
			}
			controls_state = 69
			controls_state = 1078
			controls_state = 74
			controls_state = 8 # Luxembourg
			controls_state = 28 # Alsace
			controls_state = 965 # Eupen-Malmedy
			# Poland
			controls_state = 85
			controls_state = 807
			controls_state = 86
			controls_state = 762
			#Lithuania
			controls_state = 188
			#Yugoslavia
			controls_state = 102
		}

		visible = {
			original_tag = GER
			OR = {
				has_government = fascism
				has_government = neutrality
			}
			NOT = { has_global_flag = form_greater_german_reich_flag }
		}

		complete_effect = {
			set_cosmetic_tag = GER_greater_german_reich		
			custom_effect_tooltip = formable_cored_states_tt	
			hidden_effect = {
				set_global_flag = form_greater_german_reich_flag
				add_state_core = 5
				add_state_core = 763
				add_state_core = 51
				add_state_core = 42
				add_state_core = 1053
				add_state_core = 56
				add_state_core = 57
				add_state_core = 55
				add_state_core = 50
				add_state_core = 59
				add_state_core = 58
				add_state_core = 998
				add_state_core = 60
				add_state_core = 54
				add_state_core = 52
				add_state_core = 53
				add_state_core = 61
				add_state_core = 64
				add_state_core = 65
				add_state_core = 62
				add_state_core = 68
				add_state_core = 66
				add_state_core = 67
				add_state_core = 63
				add_state_core = 989 
				add_state_core = 922 
				add_state_core = 923 
				add_state_core = 998 
				add_state_core = 153
				add_state_core = 152
				add_state_core = 4
				add_state_core = 848
				add_state_core = 1054
				add_state_core = 1086
				add_state_core = 69
				add_state_core = 1078
				add_state_core = 74
				add_state_core = 8 
				add_state_core = 28 
				add_state_core = 965 
				add_state_core = 85
				add_state_core = 807
				add_state_core = 86
				add_state_core = 762
				add_state_core = 188
				add_state_core = 964
				add_state_core = 102
				add_state_core = 853
			}
		}

		ai_will_do = {
			factor = 200
		}
	}
}

form_greater_german_state_category = {

	form_greater_proletarian_state = {

		icon = generic_form_nation

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 8
				state = 7
				state = 35
				state = 36
				state = 6
				state = 34
				state = 1094 #977
				state = 1095 #980
				state = 29
				state = 18
				state = 17
				state = 28
				state = 15
				state = 16
				state = 27
				state = 14
				state = 30
				state = 24
				state = 23
				state = 33
				state = 26
				state = 20
				state = 32
				state = 735
				state = 25
				state = 22
				state = 21
				state = 851
				state = 19
				state = 1
				state = 785
				state = 31
				state = 806
				#state = 158
				#state = 159
				#state = 39
				#state = 160
				#state = 161
				#state = 162
				#state = 157
				#state = 2
				#state = 117
				#state = 156
				#state = 115
				#state = 114
				#state = 736
				#state = 849
				#state = 850
				#state = 852
				state = 51
				state = 42
				state = 56
				state = 57
				state = 55
				state = 50
				state = 923 #978
				state = 59
				state = 58
				state = 998 #909
				state = 60
				state = 54
				state = 52
				state = 53
				state = 61
				state = 64
				state = 65
				state = 62
				state = 68
				state = 66
				state = 67
				state = 63
				state = 5
				state = 763
				state = 127 # Sussex
				state = 123 # South-West England
				state = 338 # Gloustershire
				state = 126 # Greater London Area
				state = 125 # East Anglia
				state = 129 # East Midlands
				state = 128 # West Midlands
				state = 122 # Wales
				state = 132 # Lancashire
				state = 130 # Yorkshire
				state = 1041 #931 # Cumbria
				state = 131 # Northumberland
				state = 133 # Lanark
				state = 121 # Lothian
				state = 136 # Aberdeenshire
				state = 120 # Scottish Highlands

				#rt56
				state = 1053 # Saarland
				state = 922 # Frankfurt
				state = 989 # Ostrhineland
				state = 965	# Eupen-Malmedy
			}
		}

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

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

		available = {
			is_subject = no

			controls_state = 8

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

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

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

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

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

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

		complete_effect = {
			set_global_flag = form_greater_proletarian_state_flag
			set_cosmetic_tag = GER_greater_proletarian_german_state

			custom_effect_tooltip = generic_skip_one_line_tt

			8 = { add_core_of = ROOT } # Luxembourg

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

			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_core_of = ROOT } # Vlaanderen
				34 = { add_core_of = ROOT } # Wallonie
				1094 = { add_core_of = ROOT } # Antwerp
				1095 = { add_core_of = ROOT } # Ardennes
				965 = { add_core_of = ROOT } # Ardennes
			}

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

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

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

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

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

form_andalusia_category = {
	
	form_andalusia = {

		icon = generic_form_nation

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

		available = {
			is_subject = no
			# Spain
			controls_state = 173
			controls_state = 789
			controls_state = 168
			controls_state = 169			
			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 = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = MOR
									has_nationality = ALG
									has_nationality = TUN
									has_nationality = LBA
									has_nationality = WES									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			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 }
				add_ideas = generic_recent_political_unification
				add_ideas = generic_recent_army_unification
				add_ideas = generic_recent_economic_unification						
			}
			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 = 933
				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 }
				933 = { 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 = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = GRE
									has_nationality = CYP
									has_nationality = SIC
									has_nationality = MLT									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			# 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
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
				
			}
			# Saudi Arabia
			custom_trigger_tooltip = {
				tooltip = form_country_saudi_required_states_tt
				controls_state = 292
				controls_state = 679
				controls_state = 678
				controls_state = 858
				controls_state = 856
				controls_state = 859
				controls_state = 857
				controls_state = 854
				controls_state = 855
			}
			# 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 = 907
				controls_state = 457
				controls_state = 452
				controls_state = 447
				controls_state = 911
				controls_state = 995
			}
			controls_state = 679
			controls_state = 293
			controls_state = 294
			controls_state = 1102
			controls_state = 1103
			controls_state = 454
			controls_state = 1016
			controls_state = 949
			controls_state = 966
			controls_state = 455
			controls_state = 1021
			controls_state = 1022
			controls_state = 656
			controls_state = 658
			controls_state = 1021
			controls_state = 1022
		}

		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 = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = LEB
									has_nationality = LIB
									has_nationality = PAL
									has_nationality = EGY
									has_nationality = IRQ
									has_nationality = JOR
									has_nationality = SAU									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			custom_effect_tooltip = middle_east_coring_states_tt
			set_province_name = { id = 1086 name = "Al-Quds" }
			hidden_effect = {
				# Iraq
				676 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				
				# Saudi Arabia
				292 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { 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 }
				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1021 = { 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 }
				907 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				set_global_flag = restored_umayyad_flag

				659 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				979 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }

				#Oman
				294 = { add_core_of = ROOT }
				1102 = { add_core_of = ROOT }
				1103 = { add_core_of = ROOT }
 			}
		}

		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
				controls_state = 988
				controls_state = 986
				controls_state = 987
				controls_state = 984
				controls_state = 982
				controls_state = 980
				controls_state = 981
				controls_state = 983
			}
			# 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
				controls_state = 1093
				controls_state = 441
			}
			
		}

		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 = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = AFG
									has_nationality = PAK
									has_nationality = PER
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			# 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 }
				988 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				983 = { 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 }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { 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 }
				1093 = { 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
			controls_state = 1044
			# Armenia
			controls_state = 230
			# 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 = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = AZR
									has_nationality = TUR
									has_nationality = ARM
									has_nationality = KUR
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			# Azerbaijan
			229 = { add_core_of = ROOT }
			1044 = { add_core_of = ROOT }
			# Armenia
			230 = { add_core_of = ROOT }
			# Turkey
			350 = { add_core_of = ROOT }
			352 = { add_core_of = ROOT }
			353 = { add_core_of = ROOT }
			354 = { add_core_of = ROOT }
			800 = { add_core_of = ROOT }
			hidden_effect = { set_global_flag = andalusia_north_expansion_flag }
		}

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

form_polynesia_category = { #localization in TON_l_english
	
	form_polynesia = {

		icon = generic_form_nation

		allowed = {
			OR = {
			    original_tag = NZL
				original_tag = CHT
				original_tag = TON
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
			}
		}

		available = {
			OR = {
				is_subject = no
				compare_autonomy_state > autonomy_colony #New Zealand should be able to do it - better check
			}
			# Polynesia
			controls_state = 284 # North Island
			controls_state = 723 # South Island
			controls_state = 1087 # Chatham Islands
			controls_state = 734 # Tonga
			controls_state = 726 # Samoa
			controls_state = 1088 # American Samoa
			controls_state = 1089 # Niue
			controls_state = 643 # Ellice Islands
			controls_state = 642 # Kanton Island
			controls_state = 727 # Line Islands
			controls_state = 641 # Tahiti
			controls_state = 630 # Johnston Atoll
			controls_state = 629 # Hawaii
		}

		visible = {
			OR = {
			    if = { 
					limit = {
						original_tag = NZL
					}
					has_completed_focus = NZL_the_natives_of_new_zealand
		        }
				original_tag = TON
				original_tag = CHT
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
			}
			NOT = { has_global_flag = form_polynesia_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = NZL
									has_nationality = TON
									has_nationality = CHT
									has_nationality = SAM
									has_nationality = NIU
									has_nationality = TAH
									has_nationality = RAP
									has_nationality = TUV
									has_nationality = HAW
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Polynesia
			set_cosmetic_tag = PLY
			custom_effect_tooltip = form_country_polynesia_coring_states_tt
			custom_effect_tooltip = unlock_polynesia_decisions
			every_state = {
				limit = {
					OR = {
						state = 270
						state = 1074
					}
				}
				add_claim_by = ROOT
			}
			hidden_effect = {
				add_state_core = 284 # North Island
				add_state_core = 723 # South Island
				add_state_core = 1087 # Chatham Islands
				add_state_core = 734 # Tonga
				add_state_core = 726 # Samoa
				add_state_core = 1088 # American Samoa
				add_state_core = 1089 # Niue
				add_state_core = 643 # Ellice Islands
				add_state_core = 642 # Kanton Island
				add_state_core = 727 # Line Islands
				add_state_core = 641 # Tahiti
				add_state_core = 630 # Johnston Atoll
				add_state_core = 629 # Hawaii
				add_state_core = 631 # Midway (Hawaiian Core)
			}
			hidden_effect = {
				news_event = { id = lar_news.291 hours = 6 }
				set_global_flag = form_polynesia_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification
		}

		fire_only_once = yes

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

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
			}
		}

		available = {
			# Melanesia
			controls_state = 636 # Fiji
			controls_state = 635 # New Hebrides
			controls_state = 634 # Solomon Islands
			controls_state = 737 # Bismarck Islands
			controls_state = 523 # Papua
			controls_state = 1096 # New Guinea
			controls_state = 669 # West Papua
		}

		visible = {
			OR = {
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
			}
			NOT = { has_global_flag = form_melanesia_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = FIJ
									has_nationality = VAN
									has_nationality = SOL
									has_nationality = PNG
									has_nationality = PPA
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Melanesia
			set_cosmetic_tag = MLN
			custom_effect_tooltip = form_country_melanesia_coring_states_tt
			custom_effect_tooltip = unlock_melanesia_decisions
			every_state = {
				limit = {
				    state = 721
				}
				add_claim_by = ROOT
			}
			hidden_effect = {
				add_state_core = 636 # Fiji
				add_state_core = 635 # New Hebrides
				add_state_core = 634 # Solomon Islands
				add_state_core = 737 # Bismarck Islands
				add_state_core = 523 # Papua
				add_state_core = 1096 # New Guinea
				add_state_core = 669 # West Papua
				add_state_core = 738 # Aru Islands
			}
			hidden_effect = {
				set_global_flag = form_melanesia_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification
		}

		fire_only_once = yes

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

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
		}

		available = {
			# Micronesia
			controls_state = 684 # Caroline Islands
			controls_state = 647 # Palau Islands
			controls_state = 633 # Marshall Islands
			controls_state = 639 # Gilbert Islands
			controls_state = 725 # Nauru
			controls_state = 638 # Guam
			controls_state = 646 # Saipan
			controls_state = 632 # Wake Island
			controls_state = 648 # Marcus Island
		}

		visible = {
			OR = {
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
			NOT = { has_global_flag = form_micronesia_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = FSM
									has_nationality = PLU
									has_nationality = MRS
									has_nationality = GUM
									has_nationality = KIR
									has_nationality = NRU
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Micronesia
			set_cosmetic_tag = FSM
			custom_effect_tooltip = form_country_micronesia_coring_states_tt
			custom_effect_tooltip = unlock_micronesia_decisions
			every_state = {
				limit = {
				    state = 645
				}
				add_claim_by = ROOT
			}
			hidden_effect = {
				add_state_core = 684 # Caroline Islands
				add_state_core = 647 # Palau Islands
				add_state_core = 633 # Marshall Islands
				add_state_core = 639 # Gilbert Islands
				add_state_core = 725 # Nauru
				add_state_core = 638 # Guam
				add_state_core = 646 # Saipan
				add_state_core = 632 # Wake Island
				add_state_core = 648 # Marcus Island
			}
			hidden_effect = {
				set_global_flag = form_micronesia_flag
			}
			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification
		}

		fire_only_once = yes

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

	integrate_micronesia = {

		icon = CHL_mapuche_liberate_samoa

		allowed = {
			OR = {
				original_tag = NZL
				original_tag = CHT
				original_tag = TON
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
			}
		}

		available = {
			OR = {
				is_subject = no
				has_autonomy_state = autonomy_dominion #New Zealand should be able to do it
			}
			hidden_trigger = {
			    OR = {
					has_global_flag = form_polynesia_flag
					has_global_flag = form_melanesia_flag
				}
			}
			# Micronesia
			controls_state = 725 #Nauru
			controls_state = 639 #Gilbert Islands
			controls_state = 633 #Marshall Islands
			controls_state = 684 #Caroline Islands
			controls_state = 647 #Palau
			controls_state = 638 #Guam
			controls_state = 646 #Saipan
			controls_state = 648 #Marcus Island
			controls_state = 632 #Wake Island
		}

		visible = {
			OR = {
				original_tag = NZL
				original_tag = CHT
				original_tag = TON
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
			}
			OR = {
				has_global_flag = form_polynesia_flag
				has_global_flag = form_melanesia_flag
			}
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = GUM
									has_nationality = FSM
									has_nationality = PLU
									has_nationality = MRS
									has_nationality = NRU
									has_nationality = KIR
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Micronesia
			custom_effect_tooltip = form_country_micronesia_coring_states_tt
			hidden_effect = {
				725 = { add_core_of = ROOT }
				639 = { add_core_of = ROOT }
				633 = { add_core_of = ROOT }
				684 = { add_core_of = ROOT }
				647 = { add_core_of = ROOT }
				638 = { add_core_of = ROOT }
				646 = { add_core_of = ROOT }
				648 = { add_core_of = ROOT }
				632 = { add_core_of = ROOT }
			}
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 725 #Nauru
				state = 639 #Gilbert Islands
				state = 633 #Marshall Islands
				state = 684 #Caroline Islands
				state = 647 #Palau
				state = 638 #Guam
				state = 646 #Saipan
				state = 648 #Marcus Island
				state = 632 #Wake Island
			}
		}

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

	integrate_melanesia = {

		icon = CHL_mapuche_liberate_hawaii

		allowed = {
			OR = {
				original_tag = NZL
				original_tag = CHT
				original_tag = TON
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
		}

		available = {
			OR = {
				is_subject = no
				has_autonomy_state = autonomy_dominion #New Zealand should be able to do it
			}
			hidden_trigger = {
			    OR = {
					has_global_flag = form_polynesia_flag
					has_global_flag = form_micronesia_flag
				}
			}
			# Melanesia
			controls_state = 635 #New Hebrides
			controls_state = 636 #Fiji
			controls_state = 634 #Solomon Islands
			controls_state = 737 #Bismarck
			controls_state = 523 #Papua
			controls_state = 1096 #New Guinea
			controls_state = 669 #West Papua
			controls_state = 738 #Aru Islands
		}

		visible = {
			OR = {
				original_tag = NZL
				original_tag = CHT
				original_tag = TON
				original_tag = SAM
				original_tag = NIU
				original_tag = TAH
				original_tag = RAP
				original_tag = TUV
				original_tag = HAW
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
			OR = {
			    has_global_flag = form_polynesia_flag
				has_global_flag = form_micronesia_flag
			}
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = PNG
									has_nationality = PPA
									has_nationality = SOL
									has_nationality = VAN
									has_nationality = FIJ
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Melanesia
			custom_effect_tooltip = form_country_melanesia_coring_states_tt
			hidden_effect = {
				635 = { add_core_of = ROOT }
				636 = { add_core_of = ROOT }
				634 = { add_core_of = ROOT }
				737 = { add_core_of = ROOT }
				523 = { add_core_of = ROOT }
				1096 = { add_core_of = ROOT }
				669 = { add_core_of = ROOT }
				738 = { add_core_of = ROOT }
			}
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 635 #New Hebrides
				state = 636 #Fiji
				state = 634 #Solomon Islands
				state = 737 #Bismarck
				state = 523 #Papua
				state = 1096 #New Guinea
				state = 669 #West Papua
				state = 738 #Aru Islands
			}
		}

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

		icon = CHL_mapuche_liberate_tahiti

		allowed = {
			OR = {
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
		}

		available = {
			hidden_trigger = {
			    OR = {
					has_global_flag = form_melanesia_flag
					has_global_flag = form_micronesia_flag
				}
			}
			# Polynesia
			controls_state = 284 # North Island
			controls_state = 723 # South Island
			controls_state = 1087 # Chatham Islands
			controls_state = 734 # Tonga
			controls_state = 726 # Samoa
			controls_state = 1088 # American Samoa
			controls_state = 1089 # Niue
			controls_state = 643 # Ellice Islands
			controls_state = 642 # Kanton Island
			controls_state = 727 # Line Islands
			controls_state = 641 # Tahiti
			controls_state = 630 # Johnston Atoll
			controls_state = 629 # Hawaii
		}

		visible = {
			OR = {
				original_tag = FIJ
				original_tag = VAN
				original_tag = SOL
				original_tag = PNG
				original_tag = PPA
				original_tag = FSM
				original_tag = PLU
				original_tag = MRS
				original_tag = GUM
				original_tag = KIR
				original_tag = NRU
			}
			OR = {
			    has_global_flag = form_melanesia_flag
				has_global_flag = form_micronesia_flag
			}
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = NZL
									has_nationality = CHT
									has_nationality = TON
									has_nationality = SAM
									has_nationality = NIU
									has_nationality = TAH
									has_nationality = RAP
									has_nationality = TUV
									has_nationality = HAW
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			# Polynesia
			custom_effect_tooltip = core_polynesian_states_tt
			hidden_effect = {
				284 = { add_core_of = ROOT }
				723 = { add_core_of = ROOT }
				1087 = { add_core_of = ROOT }
				734 = { add_core_of = ROOT }
				726 = { add_core_of = ROOT }
				1088 = { add_core_of = ROOT }
				1089 = { add_core_of = ROOT }
				643 = { add_core_of = ROOT }
				642 = { add_core_of = ROOT }
				727 = { add_core_of = ROOT }
				641 = { add_core_of = ROOT }
				630 = { add_core_of = ROOT }
				629 = { add_core_of = ROOT }
				631 = { add_core_of = ROOT }
			}
		}

		fire_only_once = yes

		highlight_states = {
			highlight_state_targets = {
				state = 284
				state = 723 
				state = 1087
				state = 734
				state = 726
				state = 1088 
				state = 1089 
				state = 643 
				state = 642
				state = 727
				state = 641
				state = 630
				state = 629
				state = 631
			}
		}

		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_australian_nzl_agreement
			hidden_trigger = {
				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 = TON
							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_australian_nzl_agreement
			hidden_trigger = {
				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 = TON
							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 = {
						original_tag = HAW
						original_tag = TAH
						original_tag = GUM
						original_tag = FSM
						original_tag = TON
						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 = 973 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 = {
					ideology=liberalism
					traits = {
						the_young_magnate
					}
					expire="1965.1.1"
				}
				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 = 731
		}

		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 = 80
				controls_state = 950
				controls_state = 910
				controls_state = 963
			}
			# Iran
			custom_trigger_tooltip = {
				tooltip = form_country_iran_required_states_tt
				controls_state = 419
				controls_state = 421
				controls_state = 420
				controls_state = 417
				controls_state = 413
				controls_state = 266
				controls_state = 418
				controls_state = 411
				controls_state = 412
				controls_state = 416
				controls_state = 414
				controls_state = 410
				controls_state = 980
				controls_state = 981
				controls_state = 982
				controls_state = 983
				controls_state = 984
				controls_state = 986
				controls_state = 987
				controls_state = 988
			}
			# Afghanistan
			custom_trigger_tooltip = {
				tooltip = form_country_afghanistan_required_states_tt
				controls_state = 415
				controls_state = 267
				controls_state = 1008
				controls_state = 1009
				controls_state = 1010
				controls_state = 1011
			}
			# 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
				controls_state = 1045
				controls_state = 1046
				controls_state = 1047
				controls_state = 1048
				controls_state = 1049
				
			}
			# Turkey
			custom_trigger_tooltip = {
				tooltip = form_country_turkey_required_states_tt
				controls_state = 341
				controls_state = 340
				controls_state = 339
				controls_state = 342
				controls_state = 343
				controls_state = 347
				controls_state = 49
				controls_state = 346
				controls_state = 345
				controls_state = 356
				controls_state = 348
				controls_state = 344
				controls_state = 355
				controls_state = 349
				controls_state = 350
				controls_state = 354
				controls_state = 353
				controls_state = 352
				controls_state = 797
				controls_state = 798
				controls_state = 799
				controls_state = 800
			}
			# France: Syria
			custom_trigger_tooltip = {
				tooltip = form_persia_france_required_states_tt
				controls_state = 677
				controls_state = 680
				controls_state = 553
				controls_state = 554
			}
			# Britain: Egypt
			custom_trigger_tooltip = {
				tooltip = form_country_egypt_required_states_tt
				controls_state = 452
				controls_state = 447
				controls_state = 907
				controls_state = 456
				controls_state = 453
				controls_state = 457
				controls_state = 911
				controls_state = 995
			}
			# Britain: Levant / Kuwait
			custom_trigger_tooltip = {
				tooltip = form_country_british_levant_required_states_tt
				controls_state = 454
				controls_state = 949
				controls_state = 966
				controls_state = 1016
				controls_state = 1017
				controls_state = 455
				controls_state = 1022
				controls_state = 1021
				controls_state = 656
				controls_state = 454
			}
			# Raj / Punjab
			custom_trigger_tooltip = {
				tooltip = form_country_punjab_required_states_tt
				controls_state = 440
				controls_state = 443
				controls_state = 1093
				controls_state = 441
				controls_state = 787
				controls_state = 442
				controls_state = 445
				controls_state = 444
			}
		}

		visible = {
			#original_tag = GRE		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			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 = {
						character = GRE_george_two
						ruling_only = yes
					}
				}
			}
			NOT = { has_global_flag = form_macedonian_empire_flag }
		}

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TUR
									has_nationality = KUR
									has_nationality = IRQ
									has_nationality = PER
									has_nationality = AFG
									has_nationality = PAK
									has_nationality = KUW
									has_nationality = SYR
									has_nationality = EGY
									has_nationality = MAC
									has_nationality = PAL
									has_nationality = LEB									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			set_country_flag = GRE_mae_flag
			GRE_set_appropriate_cosmetic_tag = yes
			# Iran
			custom_effect_tooltip = form_country_iran_coring_states_tt
			hidden_effect = {
				988 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				980 = { 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 }
				982 = { 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 }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { 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 }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { 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 }
				798 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_persia_italy_coring_states_tt
			hidden_effect = {
				164 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
			}
			hidden_effect = {
				805 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT}
				950 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				732 = { 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
				controls_state = 799
			}
			# 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
				controls_state = 1049
				controls_state = 1048
			}
			# Persia
			custom_trigger_tooltip = {
				tooltip = form_country_turan_iran_required_states_tt
				controls_state = 421
				controls_state = 419
				controls_state = 420
				controls_state = 987
				controls_state = 988
				controls_state = 983
				
			}
			# Azerbaijan
			custom_trigger_tooltip = {
				tooltip = form_country_turan_azerbaijan_required_states_tt
				controls_state = 229
				controls_state = 1044
			}
			# 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 = 831
				controls_state = 985
				controls_state = 830
				controls_state = 881
				controls_state = 882
			}
			# 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 = 562
				controls_state = 644
				controls_state = 637
				controls_state = 874
				controls_state = 822
			}
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			has_completed_focus = TUR_turanist_ambition
			NOT = { has_global_flag = form_turan_flag }
		}

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = CRI
									has_nationality = AZR
									has_nationality = PER
									has_nationality = KAZ
									has_nationality = TAJ
									has_nationality = KYR
									has_nationality = TMS									
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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 }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				
				#PERSIA
				421 = { add_core_of = TUR }
				419 = { add_core_of = TUR }
				420 = { add_core_of = TUR }
				983 = { add_core_of = TUR }
				988 = { add_core_of = TUR }
				987 = { add_core_of = TUR }
				#AZERBAIJAN
				229 = { add_core_of = TUR }
				1044 = { 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 }
				#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 }
				823 = { add_core_of = TUR }
				831 = { add_core_of = TUR }
				832 = { add_core_of = TUR }
				830 = { add_core_of = TUR }
				985 = { add_core_of = TUR }
				881 = { add_core_of = TUR }
				882 = { add_core_of = TUR }
				#SIBERIA
				654 = { add_core_of = TUR }
				40 = { add_core_of = TUR }
				569 = { add_core_of = TUR }
				568 = { add_core_of = TUR }
				329 = { add_core_of = TUR }
				567 = { add_core_of = TUR }
				566 = { add_core_of = TUR }
				564 = { add_core_of = TUR }
				563 = { add_core_of = TUR }
				565 = { add_core_of = TUR }
				561 = { add_core_of = TUR }
				574 = { add_core_of = TUR }
				562 = { add_core_of = TUR }
				644 = { add_core_of = TUR }
				637 = { add_core_of = TUR }
				874 = { add_core_of = TUR }
				822 = { 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 = 1104
			controls_state = 43
			controls_state = 154
			controls_state = 913
			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 } }
			1104 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			43 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			154 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			913 = { 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 } }

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = ROM
									has_nationality = TRA
									has_nationality = HUN
									has_nationality = SZK
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
		}

		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 = 1075
			controls_state = 616
			# Nationalist China
			controls_state = 752
			controls_state = 751
			controls_state = 601
			# Mongolia / Manchuria
			controls_state = 330
			controls_state = 820
			controls_state = 819
			controls_state = 818
			controls_state = 817
			controls_state = 612
			controls_state = 611
			controls_state = 621
			controls_state = 761
			controls_state = 714
			controls_state = 717
			controls_state = 941
			controls_state = 942
			controls_state = 943
			controls_state = 944
			controls_state = 945
			controls_state = 946
			controls_state = 947

		}

		visible = {
			has_completed_focus = TUR_cin_turkleri
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = SIK
									has_nationality = MON
									has_nationality = XSM
	
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			# 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 } }
			1075 = { 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 } }
			941 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			942 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			943 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			944 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			945 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			946 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			947 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			#Mongolia
			330 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			820 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			819 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			818 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			817 = { 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
			controls_state = 150
			controls_state = 149
			controls_state = 148
			controls_state = 146
			controls_state = 216
			controls_state = 215
			controls_state = 147
			controls_state = 722
			controls_state = 213
			# Estonia
			controls_state = 13
			controls_state = 191
		}

		visible = {
			has_completed_focus = TUR_crowning_ourselves_with_the_fin_ugor
		}

		fire_only_once = yes

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = KAR
									has_nationality = FIN
									has_nationality = EST	
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			#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 } }
			216 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			215 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			147 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			722 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			213 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			#ESTONIA
			13 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			191 = { add_dynamic_modifier = { modifier = turanist_assimilation } }		
			812 = { add_dynamic_modifier = { modifier = turanist_assimilation } }
			813 = { add_dynamic_modifier = { modifier = turanist_assimilation } }		
		}

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

	form_turkestan = {

		icon = generic_form_nation

		allowed = {
			OR = {
				original_tag = TAN # Tannu Tuva
				original_tag = ALT # Altai
				original_tag = KAZ # Kazakhstan
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				original_tag = TAJ # Tajikistan
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				original_tag = TNG # Tunganistan
				original_tag = BUK # Bukhara
				original_tag = KHI # Khiva
				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
				controls_state = 881
				controls_state = 882
			}
			custom_trigger_tooltip = {
				tooltip = form_country_uzbekistan_required_states
				controls_state = 405
				controls_state = 585
				controls_state = 830
				controls_state = 823
				controls_state = 831
			}
			custom_trigger_tooltip = {
				tooltip = form_country_turkmenistan_required_states_tt
				controls_state = 584 # Turkmenistan
				controls_state = 985 # Asgabat
				controls_state = 832 # Tashauz
			}
			controls_state = 732 # Kyrgyzstan
			controls_state = 742 # Tajikistan
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = TAN # Tannu Tuva
				#original_tag = KAZ # Kazakhstan
				#original_tag = UZB # Uzbekistan
				#original_tag = KYR # Kyrgyzstan
				#original_tag = TAJ # Tajikistan
				#original_tag = TMS # Turkmenistan
				#original_tag = SIK # Sinkiang
				#original_tag = BUK # Bukhara
				#original_tag = KHI # Khiva
				#original_tag = KKP # Karakalpakstan
			#}
			NOT = { has_global_flag = form_turkestan_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = TAN # Tannu Tuva
									has_nationality = ALT # Altai
									has_nationality = KAZ # Kazakhstan
									has_nationality = UZB # Uzbekistan
									has_nationality = KYR # Kyrgyzstan
									has_nationality = TAJ # Tajikistan
									has_nationality = TMS # Turkmenistan
									has_nationality = SIK # Sinkiang
									has_nationality = TNG # Tunganistan
									has_nationality = BUK # Bukhara
									has_nationality = KHI # Khiva
									has_nationality = KKP # Karakalpakstan	
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			#set_cosmetic_tag = turkestan_united
			set_cosmetic_tag = TRK_UNITED
			# Kazakhstan
			custom_effect_tooltip = form_country_kazakhstan_coring_states_tt
			hidden_effect = {
				402 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
				882 = { add_core_of = ROOT }
			}
			# 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 }
				985 = { add_core_of = ROOT }
			}
			# Turkmenistan
			custom_effect_tooltip = form_country_turkmenistan_coring_states_tt
			hidden_effect = {
				584 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				985 = { add_core_of = ROOT }
			}
			# Kyrgyzstan and Tajikistan
			every_state = {
				limit = {
					OR = {
						state = 732
						state = 742
					}
				}
				add_core_of = ROOT
			}
			every_state = {
				limit = {
					OR = {
						state = 654
						state = 329
						state = 287
						state = 617
						state = 618
						state = 619
						state = 759
						state = 760
					}
				}
				add_claim_by = ROOT
			}
			unlock_decision_tooltip = reintegrate_xinjiang
			unlock_decision_tooltip = assimilate_altai
			unlock_decision_tooltip = reincorporate_tuva
			add_ideas = soldiers_of_the_steppe
            add_ideas = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification				
			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
			}
		}
	}

	reintegrate_xinjiang = {

		icon = GFX_decision_generic_nationalism

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

		cost = 50

		days_remove = 120

		modifier = {
			political_power_factor = -0.15
			consumer_goods_factor = 0.10
			industrial_capacity_factory = -0.05
		}

		available = {
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = form_country_sinkiang_required_states_tt
				controls_state = 287
				controls_state = 617
				controls_state = 618
				controls_state = 619
				controls_state = 759
				controls_state = 760
			}
		}

		visible = { has_global_flag = form_turkestan_flag }

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

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

	assimilate_altai = {

		icon = GFX_decision_generic_nationalism

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

		cost = 25

		days_remove = 60

		modifier = {
			political_power_factor = -0.10
			consumer_goods_factor = 0.05
		}

		available = {
			is_subject = no
			controls_state = 654
		}

		visible = { has_global_flag = form_turkestan_flag }

		complete_effect = {
			654 = { add_core_of = ROOT }
		}

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

	reincorporate_tuva = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			OR = {
				original_tag = KAZ # Kazakhstan
				original_tag = ALT # Altai
				original_tag = UZB # Uzbekistan
				original_tag = KYR # Kyrgyzstan
				original_tag = TAJ # Tajikistan
				original_tag = TMS # Turkmenistan
				original_tag = SIK # Sinkiang
				original_tag = TNG # Tunganistan
				original_tag = BUK # Bukhara
				original_tag = KHI # Khiva
				original_tag = KKP # Karakalpakstan
			}
		}

		cost = 25

		days_remove = 60

		modifier = {
			political_power_factor = -0.10
			consumer_goods_factor = 0.05
		}

		available = {
			is_subject = no
			controls_state = 329
		}

		visible = { has_global_flag = form_turkestan_flag }

		complete_effect = {
			329 = { add_core_of = ROOT }
		}

		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 = {
			has_dlc = "No Step Back"	#56
			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 = {
			is_subject = no
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {

									has_nationality = DAG
									has_nationality = CIN
									has_nationality = NOA
									has_nationality = KBK
									has_nationality = ABK
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			
			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 = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		available = {
			is_subject = no
			controls_state = 826 # Abkhazia
			controls_state = 231 # Georgia
			controls_state = 230 # Armenia
			controls_state = 229 # Azerbaijan
			controls_state = 1044 # Nakhchivan
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = GEO # Georgia
				#original_tag = ARM # Armenia
				#original_tag = AZR # Azerbaijan
			#}
			NOT = { has_global_flag = form_transcaucasia_flag }
		}

		complete_effect = {
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = ABK
									has_nationality = GEO
									has_nationality = ARM
									has_nationality = AZR
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}			
			
			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 }

			# Nakhchivan
			1044 = { add_core_of = ROOT }
			
			
            add_ideas = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		available = {
			is_subject = no
			controls_state = 419 # Tabriz
			controls_state = 987 # Ardabil
			controls_state = 988 # Azarbayjan-E Gharbi
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {
			
			# Tabriz
			419 = { add_core_of = ROOT }
			
			# Ardabil
			987 = { add_core_of = ROOT }
			
			# Azarbayjan-E Gharbi
			988 = { add_core_of = ROOT }
			
			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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = GEO # Georgia
				original_tag = ARM # Armenia
				original_tag = AZR # Azerbaijan
			}
		}

		available = {
			is_subject = no
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {
			
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {

									has_nationality = DAG
									has_nationality = CIN
									has_nationality = NOA
									has_nationality = KBK
									has_nationality = ABK
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			# 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 = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			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 = {
			has_dlc = "No Step Back"	#56
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {
			
			# Trabzon
			354 = { add_core_of = ROOT }
			
			# Van
			800 = { add_core_of = ROOT }
			
            add_ideas = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			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 = {
			has_dlc = "No Step Back"	#56
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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" 	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {
			
			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {

									has_nationality = KAL
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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 = {
			has_dlc = "No Step Back"	#56
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		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 = {
			has_dlc = "No Step Back"	#56
			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		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = ARM # Armenia		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = AZR # Azerbaijan	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
			}
			has_global_flag = form_transcaucasia_flag
			NOT = { has_global_flag = anatolian_kurds_subjugated_flag }
			#has_dlc = "No Step Back"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = GUK # Green Ukraine
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		available = {
			is_subject = no
			controls_state = 564 # Buryatia
			controls_state = 563 # Chita
			controls_state = 574 # Yakutsk
			controls_state = 516 # Taymyria
			controls_state = 644 # Northeast Siberia
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = YAK # Yakutia
				#original_tag = FER # Far Eastern Republic
				#original_tag = CKK # Chukotka
				#original_tag = VLA # Vladivostok
				#original_tag = BYA # Buryatia
				#original_tag = TAY # Taymyria
				#original_tag = ALT # Altai
				#original_tag = YAM # Yamalia
				#original_tag = OVO # Ostyak-Vogulia
				#original_tag = TAN # Tannu Tuva
				#original_tag = KHA # Khakassia
				#original_tag = EVE # Evenkia
			#}
			NOT = { has_global_flag = form_siberian_republic_flag }
			#has_dlc = "No Step Back"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {

									has_nationality = YAK
									has_nationality = FER
									has_nationality = GUK
									has_nationality = CKK
									has_nationality = VLA
									has_nationality = BYA

									has_nationality = TAY
									has_nationality = ALT
									has_nationality = YAM
									has_nationality = OVO
									has_nationality = TAN
									has_nationality = KHA # Khakassia
									has_nationality = EVE # Evenkia
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			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 = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			hidden_effect = { 
			
				# Yakutsk
				574 = { add_core_of = ROOT }
				
				# Northeast Siberia
				644 = { 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 }
				
				#Udachny
				876 = { add_core_of = ROOT }
				
				#Verkhoyansk
				877 = { 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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = GUK # Green Ukraine
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		available = {
			is_subject = no
			controls_state = 822 # Chukotka
			controls_state = 637 # Kamchatka
			controls_state = 562 # Okhotsk
			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
			controls_state = 874 # Magadan
		}

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = YAK # Yakutia
				#original_tag = FER # Far Eastern Republic
				#original_tag = CKK # Chukotka
				#original_tag = VLA # Vladivostok
				#original_tag = BYA # Buryatia
				#original_tag = TAY # Taymyria
				#original_tag = ALT # Altai
				#original_tag = YAM # Yamalia
				#original_tag = OVO # Ostyak-Vogulia
				#original_tag = TAN # Tannu Tuva
				#original_tag = KHA # Khakassia
				#original_tag = EVE # Evenkia
			#}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = far_east_integrated_flag }
			#has_dlc = "No Step Back"
		}

		complete_effect = {
			
			custom_effect_tooltip = far_eastern_states_coring_states_tt
			
			hidden_effect = { 
			
				# Chukotka
				822 = { add_core_of = ROOT }
				
				# Kamchatka
				637 = { add_core_of = ROOT }
				
				# Okhotsk
				562 = { 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 }
				
				# Magadan 
				874 = { add_core_of = ROOT }
				
				# Chukchi Peninsula
				875 = { 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 = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = YAK # Yakutia
				original_tag = FER # Far Eastern Republic
				original_tag = GUK # Green Ukraine
				original_tag = CKK # Chukotka
				original_tag = VLA # Vladivostok
				original_tag = BYA # Buryatia
				original_tag = TAY # Taymyria
				original_tag = ALT # Altai
				original_tag = YAM # Yamalia
				original_tag = OVO # Ostyak-Vogulia
				original_tag = TAN # Tannu Tuva
				original_tag = KHA # Khakassia
				original_tag = EVE # Evenkia
			}
		}

		available = {
			is_subject = no
			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 = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = YAK # Yakutia
				#original_tag = FER # Far Eastern Republic
				#original_tag = CKK # Chukotka
				#original_tag = VLA # Vladivostok
				#original_tag = BYA # Buryatia
				#original_tag = TAY # Taymyria
				#original_tag = ALT # Altai
				#original_tag = YAM # Yamalia
				#original_tag = OVO # Ostyak-Vogulia
				#original_tag = TAN # Tannu Tuva
				#original_tag = KHA # Khakassia
				#original_tag = EVE # Evenkia
			#}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = urals_integrated_flag }
			#has_dlc = "No Step Back"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

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

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

		icon = generic_form_nation

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

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = YAK # Yakutia
				#original_tag = FER # Far Eastern Republic
				#original_tag = CKK # Chukotka
				#original_tag = VLA # Vladivostok
				#original_tag = BYA # Buryatia
				#original_tag = TAY # Taymyria
				#original_tag = ALT # Altai
				#original_tag = YAM # Yamalia
				#original_tag = OVO # Ostyak-Vogulia
				##original_tag = TAN # Tannu Tuva
				#original_tag = KHA # Khakassia
				#original_tag = EVE # Evenkia
			#}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = ainu_integrated_flag }
			#has_dlc = "No Step Back"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

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

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

		icon = generic_form_nation

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = YAK # Yakutia
				#original_tag = FER # Far Eastern Republic
				#original_tag = CKK # Chukotka
				#original_tag = VLA # Vladivostok
				#original_tag = BYA # Buryatia
				#original_tag = TAY # Taymyria
				#original_tag = ALT # Altai
				#original_tag = YAM # Yamalia
				#original_tag = OVO # Ostyak-Vogulia
				#original_tag = TAN # Tannu Tuva
				#original_tag = KHA # Khakassia
				#original_tag = EVE # Evenkia
			#}
			
			has_global_flag = form_siberian_republic_flag
			NOT = { has_global_flag = manchus_integrated_flag }
			#has_dlc = "No Step Back"
		}

		on_map_mode = decision_view_only

		highlight_states = { 
			highlight_state_targets = {
				state = 761 # Hulunbuir
				state = 714 # Heliungkiang
				state = 717 # Sungkiang
				state = 715 # Liaoning
				state = 328 # Kirin
				state = 716 # Liaotung
				state = 610 # Jehol
				state = 745 # Dalian
				state = 947
				state = 941
				state = 942
				state = 943
				state = 944
				state = 945
			}
		}

		available = {
			controls_state = 761 # Hulunbuir
			controls_state = 714 # Heliungkiang
			controls_state = 717 # Sungkiang
			controls_state = 715 # Liaoning
			controls_state = 328 # Kirin
			controls_state = 716 # Liaotung
			controls_state = 610 # Jehol
			controls_state = 745 # Dalian
			controls_state = 947
			controls_state = 941	
			controls_state = 942
			controls_state = 943	
			controls_state = 944
			controls_state = 945
		}

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

			# Liaoning
			715 = { add_core_of = ROOT }

			# Kirin
			328 = { add_core_of = ROOT }

			# Liaotung
			716 = { add_core_of = ROOT }

			# Jehol
			610 = { add_core_of = ROOT }

			# Dalian
			745 = { add_core_of = ROOT }

			947 = { add_core_of = ROOT }

			941 = { add_core_of = ROOT }

			942 = { add_core_of = ROOT }

			943 = { add_core_of = ROOT }

			944 = { add_core_of = ROOT }

			945 = { add_core_of = ROOT }

			hidden_effect = { 
				
				set_global_flag = manchus_integrated_flag
				
			}
		}

		ai_will_do = {
			base = 200
		}
	}
}




form_idel_ural_category = {
	
	form_idel_uralic_republic = { 

		icon = generic_form_nation

		allowed = {
			has_dlc = "No Step Back"	#56
			OR = {
				original_tag = MEL # Mari EL
				original_tag = CHU # Chuvashia
				original_tag = TAT # Tatarstan
				original_tag = UDM # Udmurtia
				original_tag = BSK # Bashkortostan
			}
		}

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#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"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {

									has_nationality = MEL
									has_nationality = CHU
									has_nationality = TAT
									has_nationality = UDM
									has_nationality = BSK
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}


			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 = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			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
			}
		}
	}
}

###BBA

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 
			controls_state = 966
			controls_state = 949
			controls_state = 1016
			controls_state = 1017
			controls_state = 453 # Siniai
			controls_state = 995 # East Suez - was Suez but thats unconnected, presumed accidental/vanilla inherited
		}

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

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {
									has_nationality = EGY
									has_nationality = SUD
									has_nationality = ISR
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}
			
			set_cosmetic_tag = empire_of_solomon		
			453 = { add_core_of = ROOT }
			995 = { add_core_of = ROOT }	#East Suez
			907 = { add_core_of = ROOT }	#Cairo
			911 = { add_core_of = ROOT }	#Suez
			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 
			1016 = { 
				is_owned_by = ROOT 
				is_fully_controlled_by = ROOT 
			}
			NOT = { has_country_flag = ETH_has_moved_capital_flag }
		}
		cost = 50 

		visible = {
			1016 = { 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 = 1016
				remember_old_capital = no
			}
			1016 = {
				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
		
			hidden_effect = { 
				#TODO_TA make news event 
				# news_event = { id = nsb_news.304 hours = 8 }
			}
		}

		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 = ZAN # Zanzibar
				original_tag = RWA # Rwanda
				original_tag = BRD # Burundi
				original_tag = COG #Congo
			}
		}

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = KEN # Kenya
				#original_tag = UGA # Uganda
				#original_tag = TZN # Tanzania
				#original_tag = RWA # Rwanda
				#original_tag = BRD # Burundi
				#AND = {
					#has_dlc = "Gotterdammerung"
					#original_tag = COG # Congo
					#has_completed_focus = COG_unify_east_africa
				#}
				if = {	#56
					limit = { has_focus_tree = congo_focus }
					has_completed_focus = COG_unify_east_africa
				}
			#}
			NOT = { has_global_flag = form_east_africa_flag }
		}

		complete_effect = {

			hidden_effect = {
				if = {
                    limit = {
                        has_dlc = "La Resistance"
                    }
                    every_country = {
                        every_operative = {
                            limit = {
                                OR = {

									has_nationality = KEN
									has_nationality = UGA
									has_nationality = TZN
									has_nationality = ZAN
									has_nationality = RWA
									has_nationality = BRD
								}
                                NOT = {
                                    has_nationality = ROOT
                                }
                            }
                            add_nationality = ROOT
                        }
                    }
                }				
			}

			set_cosmetic_tag = east_africa
			
			# Tanganyika
			546 = { add_core_of = ROOT }

			# Zanzibar
			1055 = { 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

			add_ideas = generic_recent_political_unification
			add_ideas = generic_recent_army_unification
			add_ideas = generic_recent_economic_unification				
			hidden_effect = { 

				
				#news_event = { id = bba_africa_news.1 hours = 8 }
                news_event = { id = r56.news_event.37 hours = 6 }
			
				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
				original_tag = COG #Congo
			}
		}

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

		visible = {
			
			has_global_flag = form_east_africa_flag
			

		}

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

		}

		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
				original_tag = COG #Congo
			}
		}

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

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

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

		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
				original_tag = COG #Congo
			}
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

		available = {
			controls_state = 837 # Sidamo
		}

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

		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
				original_tag = COG #Congo
			}
		}

		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 = {
			
			has_global_flag = form_east_africa_flag

		}

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

			# Garissa
			903 = { add_core_of = ROOT }

			# Somaliland
			559 = { add_core_of = ROOT }

			# British Somaliland
			269 = { add_core_of = ROOT }

			# Bale
			836 = { add_core_of = ROOT }

			# Hararghe
			835 = { add_core_of = ROOT }

			# Djibouti
			268 = { add_core_of = ROOT }

			# Socotra
			906 = { add_claim_by = ROOT }
			

		}

		ai_will_do = {
			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
				original_tag = COG #Congo
			}
		}

		available = {
			controls_state = 708 # Comoro Islands
		}

		visible = {
			
			has_global_flag = form_east_africa_flag

		}

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

		ai_will_do = {
			factor = 200
		}
	}
}


form_horn_of_africa_africa_category = {
	
	form_the_horn_of_africa = { 

		icon = generic_form_nation

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

		visible = {
			IF = {
				limit = {
					original_tag = ETH
				}
				has_completed_focus = ETH_develop_the_horn_of_africa
			}
			ELSE_IF = {
				limit = {
					OR = {
						original_tag = AFA
						original_tag = ORO
						original_tag = QEM
						original_tag = TIG
						original_tag = BEG
						original_tag = HAR
						original_tag = SID
						original_tag = GBA
					}
				}
				has_completed_focus = HOA_proclaim_east-african_hegemony
			}
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = ETH # Ethiopia
				#original_tag = ERI # Eritrea
				#original_tag = SOM # Somalia
				#original_tag = TIG # Tigray
				#original_tag = QEM # Qemant State
				#original_tag = AFA # Afar
				#original_tag = HAR # Harar
				#original_tag = ORO # Oromia
				#original_tag = SID # Sidamo
				#original_tag = GBA # Gambela
				#original_tag = BEG # Benishangul-Gumuz State
				#original_tag = DJI # Djibouti
			#}
			NOT = { has_global_flag = form_horn_of_africa_flag }

			#has_dlc = "By Blood Alone"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

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

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

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

			# Illubabor-Kaffa
			838 = { add_core_of = ROOT }

			# Sidamo
			837 = { add_core_of = ROOT }

			# Shewa
			271 = { add_core_of = ROOT }

			# Bale
			836 = { add_core_of = ROOT }

			# Hararghe
			835 = { add_core_of = ROOT }

			# Eritrea
			550 = { add_core_of = ROOT }

			# French Somaliland
			268 = { add_core_of = ROOT }

			# British Somaliland
			269 = { add_core_of = ROOT }

			# Somaliland
			559 = { add_core_of = ROOT }

			# Jubaland
			844 = { add_core_of = ROOT }

			# Socotra
			906 = { add_claim_by = ROOT }
			
			
			#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 = {
			base = 200
		}
	}

	conquer_socotra = { 

		icon = generic_form_nation

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = ETH # Ethiopia
				#original_tag = ERI # Eritrea
				#original_tag = SOM # Somalia
				#original_tag = TIG # Tigray
				#original_tag = QEM # Qemant State
				#original_tag = AFA # Afar
				#original_tag = HAR # Harar
				#original_tag = ORO # Oromia
				#original_tag = SID # Sidamo
				#original_tag = GBA # Gambela
				#original_tag = BEG # Benishangul-Gumuz State
				#original_tag = DJI # Djibouti
			#}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = socotra_conquered_flag }
			#has_dlc = "By Blood Alone"		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

		available = {
			controls_state = 906 # Socotra
		}

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

		ai_will_do = {
			base = 200
		}
	}


	integrate_the_south = { 

		icon = generic_form_nation

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

		visible = {
			#OR = {		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
				#original_tag = ETH # Ethiopia
				#original_tag = ERI # Eritrea
				#original_tag = SOM # Somalia
				#original_tag = TIG # Tigray
				#original_tag = QEM # Qemant State
				#original_tag = AFA # Afar
				#original_tag = HAR # Harar
				#original_tag = ORO # Oromia
				#original_tag = SID # Sidamo
				#original_tag = GBA # Gambela
				#original_tag = BEG # Benishangul-Gumuz State
				#original_tag = DJI # Djibouti
			#}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = integrate_the_south_flag }
			#has_dlc = "By Blood Alone"	#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

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

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

			# Nairobi
			547 = { add_core_of = ROOT }

			# Mombasa
			905 = { add_core_of = ROOT }

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

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

		ai_will_do = {
			base = 200
		}
	}


	the_upper_nile = { 

		icon = generic_form_nation

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

		visible = {
			OR = {
				original_tag = ETH # Ethiopia
				original_tag = ERI # Eritrea
				original_tag = SOM # Somalia
				original_tag = TIG # Tigray
				original_tag = QEM # Qemant State
				original_tag = AFA # Afar
				original_tag = HAR # Harar
				original_tag = ORO # Oromia
				original_tag = SID # Sidamo
				original_tag = GBA # Gambela
				original_tag = BEG # Benishangul-Gumuz State
				original_tag = DJI # Djibouti
			}
			
			has_global_flag = form_horn_of_africa_flag
			NOT = { has_global_flag = the_upper_nile_flag }
			#has_dlc = "By Blood Alone"		#56 - Does not need to be checked for while game is running, these checks only need to be in 'allowed = {}' sections of code
		}

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

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

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

		ai_will_do = {
			base = 200
		}
	}
}


greater_italy_category = {
	
	proclaim_greater_italy = { 

		icon = generic_form_nation

		allowed = {
			original_tag = ITA # Italy
		}

		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 = 958 # R56: Kvarner
						}
						any_country = {
							is_subject_of = ITA
							controls_state = 958 # R56: Kvarner
						}
					}
					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 = {
			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
				} 

				# Kvarner
				ITA = {
					transfer_state = 958
				}
				958 = { 
					add_core_of = ROOT
				}
	 
				# 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
		}
	}
}
