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, 
				#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_claim_by = ROOT
				}
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 10
							region = 192
							state = 124
						}
					}
					add_claim_by = ROOT
				}
				if = {
					limit = {
						145 = { is_controlled_by = ROOT } 
					}
					145 = { add_claim_by = 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_claim_by = 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, 
				#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_claim_by = ROOT
				}
			}
			# Sweden
			custom_effect_tooltip = form_country_sweden_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 10
							region = 192
							state = 124
						}
					}
					add_claim_by = 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_claim_by = ROOT
				}
			}
			# Iceland
			custom_effect_tooltip = form_country_denmark_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							state = 1043
							state = 100
						}
					}
					add_claim_by = 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_claim_by = 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, 
				#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_claim_by = ROOT }
			695 = { add_claim_by = ROOT }
			if = {
				limit = {
					NOT = { original_tag = GYA }
				}
				687 = { add_claim_by = 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_claim_by = ROOT }
				649 = { add_claim_by = ROOT }
				490 = { add_claim_by = ROOT }
			}
			# Colombia
			custom_effect_tooltip = form_country_colombia_coring_states_tt
			hidden_effect = {
				486 = { add_claim_by = ROOT }
				306 = { add_claim_by = ROOT }
				493 = { add_claim_by = ROOT }
				1051 = { add_claim_by = ROOT }
			}
			# Venezuela
			custom_effect_tooltip = form_country_venezuela_coring_states_tt
			hidden_effect = {
				489 = { add_claim_by = ROOT }
				307 = { add_claim_by = ROOT }
				488 = { add_claim_by = ROOT }
				1073 = { add_claim_by = ROOT }
				948 = { add_claim_by = ROOT }
			}
			# Panama
			custom_effect_tooltip = form_country_panama_coring_states_tt
			hidden_effect = {
				304 = { add_claim_by = ROOT }
				937 = { add_claim_by = ROOT }
				685 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
				152 = { add_claim_by = ROOT }
				4 = { add_claim_by = ROOT }
				848 = { add_claim_by = ROOT }
				1054 = { add_claim_by = ROOT }
				1086 = { add_claim_by = ROOT }
			}
			# Czechoslovakia
			custom_effect_tooltip = form_country_czechoslovakia_coring_states_tt
			hidden_effect = {
				69 = { add_claim_by = ROOT }
				1078 = { add_claim_by = ROOT }
				9 = { add_claim_by = ROOT }
				75 = { add_claim_by = ROOT }
				74 = { add_claim_by = ROOT }
				72 = { add_claim_by = ROOT }
				70 = { add_claim_by = ROOT }
				664 = { add_claim_by = ROOT }
				71 = { add_claim_by = ROOT }
				73 = { add_claim_by = ROOT }
				996 = { add_claim_by = ROOT }
			}
			# Hungary
			custom_effect_tooltip = form_country_hungary_coring_states_tt
			hidden_effect = {
				155 = { add_claim_by = ROOT }
				1104 = { add_claim_by = ROOT }
				43 = { add_claim_by = ROOT }
				154 = { add_claim_by = ROOT }
				913 = { add_claim_by = ROOT }
			}
			# Slovenia
			custom_effect_tooltip = form_country_slovenia_coring_states_tt
			hidden_effect = {
				956 = { add_claim_by = ROOT }
				853 = { add_claim_by = ROOT }
				102 = { add_claim_by = ROOT }
			}
			# Croatia
			custom_effect_tooltip = form_country_croatia_coring_states_tt
			hidden_effect = {
				952 = { add_claim_by = ROOT }
				959 = { add_claim_by = ROOT }
				109 = { add_claim_by = ROOT }
				958 = { add_claim_by = ROOT }
				103 = { add_claim_by = ROOT }
			}
			# Bosnia
			custom_effect_tooltip = form_country_bosnia_coring_states_tt
			hidden_effect = {
				961 = { add_claim_by = ROOT }
				804 = { add_claim_by = ROOT }
				962 = { add_claim_by = ROOT }
				104 = { add_claim_by = ROOT }
			}
			# Transylvania
			custom_effect_tooltip = form_country_transylvania_coring_states_tt
			hidden_effect = {
				76 = { add_claim_by = ROOT }
				84 = { add_claim_by = ROOT }
				83 = { add_claim_by = ROOT }
				82 = { add_claim_by = ROOT }
				764 = { add_claim_by = ROOT }
			}
			45 = { add_claim_by = ROOT }
			39 = { add_claim_by = ROOT }
			163 = { add_claim_by = ROOT }
			#Istria/Litorale, not required
			736 = { add_claim_by = ROOT }
			852 = { add_claim_by = 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_claim_by = ROOT }
				1104 = { add_claim_by = ROOT }
				43 = { add_claim_by = ROOT }
				154 = { add_claim_by = ROOT }
				913 = { add_claim_by = ROOT }
			}
			# Slovenia
			custom_effect_tooltip = form_country_slovenia_coring_states_tt
			hidden_effect = {
				956 = { add_claim_by = ROOT }
				853 = { add_claim_by = ROOT }
				102 = { add_claim_by = ROOT }
			}
			# Croatia
			custom_effect_tooltip = form_country_croatia_coring_states_tt
			hidden_effect = {
				952 = { add_claim_by = ROOT }
				959 = { add_claim_by = ROOT }
				109 = { add_claim_by = ROOT }
				958 = { add_claim_by = ROOT }
				103 = { add_claim_by = ROOT }
			}
			# Bosnia
			custom_effect_tooltip = form_country_bosnia_coring_states_tt
			hidden_effect = {
				961 = { add_claim_by = ROOT }
				804 = { add_claim_by = ROOT }
				962 = { add_claim_by = ROOT }
				104 = { add_claim_by = ROOT }
			}
			# Transylvania
			custom_effect_tooltip = form_country_transylvania_coring_states_tt
			hidden_effect = {
				76 = { add_claim_by = ROOT }
				84 = { add_claim_by = ROOT }
				83 = { add_claim_by = ROOT }
				82 = { add_claim_by = ROOT }
				764 = { add_claim_by = ROOT }
			}
			45 = { add_claim_by = ROOT }
			39 = { add_claim_by = ROOT }
			163 = { add_claim_by = ROOT }
			88 = { add_claim_by = ROOT }
			91 = { add_claim_by = ROOT }
			89 = { add_claim_by = 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, 
				#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, 
				#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_claim_by = 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_claim_by = ROOT }
				35 = { add_claim_by = ROOT }
				36 = { add_claim_by = ROOT }
			}
			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_claim_by = ROOT }
				34 = { add_claim_by = ROOT }
				965 = { add_claim_by = ROOT }
				1094 = { add_claim_by = ROOT }
				1095 = { add_claim_by = 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, 
				#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_claim_by = 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, 
				#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_claim_by = 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_claim_by = 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_claim_by = 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_claim_by = ROOT }
			293 = { add_claim_by = ROOT }
			665 = { add_claim_by = ROOT }
			458 = { add_claim_by = ROOT }
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
			}
			# France/Syria
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				553 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
			}
			# Italian North Africa and Dodecanese
			custom_effect_tooltip = form_ottoman_italy_coring_states_tt
			hidden_effect = {
				448 = { add_claim_by = ROOT }
				661 = { add_claim_by = ROOT }
				449 = { add_claim_by = ROOT }
				662 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				663 = { add_claim_by = ROOT }
				273 = { add_claim_by = ROOT }
				164 = { add_claim_by = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_claim_by = ROOT }
				447 = { add_claim_by = ROOT }
				907 = { add_claim_by = ROOT }	#Cairo
				456 = { add_claim_by = ROOT }
				457 = { add_claim_by = ROOT }
				453 = { add_claim_by = ROOT }
				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				455 = { add_claim_by = ROOT }
				1021 = { add_claim_by = ROOT }
				1022 = { add_claim_by = ROOT }
				183 = { add_claim_by = ROOT }
				656 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				185 = { add_claim_by = ROOT }
				731 = { add_claim_by = ROOT }
				184 = { add_claim_by = ROOT }
				187 = { add_claim_by = ROOT }
			}
			# Bulgaria
			custom_effect_tooltip = form_rumelia_bulgaria_coring_states_tt
			hidden_effect = {
				48 = { add_claim_by = ROOT }
				801 = { add_claim_by = ROOT }
				212 = { add_claim_by = ROOT }
				211 = { add_claim_by = ROOT }
				if = {
					limit = {
						controls_state = 77 # Southern Dobrudja
					}
					77 = { add_claim_by = ROOT }
				}
			}
			# Yugoslavia
			custom_effect_tooltip = form_rumelia_yugoslavia_coring_states_tt
			hidden_effect = {
				106 = { add_claim_by = ROOT }
				950 = { add_claim_by = ROOT }
				803 = { add_claim_by = ROOT }
				802 = { add_claim_by = ROOT }
				108 = { add_claim_by = ROOT }
				953 = { add_claim_by = ROOT }
				105 = { add_claim_by = ROOT }
				107 = { add_claim_by = ROOT }
				963 = { add_claim_by = ROOT }
			}
			# Albania 
			44 = { add_claim_by = ROOT }
			805 = { add_claim_by = ROOT }
			910 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_greece_flag }
			has_completed_focus = TUR_reclaim_macedonia
		}

		complete_effect = {
			186 = { add_claim_by = ROOT }
			182 = { add_claim_by = ROOT }
			187 = { add_claim_by = ROOT }
			164 = { add_claim_by = ROOT }
			183 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_bosnia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			104 = { add_claim_by = ROOT }
			804 = { add_claim_by = ROOT }
			103 = { add_claim_by = ROOT }
			961 = { add_claim_by = ROOT }
			962 = { add_claim_by = ROOT }			
			hidden_effect = {
				set_global_flag = ottoman_bosnia_flag
				163 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_romania_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			46 = { add_claim_by = ROOT }
			79 = { add_claim_by = ROOT }
			81 = { add_claim_by = ROOT }
			77 = { add_claim_by = ROOT }
			766 = { add_claim_by = ROOT }
			84 = { add_claim_by = ROOT }
			76 = { add_claim_by = ROOT }
			83 = { add_claim_by = ROOT }
			82 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
				799 = { add_claim_by = 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, 
			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_claim_by = ROOT }
			966 = { add_claim_by = ROOT }
			949 = { add_claim_by = ROOT }
			1016 = { add_claim_by = ROOT }
			1017 = { add_claim_by = ROOT }
			455 = { add_claim_by = ROOT }
			1021 = { add_claim_by = ROOT }
			1022 = { add_claim_by = ROOT }
			553 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_arabia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			656 = { add_claim_by = ROOT }
			765 = { add_claim_by = ROOT }
			658 = { add_claim_by = ROOT }
			292 = { add_claim_by = ROOT }
			678 = { add_claim_by = ROOT }
			294 = { add_claim_by = ROOT }
			1102 = { add_claim_by = ROOT }
			1103 = { add_claim_by = ROOT }
			979 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_yemen_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			679 = { add_claim_by = ROOT }
			293 = { add_claim_by = ROOT }
			659 = { add_claim_by = 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
			controls_state = 551
		}

		visible = {
			#original_tag = TUR		#56 - Does not need to be checked for while game is running, 
			NOT = { has_global_flag = ottoman_egypt_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			907 = { add_claim_by = ROOT }
			453 = { add_claim_by = ROOT }
			452 = { add_claim_by = ROOT }
			456 = { add_claim_by = ROOT }
			457 = { add_claim_by = ROOT }
			552 = { add_claim_by = ROOT }
			767 = { add_claim_by = ROOT }
			551 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				661 = { add_claim_by = ROOT }
				449 = { add_claim_by = ROOT }
				662 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				663 = { add_claim_by = 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, 
			NOT = { has_global_flag = ottoman_tunisia_flag }
			has_completed_focus = TUR_reclaiming_our_lost_empire
		}

		complete_effect = {
			458 = { add_claim_by = ROOT }
			665 = { add_claim_by = ROOT }
			459 = { add_claim_by = ROOT }
			460 = { add_claim_by = ROOT }
			513 = { add_claim_by = ROOT }
			933 = { add_claim_by = 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
			}
		}

		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_claim_by = ROOT }
			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt 
			hidden_effect = {
				7 = { add_claim_by = ROOT }
				35 = { add_claim_by = ROOT }
				36 = { add_claim_by = ROOT }
			}
			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_claim_by = ROOT }
				34 = { add_claim_by = ROOT }
				965 = { add_claim_by = ROOT }
				1094 = { add_claim_by = ROOT }
				1095 = { add_claim_by = ROOT }	
			}
			# France
			custom_effect_tooltip = form_eu_france_coring_states_tt
			hidden_effect = {
				29 = { add_claim_by = ROOT }
				18 = { add_claim_by = ROOT }
				17 = { add_claim_by = ROOT }
				28 = { add_claim_by = ROOT }
				15 = { add_claim_by = ROOT }
				16 = { add_claim_by = ROOT }
				27 = { add_claim_by = ROOT }
				14 = { add_claim_by = ROOT }
				30 = { add_claim_by = ROOT }
				24 = { add_claim_by = ROOT }
				23 = { add_claim_by = ROOT }
				33 = { add_claim_by = ROOT }
				26 = { add_claim_by = ROOT }
				20 = { add_claim_by = ROOT }
				32 = { add_claim_by = ROOT }
				735 = { add_claim_by = ROOT }
				25 = { add_claim_by = ROOT }
				22 = { add_claim_by = ROOT }
				21 = { add_claim_by = ROOT }
				19 = { add_claim_by = ROOT }
				20 = { add_claim_by = ROOT }
				1 = { add_claim_by = ROOT }
				785 = { add_claim_by = ROOT }
				31 = { add_claim_by = ROOT }
				806 = { add_claim_by = ROOT } # pyrenees-atlantiques
				1012 = { add_claim_by = ROOT } #monaco
				851 = { add_claim_by = ROOT } #var
			}
			# Italy
			custom_effect_tooltip = form_eu_italy_coring_states_tt
			hidden_effect = {
				158 = { add_claim_by = ROOT }
				159 = { add_claim_by = ROOT }
				39 = { add_claim_by = ROOT }
				160 = { add_claim_by = ROOT }
				161 = { add_claim_by = ROOT }
				162 = { add_claim_by = ROOT }
				957 = { add_claim_by = ROOT } #marche
				157 = { add_claim_by = ROOT }
				2 = { add_claim_by = ROOT }
				117 = { add_claim_by = ROOT }
				156 = { add_claim_by = ROOT }
				115 = { add_claim_by = ROOT }
				114 = { add_claim_by = ROOT }
				736 = { add_claim_by = ROOT }
				736 = { add_claim_by = ROOT } #litorale
				912 = { add_claim_by = ROOT } #friuli
				#163 = { add_claim_by = ROOT } #zara
				850 = { add_claim_by = ROOT } #trentino
				849 = { add_claim_by = ROOT } #puglia
				1015 = { add_claim_by = ROOT } #Sanmarino
			}
			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				51 = { add_claim_by = ROOT }
				42 = { add_claim_by = ROOT }
				56 = { add_claim_by = ROOT }
				57 = { add_claim_by = ROOT }
				55 = { add_claim_by = ROOT }
				50 = { add_claim_by = ROOT }
				59 = { add_claim_by = ROOT }
				58 = { add_claim_by = ROOT }
				998 = { add_claim_by = ROOT }
				60 = { add_claim_by = ROOT }
				54 = { add_claim_by = ROOT }
				52 = { add_claim_by = ROOT }
				53 = { add_claim_by = ROOT }
				61 = { add_claim_by = ROOT }
				64 = { add_claim_by = ROOT }
				65 = { add_claim_by = ROOT }
				62 = { add_claim_by = ROOT }
				68 = { add_claim_by = ROOT }
				66 = { add_claim_by = ROOT }
				67 = { add_claim_by = ROOT }
				63 = { add_claim_by = ROOT }
				5 = { add_claim_by = ROOT }
				989 = { add_claim_by = ROOT }
				922 = { add_claim_by = ROOT }
				923 = { add_claim_by = ROOT }
				998 = { add_claim_by = ROOT }
				1053 = { add_claim_by = ROOT}   #Saarland
				if = {
					limit = {
						controls_state = 763
					}
					763 = { add_claim_by = 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_claim_by = ROOT }
				168 = { add_claim_by = ROOT }
				173 = { add_claim_by = ROOT }
				169 = { add_claim_by = ROOT }
				175 = { add_claim_by = ROOT }
				167 = { add_claim_by = ROOT }
				165 = { add_claim_by = ROOT }
				170 = { add_claim_by = ROOT }
				41 = { add_claim_by = ROOT }
				166 = { add_claim_by = ROOT }
				171 = { add_claim_by = ROOT }
				174 = { add_claim_by = ROOT }
				176 = { add_claim_by = ROOT }
				172 = { add_claim_by = ROOT }
				178 = { add_claim_by = ROOT }
				790 = { add_claim_by = ROOT } #asturia 
				791 = { add_claim_by = ROOT } #valladolid
				792 = { add_claim_by = ROOT } #pais vasco
				794 = { add_claim_by = ROOT } #eastern aragon
				793 = { add_claim_by = ROOT } #guadalajara
				788 = { add_claim_by = ROOT } #salamanca
				789 = { add_claim_by = ROOT } #cordoba
				973	= { add_claim_by = ROOT } #andorra
				if = {
					limit = {
						controls_state = 118 #membership for gibraltar too is controlled
					}
					118 = { add_claim_by = 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_claim_by = ROOT }
				698 = { add_claim_by = ROOT }
				180 = { add_claim_by = ROOT }
				181 = { add_claim_by = ROOT }
				112 = { add_claim_by = ROOT }
				179 = { add_claim_by = ROOT }
				795 = { add_claim_by = 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_claim_by = ROOT }
				99 = { add_claim_by = ROOT }
				964 = { add_claim_by = ROOT }
				1025 = { add_claim_by = ROOT } #Fyn
				1024 = { add_claim_by = ROOT } #Bornholm
				
				if = {
					limit = {
						controls_state = 337
					}
					337 = { add_claim_by = 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_claim_by = ROOT }
				138 = { add_claim_by = ROOT }
				139 = { add_claim_by = ROOT }
				140 = { add_claim_by = ROOT }
				141 = { add_claim_by = ROOT }
				38 = { add_claim_by = ROOT }
				666 = { add_claim_by = ROOT }
				968 = { add_claim_by = ROOT }
				969 = { add_claim_by = ROOT }
				1026 = { add_claim_by = ROOT }
				1030 = { add_claim_by = ROOT }
				1028 = { add_claim_by = ROOT }
				1029 = { add_claim_by = 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_claim_by = ROOT }
				142 = { add_claim_by = ROOT }
				143 = { add_claim_by = ROOT }
				144 = { add_claim_by = ROOT }
				967 = { add_claim_by = ROOT }
				1031 = { add_claim_by = ROOT }
				1032 = { add_claim_by = ROOT }
				1033 = { add_claim_by = ROOT }
				1034 = { add_claim_by = ROOT }
				1035 = { add_claim_by = ROOT }
				1027 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
			940 = { add_claim_by = ROOT }
			275 = { add_claim_by = ROOT }
			938 = { add_claim_by = ROOT }
			939 = { add_claim_by = ROOT }
			893 = { add_claim_by = ROOT }
			541 = { add_claim_by = ROOT }
			894 = { add_claim_by = ROOT }
			895 = { add_claim_by = ROOT }
			542 = { add_claim_by = ROOT }
			545 = { add_claim_by = ROOT }
			544 = { add_claim_by = ROOT }
			896 = { add_claim_by = ROOT }
			771 = { add_claim_by = ROOT }
			1097 = { add_claim_by = 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, 
			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_claim_by = ROOT }
 				735 = { add_claim_by = ROOT }
 				851 = { add_claim_by = ROOT }
 				21 = { add_claim_by = ROOT }
 				22 = { add_claim_by = ROOT }
 				31 = { add_claim_by = ROOT }
 				165 = { add_claim_by = ROOT }
 				177 = { add_claim_by = ROOT }
 				167 = { add_claim_by = ROOT }
 				168 = { add_claim_by = ROOT }
 				173 = { add_claim_by = ROOT }
 				118 = { add_claim_by = ROOT }
 				290 = { add_claim_by = ROOT }
 				461 = { add_claim_by = ROOT }
 				459 = { add_claim_by = ROOT }
 				460 = { add_claim_by = ROOT }
 				116 = { add_claim_by = ROOT }
 				458 = { add_claim_by = ROOT }
 				665 = { add_claim_by = ROOT }
 				448 = { add_claim_by = ROOT }
 				661 = { add_claim_by = ROOT }
 				273 = { add_claim_by = ROOT }
 				662 = { add_claim_by = ROOT }
 				449 = { add_claim_by = ROOT }
 				450 = { add_claim_by = ROOT }
 				663 = { add_claim_by = ROOT }
 				451 = { add_claim_by = ROOT }
 				452 = { add_claim_by = ROOT }
 				447 = { add_claim_by = ROOT }
 				907 = { add_claim_by = ROOT }
 				453 = { add_claim_by = ROOT }
 				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
 				553 = { add_claim_by = ROOT }
 				183 = { add_claim_by = ROOT }
 				677 = { add_claim_by = ROOT }
 				799 = { add_claim_by = ROOT }
 				344 = { add_claim_by = ROOT }
 				345 = { add_claim_by = ROOT }
 				342 = { add_claim_by = ROOT }
 				164 = { add_claim_by = ROOT }
 				182 = { add_claim_by = ROOT }
 				339 = { add_claim_by = ROOT }
 				187 = { add_claim_by = ROOT }
 				340 = { add_claim_by = ROOT }
				347 = { add_claim_by = ROOT }	#Izmit, added in R56 because of constant Roman control, less bordergore, etc.
 				797 = { add_claim_by = ROOT }
 				341 = { add_claim_by = ROOT }
 				184 = { add_claim_by = ROOT }
 				731 = { add_claim_by = ROOT }
 				47 = { add_claim_by = ROOT }
 				186 = { add_claim_by = ROOT }
 				185 = { add_claim_by = ROOT }
				#Albania
 				805 = { add_claim_by = ROOT }
 				44 = { add_claim_by = ROOT }
				910 = { add_claim_by = ROOT }	#R56, Shkodër

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

			# Western Aragon
			166 = { add_claim_by = ROOT }

			# Navarra
			172 = { add_claim_by = ROOT }

			# Pais Vasco
			792 = { add_claim_by = ROOT }

			# Asturias
			790 = { add_claim_by = ROOT }

			# Galicia
			171 = { add_claim_by = ROOT }

			# Leon
			174 = { add_claim_by = ROOT }

			# Valladolid
			791 = { add_claim_by = ROOT }

			# Burgos
			176 = { add_claim_by = ROOT }

			# Guadalajara
			793 = { add_claim_by = ROOT }

			# Salamanca
			788 = { add_claim_by = ROOT }

			# Madrid
			41 = { add_claim_by = ROOT }

			# Ciudad Real
			175 = { add_claim_by = ROOT }

			# Extramadura
			170 = { add_claim_by = ROOT }

			# Cordoba
			789 = { add_claim_by = ROOT }

			# Sevilla
			169 = { add_claim_by = ROOT }

			# Beja
			179 = { add_claim_by = ROOT }

			# Santarem
			795 = { add_claim_by = ROOT }

			# Lisbon
			112 = { add_claim_by = ROOT }

			# Guarda
			181 = { add_claim_by = ROOT }

			# Porto
			180 = { add_claim_by = 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, 
			NOT = { has_global_flag = reclaim_dacia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# North Transylvania
			76 = { add_claim_by = ROOT }

			# Transylvania
			84 = { add_claim_by = ROOT }

			# Crisana
			83 = { add_claim_by = ROOT }

			# Oltenia
			81 = { add_claim_by = ROOT }

			# Banat
			82 = { add_claim_by = ROOT }

			# West Banat
			764 = { add_claim_by = 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, 
			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_claim_by = ROOT }

			#R56, Northern Dobrudja
			955 = { add_claim_by = ROOT }

			# Muntenia
			46 = { add_claim_by = ROOT }

			# Dobrudja
			77 = { add_claim_by = ROOT }

			# Burgas
			211 = { add_claim_by = ROOT }

			# Moesia
			801 = { add_claim_by = ROOT }

			# Plovdiv
			212 = { add_claim_by = ROOT }

			# Sofia
			48 = { add_claim_by = ROOT }

			# Southern Serbia
			803 = { add_claim_by = ROOT }

			# Macedonia
			106 = { add_claim_by = ROOT }

			# Kosovo
			802 = { add_claim_by = ROOT }

			# Morava
			108 = { add_claim_by = ROOT }

			# Serbia
			107 = { add_claim_by = ROOT }

			# R56, Debar
			950 = { add_claim_by = ROOT }

			# R56, Mitrovica
			953 = { add_claim_by = ROOT }

			# R56, West Sandzak
			963 = { add_claim_by = 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, 
			NOT = { has_global_flag = reclaim_aegyptus_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {

			# Western Desert
			552 = { add_claim_by = ROOT }

			# Aswan
			456 = { add_claim_by = ROOT }

			# Eastern Desert
			457 = { add_claim_by = 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, 
			NOT = { has_global_flag = restore_mesopotamia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
 

			# Kuwait
			656 = { add_claim_by = ROOT }

			# Baghdad
			291 = { add_claim_by = ROOT }
			1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
				

			# Al Hajara
			675 = { add_claim_by = ROOT }

			# Mosul
			676 = { add_claim_by = ROOT }

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

			# Diyarbakir
			350 = { add_claim_by = 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, 
			NOT = { has_global_flag = reconquer_cappadocia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = {
 

			# Izmit, made default core
			#347 = { add_claim_by = ROOT }

			# Ankara
			49 = { add_claim_by = ROOT }

			# Afyon
			343 = { add_claim_by = ROOT }

			# Konya
			346 = { add_claim_by = ROOT }

			# Kastamonu
			356 = { add_claim_by = ROOT }

			# Amasya
			798 = { add_claim_by = ROOT }

			# Kayseri
			348 = { add_claim_by = ROOT }

			# Sivas
			349 = { add_claim_by = ROOT } 

			# Samsun
			355 = { add_claim_by = ROOT }

			# Trabzon
			354 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_armenia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Armenia
			230 = { add_claim_by = ROOT }

			# Van
			800 = { add_claim_by = ROOT }

			# Tunceli
			353 = { add_claim_by = ROOT }

			# Hakkari
			352 = { add_claim_by = ROOT }
			
			#Nakhchivan
			1044 = { add_claim_by = ROOT }

			#Iranian Azerbijan - According to the wikipedia map this state makes sense to include
			988 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_petra_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Damascus
			554 = { add_claim_by = ROOT }

			# Jordan
			455 = { add_claim_by = ROOT }
			1021 = { add_claim_by = ROOT }
			1022 = { add_claim_by = ROOT }
			# Jawf
			854 = { add_claim_by = ROOT }

			# Tabuk
			855 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_mauretania_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Tlemcen
			513 = { add_claim_by = ROOT }

			# R56, Batna
			933 = { add_claim_by = ROOT }

			# Algerian Desert
			514 = { add_claim_by = ROOT }

			# Marrakech
			462 = { add_claim_by = ROOT }

			# Sidi Ifni
			783 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_pannonia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Northern Hungary
			43 = { add_claim_by = ROOT }

			# Alföld
			154 = { add_claim_by = ROOT }

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

			# Solt-Kiskun
			913 = { add_claim_by = ROOT }

			# Vojvodina
			45 = { add_claim_by = ROOT }

			# Croatia
			109 = { add_claim_by = ROOT }

			# North Slovenia
			102 = { add_claim_by = ROOT }

			# R56, Prekmurje
			956 = { add_claim_by = ROOT }

			# R56, Slavonia
			959 = { add_claim_by = ROOT }

			# R56, Syrmia
			952 = { add_claim_by = ROOT }

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

			# R56, Posavina
			962 = { add_claim_by = 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, 
			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_claim_by = ROOT }

			# Upper Austria
			152 = { add_claim_by = ROOT }

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

			# Styria
			1054 = { add_claim_by = ROOT }

			# Burgenland
			1086 = { add_claim_by = ROOT }

			# Eastern Swiss Alps
			151 = { add_claim_by = ROOT }

			# Ticino
			846 = { add_claim_by = ROOT }

			# Western Swiss Alps
			847 = { add_claim_by = ROOT }

			# Swiss Plateu
			3 = { add_claim_by = ROOT }

			# Jura Mountains
			845 = { add_claim_by = ROOT }

			# Lichtenstein
			997 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_gaul_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Pyrenees-Atlantiques 
			806 = { add_claim_by = ROOT }

			# Aquitaine
			19 = { add_claim_by = ROOT }

			# Limousin
			25 = { add_claim_by = ROOT }

			# Auveragne
			26 = { add_claim_by = ROOT }

			# Rhone
			20 = { add_claim_by = ROOT }

			# Alpes
			32 = { add_claim_by = ROOT }

			# Centre-Sud
			33 = { add_claim_by = ROOT }

			# Poitou
			23 = { add_claim_by = ROOT }

			# Loire
			30 = { add_claim_by = ROOT }

			# Brittany
			14 = { add_claim_by = ROOT }

			# Bourgogne
			27 = { add_claim_by = ROOT }

			# Franche-Comte
			17 = { add_claim_by = ROOT }

			# Alsace-Lorraine
			28 = { add_claim_by = ROOT }

			# Ile De France
			16 = { add_claim_by = ROOT }

			# Centre
			24 = { add_claim_by = ROOT }

			# Normandy
			15 = { add_claim_by = ROOT }

			# Picardy
			785 = { add_claim_by = ROOT }

			# Champagne
			18 = { add_claim_by = ROOT }
			
			# Channel Islands
			1076 = { add_claim_by = 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, 
			NOT = { has_global_flag = integrate_belgica_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Brabant
			35 = { add_claim_by = ROOT }

			# Vlaanderen
			6 = { add_claim_by = ROOT }
			
			# Antwerp
			1094 = { add_claim_by = ROOT }

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

			# Antwerpen
			1094 = { add_claim_by = ROOT }

			# Ardennes
			1095 = { add_claim_by = ROOT }

			# Luxembourg
			8 = { add_claim_by = ROOT }

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

			# R56, Eupen
			965 = { add_claim_by = 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, 
			NOT = { has_global_flag = occupy_iberia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Azerbaijan
			229 = { add_claim_by = ROOT }

			# Georgia
			231 = { add_claim_by = ROOT }
 
			# Abkhazia
			826 = { add_claim_by = 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, 
			NOT = { has_global_flag = return_to_britannia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Sussex
			127 = { add_claim_by = ROOT }

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

			# Greater London Area
			126 = { add_claim_by = ROOT }

			# East Anglia
			125 = { add_claim_by = ROOT }

			# West Midlands
			128 = { add_claim_by = ROOT }

			# Wales
			122 = { add_claim_by = ROOT }

			# East Midlands
			129 = { add_claim_by = ROOT }

			# Lancashire
			132 = { add_claim_by = ROOT }

			# Yorkshire
			130 = { add_claim_by = ROOT }

			# Nothern England/Northumberland
			131 = { add_claim_by = ROOT }

			#Cumbria
			1041 = { add_claim_by = ROOT }

			#Isle of Man
			1042 = { add_claim_by = ROOT }

			#guernsey
			1076 = { add_claim_by = 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, 
			NOT = { has_global_flag = conquer_hibernia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Leinster
			113 = { add_claim_by = ROOT }

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

			# Northern Ireland
			119 = { add_claim_by = 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, 
			NOT = { has_global_flag = conquer_caledonia_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Lanark
			133 = { add_claim_by = ROOT }

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

			# Scottish Highlands
			120 = { add_claim_by = ROOT }
			
			# R56, Orkney
			971 = { add_claim_by = 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, 
			NOT = { has_global_flag = avenge_teutoberg_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Holland
			7 = { add_claim_by = ROOT }

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

			# Westfalen
			57 = { add_claim_by = ROOT }

			# Rhineland
			51 = { add_claim_by = ROOT }

			# Moselland
			42 = { add_claim_by = ROOT }

			# Saarland
			1053 = { add_claim_by = ROOT }

			# Hessen
			55 = { add_claim_by = ROOT }

			# Franken
			54 = { add_claim_by = ROOT }

			# Wurtemberg
			50 = { add_claim_by = ROOT }
 
			# Oberbayern
			52 = { add_claim_by = ROOT }

			# Niederbayern
			53 = { add_claim_by = ROOT }
			
			# Frankfurt
			922 = { add_claim_by = ROOT }
			
			# Baden
			923 = { add_claim_by = ROOT }

			# Ostrhineland
			989 = { add_claim_by = 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, 
			NOT = { has_global_flag = the_bosporan_kingdom_flag }
			has_global_flag = form_roman_empire_flag
		}

		complete_effect = { 
 

			# Odessa
			192 = { add_claim_by = CRI }

			# Mykolaiv
			197 = { add_claim_by = CRI }

			# Kherson
			196 = { add_claim_by = CRI }

			# Dnipropetrovsk
			226 = { add_claim_by = CRI }

			# Zaporozhe
			200 = { add_claim_by = CRI }

			# Stalino
			227 = { add_claim_by = CRI }

			# Rostov
			218 = { add_claim_by = CRI }

			# Krasnodar
			234 = { add_claim_by = 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, 
			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_claim_by = ROOT
				}
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_claim_by = ROOT }
				267 = { add_claim_by = ROOT }
				1010 = { add_claim_by = ROOT }
				1008 = { add_claim_by = ROOT }
				1009 = { add_claim_by = ROOT }

			}
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
				
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							region = 129
							state = 341
							state = 797
						}
					}
					add_claim_by = ROOT
				}			
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				553 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
				799 = { add_claim_by = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_persia_italy_coring_states_tt
			hidden_effect = {
				164 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				663 = { add_claim_by = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_claim_by = ROOT }
				447 = { add_claim_by = ROOT }
				907 = { add_claim_by = ROOT }
				456 = { add_claim_by = ROOT }
				457 = { add_claim_by = ROOT }
				453 = { add_claim_by = ROOT }
				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				455 = { add_claim_by = ROOT }
				1022 = { add_claim_by = ROOT }
				1021 = { add_claim_by = ROOT }
				183 = { add_claim_by = ROOT }
				656 = { add_claim_by = ROOT }
				911 = { add_claim_by = ROOT }
				995 = { add_claim_by = 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, 
			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_claim = 341
			add_state_claim = 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_claim = 185
				add_state_claim = 731
				add_state_claim = 47 				
				add_state_claim = 186
				add_state_claim = 184
				add_state_claim = 187
				add_state_claim = 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_claim = 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_claim = 185
				add_state_claim = 731
				add_state_claim = 47 				
				add_state_claim = 186
				add_state_claim = 184
				add_state_claim = 187
				add_state_claim = 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_claim_by = ROOT }
				340 = { set_state_name = "Thracia" }
				set_province_name = { id = 947 name = "Prusa" }
				340 = { add_claim_by = ROOT }
				340 = { set_state_name = "Prusa" }
				set_province_name = { id = 947 name = "Prusa" }
				339 = { add_claim_by = ROOT }
				339 = { set_state_name = "Samos" }
				set_province_name = { id = 4112 name = "Smyrna" }
				342 = { add_claim_by = ROOT }
				342 = { set_state_name = "Cibyrrhaeot" }
				set_province_name = { id = 1005 name = "Attaleia" }
				343 = { add_claim_by = ROOT }
				343 = { set_state_name = "Thrakesion" }
				set_province_name = { id = 9878 name = "Nicopolis" }
				set_province_name = { id = 10041 name = "Attouda" }
				347 = { add_claim_by = ROOT }
				347 = { set_state_name = "Optimaton" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 973 name = "Pontoheraclea" }
				49 = { add_claim_by = ROOT }
				49 = { set_state_name = "Bukellarion" }
				set_province_name = { id = 11747 name = "Ancyra" }
				set_province_name = { id = 3951 name = "Dorylaion" }
				346 = { add_claim_by = ROOT }
				346 = { set_state_name = "Anatolikon" }
				set_province_name = { id = 940 name = "Ikonion" }
				345 = { add_claim_by = ROOT }
				345 = { set_state_name = "Seleucia" }
				set_province_name = { id = 10056 name = "Hadrianopolis" }
				356 = { add_claim_by = ROOT }
				356 = { set_state_name = "Paphlagonia" }
				set_province_name = { id = 6995 name = "Sinope" }
				set_province_name = { id = 6938 name = "Kastamone" }
				348 = { add_claim_by = ROOT }
				348 = { set_state_name = "Cappadocia" }
				set_province_name = { id = 3870 name = "Caesarea" }
				344 = { add_claim_by = 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_claim_by = ROOT }
				355 = { set_state_name = "Armeniakon" }
				set_province_name = { id = 11881 name = "Amisos" }
				349 = { add_claim_by = ROOT }
				349 = { set_state_name = "Koloneia" }
				set_province_name = { id = 9777 name = "Sebasteia" }
				798 = { add_claim_by = ROOT }
				798 = { set_state_name = "Carsiano" }
				set_province_name = { id = 987 name = "Amaseia" }
				set_province_name = { id = 3862 name = "Taouion" }
				350 = { add_claim_by = 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_claim_by = ROOT }
				354 = { set_state_name = "Chaldia" }
				set_province_name = { id = 9932 name = "Trebizond" }
				353 = { add_claim_by = ROOT }
				353 = { set_state_name = "Manzikert" }
				set_province_name = { id = 11853 name = "Theodosiopolis" }
				352 = { add_claim_by = ROOT }
				352 = { set_state_name = "Hubushkia" }
				set_province_name = { id = 12476 name = "Kondylis" }
				800 = { add_claim_by = 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, 
			NOT = { has_global_flag = byz_albania_integrated }
			has_global_flag = form_byzantine_empire_flag
		}


		cost = 30
		days_remove = 50		

		remove_effect  = {
			# Albania
			44 = { add_claim_by = ROOT }
			805 = { add_claim_by = ROOT }
			910 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				46 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				212 = { add_claim_by = ROOT }
				211 = { add_claim_by = ROOT }
				801 = { add_claim_by = ROOT }
			# Romania
			    77 = { add_claim_by = ROOT }
			    955 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				109 = { add_claim_by = ROOT }
				104 = { add_claim_by = ROOT }
				107 = { add_claim_by = ROOT }
				105 = { add_claim_by = ROOT }
				108 = { add_claim_by = ROOT }
				106 = { add_claim_by = ROOT }
				963 = { add_claim_by = ROOT }
				962 = { add_claim_by = ROOT }
				961 = { add_claim_by = ROOT }
				804 = { add_claim_by = ROOT }
				959 = { add_claim_by = ROOT }
				958 = { add_claim_by = ROOT }
				953 = { add_claim_by = ROOT }
				952 = { add_claim_by = ROOT }
				802 = { add_claim_by = ROOT }
				950 = { add_claim_by = ROOT }
				803 = { add_claim_by = ROOT }
				853 = { add_claim_by = ROOT }
				102 = { add_claim_by = ROOT }
				956 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { add_claim_by = ROOT }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				797 = { add_claim_by = ROOT }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { add_claim_by = ROOT }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { add_claim_by = ROOT }
				347 = { set_state_name = "Nikomedeia" }
				set_province_name = { id = 11811 name = "Nikomedeia" }
				set_province_name = { id = 973 name = "Kieros" }
				342 = { add_claim_by = ROOT }
				343 = { add_claim_by = ROOT }
				49 = { add_claim_by = ROOT }
				346 = { add_claim_by = ROOT }
				345 = { add_claim_by = ROOT }
				356 = { add_claim_by = ROOT }
				798 = { add_claim_by = ROOT }
				348 = { add_claim_by = ROOT }
				344 = { add_claim_by = ROOT }
				355 = { add_claim_by = ROOT }
				349 = { add_claim_by = ROOT }
				350 = { add_claim_by = ROOT }
				354 = { add_claim_by = ROOT }
				353 = { add_claim_by = ROOT }
				352 = { add_claim_by = ROOT }
				800 = { add_claim_by = ROOT }
				799 = { add_claim_by = 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, 
			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_claim_by = ROOT }
				159 = { add_claim_by = ROOT }
				39 = { add_claim_by = ROOT }
				160 = { add_claim_by = ROOT }
				161 = { add_claim_by = ROOT }
				162 = { add_claim_by = ROOT }
				157 = { add_claim_by = ROOT }
				2 = { add_claim_by = ROOT }
				117 = { add_claim_by = ROOT }
				156 = { add_claim_by = ROOT }
				115 = { add_claim_by = ROOT }
				736 = { add_claim_by = ROOT }
				163 = { add_claim_by = ROOT }
				114 = { add_claim_by = ROOT }
				912 = { add_claim_by = ROOT }
				849 = { add_claim_by = ROOT }
				957 = { add_claim_by = ROOT }
				850 = { add_claim_by = ROOT }
				852 = { add_claim_by = 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, 
			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_claim_by = ROOT }
			680 = { add_claim_by = ROOT }
			553 = { add_claim_by = ROOT } 
			554 = { add_claim_by = ROOT }
			164 = { add_claim_by = ROOT }
			453 = { add_claim_by = ROOT }
			454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
			1016 = { add_claim_by = ROOT }
			1017 = { add_claim_by = ROOT }
			949 = { add_claim_by = ROOT }
			966 = { add_claim_by = ROOT }
			455 = { add_claim_by = ROOT }
			1022 = { add_claim_by = ROOT }
			1021 = { add_claim_by = ROOT }
			183 = { add_claim_by = ROOT }
			799 = { add_claim_by = ROOT }
			911 = { add_claim_by = ROOT }
			995 = { add_claim_by = 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, 
			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_claim_by = ROOT }
			665 = { add_claim_by = ROOT }
			449 = { add_claim_by = ROOT }
			662 = { add_claim_by = ROOT }
			448 = { add_claim_by = ROOT }
			661 = { add_claim_by = ROOT }
			450 = { add_claim_by = ROOT }
			451 = { add_claim_by = ROOT }
			663 = { add_claim_by = ROOT }
			452 = { add_claim_by = ROOT }
			447 = { add_claim_by = ROOT }
			907 = { add_claim_by = ROOT }
			456 = { add_claim_by = ROOT }
			457 = { add_claim_by = ROOT }
			460 = { add_claim_by = ROOT }
			459 = { add_claim_by = 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_claim_by = ROOT }
			783 = { add_claim_by = ROOT }
			699 = { add_claim_by = ROOT }
			set_province_name = { id = 1086 name = "Al-Quds" }
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
			}
			# Saudi Arabia
			custom_effect_tooltip = form_country_saudi_coring_states_tt
			hidden_effect = {
				292 = { add_claim_by = ROOT }
				679 = { add_claim_by = ROOT }
				678 = { add_claim_by = ROOT }
				858 = { add_claim_by = ROOT }
				856 = { add_claim_by = ROOT }
				859 = { add_claim_by = ROOT }
				857 = { add_claim_by = ROOT }
				855 = { add_claim_by = ROOT }
				854 = { add_claim_by = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_arabia_italy_coring_states_tt
			hidden_effect = {
				448 = { add_claim_by = ROOT }
				661 = { add_claim_by = ROOT }
				449 = { add_claim_by = ROOT }
				662 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				663 = { add_claim_by = ROOT }
				273 = { add_claim_by = ROOT }
			}
			# France
			custom_effect_tooltip = form_arabia_france_coring_states_tt
			hidden_effect = {
				458 = { add_claim_by = ROOT }
				665 = { add_claim_by = ROOT }
				460 = { add_claim_by = ROOT }
				513 = { add_claim_by = ROOT }
				933 = { add_claim_by = ROOT }
				459 = { add_claim_by = ROOT }
				461 = { add_claim_by = ROOT }
				677 = { add_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				553 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
				462 = { add_claim_by = ROOT }
				514 = { add_claim_by = ROOT }
				557 = { add_claim_by = ROOT }
				786 = { add_claim_by = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_arabia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_claim_by = ROOT }
				447 = { add_claim_by = ROOT }
				907 = { add_claim_by = ROOT }	#Cairo
				911 = { add_claim_by = ROOT }	#Suez
				456 = { add_claim_by = ROOT }
				457 = { add_claim_by = ROOT }
				995 = { add_claim_by = ROOT }	#East Suez
				453 = { add_claim_by = ROOT }
				551 = { add_claim_by = ROOT }
				549 = { add_claim_by = ROOT }
				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				455 = { add_claim_by = ROOT }
				1022 = { add_claim_by = ROOT }
				1021 = { add_claim_by = ROOT }
				656 = { add_claim_by = ROOT }
				658 = { add_claim_by = ROOT }
				659 = { add_claim_by = ROOT }
				979 = { add_claim_by = ROOT }
				552 = { add_claim_by = ROOT }
				767 = { add_claim_by = ROOT }
				883 = { add_claim_by = ROOT }
				886 = { add_claim_by = ROOT }
				887 = { add_claim_by = ROOT }
				765 = { add_claim_by = ROOT }	#Qatar
				906 = { add_claim_by = ROOT }	#Socotra
				1007 = { add_claim_by = ROOT }	#Bahrein
				979 = { add_claim_by = ROOT }	#Khasab
			}
			293 = { add_claim_by = ROOT }
			294 = { add_claim_by = ROOT }
			1102 = { add_claim_by = ROOT }
			1103 = { add_claim_by = 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_claim_by = 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_claim_by = 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_claim_by = 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_claim_by = 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 = 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_claim_by = ROOT }
			28 = { add_claim_by = ROOT }
			735 = { add_claim_by = ROOT }
			69 = { add_claim_by = ROOT }
			1078 = { add_claim_by = ROOT }
			9 = { add_claim_by = ROOT }
			75 = { add_claim_by = ROOT }
			74 = { add_claim_by = ROOT }
			158 = { add_claim_by = ROOT }
			159 = { add_claim_by = ROOT }
			39 = { add_claim_by = ROOT }
			160 = { add_claim_by = ROOT }
			161 = { add_claim_by = ROOT }
			162 = { add_claim_by = ROOT }
			736 = { add_claim_by = ROOT }
			102 = { add_claim_by = ROOT }
			853 = { add_claim_by = ROOT }
			956 = { add_claim_by = ROOT }
			850 = { add_claim_by = ROOT }	#Trentino
			912 = { add_claim_by = ROOT }	#Friuli
			# Germany
			custom_effect_tooltip = form_country_germany_coring_states_tt
			hidden_effect = {
				add_state_claim = 51
				add_state_claim = 42
				add_state_claim = 1053
				add_state_claim = 56
				add_state_claim = 57
				add_state_claim = 55
				add_state_claim = 50
				add_state_claim = 59
				add_state_claim = 58
				add_state_claim = 998
				add_state_claim = 60
				add_state_claim = 54
				add_state_claim = 52
				add_state_claim = 53
				add_state_claim = 61
				add_state_claim = 64
				add_state_claim = 65
				add_state_claim = 62
				add_state_claim = 68
				add_state_claim = 66
				add_state_claim = 67
				add_state_claim = 63
				add_state_claim = 989 #Ostrhineland
				add_state_claim = 922 #Frankfurt
				add_state_claim = 923 #Baden
				add_state_claim = 998 #Southern Schleswig
			}
			# Switzerland
			custom_effect_tooltip = form_country_switzerland_coring_states_tt
			hidden_effect = {
				3 = { add_claim_by = ROOT }
				151 = { add_claim_by = ROOT }
				845 = { add_claim_by = ROOT }
				846 = { add_claim_by = ROOT }
				847 = { add_claim_by = ROOT }
			}
			# Liechtenstein
			997 = { add_claim_by = ROOT }
			# Austria
			custom_effect_tooltip = form_country_austria_coring_states_tt
			hidden_effect = {
				153 = { add_claim_by = ROOT }
				152 = { add_claim_by = ROOT }
				4 = { add_claim_by = ROOT }
				848 = { add_claim_by = ROOT }
				1054 = { add_claim_by = ROOT }
				1086 = { add_claim_by = ROOT }
			}
			# Netherlands
			custom_effect_tooltip = form_eu_netherlands_coring_states_tt
			hidden_effect = {
				7 = { add_claim_by = ROOT }
				35 = { add_claim_by = ROOT }
				36 = { add_claim_by = ROOT }
			}
			# Belgium
			custom_effect_tooltip = form_eu_belgium_coring_states_tt
			hidden_effect = {
				6 = { add_claim_by = ROOT }
				34 = { add_claim_by = ROOT }
				965 = { add_claim_by = ROOT }
				1094 = { add_claim_by = ROOT }
				1095 = { add_claim_by = 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_claim = 5
				add_state_claim = 763
				add_state_claim = 51
				add_state_claim = 42
				add_state_claim = 1053
				add_state_claim = 56
				add_state_claim = 57
				add_state_claim = 55
				add_state_claim = 50
				add_state_claim = 59
				add_state_claim = 58
				add_state_claim = 998
				add_state_claim = 60
				add_state_claim = 54
				add_state_claim = 52
				add_state_claim = 53
				add_state_claim = 61
				add_state_claim = 64
				add_state_claim = 65
				add_state_claim = 62
				add_state_claim = 68
				add_state_claim = 66
				add_state_claim = 67
				add_state_claim = 63
				add_state_claim = 989 
				add_state_claim = 922 
				add_state_claim = 923 
				add_state_claim = 998 
				add_state_claim = 153
				add_state_claim = 152
				add_state_claim = 4
				add_state_claim = 848
				add_state_claim = 1054
				add_state_claim = 1086
				add_state_claim = 69
				add_state_claim = 1078
				add_state_claim = 74
				add_state_claim = 8 
				add_state_claim = 28 
				add_state_claim = 965 
				add_state_claim = 85
				add_state_claim = 807
				add_state_claim = 86
				add_state_claim = 762
				add_state_claim = 188
				add_state_claim = 964
				add_state_claim = 102
				add_state_claim = 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_claim_by = ROOT } # Luxembourg

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

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

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

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

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

			# Germany
			custom_effect_tooltip = form_proletarian_state_british_mainland_coring_states_tt
			hidden_effect = {
				127 = { add_claim_by = ROOT } # Sussex
				123 = { add_claim_by = ROOT } # South-West England
				338 = { add_claim_by = ROOT } # Gloustershire
				126 = { add_claim_by = ROOT } # Greater London Area
				125 = { add_claim_by = ROOT } # East Anglia
				129 = { add_claim_by = ROOT } # East Midlands
				128 = { add_claim_by = ROOT } # West Midlands
				122 = { add_claim_by = ROOT } # Wales
				132 = { add_claim_by = ROOT } # Lancashire
				130 = { add_claim_by = ROOT } # Yorkshire
				1041 = { add_claim_by = ROOT } # Cumbria
				131 = { add_claim_by = ROOT } # Northumberland
				133 = { add_claim_by = ROOT } # Lanark
				121 = { add_claim_by = ROOT } # Lothian
				136 = { add_claim_by = ROOT } # Aberdeenshire
				120 = { add_claim_by = 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_claim_by = ROOT }
				171 = { add_claim_by = ROOT }
				792 = { add_claim_by = ROOT }
				172 = { add_claim_by = ROOT }
				790 = { add_claim_by = ROOT }
				789 = { add_claim_by = ROOT }
				41 = { add_claim_by = ROOT }
				173 = { add_claim_by = ROOT }
				169 = { add_claim_by = ROOT }
				168 = { add_claim_by = ROOT }
				167 = { add_claim_by = ROOT }
				794 = { add_claim_by = ROOT }
				793 = { add_claim_by = ROOT }
				791 = { add_claim_by = ROOT }
				788 = { add_claim_by = ROOT }
				178 = { add_claim_by = ROOT }
				177 = { add_claim_by = ROOT }
				176 = { add_claim_by = ROOT }
				175 = { add_claim_by = ROOT }
				174 = { add_claim_by = ROOT }
				170 = { add_claim_by = ROOT }
				166 = { add_claim_by = ROOT }
				112 = { add_claim_by = ROOT }
				179 = { add_claim_by = ROOT }
				180 = { add_claim_by = ROOT }
				181 = { add_claim_by = ROOT }
				697 = { add_claim_by = ROOT }
				698 = { add_claim_by = ROOT }
				795 = { add_claim_by = ROOT }
				118 = { add_claim_by = 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_claim_by = ROOT }
				461 = { add_claim_by = ROOT }
				462 = { add_claim_by = ROOT }
				783 = { add_claim_by = ROOT }
				#Tunisia
				458 = { add_claim_by = ROOT }
				665 = { add_claim_by = ROOT }
				#Western Sahara
				699 = { add_claim_by = ROOT }
				#Algeria
				459 = { add_claim_by = ROOT }
				460 = { add_claim_by = ROOT }
				513 = { add_claim_by = ROOT }
				933 = { add_claim_by = ROOT }
				514 = { add_claim_by = ROOT }
				#Libya
				273 = { add_claim_by = ROOT }
				448 = { add_claim_by = ROOT }
				449 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				661 = { add_claim_by = ROOT }
				662 = { add_claim_by = ROOT }
				663 = { add_claim_by = 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_claim_by = ROOT }
				#Malta
				116 = { add_claim_by = ROOT }
				#Rhodes
				164 = { add_claim_by = ROOT }
				#Crete
				182 = { add_claim_by = ROOT }
				#Cyprus
				183 = { add_claim_by = ROOT }
				#Sardinia and Corsica
				114 = { add_claim_by = ROOT }
				1 = { add_claim_by = 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_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
				
				# Saudi Arabia
				292 = { add_claim_by = ROOT }
				679 = { add_claim_by = ROOT }
				678 = { add_claim_by = ROOT }
				858 = { add_claim_by = ROOT }
				856 = { add_claim_by = ROOT }
				859 = { add_claim_by = ROOT }
				857 = { add_claim_by = ROOT }
				854 = { add_claim_by = ROOT }
				855 = { add_claim_by = ROOT }
				# French Arabia
				677 = { add_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				553 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
				679 = { add_claim_by = ROOT }
				293 = { add_claim_by = ROOT }
				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				455 = { add_claim_by = ROOT }
				1022 = { add_claim_by = ROOT }
				1021 = { add_claim_by = ROOT }
				656 = { add_claim_by = ROOT }
				658 = { add_claim_by = ROOT }
				# Egypt
				552 = { add_claim_by = ROOT }
				453 = { add_claim_by = ROOT }
				456 = { add_claim_by = ROOT }
				907 = { add_claim_by = ROOT }
				457 = { add_claim_by = ROOT }
				452 = { add_claim_by = ROOT }
				447 = { add_claim_by = ROOT }
				set_global_flag = restored_umayyad_flag

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

				#Oman
				294 = { add_claim_by = ROOT }
				1102 = { add_claim_by = ROOT }
				1103 = { add_claim_by = 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_claim_by = ROOT }
				421 = { add_claim_by = ROOT }
				420 = { add_claim_by = ROOT }
				417 = { add_claim_by = ROOT }
				413 = { add_claim_by = ROOT }
				266 = { add_claim_by = ROOT }
				418 = { add_claim_by = ROOT }
				411 = { add_claim_by = ROOT }
				412 = { add_claim_by = ROOT }
				416 = { add_claim_by = ROOT }
				414 = { add_claim_by = ROOT }
				410 = { add_claim_by = ROOT }
				988 = { add_claim_by = ROOT }
				986 = { add_claim_by = ROOT }
				987 = { add_claim_by = ROOT }
				984 = { add_claim_by = ROOT }
				982 = { add_claim_by = ROOT }
				980 = { add_claim_by = ROOT }
				981 = { add_claim_by = ROOT }
				983 = { add_claim_by = ROOT }				
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_claim_by = ROOT }
				267 = { add_claim_by = ROOT }
				1008 = { add_claim_by = ROOT }
				1009 = { add_claim_by = ROOT }
				1010 = { add_claim_by = ROOT }
				1011 = { add_claim_by = ROOT }
			}
			# Pakistan
			custom_effect_tooltip = form_country_pakistan_coring_states_tt
			hidden_effect = {
				787 = { add_claim_by = ROOT }
				445 = { add_claim_by = ROOT }
				442 = { add_claim_by = ROOT }
				444 = { add_claim_by = ROOT }
				440 = { add_claim_by = ROOT }
				441 = { add_claim_by = ROOT }
				443 = { add_claim_by = ROOT }
				1093 = { add_claim_by = 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_claim_by = ROOT }
			1044 = { add_claim_by = ROOT }
			# Armenia
			230 = { add_claim_by = ROOT }
			# Turkey
			350 = { add_claim_by = ROOT }
			352 = { add_claim_by = ROOT }
			353 = { add_claim_by = ROOT }
			354 = { add_claim_by = ROOT }
			800 = { add_claim_by = 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_claim = 284 # North Island
				add_state_claim = 723 # South Island
				add_state_claim = 1087 # Chatham Islands
				add_state_claim = 734 # Tonga
				add_state_claim = 726 # Samoa
				add_state_claim = 1088 # American Samoa
				add_state_claim = 1089 # Niue
				add_state_claim = 643 # Ellice Islands
				add_state_claim = 642 # Kanton Island
				add_state_claim = 727 # Line Islands
				add_state_claim = 641 # Tahiti
				add_state_claim = 630 # Johnston Atoll
				add_state_claim = 629 # Hawaii
				add_state_claim = 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_claim = 636 # Fiji
				add_state_claim = 635 # New Hebrides
				add_state_claim = 634 # Solomon Islands
				add_state_claim = 737 # Bismarck Islands
				add_state_claim = 523 # Papua
				add_state_claim = 1096 # New Guinea
				add_state_claim = 669 # West Papua
				add_state_claim = 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_claim = 684 # Caroline Islands
				add_state_claim = 647 # Palau Islands
				add_state_claim = 633 # Marshall Islands
				add_state_claim = 639 # Gilbert Islands
				add_state_claim = 725 # Nauru
				add_state_claim = 638 # Guam
				add_state_claim = 646 # Saipan
				add_state_claim = 632 # Wake Island
				add_state_claim = 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_claim_by = ROOT }
				639 = { add_claim_by = ROOT }
				633 = { add_claim_by = ROOT }
				684 = { add_claim_by = ROOT }
				647 = { add_claim_by = ROOT }
				638 = { add_claim_by = ROOT }
				646 = { add_claim_by = ROOT }
				648 = { add_claim_by = ROOT }
				632 = { add_claim_by = 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_claim_by = ROOT }
				636 = { add_claim_by = ROOT }
				634 = { add_claim_by = ROOT }
				737 = { add_claim_by = ROOT }
				523 = { add_claim_by = ROOT }
				1096 = { add_claim_by = ROOT }
				669 = { add_claim_by = ROOT }
				738 = { add_claim_by = 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_claim_by = ROOT }
				723 = { add_claim_by = ROOT }
				1087 = { add_claim_by = ROOT }
				734 = { add_claim_by = ROOT }
				726 = { add_claim_by = ROOT }
				1088 = { add_claim_by = ROOT }
				1089 = { add_claim_by = ROOT }
				643 = { add_claim_by = ROOT }
				642 = { add_claim_by = ROOT }
				727 = { add_claim_by = ROOT }
				641 = { add_claim_by = ROOT }
				630 = { add_claim_by = ROOT }
				629 = { add_claim_by = ROOT }
				631 = { add_claim_by = 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_claim_by = ROOT }
				731 = { add_claim_by = ROOT }
				47 = { add_claim_by = ROOT }
				186 = { add_claim_by = ROOT }
				184 = { add_claim_by = ROOT }
				187 = { add_claim_by = ROOT }
				182 = { add_claim_by = ROOT }
				164 = { add_claim_by = ROOT }
				183 = { add_claim_by = ROOT }
			}
			# Turkey
			custom_effect_tooltip = form_country_turkish_coast_coring_states_tt
			hidden_effect = {
				340 = { add_claim_by = ROOT }
				340 = { set_state_name = "Prousa" }
				set_province_name = { id = 947 name = "Prousa" } 
				set_province_name = { id = 947 name = "Palaeokastron" }
				341 = { add_claim_by = ROOT }
				341 = { set_state_name = "Thrace" }
				set_province_name = { id = 11842 name = "Adrianople" }
				797 = { add_claim_by = ROOT }
				797 = { set_state_name = "Constantinople" }
				set_province_name = { id = 9833 name = "Constantinople" }
				184 = { set_state_name = "Eastern Macedonia" }
				339 = { add_claim_by = ROOT }
				339 = { set_state_name = "Smyrni" }
				set_province_name = { id = 4112 name = "Smyrna" }
				set_province_name = { id = 928 name = "Magnesia" }
				347 = { add_claim_by = 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_claim_by = 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_claim_by = ROOT }
			}
			hidden_effect = {
				805 = { add_claim_by = 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_claim_by = 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, 
			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_claim_by = ROOT }
				419 = { add_claim_by = ROOT }
				987 = { add_claim_by = ROOT }
				986 = { add_claim_by = ROOT }
				984 = { add_claim_by = ROOT }
				983 = { add_claim_by = ROOT }
				421 = { add_claim_by = ROOT }
				420 = { add_claim_by = ROOT }
				417 = { add_claim_by = ROOT }
				413 = { add_claim_by = ROOT }
				981 = { add_claim_by = ROOT }
				980 = { add_claim_by = ROOT }
				266 = { add_claim_by = ROOT }
				418 = { add_claim_by = ROOT }
				411 = { add_claim_by = ROOT }
				412 = { add_claim_by = ROOT }
				416 = { add_claim_by = ROOT }
				414 = { add_claim_by = ROOT }
				410 = { add_claim_by = ROOT }
				982 = { add_claim_by = ROOT }
			}
			# Afghanistan
			custom_effect_tooltip = form_country_afghanistan_coring_states_tt
			hidden_effect = {
				415 = { add_claim_by = ROOT }
				267 = { add_claim_by = ROOT }
				1008 = { add_claim_by = ROOT }
				1009 = { add_claim_by = ROOT }
				1010 = { add_claim_by = ROOT }
				1011 = { add_claim_by = ROOT }
			}
			# Iraq
			custom_effect_tooltip = form_country_iraq_coring_states_tt
			hidden_effect = {
				676 = { add_claim_by = ROOT }
				675 = { add_claim_by = ROOT }
				291 = { add_claim_by = ROOT }
				1045 = { add_claim_by = ROOT }
				1046 = { add_claim_by = ROOT }
				1047 = { add_claim_by = ROOT }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
				
			}
			# Turkey
			custom_effect_tooltip = form_country_turkey_coring_states_tt
			hidden_effect = {
				341 = { add_claim_by = ROOT }
				340 = { add_claim_by = ROOT }
				339 = { add_claim_by = ROOT }
				342 = { add_claim_by = ROOT }
				343 = { add_claim_by = ROOT }
				347 = { add_claim_by = ROOT }
				49 = { add_claim_by = ROOT }
				346 = { add_claim_by = ROOT }
				345 = { add_claim_by = ROOT }
				356 = { add_claim_by = ROOT }
				348 = { add_claim_by = ROOT }
				344 = { add_claim_by = ROOT }
				355 = { add_claim_by = ROOT }
				798 = { add_claim_by = ROOT }
				349 = { add_claim_by = ROOT }
				350 = { add_claim_by = ROOT }
				354 = { add_claim_by = ROOT }
				353 = { add_claim_by = ROOT }
				352 = { add_claim_by = ROOT }
				800 = { add_claim_by = ROOT }
				797 = { add_claim_by = ROOT }
				799 = { add_claim_by = ROOT }
			}
			# France
			custom_effect_tooltip = form_persia_france_coring_states_tt
			hidden_effect = {
				677 = { add_claim_by = ROOT }
				680 = { add_claim_by = ROOT }
				553 = { add_claim_by = ROOT }
				554 = { add_claim_by = ROOT }
			}
			# Italy
			custom_effect_tooltip = form_persia_italy_coring_states_tt
			hidden_effect = {
				164 = { add_claim_by = ROOT }
				450 = { add_claim_by = ROOT }
				451 = { add_claim_by = ROOT }
				663 = { add_claim_by = ROOT }
			}
			# Britain
			custom_effect_tooltip = form_persia_britain_coring_states_tt
			hidden_effect = {
				452 = { add_claim_by = ROOT }
				447 = { add_claim_by = ROOT }
				907 = { add_claim_by = ROOT }
				456 = { add_claim_by = ROOT }
				457 = { add_claim_by = ROOT }
				453 = { add_claim_by = ROOT }
				454 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				1016 = { add_claim_by = ROOT }
				1017 = { add_claim_by = ROOT }
				455 = { add_claim_by = ROOT }
				1022 = { add_claim_by = ROOT }
				1021 = { add_claim_by = ROOT }
				183 = { add_claim_by = ROOT }
				656 = { add_claim_by = ROOT }
				118 = { add_claim_by = ROOT }
				949 = { add_claim_by = ROOT }
				966 = { add_claim_by = ROOT }
				995 = { add_claim_by = ROOT }
				911 = { add_claim_by = ROOT }
			}
			hidden_effect = {
				805 = { add_claim_by = ROOT }
				44 = { add_claim_by = ROOT }
				910 = { add_claim_by = ROOT }
				105 = { add_claim_by = ROOT }
				106 = { add_claim_by = ROOT }
				803 = { add_claim_by = ROOT }
				963 = { add_claim_by = ROOT}
				950 = { add_claim_by = ROOT }
				742 = { add_claim_by = ROOT }
				405 = { add_claim_by = ROOT }
				440 = { add_claim_by = ROOT }
				441 = { add_claim_by = ROOT }
				442 = { add_claim_by = ROOT }
				444 = { add_claim_by = ROOT }
				443 = { add_claim_by = ROOT }
				1093 = { add_claim_by = ROOT }
				445 = { add_claim_by = ROOT }
				787 = { add_claim_by = ROOT }
				48 = { add_claim_by = ROOT }
				212 = { add_claim_by = ROOT }
				801 = { add_claim_by = ROOT }
				211 = { add_claim_by = ROOT }
				77 = { add_claim_by = ROOT }
				732 = { add_claim_by = 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, 
			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_claim_by = TUR }
				341 = { add_claim_by = TUR }
				340 = { add_claim_by = TUR }
				339 = { add_claim_by = TUR }
				342 = { add_claim_by = TUR }
				343 = { add_claim_by = TUR }
				347 = { add_claim_by = TUR }
				49 = { add_claim_by = TUR }
				798 = { add_claim_by = TUR }
				346 = { add_claim_by = TUR }
				345 = { add_claim_by = TUR }
				356 = { add_claim_by = TUR }
				348 = { add_claim_by = TUR }
				344 = { add_claim_by = TUR }
				355 = { add_claim_by = TUR }
				349 = { add_claim_by = TUR }
				350 = { add_claim_by = TUR }
				354 = { add_claim_by = TUR }
				353 = { add_claim_by = TUR }
				352 = { add_claim_by = TUR }
				800 = { add_claim_by = TUR }
				799 = { add_claim_by = TUR }
				#SYRIA
				677 = { add_claim_by = TUR }
				680 = { add_claim_by = TUR }
				#IRAQ
				676 = { add_claim_by = TUR }
				1048 = { add_claim_by = ROOT }
				1049 = { add_claim_by = ROOT }
				
				#PERSIA
				421 = { add_claim_by = TUR }
				419 = { add_claim_by = TUR }
				420 = { add_claim_by = TUR }
				983 = { add_claim_by = TUR }
				988 = { add_claim_by = TUR }
				987 = { add_claim_by = TUR }
				#AZERBAIJAN
				229 = { add_claim_by = TUR }
				1044 = { add_claim_by = TUR }
				#KUBAN REGION + CRIMEA
				233 = { add_claim_by = TUR }
				232 = { add_claim_by = TUR }
				235 = { add_claim_by = TUR }
				234 = { add_claim_by = TUR }
				237 = { add_claim_by = TUR }
				238 = { add_claim_by = TUR }
				236 = { add_claim_by = TUR }
				407 = { add_claim_by = TUR }
				406 = { add_claim_by = TUR }
				218 = { add_claim_by = TUR }
				227 = { add_claim_by = TUR }
				228 = { add_claim_by = TUR }
				200 = { add_claim_by = TUR }
				196 = { add_claim_by = TUR }
				137 = { add_claim_by = TUR }
				#URALS + CENTRAL ASIA
				582 = { add_claim_by = TUR }
				402 = { add_claim_by = TUR }
				583 = { add_claim_by = TUR }
				587 = { add_claim_by = TUR }
				585 = { add_claim_by = TUR }
				584 = { add_claim_by = TUR }
				405 = { add_claim_by = TUR }
				404 = { add_claim_by = TUR }
				586 = { add_claim_by = TUR }
				732 = { add_claim_by = TUR }
				742 = { add_claim_by = TUR }
				589 = { add_claim_by = TUR }
				588 = { add_claim_by = TUR }
				590 = { add_claim_by = TUR }
				823 = { add_claim_by = TUR }
				831 = { add_claim_by = TUR }
				832 = { add_claim_by = TUR }
				830 = { add_claim_by = TUR }
				985 = { add_claim_by = TUR }
				881 = { add_claim_by = TUR }
				882 = { add_claim_by = TUR }
				#SIBERIA
				654 = { add_claim_by = TUR }
				40 = { add_claim_by = TUR }
				569 = { add_claim_by = TUR }
				568 = { add_claim_by = TUR }
				329 = { add_claim_by = TUR }
				567 = { add_claim_by = TUR }
				566 = { add_claim_by = TUR }
				564 = { add_claim_by = TUR }
				563 = { add_claim_by = TUR }
				565 = { add_claim_by = TUR }
				561 = { add_claim_by = TUR }
				574 = { add_claim_by = TUR }
				562 = { add_claim_by = TUR }
				644 = { add_claim_by = TUR }
				637 = { add_claim_by = TUR }
				874 = { add_claim_by = TUR }
				822 = { add_claim_by = 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_claim_by = ROOT }
			287 = { add_claim_by = ROOT }
			759 = { add_claim_by = ROOT }
			760 = { add_claim_by = ROOT }
			617 = { add_claim_by = ROOT }
			618 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
				404 = { add_claim_by = ROOT }
				406 = { add_claim_by = ROOT }
				407 = { add_claim_by = ROOT }
				583 = { add_claim_by = ROOT }
				586 = { add_claim_by = ROOT }
				587 = { add_claim_by = ROOT }
				588 = { add_claim_by = ROOT }
				589 = { add_claim_by = ROOT }
				590 = { add_claim_by = ROOT }
				881 = { add_claim_by = ROOT }
				882 = { add_claim_by = ROOT }
			}
			# Uzbekistan
			custom_effect_tooltip = form_country_uzbekistan_coring_states_tt
			hidden_effect = {
				405 = { add_claim_by = ROOT }
				585 = { add_claim_by = ROOT }
				830 = { add_claim_by = ROOT }
				823 = { add_claim_by = ROOT }
				831 = { add_claim_by = ROOT }
				985 = { add_claim_by = ROOT }
			}
			# Turkmenistan
			custom_effect_tooltip = form_country_turkmenistan_coring_states_tt
			hidden_effect = {
				584 = { add_claim_by = ROOT }
				832 = { add_claim_by = ROOT }
				985 = { add_claim_by = ROOT }
			}
			# Kyrgyzstan and Tajikistan
			every_state = {
				limit = {
					OR = {
						state = 732
						state = 742
					}
				}
				add_claim_by = 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_claim_by = ROOT }
				617 = { add_claim_by = ROOT }
				618 = { add_claim_by = ROOT }
				619 = { add_claim_by = ROOT }
				759 = { add_claim_by = ROOT }
				760 = { add_claim_by = 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_claim_by = 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_claim_by = 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, 
				#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, 
		}

		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_claim_by = ROOT }
			
			# Chechnya-Ingushetia
			821 = { add_claim_by = ROOT }
			
			# North Ossetia
			828 = { add_claim_by = ROOT }
			
			# Kabardino-Balkaria
			827 = { add_claim_by = ROOT }
			
			# Abkhazia
			826 = { add_claim_by = ROOT }
			
			# Sochi
			233 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
			
			# Georgia
			231 = { add_claim_by = ROOT }
			 
			# Armenia
			230 = { add_claim_by = ROOT }
			
			# Azerbaijan
			229 = { add_claim_by = ROOT }

			# Nakhchivan
			1044 = { add_claim_by = 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, 
				#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, 
		}

		complete_effect = {
			
			# Tabriz
			419 = { add_claim_by = ROOT }
			
			# Ardabil
			987 = { add_claim_by = ROOT }
			
			# Azarbayjan-E Gharbi
			988 = { add_claim_by = 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, 
				#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, 
		}

		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_claim_by = ROOT }
			
			# Kabardino-Balkaria
			827 = { add_claim_by = ROOT }
			
			# North Ossetia
			828 = { add_claim_by = ROOT }
			
			# Chechnya-Ingushetia
			821 = { add_claim_by = ROOT }
			
			# Gagestan
			232 = { add_claim_by = 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, 
				#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, 
		}

		complete_effect = {
			
			# Trabzon
			354 = { add_claim_by = ROOT }
			
			# Van
			800 = { add_claim_by = 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, 
				#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, 
		}

		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_claim_by = KAL }
				
				KAL = {
					transfer_state = 237
					transfer_state = 236
					if = {
						limit = {
							ROOT = { controls_state = 217 } #Stalingrad
						}
						add_state_claim = 217
						transfer_state = 217
					}
					if = {
						limit = {
							ROOT = { controls_state = 407 } #Uralsk
						}
						add_state_claim = 407
						transfer_state = 407
					}
					if = {
						limit = {
							ROOT = { controls_state = 406 } #Guryev
						}
						add_state_claim = 406
						transfer_state = 406
					}
					if = {
						limit = {
							ROOT = { controls_state = 401 } #Balakovo
						}
						add_state_claim = 401
						transfer_state = 401
					}
					if = {
						limit = {
							ROOT = { controls_state = 829 } #Engels-Marxstadt
						}
						add_state_claim = 829
						transfer_state = 829
					}
					if = {
						limit = {
							ROOT = { controls_state = 238 } #Volgodonsk
						}
						add_state_claim = 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, 
				#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, 
		}

		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_claim = 200
						transfer_state = 200
					}
					if = {
						limit = {
							ROOT = { controls_state = 227 } #Stalino
						}
						add_state_claim = 227
						transfer_state = 227
					}
					if = {
						limit = {
							ROOT = { controls_state = 218 } #Rostov
						}
						add_state_claim = 218
						transfer_state = 218
					}
					if = {
						limit = {
							ROOT = { controls_state = 228 } #Voroshilovgrad
						}
						add_state_claim = 228
						transfer_state = 228
					}
					if = {
						limit = {
							ROOT = { controls_state = 234 } #Krasnodar
						}
						add_state_claim = 234
						transfer_state = 234
					}
					if = {
						limit = {
							ROOT = { controls_state = 245 } #Millerovo
						}
						add_state_claim = 245
						transfer_state = 245
					}
					if = {
						limit = {
							ROOT = { controls_state = 226 } #Dnipropetrovsk
						}
						add_state_claim = 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, 
				#original_tag = ARM # Armenia		#56 - Does not need to be checked for while game is running, 
				#original_tag = AZR # Azerbaijan	#56 - Does not need to be checked for while game is running, 
			}
			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, 
		}

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

		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_claim_by = ROOT }
			
			# Buryatia
			564 = { add_claim_by = ROOT }
			
			# Tannu Tuva
			329 = { add_claim_by = ROOT }
			
			# Chita
			563 = { add_claim_by = ROOT }
			
			
            add_ideas = generic_recent_political_unification
            add_ideas = generic_recent_army_unification
            add_ideas = generic_recent_economic_unification	
			
			hidden_effect = { 
			
				# Yakutsk
				574 = { add_claim_by = ROOT }
				
				# Northeast Siberia
				644 = { add_claim_by = ROOT }
				
				# Oyrot Region
				654 = { add_claim_by = ROOT }
				
				# Altai Krai
				40 = { add_claim_by = ROOT }
				
				# Surgut
				577 = { add_claim_by = ROOT }
				
				# Tobolsk
				580 = { add_claim_by = ROOT }
				
				# Yamalia
				824 = { add_claim_by = ROOT }
				
				# Salekhard
				579 = { add_claim_by = ROOT }
				
				# Tyumen
				403 = { add_claim_by = ROOT }
				
				# Omsk
				571 = { add_claim_by = ROOT }
				
				# Tomsk
				578 = { add_claim_by = ROOT }
				
				# Novosibirsk
				570 = { add_claim_by = ROOT }
				
				# Yeniseisk
				576 = { add_claim_by = ROOT }
				
				# Kemerovo
				569 = { add_claim_by = ROOT }
				
				# Krasnoyarsk
				568 = { add_claim_by = ROOT }
				
				# Bratsk
				567 = { add_claim_by = ROOT }
				
				# Irkutsk
				566 = { add_claim_by = ROOT }
				
				# Kirensk
				575 = { add_claim_by = ROOT }
				
				# Boyadbo
				565 = { add_claim_by = ROOT }
				
				#Khatangsky
				878 = { add_claim_by = ROOT }
				
				#Udachny
				876 = { add_claim_by = ROOT }
				
				#Verkhoyansk
				877 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
				
				# Kamchatka
				637 = { add_claim_by = ROOT }
				
				# Okhotsk
				562 = { add_claim_by = ROOT }
				
				# Amur
				561 = { add_claim_by = ROOT }
				
				# Birobidzhan
				657 = { add_claim_by = ROOT }
				
				# Nikolayevsk
				560 = { add_claim_by = ROOT }
				
				# North Sakhalin
				655 = { add_claim_by = ROOT }
				
				# Khabravosk
				409 = { add_claim_by = ROOT }
				
				# Vladivostok
				408 = { add_claim_by = ROOT }
				
				# Magadan 
				874 = { add_claim_by = ROOT }
				
				# Chukchi Peninsula
				875 = { add_claim_by = 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, 
				#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, 
		}

		complete_effect = {
		
				# Sverdlovsk
				653 = { add_claim_by = ROOT }
				
				# Chelyabinsk
				572 = { add_claim_by = ROOT }
				
				# Magnitogorsk
				582 = { add_claim_by = ROOT }
				
				# Zlatoust
				573 = { add_claim_by = ROOT }
				
				# Perm
				398 = { add_claim_by = ROOT }
				
				# Northern Urals
				581 = { add_claim_by = 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, 
				#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, 
		}

		complete_effect = {
		
				# South Sakhalin
				537 = { add_claim_by = ROOT }
				
				# Kuril Islands
				555 = { add_claim_by = ROOT }
				
				# Hokkaido
				536 = { add_claim_by = 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, 
				#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_claim_by = ROOT }
			
			# Heliungkiang
			714 = { add_claim_by = ROOT }
			
			# Sungkiang
			717 = { add_claim_by = ROOT }

			# Liaoning
			715 = { add_claim_by = ROOT }

			# Kirin
			328 = { add_claim_by = ROOT }

			# Liaotung
			716 = { add_claim_by = ROOT }

			# Jehol
			610 = { add_claim_by = ROOT }

			# Dalian
			745 = { add_claim_by = ROOT }

			947 = { add_claim_by = ROOT }

			941 = { add_claim_by = ROOT }

			942 = { add_claim_by = ROOT }

			943 = { add_claim_by = ROOT }

			944 = { add_claim_by = ROOT }

			945 = { add_claim_by = 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, 
				#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, 
		}

		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_claim_by = ROOT }
			
			# Mari El
			833 = { add_claim_by = ROOT }
			
			# Chuvashia
			256 = { add_claim_by = ROOT }
			
			# Udmurtia
			399 = { add_claim_by = ROOT }
			
			# Ufa
			651 = { add_claim_by = 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_claim_by = ROOT }
			550 = { add_claim_by = ROOT }
			293 = { add_claim_by = ROOT }
			906 = { add_claim_by = ROOT }
			268 = { add_claim_by = ROOT }
			883 = { add_claim_by = ROOT }
			551 = { add_claim_by = ROOT }
			886 = { add_claim_by = 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_claim_by = ROOT }
			995 = { add_claim_by = ROOT }	#East Suez
			907 = { add_claim_by = ROOT }	#Cairo
			911 = { add_claim_by = ROOT }	#Suez
			447 = { add_claim_by = ROOT }
			457 = { add_claim_by = ROOT }
			456 = { add_claim_by = 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_claim_by = 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_claim_by = 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, 
				#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_claim_by = ROOT }

			# Zanzibar
			1055 = { add_claim_by = ROOT }
			
			# Nairobi
			547 = { add_claim_by = ROOT }

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

			# Mombasa
			905 = { add_claim_by = ROOT }
			
			# Uganda
			548 = { add_claim_by = 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_claim_by = ROOT }
				
				# Burundi
				769 = { add_claim_by = 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_claim_by = ROOT }
			
			# Zambezia-Mocambique 
			897 = { add_claim_by = 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_claim_by = 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_claim_by = ROOT }

			# Garissa
			903 = { add_claim_by = ROOT }

			# Somaliland
			559 = { add_claim_by = ROOT }

			# British Somaliland
			269 = { add_claim_by = ROOT }

			# Bale
			836 = { add_claim_by = ROOT }

			# Hararghe
			835 = { add_claim_by = ROOT }

			# Djibouti
			268 = { add_claim_by = 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_claim_by = 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, 
				#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, 
		}

		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_claim_by = ROOT }
			
			# Wello
			843 = { add_claim_by = ROOT }

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

			# Illubabor-Kaffa
			838 = { add_claim_by = ROOT }

			# Sidamo
			837 = { add_claim_by = ROOT }

			# Shewa
			271 = { add_claim_by = ROOT }

			# Bale
			836 = { add_claim_by = ROOT }

			# Hararghe
			835 = { add_claim_by = ROOT }

			# Eritrea
			550 = { add_claim_by = ROOT }

			# French Somaliland
			268 = { add_claim_by = ROOT }

			# British Somaliland
			269 = { add_claim_by = ROOT }

			# Somaliland
			559 = { add_claim_by = ROOT }

			# Jubaland
			844 = { add_claim_by = 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, 
				#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, 
		}

		available = {
			controls_state = 906 # Socotra
		}

		complete_effect = {
		
			# Socotra
			906 = { add_claim_by = 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, 
				#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, 
		}

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

			# Nairobi
			547 = { add_claim_by = ROOT }

			# Mombasa
			905 = { add_claim_by = ROOT }

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

			# Uganda
			548 = { add_claim_by = 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, 
		}

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

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

			# Upper Nile
			884 = { add_claim_by = 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 = {
			OR = {
				#original_tag = ITA # Italy		#56 - Does not need to be checked for while game is running, 
			}
			
			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_claim_by = 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_claim_by = ROOT }
				
				# Savoy
				ITA = {
					transfer_state = 735
				}
				735 = { 
					add_claim_by = 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_claim_by = ROOT }
				
				# Dalmatia
				ITA = {
					transfer_state = 103
				}
				103 = { 
					add_claim_by = 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_claim_by = ROOT
				}
	 
				# Ljubljana
				ITA = {
					transfer_state = 853
				}
				853 = { 
					add_claim_by = 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_claim_by = ROOT }

				# Crete
				ITA = {
					transfer_state = 182
				}
				182 = { 
					add_claim_by = 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_claim_by = ROOT }

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

				set_global_flag = greater_italy_flag

			}
		}

		ai_will_do = {
			factor = 500
		}
	}
}
