formable_nations_mod_category = {
	no_cosmetic_tag = {
		
		ai_will_do = {
			factor = 0
		}
		cost = 0
		visible = { 
			is_ai = no
			NOT = { has_country_flag = hide_options_formable_nations }
			has_country_flag = unform_available
		}
		days_re_enable = 0
		
		icon = generic_decision
		complete_effect = {
			hidden_effect = { clr_country_flag = unform_available }
			drop_cosmetic_tag = yes
			add_stability = -0.2
			random_owned_state = {
				limit = {
					has_state_flag = formable_nations_old_capital
				}
				clr_state_flag = formable_nations_old_capital
				ROOT = { set_capital = { state = PREV } }
			}
		}
	}
####################################################################

	formable_nations_africa = {#continent
		
		priority = 9
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = africa }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
				is_on_continent = africa	
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = africa_requirement_tooltip 
				OR = {
					AND = {
						all_state = {
							OR = {
								AND = {
									is_on_continent = africa
									NOT = {
										OR = {
											state = 697
											state = 178
											state = 702
											state = 703
											state = 704
											state = 297
											state = 705
											state = 708
											state = 709
											state = 706
											state = 707
											state = 713
											state = 543
											state = 906
										}
									}
									is_controlled_by = ROOT
								}
								NOT = { is_on_continent = africa }
								state = 697
								state = 178
								state = 702
								state = 703
								state = 704
								state = 297
								state = 705
								state = 708
								state = 709
								state = 706
								state = 707
								state = 713
								state = 543
								state = 906
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AFR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_africa
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AFR
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = { 
						is_on_continent = africa
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_mongol_empire = {
	
		priority = 999
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = MON
				original_tag = TAN
				original_tag = MEN
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 330
				state = 817
				state = 818
				state = 819
				state = 820
				state = 322
				state = 353
				state = 757
				state = 758
				state = 615
				state = 621
				state = 746
				state = 622
				state = 283
				state = 604
				state = 616
				state = 756
				state = 755
				state = 754
				state = 753
				state = 287
				state = 617
				state = 618
				state = 619
				state = 759
				state = 760
				state = 325
				state = 591
				state = 592
				state = 593
				state = 594
				state = 598
				state = 599
				state = 611
				state = 612
				state = 328
				state = 610
				state = 714
				state = 715
				state = 716
				state = 717
				state = 745
				state = 761
				state = 609
				state = 602
				state = 603
				state = 605
				state = 601
				state = 620
				state = 600
				state = 595
				state = 620
				state = 596
				state = 606
				state = 613
				state = 607
				state = 597
				state = 614
				state = 608
				state = 752
				state = 751
				state = 744
				state = 748
				state = 750
				state = 744
				state = 749
				state = 743
				state = 594
				state = 599
				state = 592
				state = 593
				state = 326
				state = 729
				state = 728
				state = 591
				state = 325
				state = 747
				state = 442
				state = 443
				state = 444
				state = 445
				state = 441
				state = 787
				state = 267
				state = 415
				state = 406
				state = 407
				state = 402
				state = 587
				state = 823
				state = 584
				state = 832
				state = 831
				state = 585
				state = 830
				state = 404
				state = 405
				state = 742
				state = 732
				state = 586
				state = 881
				state = 589
				state = 588
				state = 590
				state = 882
				state = 583
				state = 266
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 826
				state = 231
				state = 229
				state = 230
				state = 291
				state = 676
				state = 345
				state = 346
				state = 355
				state = 798
				state = 344
				state = 348
				state = 349
				state = 352
				state = 350
				state = 354
				state = 800
				state = 342
				state = 560
				state = 657
				state = 408
				state = 409
				state = 564
				state = 563
				state = 657
				state = 569
				state = 654
				state = 329
				state = 568
				state = 569
				state = 570
				state = 571
				state = 572
				state = 582
				state = 651
				state = 249
				state = 833
				state = 252
				state = 351
				state = 216
				state = 566
				state = 567
				state = 40
				state = 569
				state = 652
				state = 251
				state = 250
				state = 256
				state = 401
				state = 829
				state = 255
				state = 239
				state = 236
				state = 237
				state = 238
				state = 234
				state = 218
				state = 137
				state = 233
				state = 827
				state = 821
				state = 828
				state = 232
				state = 235
				state = 217
				state = 245
				state = 265
				state = 220
				state = 240
				state = 260
				state = 254
				state = 257
				state = 258
				state = 247
				state = 248
				state = 253
				state = 244
				state = 263
				state = 264
				state = 246
				state = 243
				state = 242
				state = 210
				state = 205
				state = 222
				state = 224
				state = 219
				state = 223
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 196
				state = 200
				state = 227
				state = 221
				state = 228
				state = 89
				state = 91
				state = 93
				state = 80
				state = 766
				state = 192
				state = 197
				state = 834
				state = 81
				state = 46
				state = 77
				state = 766
				state = 78
				state = 79
				state = 80
				state = 525
				state = 527
                  
				state = 917
				state = 918
				state = 919
				state = 920
                state = 941
				state = 942
				state = 943
				state = 944
				state = 945
				state = 946
				state = 947
                state = 955
                state = 980
				state = 981
                state = 982
                state = 983
				state = 984
				state = 985
                state = 986
				state = 987
				state = 988
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1044
				state = 1048
				state = 1049
				state = 1075
				state = 1093
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						330 = { owns_or_subject_of = yes }
						817 = { owns_or_subject_of = yes }
						818 = { owns_or_subject_of = yes }
						819 = { owns_or_subject_of = yes }
						820 = { owns_or_subject_of = yes }						
						322 = { owns_or_subject_of = yes }
						757 = { owns_or_subject_of = yes }
						758 = { owns_or_subject_of = yes }						
						615 = { owns_or_subject_of = yes }
						621 = { owns_or_subject_of = yes }
						746 = { owns_or_subject_of = yes }
						622 = { owns_or_subject_of = yes }
						283 = { owns_or_subject_of = yes }
						604 = { owns_or_subject_of = yes }
						616 = { owns_or_subject_of = yes }
						756 = { owns_or_subject_of = yes }
						755 = { owns_or_subject_of = yes }
						754 = { owns_or_subject_of = yes }
						753 = { owns_or_subject_of = yes }
						287 = { owns_or_subject_of = yes }
						617 = { owns_or_subject_of = yes }
						618 = { owns_or_subject_of = yes }
						619 = { owns_or_subject_of = yes }
						759 = { owns_or_subject_of = yes }
						760 = { owns_or_subject_of = yes }
						325 = { owns_or_subject_of = yes }
						591 = { owns_or_subject_of = yes }
						592 = { owns_or_subject_of = yes }
						593 = { owns_or_subject_of = yes }
						594 = { owns_or_subject_of = yes }
						598 = { owns_or_subject_of = yes }
						599 = { owns_or_subject_of = yes }
						611 = { owns_or_subject_of = yes }
						612 = { owns_or_subject_of = yes }
						328 = { owns_or_subject_of = yes }
						610 = { owns_or_subject_of = yes }
						714 = { owns_or_subject_of = yes }
						715 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						717 = { owns_or_subject_of = yes }
						745 = { owns_or_subject_of = yes }
						761 = { owns_or_subject_of = yes }
						609 = { owns_or_subject_of = yes }
						602 = { owns_or_subject_of = yes }
						603 = { owns_or_subject_of = yes }
						605 = { owns_or_subject_of = yes }
						601 = { owns_or_subject_of = yes }
						620 = { owns_or_subject_of = yes }
						600 = { owns_or_subject_of = yes }
						595 = { owns_or_subject_of = yes }
						620 = { owns_or_subject_of = yes }
						596 = { owns_or_subject_of = yes }
						606 = { owns_or_subject_of = yes }
						613 = { owns_or_subject_of = yes }
						607 = { owns_or_subject_of = yes }
						597 = { owns_or_subject_of = yes }
						614 = { owns_or_subject_of = yes }
						608 = { owns_or_subject_of = yes }
						752 = { owns_or_subject_of = yes }
						751 = { owns_or_subject_of = yes }
						744 = { owns_or_subject_of = yes }
						748 = { owns_or_subject_of = yes }
						750 = { owns_or_subject_of = yes }
						744 = { owns_or_subject_of = yes }
						749 = { owns_or_subject_of = yes }
						743 = { owns_or_subject_of = yes }
						594 = { owns_or_subject_of = yes }
						599 = { owns_or_subject_of = yes }
						592 = { owns_or_subject_of = yes }
						593 = { owns_or_subject_of = yes }
						326 = { owns_or_subject_of = yes }
						729 = { owns_or_subject_of = yes }
						728 = { owns_or_subject_of = yes }
						591 = { owns_or_subject_of = yes }
						325 = { owns_or_subject_of = yes }
						747 = { owns_or_subject_of = yes }						
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }					
						441 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }						
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }
						406 = { owns_or_subject_of = yes }
						407 = { owns_or_subject_of = yes }
						402 = { owns_or_subject_of = yes }
						587 = { owns_or_subject_of = yes }
						823 = { owns_or_subject_of = yes }
						584 = { owns_or_subject_of = yes }
						832 = { owns_or_subject_of = yes }
						831 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						830 = { owns_or_subject_of = yes }
						404 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }
						742 = { owns_or_subject_of = yes }
						732 = { owns_or_subject_of = yes }
						586 = { owns_or_subject_of = yes }
						881 = { owns_or_subject_of = yes }
						589 = { owns_or_subject_of = yes }
						588 = { owns_or_subject_of = yes }
						590 = { owns_or_subject_of = yes }
						882 = { owns_or_subject_of = yes }
						583 = { owns_or_subject_of = yes }						
						266 = { owns_or_subject_of = yes }
						410 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
						412 = { owns_or_subject_of = yes }
						413 = { owns_or_subject_of = yes }
						414 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
						417 = { owns_or_subject_of = yes }
						418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
						420 = { owns_or_subject_of = yes }
						421 = { owns_or_subject_of = yes }						
						826 = { owns_or_subject_of = yes }
						231 = { owns_or_subject_of = yes }
						229 = { owns_or_subject_of = yes }
						230 = { owns_or_subject_of = yes }						
						291 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }				
						560 = { owns_or_subject_of = yes }
						657 = { owns_or_subject_of = yes }
						408 = { owns_or_subject_of = yes }
						409 = { owns_or_subject_of = yes }
						564 = { owns_or_subject_of = yes }
						563 = { owns_or_subject_of = yes }
						657 = { owns_or_subject_of = yes }
						569 = { owns_or_subject_of = yes }
						654 = { owns_or_subject_of = yes }
						329 = { owns_or_subject_of = yes }
						568 = { owns_or_subject_of = yes }
						569 = { owns_or_subject_of = yes }
						570 = { owns_or_subject_of = yes }
						571 = { owns_or_subject_of = yes }
						572 = { owns_or_subject_of = yes }
						582 = { owns_or_subject_of = yes }
						651 = { owns_or_subject_of = yes }
						249 = { owns_or_subject_of = yes }
						833 = { owns_or_subject_of = yes }
						252 = { owns_or_subject_of = yes }
						351 = { owns_or_subject_of = yes }
						216 = { owns_or_subject_of = yes }
						566 = { owns_or_subject_of = yes }
						567 = { owns_or_subject_of = yes }
						40 = { owns_or_subject_of = yes }
						569 = { owns_or_subject_of = yes }
						652 = { owns_or_subject_of = yes }
						251 = { owns_or_subject_of = yes }
						250 = { owns_or_subject_of = yes }
						256 = { owns_or_subject_of = yes }
						401 = { owns_or_subject_of = yes }
						829 = { owns_or_subject_of = yes }
						255 = { owns_or_subject_of = yes }
						239 = { owns_or_subject_of = yes }
						236 = { owns_or_subject_of = yes }
						237 = { owns_or_subject_of = yes }
						238 = { owns_or_subject_of = yes }
						234 = { owns_or_subject_of = yes }
						218 = { owns_or_subject_of = yes }
						137 = { owns_or_subject_of = yes }
						233 = { owns_or_subject_of = yes }
						827 = { owns_or_subject_of = yes }
						821 = { owns_or_subject_of = yes }
						828 = { owns_or_subject_of = yes }
						232 = { owns_or_subject_of = yes }
						235 = { owns_or_subject_of = yes }
						217 = { owns_or_subject_of = yes }
						245 = { owns_or_subject_of = yes }
						265 = { owns_or_subject_of = yes }
						220 = { owns_or_subject_of = yes }
						240 = { owns_or_subject_of = yes }
						260 = { owns_or_subject_of = yes }
						254 = { owns_or_subject_of = yes }
						257 = { owns_or_subject_of = yes }
						258 = { owns_or_subject_of = yes }
						247 = { owns_or_subject_of = yes }
						248 = { owns_or_subject_of = yes }
						253 = { owns_or_subject_of = yes }
						244 = { owns_or_subject_of = yes }
						263 = { owns_or_subject_of = yes }
						264 = { owns_or_subject_of = yes }
						246 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						210 = { owns_or_subject_of = yes }
						205 = { owns_or_subject_of = yes }
						222 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						219 = { owns_or_subject_of = yes }
						223 = { owns_or_subject_of = yes }						
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }						
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
						200 = { owns_or_subject_of = yes }
						227 = { owns_or_subject_of = yes }
						221 = { owns_or_subject_of = yes }
						228 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						197 = { owns_or_subject_of = yes }
						834 = { owns_or_subject_of = yes }						
						81 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }						
						525 = { owns_or_subject_of = yes }
						527 = { owns_or_subject_of = yes }

				        917 = { owns_or_subject_of = yes }
				        918 = { owns_or_subject_of = yes }
				        919 = { owns_or_subject_of = yes }
				        920 = { owns_or_subject_of = yes }
                        941 = { owns_or_subject_of = yes }
				        942 = { owns_or_subject_of = yes }
						943 = { owns_or_subject_of = yes }
				        944 = { owns_or_subject_of = yes }
				        945 = { owns_or_subject_of = yes }
				        946 = { owns_or_subject_of = yes }
				        947 = { owns_or_subject_of = yes }
                        955 = { owns_or_subject_of = yes }
                        980 = { owns_or_subject_of = yes }
				        981 = { owns_or_subject_of = yes }
                        982 = { owns_or_subject_of = yes }
						983 = { owns_or_subject_of = yes }
				        984 = { owns_or_subject_of = yes }
				        985 = { owns_or_subject_of = yes }
                        986 = { owns_or_subject_of = yes }
				        987 = { owns_or_subject_of = yes }
				        988 = { owns_or_subject_of = yes }
				        1008 = { owns_or_subject_of = yes }
				        1009 = { owns_or_subject_of = yes }
				        1010 = { owns_or_subject_of = yes }
				        1011 = { owns_or_subject_of = yes }
						1044 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
				        1075 = { owns_or_subject_of = yes }
				        1093 = { owns_or_subject_of = yes }
				
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MOE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}

		icon = formable_nations_mongol_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MOE
			add_stability = 0.2
			set_capital = { state = 330 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				330 = { add_core_of = ROOT }
				817 = { add_core_of = ROOT }
				818 = { add_core_of = ROOT }
				819 = { add_core_of = ROOT }
				820 = { add_core_of = ROOT }
				322 = { add_core_of = ROOT }
				757 = { add_core_of = ROOT }
				758 = { add_core_of = ROOT }
				615 = { add_core_of = ROOT }
				621 = { add_core_of = ROOT }
				746 = { add_core_of = ROOT }
				622 = { add_core_of = ROOT }
				283 = { add_core_of = ROOT }
				604 = { add_core_of = ROOT }
				616 = { add_core_of = ROOT }
				756 = { add_core_of = ROOT }
				755 = { add_core_of = ROOT }
				754 = { add_core_of = ROOT }
				753 = { add_core_of = ROOT }
				287 = { add_core_of = ROOT }
				617 = { add_core_of = ROOT }
				618 = { add_core_of = ROOT }
				619 = { add_core_of = ROOT }
				759 = { add_core_of = ROOT }
				760 = { add_core_of = ROOT }
				325 = { add_core_of = ROOT }
				591 = { add_core_of = ROOT }
				592 = { add_core_of = ROOT }
				593 = { add_core_of = ROOT }
				594 = { add_core_of = ROOT }
				598 = { add_core_of = ROOT }
				599 = { add_core_of = ROOT }
				611 = { add_core_of = ROOT }
				612 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				328 = { add_core_of = ROOT }
				610 = { add_core_of = ROOT }
				714 = { add_core_of = ROOT }
				715 = { add_core_of = ROOT }
				716 = { add_core_of = ROOT }
				717 = { add_core_of = ROOT }
				745 = { add_core_of = ROOT }
				761 = { add_core_of = ROOT }
				609 = { add_core_of = ROOT }
				657 = { add_core_of = ROOT }
				560 = { add_core_of = ROOT }
				561 = { add_core_of = ROOT }
				655 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				408 = { add_core_of = ROOT }
				409 = { add_core_of = ROOT }
				602 = { add_core_of = ROOT }
				603 = { add_core_of = ROOT }
				605 = { add_core_of = ROOT }
				601 = { add_core_of = ROOT }
				620 = { add_core_of = ROOT }
				600 = { add_core_of = ROOT }
				595 = { add_core_of = ROOT }
				620 = { add_core_of = ROOT }
				596 = { add_core_of = ROOT }
				606 = { add_core_of = ROOT }
				613 = { add_core_of = ROOT }
				607 = { add_core_of = ROOT }
				597 = { add_core_of = ROOT }
				614 = { add_core_of = ROOT }
				608 = { add_core_of = ROOT }
				752 = { add_core_of = ROOT }
				751 = { add_core_of = ROOT }
				744 = { add_core_of = ROOT }
				748 = { add_core_of = ROOT }
				750 = { add_core_of = ROOT }
				744 = { add_core_of = ROOT }
				749 = { add_core_of = ROOT }
				743 = { add_core_of = ROOT }
				594 = { add_core_of = ROOT }
				599 = { add_core_of = ROOT }
				592 = { add_core_of = ROOT }
				593 = { add_core_of = ROOT }
				326 = { add_core_of = ROOT }
				729 = { add_core_of = ROOT }
				728 = { add_core_of = ROOT }
				591 = { add_core_of = ROOT }
				325 = { add_core_of = ROOT }
				747 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				882 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				560 = { add_core_of = ROOT }
				561 = { add_core_of = ROOT }
				657 = { add_core_of = ROOT }
				408 = { add_core_of = ROOT }
				409 = { add_core_of = ROOT }
				564 = { add_core_of = ROOT }
				563 = { add_core_of = ROOT }
				657 = { add_core_of = ROOT }
				569 = { add_core_of = ROOT }
				654 = { add_core_of = ROOT }
				329 = { add_core_of = ROOT }
				568 = { add_core_of = ROOT }
				569 = { add_core_of = ROOT }
				570 = { add_core_of = ROOT }
				571 = { add_core_of = ROOT }
				572 = { add_core_of = ROOT }
				582 = { add_core_of = ROOT }
				651 = { add_core_of = ROOT }
				249 = { add_core_of = ROOT }
				833 = { add_core_of = ROOT }
				252 = { add_core_of = ROOT }
				351 = { add_core_of = ROOT }
				216 = { add_core_of = ROOT }
				566 = { add_core_of = ROOT }
				567 = { add_core_of = ROOT }
				40 = { add_core_of = ROOT }
				569 = { add_core_of = ROOT }
				652 = { add_core_of = ROOT }
				251 = { add_core_of = ROOT }
				250 = { add_core_of = ROOT }
				256 = { add_core_of = ROOT }
				401 = { add_core_of = ROOT }
				829 = { add_core_of = ROOT }
				255 = { add_core_of = ROOT }
				239 = { add_core_of = ROOT }
				236 = { add_core_of = ROOT }
				237 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				137 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				827 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				828 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				235 = { add_core_of = ROOT }
				217 = { add_core_of = ROOT }
				245 = { add_core_of = ROOT }
				265 = { add_core_of = ROOT }
				220 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				260 = { add_core_of = ROOT }
				254 = { add_core_of = ROOT }
				257 = { add_core_of = ROOT }
				258 = { add_core_of = ROOT }
				247 = { add_core_of = ROOT }
				248 = { add_core_of = ROOT }
				253 = { add_core_of = ROOT }
				244 = { add_core_of = ROOT }
				263 = { add_core_of = ROOT }
				264 = { add_core_of = ROOT }
				246 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				210 = { add_core_of = ROOT }
				205 = { add_core_of = ROOT }
				222 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				219 = { add_core_of = ROOT }
				223 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				525 = { add_core_of = ROOT }
				527 = { add_core_of = ROOT }

                917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				941 = { add_core_of = ROOT }
				942 = { add_core_of = ROOT }
				943 = { add_core_of = ROOT }
				944 = { add_core_of = ROOT }
				945 = { add_core_of = ROOT }
				946 = { add_core_of = ROOT }
				947 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				985 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1075 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_europe = {#continent
	
	    priority = 2
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = europe }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
			    OR = {
				is_on_continent = europe	
				state = 406
				state = 407
				state = 236
				state = 401
				state = 829
				state = 239
				state = 255
				state = 250
				state = 251
				state = 652
				state = 651
				state = 249
				state = 252
				state = 256
				state = 833
				state = 398
				state = 399
				state = 351
				state = 400
				state = 880
				state = 262
				state = 825
				state = 397
				state = 351
				state = 1076
				}
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = europe_requirement_tooltip 
				OR = {
					all_state = {
						OR = {
							AND = {
								OR = {
									is_on_continent = europe
									state = 406
									state = 407
									state = 236
									state = 401
									state = 829
									state = 239
									state = 255
									state = 250
									state = 251
									state = 652
									state = 651
									state = 249
									state = 252
									state = 256
									state = 833
									state = 398
									state = 399
									state = 351
									state = 400
									state = 880
									state = 262
									state = 825
									state = 397
									state = 351
									state = 1076
								}
								NOT = {
									OR = {
										state = 698
										state = 177
										state = 1
										state = 114
										state = 116
										state = 183
										state = 182
										state = 164
										state = 337
										state = 100
										state = 124
										state = 113
										state = 134
										state = 135
										state = 119
										state = 120
										state = 121
										state = 133
										state = 136
										state = 131
										state = 130
										state = 132
										state = 128
										state = 122
										state = 129
										state = 125
										state = 338
										state = 123
										state = 127
										state = 126
									}
								}
								is_controlled_by = ROOT
							}
							NOT = { 
								OR = {
									is_on_continent = europe 
									state = 406
									state = 407
									state = 236
									state = 401
									state = 829
									state = 239
									state = 255
									state = 250
									state = 251
									state = 652
									state = 651
									state = 249
									state = 252
									state = 256
									state = 833
									state = 398
									state = 399
									state = 351
									state = 400
									state = 880
									state = 262
									state = 825
									state = 397
								}
							}
							state = 698
							state = 177
							state = 1
							state = 114
							state = 116
							state = 183
							state = 182
							state = 164
							state = 337
							state = 100
							state = 124
							state = 113
							state = 134
							state = 135
							state = 119
							state = 120
							state = 121
							state = 133
							state = 136
							state = 131
							state = 130
							state = 132
							state = 128
							state = 122
							state = 129
							state = 125
							state = 338
							state = 123
							state = 127
							state = 126
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { 
				tooltip = britain_requirement_tooltip 
				OR = {
					AND = {	
						113 = { owns_or_subject_of = yes }
						134 = { owns_or_subject_of = yes }
						135 = { owns_or_subject_of = yes }
						119 = { owns_or_subject_of = yes }
						120 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }
						133 = { owns_or_subject_of = yes }
						136 = { owns_or_subject_of = yes }
						131 = { owns_or_subject_of = yes }
						130 = { owns_or_subject_of = yes }
						132 = { owns_or_subject_of = yes }
						128 = { owns_or_subject_of = yes }
						122 = { owns_or_subject_of = yes }
						129 = { owns_or_subject_of = yes }
						125 = { owns_or_subject_of = yes }
						338 = { owns_or_subject_of = yes }
						123 = { owns_or_subject_of = yes }
						127 = { owns_or_subject_of = yes }
						126 = { owns_or_subject_of = yes }
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_EUR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_europe
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_EUR
			add_stability = 0.2
			set_capital = { state = 6 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = { 
						OR = {
							is_on_continent = europe
							state = 406
							state = 407
							state = 236
							state = 401
							state = 829
							state = 239
							state = 255
							state = 250
							state = 251
							state = 652
							state = 651
							state = 249
							state = 252
							state = 256
							state = 833
							state = 398
							state = 399
							state = 351
							state = 400
							state = 880
							state = 262
							state = 825
							state = 397
						}
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	} 

	formable_nations_grossdeutschland = {
	    
		priority = 998
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = GER
				original_tag = AUS
				original_tag = SHL
				original_tag = MEK
				original_tag = BAY
				original_tag = PRE
				original_tag = SAX
				original_tag = HAN
				original_tag = WUR
				original_tag = RHI
				original_tag = THU
				original_tag = SAR
				original_tag = HES
				original_tag = DNZ
				original_tag = BAD
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 5
				state = 42
				state = 50
				state = 51
				state = 52
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 65
				state = 66
				state = 67
				state = 68
				state = 69
				state = 74
				state = 85
				state = 86
				state = 152
				state = 153
				state = 762
				state = 763
				state = 807
				state = 848
				state = 922
				state = 923
				state = 989	
				state = 998
				state = 1053
				state = 1078

			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						4 = { owns_or_subject_of = yes }
				        5 = { owns_or_subject_of = yes }
				        42 = { owns_or_subject_of = yes }
				        50 = { owns_or_subject_of = yes }
				        51 = { owns_or_subject_of = yes }
				        52 = { owns_or_subject_of = yes }
				        53 = { owns_or_subject_of = yes }
				        54 = { owns_or_subject_of = yes }
				        55 = { owns_or_subject_of = yes }
				        56 = { owns_or_subject_of = yes }
				        57 = { owns_or_subject_of = yes }
				        58 = { owns_or_subject_of = yes }
				        59 = { owns_or_subject_of = yes }
				        60 = { owns_or_subject_of = yes }
				        61 = { owns_or_subject_of = yes }
				        62 = { owns_or_subject_of = yes }
				        63 = { owns_or_subject_of = yes }
				        64 = { owns_or_subject_of = yes }
				        65 = { owns_or_subject_of = yes }
				        66 = { owns_or_subject_of = yes }
				        67 = { owns_or_subject_of = yes }
				        68 = { owns_or_subject_of = yes }
				        69 = { owns_or_subject_of = yes }
				        74 = { owns_or_subject_of = yes }
				        85 = { owns_or_subject_of = yes }
				        86 = { owns_or_subject_of = yes }
				        152 = { owns_or_subject_of = yes }
				        153 = { owns_or_subject_of = yes }
				        762 = { owns_or_subject_of = yes }
				        763 = { owns_or_subject_of = yes }
				        807 = { owns_or_subject_of = yes }
				        848 = { owns_or_subject_of = yes }
				        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
				        998 = { owns_or_subject_of = yes }
				        1053 = { owns_or_subject_of = yes }
				        1078 = { owns_or_subject_of = yes }
						
						OR = {
							39 = { owns_or_subject_of = yes }
							28 = { owns_or_subject_of = yes }
						}
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}

			custom_trigger_tooltip = {
				tooltip = germany_expansion_continued_requirement_tooltip
				OR = {
					OR = {
						39 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GRO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_grossdeutschland
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GRO
			add_stability = 0.15
			set_capital = { state = 64 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				4 = { add_core_of = ROOT }
				5 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				64 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				763 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				
				set_province_name = { id = 6558 name = "Posen" }
				set_province_name = { id = 9503 name = "Straßburg" }
				set_province_name = { id = 678 name = "Mülhausen" }
			}
			8 = { add_core_of = ROOT }
			39 = { add_core_of = ROOT }
			850 = { add_core_of = ROOT }
			set_province_name = { id = 6558 name = "Posen" }
			set_province_name = { id = 9503 name = "Straßburg" }
			set_province_name = { id = 678 name = "Mülhausen" }
		}
	}

	formable_nations_latin_union = {
	
	    priority = 997
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = ITA
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = ROM
				original_tag = MOL
				original_tag = GLC
				original_tag = CAT
				original_tag = OCC
				original_tag = COR
				original_tag = ADR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 795
				state = 2
				state = 39
				state = 850
				state = 114
				state = 115
				state = 117
				state = 849
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 736
				state = 852
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 46
				state = 76
				state = 77
				state = 78
				state = 79
				state = 80
				state = 81
				state = 82
				state = 83
				state = 84
				state = 766
				
				state = 912
				state = 955
				state = 957
				state = 973
				state = 1012
				state = 1015

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
						2 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						117 = { owns_or_subject_of = yes }
						849 = { owns_or_subject_of = yes }
						156 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						159 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						1 = { owns_or_subject_of = yes }
						14 = { owns_or_subject_of = yes }
						15 = { owns_or_subject_of = yes }
						16 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }
						24 = { owns_or_subject_of = yes }
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
						32 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						76 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						
						912 = { owns_or_subject_of = yes }
						955 = { owns_or_subject_of = yes }
						957 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
				        1015 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_LAU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_latin_union
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_LAU
			add_stability = 0.2
			set_capital = { state = 2 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				178 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				1 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				
				912 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }

			}
			34 = { add_core_of = ROOT }
			845 = { add_core_of = ROOT }
			846 = { add_core_of = ROOT }
			847 = { add_core_of = ROOT }
			163 = { add_core_of = ROOT }
			118 = { add_claim_by = ROOT }
		}
	}

	formable_nations_chinese_empire = {
	    
		priority = 996
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = CHI
				original_tag = YUN
				original_tag = GXC
				original_tag = XSM
				original_tag = SHX
				original_tag = SIK
				original_tag = PRC
				original_tag = MAN
				original_tag = MEN
			}
		}

		highlight_states = {
			highlight_state_targets = {		
				state = 615
				state = 621
				state = 746
				state = 622
				state = 283
				state = 604
				state = 616
				state = 756
				state = 755
				state = 754
				state = 753
				state = 287
				state = 617
				state = 618
				state = 619
				state = 759
				state = 760
				state = 325
				state = 591
				state = 592
				state = 593
				state = 594
				state = 598
				state = 599
				state = 611
				state = 612
				state = 328
				state = 610
				state = 714
				state = 715
				state = 716
				state = 717
				state = 745
				state = 761
				state = 609
				state = 602
				state = 603
				state = 605
				state = 601
				state = 620
				state = 600
				state = 595
				state = 620
				state = 596
				state = 606
				state = 613
				state = 607
				state = 597
				state = 614
				state = 608
				state = 752
				state = 751
				state = 744
				state = 748
				state = 750
				state = 744
				state = 749
				state = 743
				state = 594
				state = 599
				state = 592
				state = 593
				state = 326
				state = 729
				state = 728
				state = 591
				state = 325
				state = 747
				state = 561
				state = 657
				state = 560
				state = 408
				state = 409
				state = 322
				state = 757
				state = 758
				state = 330
				state = 817
				state = 818
				state = 819
				state = 820
				state = 329
				
				state = 717
				state = 941
				state = 942
				state = 943
				state = 944
				state = 945
				state = 946
				state = 947
				state = 1075
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						615 = { owns_or_subject_of = yes }
						621 = { owns_or_subject_of = yes }
						746 = { owns_or_subject_of = yes }
						622 = { owns_or_subject_of = yes }
						283 = { owns_or_subject_of = yes }
						604 = { owns_or_subject_of = yes }
						616 = { owns_or_subject_of = yes }
						756 = { owns_or_subject_of = yes }
						755 = { owns_or_subject_of = yes }
						754 = { owns_or_subject_of = yes }
						753 = { owns_or_subject_of = yes }
						287 = { owns_or_subject_of = yes }
						617 = { owns_or_subject_of = yes }
						618 = { owns_or_subject_of = yes }
						619 = { owns_or_subject_of = yes }
						759 = { owns_or_subject_of = yes }
						760 = { owns_or_subject_of = yes }
						325 = { owns_or_subject_of = yes }
						591 = { owns_or_subject_of = yes }
						592 = { owns_or_subject_of = yes }
						593 = { owns_or_subject_of = yes }
						594 = { owns_or_subject_of = yes }
						598 = { owns_or_subject_of = yes }
						599 = { owns_or_subject_of = yes }
						611 = { owns_or_subject_of = yes }
						612 = { owns_or_subject_of = yes }
						328 = { owns_or_subject_of = yes }
						610 = { owns_or_subject_of = yes }
						714 = { owns_or_subject_of = yes }
						715 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						717 = { owns_or_subject_of = yes }
						745 = { owns_or_subject_of = yes }
						761 = { owns_or_subject_of = yes }
						609 = { owns_or_subject_of = yes }
						602 = { owns_or_subject_of = yes }
						603 = { owns_or_subject_of = yes }
						605 = { owns_or_subject_of = yes }
						601 = { owns_or_subject_of = yes }
						620 = { owns_or_subject_of = yes }
						600 = { owns_or_subject_of = yes }
						595 = { owns_or_subject_of = yes }
						620 = { owns_or_subject_of = yes }
						596 = { owns_or_subject_of = yes }
						606 = { owns_or_subject_of = yes }
						613 = { owns_or_subject_of = yes }
						607 = { owns_or_subject_of = yes }
						597 = { owns_or_subject_of = yes }
						614 = { owns_or_subject_of = yes }
						608 = { owns_or_subject_of = yes }
						752 = { owns_or_subject_of = yes }
						751 = { owns_or_subject_of = yes }
						744 = { owns_or_subject_of = yes }
						748 = { owns_or_subject_of = yes }
						750 = { owns_or_subject_of = yes }
						744 = { owns_or_subject_of = yes }
						749 = { owns_or_subject_of = yes }
						743 = { owns_or_subject_of = yes }
						594 = { owns_or_subject_of = yes }
						599 = { owns_or_subject_of = yes }
						592 = { owns_or_subject_of = yes }
						593 = { owns_or_subject_of = yes }
						326 = { owns_or_subject_of = yes }
						729 = { owns_or_subject_of = yes }
						728 = { owns_or_subject_of = yes }
						591 = { owns_or_subject_of = yes }
						325 = { owns_or_subject_of = yes }
						747 = { owns_or_subject_of = yes }
						561 = { owns_or_subject_of = yes }
						657 = { owns_or_subject_of = yes }
						560 = { owns_or_subject_of = yes }
						408 = { owns_or_subject_of = yes }
						409 = { owns_or_subject_of = yes }						
						322 = { owns_or_subject_of = yes }
						757 = { owns_or_subject_of = yes }
						758 = { owns_or_subject_of = yes }
						330 = { owns_or_subject_of = yes }
						817 = { owns_or_subject_of = yes }
						818 = { owns_or_subject_of = yes }
						819 = { owns_or_subject_of = yes }
						820 = { owns_or_subject_of = yes }						
						329 = { owns_or_subject_of = yes }
						
						717 = { owns_or_subject_of = yes }
				        941 = { owns_or_subject_of = yes }
				        942 = { owns_or_subject_of = yes }
						943 = { owns_or_subject_of = yes }
				        944 = { owns_or_subject_of = yes }
						945 = { owns_or_subject_of = yes }
						946 = { owns_or_subject_of = yes }
				        947 = { owns_or_subject_of = yes }
						1075 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_QIN } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_chinese_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_QIN
			add_stability = 0.2
			set_capital = { state = 608 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				615 = { add_core_of = ROOT }
				621 = { add_core_of = ROOT }
				622 = { add_core_of = ROOT }
				283 = { add_core_of = ROOT }
				604 = { add_core_of = ROOT }
				616 = { add_core_of = ROOT }
				287 = { add_core_of = ROOT }
				617 = { add_core_of = ROOT }
				618 = { add_core_of = ROOT }
				619 = { add_core_of = ROOT }
				322 = { add_core_of = ROOT }
				330 = { add_core_of = ROOT }
				817 = { add_core_of = ROOT }
				818 = { add_core_of = ROOT }
				819 = { add_core_of = ROOT }
				820 = { add_core_of = ROOT }
				325 = { add_core_of = ROOT }
				591 = { add_core_of = ROOT }
				592 = { add_core_of = ROOT }
				593 = { add_core_of = ROOT }
				594 = { add_core_of = ROOT }
				599 = { add_core_of = ROOT }
				611 = { add_core_of = ROOT }
				612 = { add_core_of = ROOT }
				328 = { add_core_of = ROOT }
				610 = { add_core_of = ROOT }
				714 = { add_core_of = ROOT }
				715 = { add_core_of = ROOT }
				716 = { add_core_of = ROOT }
				717 = { add_core_of = ROOT }
				609 = { add_core_of = ROOT }
				657 = { add_core_of = ROOT }
				560 = { add_core_of = ROOT }
				561 = { add_core_of = ROOT }
				655 = { add_core_of = ROOT }
				408 = { add_core_of = ROOT }
				409 = { add_core_of = ROOT }
				602 = { add_core_of = ROOT }
				603 = { add_core_of = ROOT }
				605 = { add_core_of = ROOT }
				601 = { add_core_of = ROOT }
				620 = { add_core_of = ROOT }
				600 = { add_core_of = ROOT }
				595 = { add_core_of = ROOT }
				620 = { add_core_of = ROOT }
				596 = { add_core_of = ROOT }
				606 = { add_core_of = ROOT }
				613 = { add_core_of = ROOT }
				607 = { add_core_of = ROOT }
				597 = { add_core_of = ROOT }
				614 = { add_core_of = ROOT }
				608 = { add_core_of = ROOT }
				598 = { add_core_of = ROOT }
				757 = { add_core_of = ROOT }
				758 = { add_core_of = ROOT }
				
				717 = { add_core_of = ROOT }
				941 = { add_core_of = ROOT }
				942 = { add_core_of = ROOT }
				943 = { add_core_of = ROOT }
				944 = { add_core_of = ROOT }
				945 = { add_core_of = ROOT }
				946 = { add_core_of = ROOT }
				947 = { add_core_of = ROOT }
				1075 = { add_core_of = ROOT }
				
			}
			524 = { add_core_of = ROOT }
			655 = { add_core_of = ROOT }
			537 = { add_core_of = ROOT }
			589 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_frankish_empire = {
	
		priority = 995
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = GER
				original_tag = SHL
				original_tag = BAY
				original_tag = HAN
				original_tag = WUR
				original_tag = OCC
				original_tag = NAV
				original_tag = LIE
				original_tag = MNC
				original_tag = RHI
				original_tag = THU
				original_tag = SAR
				original_tag = HES
				original_tag = BAD
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 42
				state = 50
				state = 51
				state = 52
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 2
				state = 157
				state = 161
				state = 162
				state = 158
				state = 159
				state = 39
				state = 850
				state = 160
				state = 736
				state = 852
				state = 6
				state = 34
				state = 7
				state = 35
				state = 36
				state = 8
				state = 4
				state = 152
				state = 153
				state = 848
				state = 3
				state = 151
				state = 845
				state = 846
				state = 847

                state = 912
                state = 922
				state = 923
				state = 957
				state = 965
				state = 989
				state = 997
				state = 998
				state = 1012
				state = 1015
				state = 1053
				state = 1054
				state = 1086
				state = 1094
				state = 1095

			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
						15 = { owns_or_subject_of = yes }
						16 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }
						24 = { owns_or_subject_of = yes }
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
						32 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
						50 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						52 = { owns_or_subject_of = yes }
						53 = { owns_or_subject_of = yes }
						54 = { owns_or_subject_of = yes }
						55 = { owns_or_subject_of = yes }
						56 = { owns_or_subject_of = yes }
						57 = { owns_or_subject_of = yes }
						58 = { owns_or_subject_of = yes }
						59 = { owns_or_subject_of = yes }
						60 = { owns_or_subject_of = yes }
						2 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						159 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						6 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
						35 = { owns_or_subject_of = yes }
						36 = { owns_or_subject_of = yes }
						8 = { owns_or_subject_of = yes }
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						3 = { owns_or_subject_of = yes }
						151 = { owns_or_subject_of = yes }
						845 = { owns_or_subject_of = yes }
						846 = { owns_or_subject_of = yes }
						847 = { owns_or_subject_of = yes }

						912 = { owns_or_subject_of = yes }
                        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
						965 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
						997 = { owns_or_subject_of = yes }
						998 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
						1015 = { owns_or_subject_of = yes }
						1053 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
				        1094 = { owns_or_subject_of = yes }
				        1095 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_FRE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_frankish_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_FRE
			add_stability = 0.2
			set_capital = { state = 16 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				
				912 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
				
			}
			165 = { add_core_of = ROOT }
			102 = { add_core_of = ROOT }
			853 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_austria_hungary = {
	
		priority = 994
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = AUS
				original_tag = HUN
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 152
				state = 153
				state = 848
				state = 43
				state = 154
				state = 155
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 76
				state = 82
				state = 83
				state = 84
				state = 764
				state = 88
				state = 89
				state = 91
				state = 102
				state = 853
				state = 736
				state = 163
				state = 103
				state = 109
				state = 852
				state = 39
				state = 850
				state = 45
				
				state = 804
				state = 913
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 996
				state = 1078
				state = 1054
				state = 1078
				state = 1086
				state = 1104

			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						72 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }
						76 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						45 = { owns_or_subject_of = yes }

					    804 = { owns_or_subject_of = yes }
				        913 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
						962 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
						1078 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
						1078 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AUH } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_austria_hungary
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AUH
			add_stability = 0.15
			set_capital = { state = 4 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }

                804 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }

			}
			80 = { add_core_of = ROOT }
			104 = { add_core_of = ROOT }
			804 = { add_core_of = ROOT }
			997 = { add_core_of = ROOT }
			997 = { add_claim_by = ROOT }
			set_province_name = { id = 11542 name = "Prag"}
				set_province_name = { id = 6418 name = "Pilsen"}
				set_province_name = { id = 3569 name = "Brünn"}
				set_province_name = { id = 9692 name = "Pressburg"}
				set_province_name = { id = 6573 name = "Kaschau"}
				set_province_name = { id = 11610 name = "Fünfkirchen"}
				set_province_name = { id = 11659 name = "Debrezin"}
		}
	}
	
	formable_nations_commonwealth = {
	
	    priority = 993
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = LIT
				original_tag = DNZ
			}		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 11
				state = 814
				state = 815
				state = 189
				state = 188
				state = 784
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 807
				state = 762
				state = 12
				state = 190
				state = 808
				state = 809
				state = 810
				state = 13
				state = 191
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 224
				state = 242
				state = 243
				
				state = 934
				state = 935
				state = 936
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						11 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						188 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }
						12 = { owns_or_subject_of = yes }
						190 = { owns_or_subject_of = yes }
						808 = { owns_or_subject_of = yes }
						809 = { owns_or_subject_of = yes }
						810 = { owns_or_subject_of = yes }
						13 = { owns_or_subject_of = yes }
						191 = { owns_or_subject_of = yes }
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }
						
						934 = { owns_or_subject_of = yes }
				        935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_COM } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_commonwealth
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_COM
			add_stability = 0.15
			set_capital = { state = 10 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				188 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				11 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				10 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				
			}
			5 = { add_core_of = ROOT }
			763 = { add_core_of = ROOT }
			72 = { add_core_of = ROOT }
			13 = { add_core_of = ROOT }
			191 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_hre = {
	
		priority = 992
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = GER
				original_tag = AUS
				original_tag = SHL
				original_tag = MEK
				original_tag = BAY
				original_tag = PRE
				original_tag = SAX
				original_tag = HAN
				original_tag = WUR
				original_tag = RHI
				original_tag = THU
				original_tag = SAR
				original_tag = HES
				original_tag = BAD
				original_tag = CZE
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = SWI
				original_tag = ITA
				original_tag = HUN
				original_tag = LIE
				original_tag = MNC
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 42
				state = 50
				state = 51
				state = 52
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 65
				state = 66
				state = 67
				state = 68
				state = 6
				state = 34
				state = 7
				state = 35
				state = 36
				state = 8
				state = 3
				state = 151
				state = 845
				state = 846
				state = 847
				state = 39
				state = 850
				state = 158
				state = 736
				state = 852
				state = 162
				state = 28
				state = 17
				state = 735
				state = 4
				state = 152
				state = 153
				state = 848
				state = 9
				state = 69
				state = 74
				state = 75
				
				state = 159
				state = 160
				state = 161
				state = 912
				state = 922
				state = 923
				state = 965
				state = 989
				state = 997
				state = 998
				state = 1012
				state = 1053
				state = 1054
				state = 1078
				state = 1086
				state = 1094
				state = 1095

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						42 = { owns_or_subject_of = yes }
						50 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						52 = { owns_or_subject_of = yes }
						53 = { owns_or_subject_of = yes }
						54 = { owns_or_subject_of = yes }
						55 = { owns_or_subject_of = yes }
						56 = { owns_or_subject_of = yes }
						57 = { owns_or_subject_of = yes }
						58 = { owns_or_subject_of = yes }
						59 = { owns_or_subject_of = yes }
						60 = { owns_or_subject_of = yes }
						61 = { owns_or_subject_of = yes }
						62 = { owns_or_subject_of = yes }
						63 = { owns_or_subject_of = yes }
						64 = { owns_or_subject_of = yes }
						65 = { owns_or_subject_of = yes }
						66 = { owns_or_subject_of = yes }
						67 = { owns_or_subject_of = yes }
						68 = { owns_or_subject_of = yes }
						6 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
						35 = { owns_or_subject_of = yes }
						36 = { owns_or_subject_of = yes }
						8 = { owns_or_subject_of = yes }
						3 = { owns_or_subject_of = yes }
						151 = { owns_or_subject_of = yes }
						845 = { owns_or_subject_of = yes }
						846 = { owns_or_subject_of = yes }
						847 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }

                        159 = { owns_or_subject_of = yes }
				        160 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
						965 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
						997 = { owns_or_subject_of = yes }
						998 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
				        1053 = { owns_or_subject_of = yes }
						1054 = { owns_or_subject_of = yes }
						1078 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
						1094 = { owns_or_subject_of = yes }
				        1095 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_HRE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hre
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_HRE
			add_stability = 0.2
			set_capital = { state = 52 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				42 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				64 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }

                159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }

			}
			102 = { add_core_of = ROOT }
			853 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_iberia = {
	
		priority = 991
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = GLC
				original_tag = NAV
				original_tag = CAT
				original_tag = ADR
				original_tag = ADU
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 177
				state = 795
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_IBE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_iberia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_IBE
			add_stability = 0.1
			set_capital = { state = 41 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
			}
			118 = { add_claim_by = ROOT }
			973 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_scandinavia = {
	
		priority = 990
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = DEN
				original_tag = SWE
				original_tag = NOR
				original_tag = ICE
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 37
				state = 99
				state = 38
				state = 124
				state = 138
				state = 139
				state = 140
				state = 141
				state = 666
				state = 110
				state = 142
				state = 143
				state = 144

				state = 100
				state = 337
                state = 964
                state = 967
				state = 968
				state = 969
				state = 1024
				state = 1025
				state = 1026
				state = 1027
				state = 1028
				state = 1029
				state = 1030
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				state = 1043

			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						37 = { owns_or_subject_of = yes }
						99 = { owns_or_subject_of = yes }
						38 = { owns_or_subject_of = yes }
						124 = { owns_or_subject_of = yes }
						138 = { owns_or_subject_of = yes }
						139 = { owns_or_subject_of = yes }
						140 = { owns_or_subject_of = yes }
						141 = { owns_or_subject_of = yes }
						666 = { owns_or_subject_of = yes }
						110 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
						144 = { owns_or_subject_of = yes }

                        100 = { owns_or_subject_of = yes }
				        337 = { owns_or_subject_of = yes }
                        964 = { owns_or_subject_of = yes }
						967 = { owns_or_subject_of = yes }
				        968 = { owns_or_subject_of = yes }
				        969 = { owns_or_subject_of = yes }
						1024 = { owns_or_subject_of = yes }
				        1025 = { owns_or_subject_of = yes }
				        1026 = { owns_or_subject_of = yes }
						1027 = { owns_or_subject_of = yes }
				        1028 = { owns_or_subject_of = yes }
						1029 = { owns_or_subject_of = yes }
						1030 = { owns_or_subject_of = yes }
				        1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
						1033 = { owns_or_subject_of = yes }
				        1034 = { owns_or_subject_of = yes }
				        1035 = { owns_or_subject_of = yes }
				        1043 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_SCA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_scandinavia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_SCA
			add_stability = 0.15
			set_capital = { state = 37 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				38 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }

                100 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				968 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1024 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1027 = { add_core_of = ROOT }
				1028 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
				1030 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
				1043 = { add_core_of = ROOT }

			}
			145 = { add_core_of = ROOT }
			100 = { add_core_of = ROOT }
			101 = { add_core_of = ROOT }
			914 = { add_core_of = ROOT }
			910 = { add_core_of = ROOT }


			111 = { add_claim_by = ROOT }
			145 = { add_claim_by = ROOT }
			146 = { add_claim_by = ROOT }
			147 = { add_claim_by = ROOT }
			148 = { add_claim_by = ROOT }
			149 = { add_claim_by = ROOT }
			150 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_arabia = {
	
		priority = 989
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SAU
				original_tag = YEM
				original_tag = OMA
				original_tag = IRQ
				original_tag = LEB
				original_tag = SYR
				original_tag = JOR
				original_tag = PAL
				original_tag = KUW
				original_tag = UAE
				original_tag = QAT
				original_tag = BHR
				original_tag = MPL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 292
				state = 678
				state = 679
				state = 854
				state = 855
				state = 856
				state = 857
				state = 858
				state = 859
				state = 293
				state = 659
				state = 294
				state = 658
				state = 765
				state = 656
				state = 291
				state = 675
				state = 676
				state = 454
				state = 553
				state = 677
				state = 799
				state = 554
				state = 680
				state = 455
				
				state = 949
				state = 966
				state = 1007
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1102
				state = 1103
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						292 = { owns_or_subject_of = yes }
						678 = { owns_or_subject_of = yes }
						679 = { owns_or_subject_of = yes }
						854 = { owns_or_subject_of = yes }
						855 = { owns_or_subject_of = yes }
						856 = { owns_or_subject_of = yes }
						857 = { owns_or_subject_of = yes }
						858 = { owns_or_subject_of = yes }
						859 = { owns_or_subject_of = yes }
						293 = { owns_or_subject_of = yes }
						659 = { owns_or_subject_of = yes }
						294 = { owns_or_subject_of = yes }
						658 = { owns_or_subject_of = yes }
						765 = { owns_or_subject_of = yes }
						656 = { owns_or_subject_of = yes }
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }
						
						949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1007 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
			            1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
				        1102 = { owns_or_subject_of = yes }
				        1103 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ARA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_arabia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ARA
			add_stability = 0.2
			set_capital = { state = 291 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				292 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				
				949 = { owns_or_subject_of = yes }
				966 = { owns_or_subject_of = yes }
				1007 = { owns_or_subject_of = yes }
				1016 = { owns_or_subject_of = yes }
				1017 = { owns_or_subject_of = yes }
				1021 = { owns_or_subject_of = yes }
				1022 = { owns_or_subject_of = yes }
				1045 = { owns_or_subject_of = yes }
				1046 = { owns_or_subject_of = yes }
				1047 = { owns_or_subject_of = yes }
				1048 = { owns_or_subject_of = yes }
				1049 = { owns_or_subject_of = yes }
				1102 = { owns_or_subject_of = yes }
				1103 = { owns_or_subject_of = yes }
				
			}
		}
	}
	
	formable_nations_great_moravia = {
	
		priority = 988
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CZE
				original_tag = SLO
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 66
				state = 67
				state = 762
				state = 43
				state = 154
				state = 155
				state = 82
				state = 764
				state = 83
				state = 45
				state = 88
				state = 4

                state = 913
				state = 996
                state = 1078
				state = 1086
				state = 1104

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						72 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }
						66 = { owns_or_subject_of = yes }
						67 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						45 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						4 = { owns_or_subject_of = yes }

						913 = { owns_or_subject_of = yes }
						996 = { owns_or_subject_of = yes }
						1078 = { owns_or_subject_of = yes }
						1086 = { owns_or_subject_of = yes }
						1104 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GMO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_great_moravia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GMO
			add_stability = 0.15
			set_capital = { state = 75 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				4 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }

				913 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_transcaucasia = {
	
		priority = 987
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ARM
				original_tag = GEO
				original_tag = AZR
			}
		}

		highlight_states = {
			highlight_state_targets = {	
				state = 230
				state = 231
				state = 826
				state = 229
				state = 1044
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						230 = { owns_or_subject_of = yes }
						231 = { owns_or_subject_of = yes }
						826 = { owns_or_subject_of = yes }
						229 = { owns_or_subject_of = yes }
						1044 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CAU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_transcaucasia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CAU
			add_stability = 0.1
			set_capital = { state = 231 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_benelux = {
	
		priority = 986
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 7
				state = 8
				state = 34
				state = 35
				state = 36
			    
                state = 965
				state = 1094
				state = 1095

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						6 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
						8 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
						35 = { owns_or_subject_of = yes }
						36 = { owns_or_subject_of = yes }
						
						965 = { owns_or_subject_of = yes }
						1094 = { owns_or_subject_of = yes }
						1095 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BEN } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_benelux
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BEN
			add_stability = 0.2
			set_capital = { state = 7 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				6 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }

                965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }

			}
		}
	}

	formable_nations_baltic = {
	
	    priority = 985
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0

		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 11
				state = 814
				state = 815
				state = 189
				state = 12
				state = 190
				state = 808
				state = 809
				state = 810
				state = 13
				state = 191
				state = 811
				state = 812
				state = 813
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						11 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						12 = { owns_or_subject_of = yes }
						190 = { owns_or_subject_of = yes }
						808 = { owns_or_subject_of = yes }
						809 = { owns_or_subject_of = yes }
						810 = { owns_or_subject_of = yes }
						13 = { owns_or_subject_of = yes }
						191 = { owns_or_subject_of = yes }
						811 = { owns_or_subject_of = yes }
						812 = { owns_or_subject_of = yes }
						813 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BAL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_baltic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BAL
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				11 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				13 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
			}
			188 = { add_core_of = ROOT }
		}
	}

	formable_nations_central_america = {
	
		priority = 984
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 313
				state = 312
				state = 314
				state = 317
				state = 316
			}
		}
		
		available = {
			OR = {
				AND = {
					313 = { owns_or_subject_of = yes }
					312 = { owns_or_subject_of = yes }
					314 = { owns_or_subject_of = yes }
					317 = { owns_or_subject_of = yes }
					316 = { owns_or_subject_of = yes }
				}
				AND = {
					is_ai = no
					has_global_flag = debug_mode
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CEN } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_central_america
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CEN
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				313 = { add_core_of = ROOT }
				312 = { add_core_of = ROOT }
				314 = { add_core_of = ROOT }
				317 = { add_core_of = ROOT }
				316 = { add_core_of = ROOT }
			}
			304 = { add_core_of = ROOT }
			685 = { add_core_of = ROOT }
			311 = { add_core_of = ROOT }
			474 = { add_core_of = ROOT }
			475 = { add_core_of = ROOT }
		}
	}

	formable_nations_hungarian_kingdom = {
	
		priority = 983
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = HUN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 43
				state = 154
				state = 155
				state = 70
				state = 71
				state = 73
				state = 664
				state = 76
				state = 82
				state = 83
				state = 84
				state = 764
				state = 45
				
				state = 913
				state = 996
				state = 1104

			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }
						76 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						45 = { owns_or_subject_of = yes }
						
						913 = { owns_or_subject_of = yes }
						996 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_HUK } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hungarian_kingdom
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_HUK
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				
				913 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }				
			}
		}
	}

	formable_nations_kievan_rus = {
	
		priority = 983
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = BLR
				original_tag = UKR
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 196
				state = 200
				state = 227
				state = 221
				state = 228
				state = 89
				state = 91
				state = 93
				state = 80
				state = 766
				state = 192
				state = 197
				state = 834
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 258
				state = 260
				state = 253
				state = 254
				state = 216
				state = 351
				state = 248
				state = 247
				state = 264
				state = 263
				state = 244
				state = 208
				state = 195
				state = 209
				state = 210
				state = 246
				state = 242
				state = 224
				state = 243
				state = 220
				state = 240
				state = 222
				state = 205
				state = 223
				state = 219
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
						200 = { owns_or_subject_of = yes }
						227 = { owns_or_subject_of = yes }
						221 = { owns_or_subject_of = yes }
						228 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						197 = { owns_or_subject_of = yes }
						834 = { owns_or_subject_of = yes }
						
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						
						258 = { owns_or_subject_of = yes }
						260 = { owns_or_subject_of = yes }
						253 = { owns_or_subject_of = yes }
						254 = { owns_or_subject_of = yes }
						216 = { owns_or_subject_of = yes }
						351 = { owns_or_subject_of = yes }
						248 = { owns_or_subject_of = yes }
						247 = { owns_or_subject_of = yes }
						264 = { owns_or_subject_of = yes }
						263 = { owns_or_subject_of = yes }
						244 = { owns_or_subject_of = yes }
						208 = { owns_or_subject_of = yes }
						195 = { owns_or_subject_of = yes }
						209 = { owns_or_subject_of = yes }
						210 = { owns_or_subject_of = yes }
						246 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }
						220 = { owns_or_subject_of = yes }
						240 = { owns_or_subject_of = yes }
						222 = { owns_or_subject_of = yes }
						205 = { owns_or_subject_of = yes }
						223 = { owns_or_subject_of = yes }
						219 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_KIE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_kievan_rus
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_KIE
			add_stability = 0.15
			set_capital = { state = 202 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				215 = { add_core_of = ROOT }
				216 = { add_core_of = ROOT }
				214 = { add_core_of = ROOT }
				195 = { add_core_of = ROOT }
				208 = { add_core_of = ROOT }
				209 = { add_core_of = ROOT }
				210 = { add_core_of = ROOT }
				244 = { add_core_of = ROOT }
				263 = { add_core_of = ROOT }
				246 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				205 = { add_core_of = ROOT }
				220 = { add_core_of = ROOT }
				222 = { add_core_of = ROOT }
				223 = { add_core_of = ROOT }
				219 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				260 = { add_core_of = ROOT }
				258 = { add_core_of = ROOT }
				223 = { add_core_of = ROOT }
				254 = { add_core_of = ROOT }
				253 = { add_core_of = ROOT }
				248 = { add_core_of = ROOT }
				246 = { add_core_of = ROOT }
				247 = { add_core_of = ROOT }
				264 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
				351 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_bulgarian_empire = {
	
		priority = 982
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = BUL
				has_global_flag = no_limit
			}
			#NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 48
				state = 211
				state = 212
				state = 801
				state = 44
				state = 805
				state = 106
				state = 107
				state = 108
				state = 45
				state = 764
				state = 802
				state = 803
				state = 76
				state = 77
				state = 78
				state = 79
				state = 80
				state = 46
				state = 81
				state = 82
				state = 83
				state = 84
				state = 766
				state = 43
				state = 154
				state = 184
			    
				state = 731
                state = 910
                state = 950
                state = 953
				state = 955

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						48 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }
						106 = { owns_or_subject_of = yes }
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						45 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }
						76 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						
						731 = { owns_or_subject_of = yes }
						910 = { owns_or_subject_of = yes }
                        950 = { owns_or_subject_of = yes }
						953 = { owns_or_subject_of = yes }
						955 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BUE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_bulgarian_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BUE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }

                731 = { add_core_of = ROOT }
                910 = { add_core_of = ROOT }
                950 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }

			}
		}
	}

	formable_nations_gran_colombia = {
	
		priority = 981
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = COL
				original_tag = VEN
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 306
				state = 486
				state = 493
				state = 307
				state = 488
				state = 489
				state = 687
				state = 490
				state = 491
				state = 305
				
				state = 948
				state = 1051
				state = 1073
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						306 = { owns_or_subject_of = yes }
						486 = { owns_or_subject_of = yes }
						493 = { owns_or_subject_of = yes }
						307 = { owns_or_subject_of = yes }
						488 = { owns_or_subject_of = yes }
						489 = { owns_or_subject_of = yes }
						687 = { owns_or_subject_of = yes }
						490 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }
						305 = { owns_or_subject_of = yes }
						
						948 = { owns_or_subject_of = yes }
						1051 = { owns_or_subject_of = yes }
						1073 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GCO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_gran_colombia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GCO
			add_stability = 0.1
			set_capital = { state = 306 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				306 = { add_core_of = ROOT }
				486 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
				490 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				305 = { add_core_of = ROOT }
				307 = { add_core_of = ROOT }
				488 = { add_core_of = ROOT }
				489 = { add_core_of = ROOT }
				687 = { add_core_of = ROOT }
				
				948 = { add_core_of = ROOT }
				1051 = { add_core_of = ROOT }
				1073 = { add_core_of = ROOT }
				
			}
			304 = { add_core_of = ROOT }
			685 = { add_core_of = ROOT }
		}
	}

	formable_nations_mexican_empire = {
	
		priority = 980
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = MEX
				has_global_flag = no_limit
			}
		}

		highlight_states = { 
			highlight_state_targets = {
				state = 277
				state = 474
				state = 475
				state = 476
				state = 477
				state = 478
				state = 479
				state = 480
				state = 481
				state = 482
				state = 483
				state = 484
				state = 485
				state = 375
				state = 376
				state = 377
				state = 378
				state = 379
				state = 380
				state = 313
				state = 314
				state = 312
				state = 317
				state = 316
				state = 311
				
				state = 929
				state = 930
				state = 931
				state = 932
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						277 = { owns_or_subject_of = yes }
						474 = { owns_or_subject_of = yes }
						475 = { owns_or_subject_of = yes }
						476 = { owns_or_subject_of = yes }
						477 = { owns_or_subject_of = yes }
						478 = { owns_or_subject_of = yes }
						479 = { owns_or_subject_of = yes }
						480 = { owns_or_subject_of = yes }
						481 = { owns_or_subject_of = yes }
						482 = { owns_or_subject_of = yes }
						483 = { owns_or_subject_of = yes }
						484 = { owns_or_subject_of = yes }
						485 = { owns_or_subject_of = yes }
						375 = { owns_or_subject_of = yes }
						376 = { owns_or_subject_of = yes }
						377 = { owns_or_subject_of = yes }
						378 = { owns_or_subject_of = yes }
						379 = { owns_or_subject_of = yes }
						380 = { owns_or_subject_of = yes }
						313 = { owns_or_subject_of = yes }
						314 = { owns_or_subject_of = yes }
						312 = { owns_or_subject_of = yes }
						317 = { owns_or_subject_of = yes }
						316 = { owns_or_subject_of = yes }
						311 = { owns_or_subject_of = yes }
						
						929 = { owns_or_subject_of = yes }
				        930 = { owns_or_subject_of = yes }
				        931 = { owns_or_subject_of = yes }
				        932 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MEE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_mexican_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MEE
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				277 = { add_core_of = ROOT }
				474 = { add_core_of = ROOT }
				475 = { add_core_of = ROOT }
				476 = { add_core_of = ROOT }
				477 = { add_core_of = ROOT }
				478 = { add_core_of = ROOT }
				479 = { add_core_of = ROOT }
				480 = { add_core_of = ROOT }
				481 = { add_core_of = ROOT }
				482 = { add_core_of = ROOT }
				483 = { add_core_of = ROOT }
				484 = { add_core_of = ROOT }
				485 = { add_core_of = ROOT }
				375 = { add_core_of = ROOT }
				376 = { add_core_of = ROOT }
				377 = { add_core_of = ROOT }
				378 = { add_core_of = ROOT }
				379 = { add_core_of = ROOT }
				380 = { add_core_of = ROOT }
				313 = { add_core_of = ROOT }
				314 = { add_core_of = ROOT }
				312 = { add_core_of = ROOT }
				317 = { add_core_of = ROOT }
				316 = { add_core_of = ROOT }
				311 = { add_core_of = ROOT }
				
				929 = { add_core_of = ROOT }
				930 = { add_core_of = ROOT }
				931 = { add_core_of = ROOT }
				932 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_greater_albania = {
	
		priority = 979
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = ALB
				has_global_flag = no_limit
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 44
				state = 805
				state = 802
				state = 105
				state = 106
				state = 803
				
				state = 185
				state = 910
				state = 950
				state = 963
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						105 = { owns_or_subject_of = yes }
						106 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }
						
						910 = { owns_or_subject_of = yes }
						950 = { owns_or_subject_of = yes }
						963 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GAL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_albania
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GAL
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
						
				910 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_balkan = {
	
	    priority = 978
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = ALB
				original_tag = GRE
				original_tag = YUG
				original_tag = BUL
				original_tag = CRO
				original_tag = SER
				original_tag = MNT
				original_tag = MAC
				original_tag = SLV
				original_tag = BOS
				original_tag = ROM
				original_tag = TUR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 45
				state = 102
				state = 853
				state = 103
				state = 104
				state = 804
				state = 105
				state = 106
				state = 107
				state = 108
				state = 802
				state = 803
				state = 109
				state = 764
				state = 163
				state = 48
				state = 211
				state = 212
				state = 801
				state = 44
				state = 805
				state = 47
				state = 182
				state = 184
				state = 185
				state = 186
				state = 187
				state = 731
				state = 164
				state = 76
				state = 77
				state = 78
				state = 79
				state = 80
				state = 46
				state = 81
				state = 82
				state = 83
				state = 84
				state = 766

				state = 910
				state = 950
				state = 952
				state = 953
				state = 955
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
				state = 341
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						45 = { owns_or_subject_of = yes }
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
						105 = { owns_or_subject_of = yes }
						106 = { owns_or_subject_of = yes }
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }						
						48 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }						
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }						
						47 = { owns_or_subject_of = yes }
						182 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						185 = { owns_or_subject_of = yes }
						186 = { owns_or_subject_of = yes }
						187 = { owns_or_subject_of = yes }
						731 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }						
						76 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						
						910 = { owns_or_subject_of = yes }
						950 = { owns_or_subject_of = yes }
						952 = { owns_or_subject_of = yes }
						953 = { owns_or_subject_of = yes }
						955 = { owns_or_subject_of = yes }
						956 = { owns_or_subject_of = yes }
						958 = { owns_or_subject_of = yes }
						959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
						963 = { owns_or_subject_of = yes }
				        341 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BAK } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_balkan
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BAK
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				45 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }						
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }						
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }				
				47 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }						
				76 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }

				910 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
			}
			797 = { add_claim_by = ROOT }
			43 = { add_claim_by = ROOT }
			154 = { add_claim_by = ROOT }
			155 = { add_claim_by = ROOT }
			913 = { add_claim_by = ROOT }
			1104 = { add_claim_by = ROOT }
		}
	}

	formable_nations_poland_hungary = {
	
		priority = 977
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = HUN
				original_tag = DNZ
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 807
				state = 762
				state = 43
				state = 154
				state = 155
				state = 70
				state = 71
				state = 73
				state = 664
				state = 76
				state = 82
				state = 83
				state = 84
				state = 764
				state = 45
				state = 11
				state = 814
				state = 815
				state = 189
				state = 188
				state = 12
				state = 190
				state = 808
				state = 809
				state = 810
				state = 13
				state = 191
				state = 811
				state = 812
				state = 813
				state = 807
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 224
				state = 242
				state = 243

                state = 913
				state = 934
				state = 935
				state = 936
				state = 996
				state = 1104

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }						
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }						
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }											
						76 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }						
						45 = { owns_or_subject_of = yes }					
						11 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						12 = { owns_or_subject_of = yes }
						190 = { owns_or_subject_of = yes }
						809 = { owns_or_subject_of = yes }
						808 = { owns_or_subject_of = yes }
						810 = { owns_or_subject_of = yes }
						13 = { owns_or_subject_of = yes }
						812 = { owns_or_subject_of = yes }
						811 = { owns_or_subject_of = yes }
						191 = { owns_or_subject_of = yes }
						813 = { owns_or_subject_of = yes }				
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }						
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }						
						224 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }

                        913 = { owns_or_subject_of = yes }
				        934 = { owns_or_subject_of = yes }
				        935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_POH } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_poland_hungary
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_POH
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				188 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				11 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				10 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				13 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }

                913 = { add_core_of = ROOT }
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }

			}
			5 = { add_core_of = ROOT }
			763 = { add_core_of = ROOT }
			163 = { add_core_of = ROOT }
		}
	}

	formable_nations_carpathia = {
		
		priority = 976
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = HUN
				original_tag = SLO
				original_tag = ROM
				original_tag = MOL
				original_tag = CZE
				original_tag = POL
				original_tag = YUG
				original_tag = SER
				original_tag = D09
				original_tag = TRA
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 43
				state = 154
				state = 155
				state = 70
				state = 664
				state = 71
				state = 88
				state = 89
				state = 80
				state = 79
				state = 78
				state = 766
				state = 81
				state = 46
				state = 77
				state = 45
				state = 764
				state = 83
				state = 84
				state = 82
				state = 76
				state = 73
				
				state = 913
				state = 955
				state = 996
				state = 1104

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						76 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }						
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }

						913 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CAP } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_carpathia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CAP
			add_stability = 0.1
			set_capital = { state = 43 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				73 = { owns_or_subject_of = yes }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				
				913 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_angevin_empire = {
	
		priority = 975
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = ENG
				original_tag = FRA
				original_tag = BRI
				original_tag = WLS
				has_global_flag = no_limit
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 131
				state = 130
				state = 132
				state = 128
				state = 122
				state = 129
				state = 125
				state = 338
				state = 123
				state = 127
				state = 126
				state = 14
				state = 15
				state = 30
				state = 19
				state = 806
				state = 23
				state = 25
				state = 26
				state = 33
				
				state = 1041
				state = 1076
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {	
						131 = { owns_or_subject_of = yes }
						130 = { owns_or_subject_of = yes }
						132 = { owns_or_subject_of = yes }
						128 = { owns_or_subject_of = yes }
						122 = { owns_or_subject_of = yes }
						129 = { owns_or_subject_of = yes }
						125 = { owns_or_subject_of = yes }
						338 = { owns_or_subject_of = yes }
						123 = { owns_or_subject_of = yes }
						127 = { owns_or_subject_of = yes }
						126 = { owns_or_subject_of = yes }						
						14 = { owns_or_subject_of = yes }
						15 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }						
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }	
						
						1041 = { owns_or_subject_of = yes }
						1076 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ANE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_angevin_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ANE
			add_stability = 0.2
			set_capital = { state = 126 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				131 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				122 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				123 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				
				1041 = { add_core_of = ROOT }
				1076 = { add_core_of = ROOT }				
			}
			121 = { add_core_of = ROOT }
			133 = { add_core_of = ROOT }
			136 = { add_core_of = ROOT }
			120 = { add_core_of = ROOT }
			1042 = { add_core_of = ROOT }
			971 = { add_core_of = ROOT }
			970 = { add_core_of = ROOT }
			29 = { add_core_of = ROOT }
			785 = { add_core_of = ROOT }
			18 = { add_core_of = ROOT }
			28 = { add_core_of = ROOT }
			17 = { add_core_of = ROOT }
			27 = { add_core_of = ROOT }
			24 = { add_core_of = ROOT }
			16 = { add_core_of = ROOT }
			20 = { add_core_of = ROOT }
			32 = { add_core_of = ROOT }
			735 = { add_core_of = ROOT }
			21 = { add_core_of = ROOT }
			851 = { add_core_of = ROOT }
			22 = { add_core_of = ROOT }
			31 = { add_core_of = ROOT }
		}
	}

	formable_nations_macedonian_empire = {
	
		priority = 974
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = GRE
				original_tag = MAC
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 47
				state = 184
				state = 185
				state = 187
				state = 731
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 348
				state = 350
				state = 352
				state = 800
				state = 353
				state = 356
				state = 266
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 106
				state = 211
				state = 212
				state = 801				
				state = 291
				state = 675
				state = 676
				state = 454
				state = 553
				state = 677
				state = 799
				state = 554
				state = 680
				state = 455
				state = 444
				state = 445
				state = 443
				state = 440
				state = 441
				state = 787
				state = 442
				state = 441
				state = 453
				state = 907
				state = 447
				state = 456
				state = 457
				state = 415
				state = 267
				state = 656
				state = 44
				state = 805
				state = 77
				state = 349
				
				state = 164
				state = 183
				state = 347
				state = 354
				state = 355
				state = 911
				state = 949
				state = 966
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 986
				state = 987
				state = 988
				state = 995
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1093
				
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						47 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						185 = { owns_or_subject_of = yes }
						187 = { owns_or_subject_of = yes }
						731 = { owns_or_subject_of = yes }
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }						
						266 = { owns_or_subject_of = yes }
						410 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
						412 = { owns_or_subject_of = yes }
						413 = { owns_or_subject_of = yes }
						414 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
						417 = { owns_or_subject_of = yes }
						418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
						420 = { owns_or_subject_of = yes }
						421 = { owns_or_subject_of = yes }
						106 = { owns_or_subject_of = yes }						
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }						
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						454 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }						
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						440 = { owns_or_subject_of = yes }
						441 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }
						442 = { owns_or_subject_of = yes }
						441 = { owns_or_subject_of = yes }						
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }						
						415 = { owns_or_subject_of = yes }
						267 = { owns_or_subject_of = yes }						
						656 = { owns_or_subject_of = yes }
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						
						164 = { owns_or_subject_of = yes }
				        183 = { owns_or_subject_of = yes }
				        347 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
				        355 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        980 = { owns_or_subject_of = yes }
				        981 = { owns_or_subject_of = yes }
				        982 = { owns_or_subject_of = yes }
						983 = { owns_or_subject_of = yes }
				        984 = { owns_or_subject_of = yes }
				        986 = { owns_or_subject_of = yes }
				        987 = { owns_or_subject_of = yes }
				        988 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1008 = { owns_or_subject_of = yes }
				        1009 = { owns_or_subject_of = yes }
				        1010 = { owns_or_subject_of = yes }
				        1011 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
						1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
				        1093 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MAC } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_macedonian_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MAC
			add_stability = 0.2
			set_capital = { state = 731 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				47 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }				
				349 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				
				164 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
				

			}
			405 = { add_core_of = ROOT }
			742 = { add_core_of = ROOT }
			584 = { add_core_of = ROOT }
			77 = { add_core_of = ROOT }
		}
	}

	formable_nations_south_america = {#continent
	
		priority = 6
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = south_america }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
				OR = {
				is_on_continent = south_america	
				state = 649
				}
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = south_america_requirement_tooltip 
				OR = {
					all_state = {
						OR = {
							AND = {
								is_on_continent = south_america
								is_controlled_by = ROOT
								NOT = {
									state = 690
									state = 693
									state = 689
									state = 315
									state = 318
									state = 319
									state = 692
									state = 694
									state = 308
									state = 686
									state = 311
									state = 313
									state = 312
									state = 314
									state = 316
									state = 317
									state = 299
									state = 720
								}
							}
							NOT = {
								is_on_continent = south_america
							}
							OR = {
								state = 690
								state = 693
								state = 689
								state = 315
								state = 318
								state = 319
								state = 692
								state = 694
								state = 308
								state = 686
								state = 311
								state = 313
								state = 312
								state = 314
								state = 316
								state = 317
								state = 299
								state = 720
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_SOU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_south_america
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_SOU
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = {
						is_on_continent = south_america
						NOT = { 
							is_core_of = ROOT 
							state = 690
							state = 693
							state = 689
							state = 315
							state = 318
							state = 319
							state = 692
							state = 694
							state = 308
							state = 686
							state = 311
							state = 313
							state = 312
							state = 314
							state = 316
							state = 317
						}
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_world = {
	
	    priority = 1
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
		}

		available = {
			OR = {
				AND = {
					OR = { is_subject = no has_global_flag = puppets_allowed }
					all_state = { owns_or_subject_of = yes }
					
				}
				AND = {
					is_ai = no
					has_global_flag = debug_mode
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_WOR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_world
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_WOR
			add_stability = 0.5
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_ottomans = {
	
	    priority = 973
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = TUR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 800
				state = 353
				state = 354
				state = 355
				state = 356
				state = 799
				state = 47
				state = 182
				state = 184
				state = 185
				state = 186
				state = 187
				state = 731
				state = 164
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				state = 183
				state = 48
				state = 211
				state = 212
				state = 801
				state = 291
				state = 675
				state = 676
				state = 679
				state = 855
				state = 453
				state = 907
				state = 447
				state = 452
				state = 456
				state = 457
				state = 106
				state = 802
				state = 803
				state = 108
				state = 107
				state = 104
				state = 804
				state = 105
				state = 44
				state = 805
				state = 656
				
				state = 910
				state = 911
				state = 949
				state = 950
				state = 953
				state = 963
				state = 966
				state = 995
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						347 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						47 = { owns_or_subject_of = yes }
						182 = { owns_or_subject_of = yes }
				        184 = { owns_or_subject_of = yes }
				        185 = { owns_or_subject_of = yes }
						186 = { owns_or_subject_of = yes }
				        187 = { owns_or_subject_of = yes }
				        731 = { owns_or_subject_of = yes }
				        164 = { owns_or_subject_of = yes }
				        553 = { owns_or_subject_of = yes }
				        554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
				        799 = { owns_or_subject_of = yes }
				        680 = { owns_or_subject_of = yes }
				        454 = { owns_or_subject_of = yes }
				        455 = { owns_or_subject_of = yes }
						183 = { owns_or_subject_of = yes }
				        48 = { owns_or_subject_of = yes }
				        211 = { owns_or_subject_of = yes }
				        212 = { owns_or_subject_of = yes }
				        801 = { owns_or_subject_of = yes }
				        291 = { owns_or_subject_of = yes }
				        675 = { owns_or_subject_of = yes }
				        676 = { owns_or_subject_of = yes }
				        679 = { owns_or_subject_of = yes }
				        855 = { owns_or_subject_of = yes }
				        453 = { owns_or_subject_of = yes }
				        907 = { owns_or_subject_of = yes }
				        447 = { owns_or_subject_of = yes }
				        452 = { owns_or_subject_of = yes }
				        456 = { owns_or_subject_of = yes }
				        457 = { owns_or_subject_of = yes }
				        106 = { owns_or_subject_of = yes }
				        802 = { owns_or_subject_of = yes }
				        803 = { owns_or_subject_of = yes }
				        108 = { owns_or_subject_of = yes }
				        107 = { owns_or_subject_of = yes }
				        104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
				        105 = { owns_or_subject_of = yes }
						44 = { owns_or_subject_of = yes }
				        805 = { owns_or_subject_of = yes }
				        656 = { owns_or_subject_of = yes }

						910 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        950 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_OTT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}

		icon = formable_nations_ottomans
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_OTT
			set_capital = { state = 797 }
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
			    553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }

			}
			679 = { add_core_of = ROOT }
			164 = { add_core_of = ROOT }
			46 = { add_core_of = ROOT }
			81 = { add_core_of = ROOT }
			79 = { add_core_of = ROOT }
			766 = { add_core_of = ROOT }
			137 = { add_core_of = ROOT }
		}
	}

	formable_nations_greater_israel = {
	
		priority = 972
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = ISR
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 453
				state = 907
				state = 447
				state = 456
				state = 457
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				
			}
		}
		
		available = {
			
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }
						
						949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
			            1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GIS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_israel
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GIS
			add_stability = 0.1
			set_capital = { state = 454 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				set_victory_points = {
					province = 1086
					value = 10
				}
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_mughals = {
	
		priority = 971
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = AFG
				original_tag = PAK
				original_tag = RAJ
				original_tag = BAN
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 440
				state = 787
				state = 442
				state = 443
				state = 444
				state = 445
				state = 424
				state = 425
				state = 426
				state = 427
				state = 428
				state = 429
				state = 431
				state = 433
				state = 435
				state = 436
				state = 437
				state = 438
				state = 439
				state = 441
				state = 430
				state = 267
				state = 415
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1090
				state = 1092
				state = 1093
				state = 1099
				state = 1100
				state = 1101
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						440 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }
						
						424 = { owns_or_subject_of = yes }
						425 = { owns_or_subject_of = yes }
						426 = { owns_or_subject_of = yes }
						427 = { owns_or_subject_of = yes }
						428 = { owns_or_subject_of = yes }
						429 = { owns_or_subject_of = yes }
						431 = { owns_or_subject_of = yes }
						433 = { owns_or_subject_of = yes }
						435 = { owns_or_subject_of = yes }
						436 = { owns_or_subject_of = yes }
						437 = { owns_or_subject_of = yes }
						438 = { owns_or_subject_of = yes }
						439 = { owns_or_subject_of = yes }
						441 = { owns_or_subject_of = yes }
						
						430 = { owns_or_subject_of = yes }
						
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }
						
						1008 = { owns_or_subject_of = yes }
						1009 = { owns_or_subject_of = yes }
						1010 = { owns_or_subject_of = yes }
						1011 = { owns_or_subject_of = yes }
						1090 = { owns_or_subject_of = yes }
						1092 = { owns_or_subject_of = yes }
						1093 = { owns_or_subject_of = yes }
						1099 = { owns_or_subject_of = yes }
						1100 = { owns_or_subject_of = yes }
						1101 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MUG } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_mughals
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MUG
			add_stability = 0.15
			set_capital = { state = 439 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				424 = { add_core_of = ROOT }
				425 = { add_core_of = ROOT }
				426 = { add_core_of = ROOT }
				427 = { add_core_of = ROOT }
				428 = { add_core_of = ROOT }
				429 = { add_core_of = ROOT }
				430 = { add_core_of = ROOT }
				431 = { add_core_of = ROOT }
				433 = { add_core_of = ROOT }
				435 = { add_core_of = ROOT }
				436 = { add_core_of = ROOT }
				437 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				438 = { add_core_of = ROOT }
				439 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
			}
			321 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_persian_empire = {
	
		priority = 970
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = PER
				original_tag = TAJ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 266
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 267
				state = 415
				state = 442
				state = 443
				state = 444
				state = 445
				state = 291
				state = 675
				state = 676
				state = 584
				state = 832
				state = 830
				state = 742
				state = 656
				state = 454
				state = 553
				state = 677
				state = 799
				state = 554
				state = 680
				state = 455
				state = 451
				state = 663
				state = 453
				state = 907
				state = 447
				state = 456
				state = 457
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 800
				state = 353
				state = 354
				state = 355
				state = 356
				state = 799
				state = 164
				state = 183
				state = 187
				state = 77
				state = 211
				state = 184
				state = 731
				state = 826
				state = 231
				state = 229
				state = 230
				state = 452				
				state = 77
				state = 405
				state = 585
				state = 732
				
				state = 415
				state = 949
				state = 966
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1017
				state = 1021
				state = 1022
				state = 1044
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1093
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						266 = { owns_or_subject_of = yes }
						410 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
						412 = { owns_or_subject_of = yes }
						413 = { owns_or_subject_of = yes }
						414 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
						417 = { owns_or_subject_of = yes }
						418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
						420 = { owns_or_subject_of = yes }
						421 = { owns_or_subject_of = yes }						
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }						
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }			
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						584 = { owns_or_subject_of = yes }
						832 = { owns_or_subject_of = yes }
						830 = { owns_or_subject_of = yes }
						742 = { owns_or_subject_of = yes }					
						656 = { owns_or_subject_of = yes }								
						454 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }						
						451 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }						
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						347 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }
						183 = { owns_or_subject_of = yes }
						187 = { owns_or_subject_of = yes }						
						77 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						731 = { owns_or_subject_of = yes }						
						826 = { owns_or_subject_of = yes }
						231 = { owns_or_subject_of = yes }
						229 = { owns_or_subject_of = yes }
						230 = { owns_or_subject_of = yes }				
						77 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						732 = { owns_or_subject_of = yes }
						
						415 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
						966 = { owns_or_subject_of = yes }
				        980 = { owns_or_subject_of = yes }
				        981 = { owns_or_subject_of = yes }
				        982 = { owns_or_subject_of = yes }
						983 = { owns_or_subject_of = yes }
				        984 = { owns_or_subject_of = yes }
				        985 = { owns_or_subject_of = yes }
				        986 = { owns_or_subject_of = yes }
				        987 = { owns_or_subject_of = yes }
				        988 = { owns_or_subject_of = yes }
				        1008 = { owns_or_subject_of = yes }
				        1009 = { owns_or_subject_of = yes }
				        1010 = { owns_or_subject_of = yes }
				        1011 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
						1022 = { owns_or_subject_of = yes }
				        1044 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
						1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
				        1093 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_PEE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_persian_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_PEE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				266 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }				
				454 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }				
				77 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				
				415 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				985 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_north_sea_empire = {
	
		priority = 969
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = ENG
				original_tag = DEN
				original_tag = NOR
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 125
				state = 126
				state = 127
				state = 128
				state = 129
				state = 130
				state = 131
				state = 132
				state = 338
				state = 110
				state = 142
				state = 143
				state = 144
				state = 37
				state = 99
				state = 138
				state = 121
				
				state = 964
				state = 967
				state = 969
								state = 1024
				state = 1025
				state = 1031
				state = 1032
				state = 1033
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						125 = { owns_or_subject_of = yes }
						126 = { owns_or_subject_of = yes }
						127 = { owns_or_subject_of = yes }
						128 = { owns_or_subject_of = yes }
						129 = { owns_or_subject_of = yes }
						130 = { owns_or_subject_of = yes }
						131 = { owns_or_subject_of = yes }
						132 = { owns_or_subject_of = yes }
						338 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }						
						110 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
						144 = { owns_or_subject_of = yes }			
						37 = { owns_or_subject_of = yes }
						99 = { owns_or_subject_of = yes }						
						138 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }
						
						964 = { owns_or_subject_of = yes }
				        967 = { owns_or_subject_of = yes }
				        969 = { owns_or_subject_of = yes }
						1024 = { owns_or_subject_of = yes }
				        1025 = { owns_or_subject_of = yes }
				        1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
				        1033 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_NSE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_north_sea_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_NSE
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				131 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				121 = { add_core_of = ROOT }
				
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1024 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_inca_empire = {
	
		priority = 968
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = PRU
				original_tag = ECU
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 492
				state = 494
				state = 303
				state = 490
				state = 491
				state = 305
				state = 302
				state = 506
				state = 508
				
				state = 954
				state = 1061
				state = 1064
				state = 1071

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						492 = { owns_or_subject_of = yes }
						494 = { owns_or_subject_of = yes }
						303 = { owns_or_subject_of = yes }
						490 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }						
						305 = { owns_or_subject_of = yes }						
						302 = { owns_or_subject_of = yes }
						506 = { owns_or_subject_of = yes }
						508 = { owns_or_subject_of = yes }
						
						954 = { owns_or_subject_of = yes }
				        1061 = { owns_or_subject_of = yes }
				        1064 = { owns_or_subject_of = yes }
				        1071 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_INC } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_inca_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_INC
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				302 = { add_core_of = ROOT }
				506 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				492 = { add_core_of = ROOT }
				494 = { add_core_of = ROOT }
				303 = { add_core_of = ROOT }
				490 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				305 = { add_core_of = ROOT }
				
				954 = { add_core_of = ROOT }
				1061 = { add_core_of = ROOT }
				1064 = { add_core_of = ROOT }
				1071 = { add_core_of = ROOT }

			}
		}
	}

	formable_nations_greater_finland = {
	
		priority = 967
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = FIN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 111
				state = 145
				state = 146
				state = 147
				state = 148
				state = 149
				state = 150
				state = 722
				state = 195
				state = 216
				state = 215
				state = 213
				
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						111 = { owns_or_subject_of = yes }
						145 = { owns_or_subject_of = yes }
						146 = { owns_or_subject_of = yes }
						147 = { owns_or_subject_of = yes }
						148 = { owns_or_subject_of = yes }
						149 = { owns_or_subject_of = yes }
						150 = { owns_or_subject_of = yes }
						722 = { owns_or_subject_of = yes }						
						195 = { owns_or_subject_of = yes }
						216 = { owns_or_subject_of = yes }
						215 = { owns_or_subject_of = yes }
						213 = { owns_or_subject_of = yes }
						
						1036 = { owns_or_subject_of = yes }
				        1037 = { owns_or_subject_of = yes }
				        1038 = { owns_or_subject_of = yes }
				        1039 = { owns_or_subject_of = yes }
				        1040 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GFI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_finland
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GFI
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				195 = { add_core_of = ROOT }
				216 = { add_core_of = ROOT }
				215 = { add_core_of = ROOT }
				213 = { add_core_of = ROOT }
				
				1036 = { add_core_of = ROOT }
				1037 = { add_core_of = ROOT }
				1038 = { add_core_of = ROOT }
				1039 = { add_core_of = ROOT }
				1040 = { add_core_of = ROOT }
				
			}
			13 = { add_claim_by = ROOT }
			811 = { add_claim_by = ROOT }
			812 = { add_claim_by = ROOT }
			813 = { add_claim_by = ROOT }
			191 = { add_claim_by = ROOT }
			208 = { add_claim_by = ROOT }
			666 = { add_claim_by = ROOT }
			144 = { add_claim_by = ROOT }
		}
	}

	formable_nations_turkestan = {
	
		priority = 966
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = KAZ
				original_tag = TUR
				original_tag = SIK
				original_tag = TAN
				original_tag = AZR
				original_tag = TMS
				original_tag = UZB
				original_tag = KYR
				original_tag = ALT
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 800
				state = 353
				state = 354
				state = 355
				state = 356
				state = 229
				state = 230
				state = 231
				state = 826
				state = 232
				state = 233
				state = 828
				state = 827
				state = 821
				state = 236
				state = 237
				state = 654
				state = 406
				state = 407
				state = 402
				state = 584
				state = 585
				state = 587
				state = 583
				state = 590
				state = 588
				state = 404
				state = 589
				state = 586
				state = 881
				state = 882
				state = 823
				state = 831
				state = 585
				state = 830
				state = 405
				state = 584
				state = 832
				state = 742
				state = 732
				state = 329
				
				state = 985
				state = 1044
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						347 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }						
						229 = { owns_or_subject_of = yes }
						230 = { owns_or_subject_of = yes }
						231 = { owns_or_subject_of = yes }
						826 = { owns_or_subject_of = yes }						
						232 = { owns_or_subject_of = yes }
						233 = { owns_or_subject_of = yes }
						828 = { owns_or_subject_of = yes }
						827 = { owns_or_subject_of = yes }
						821 = { owns_or_subject_of = yes }
						236 = { owns_or_subject_of = yes }
						237 = { owns_or_subject_of = yes }
						654 = { owns_or_subject_of = yes }						
						406 = { owns_or_subject_of = yes }
						407 = { owns_or_subject_of = yes }
						402 = { owns_or_subject_of = yes }
						584 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						587 = { owns_or_subject_of = yes }
						583 = { owns_or_subject_of = yes }
						590 = { owns_or_subject_of = yes }
						588 = { owns_or_subject_of = yes }
						404 = { owns_or_subject_of = yes }
						589 = { owns_or_subject_of = yes }
						586 = { owns_or_subject_of = yes }
						881 = { owns_or_subject_of = yes }
						882 = { owns_or_subject_of = yes }						
						823 = { owns_or_subject_of = yes }
						831 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						830 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }						
						584 = { owns_or_subject_of = yes }
						832 = { owns_or_subject_of = yes }					
						742 = { owns_or_subject_of = yes }						
						732 = { owns_or_subject_of = yes }						
						329 = { owns_or_subject_of = yes }
						
						985 = { owns_or_subject_of = yes }
				        1044 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_TKS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_turkestan
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_TKS
			add_stability = 0.2
			set_capital = { state = 405 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				236 = { add_core_of = ROOT }
				237 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				654 = { add_core_of = ROOT }
				329 = { add_core_of = ROOT }
				
				985 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				
			}
			287 = { add_core_of = ROOT }
			617 = { add_core_of = ROOT }
			618 = { add_core_of = ROOT }
			619 = { add_core_of = ROOT }
			183 = { add_core_of = ROOT }
		}
	}

	formable_nations_indochina = {
	
		priority = 965
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = SIA
				original_tag = LAO
				original_tag = VIN
				original_tag = CAM
				original_tag = BRM
				original_tag = FRI
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 286
				state = 671
				state = 741
				state = 670
				state = 724
				state = 289
				state = 868
				state = 869
				
				state = 288
				state = 640
				state = 924
				state = 925
				state = 926
				state = 927
				state = 928
				state = 1018
				state = 1019
				state = 1020
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						286 = { owns_or_subject_of = yes }
						671 = { owns_or_subject_of = yes }						
						741 = { owns_or_subject_of = yes }						
						670 = { owns_or_subject_of = yes }						
						724 = { owns_or_subject_of = yes }
						289 = { owns_or_subject_of = yes }
						868 = { owns_or_subject_of = yes }
						869 = { owns_or_subject_of = yes }						
						
						288 = { owns_or_subject_of = yes }
						640 = { owns_or_subject_of = yes }
						924 = { owns_or_subject_of = yes }
				        925 = { owns_or_subject_of = yes }
				        926 = { owns_or_subject_of = yes }
				        927 = { owns_or_subject_of = yes }
				        928 = { owns_or_subject_of = yes }
						1018 = { owns_or_subject_of = yes }
						1019 = { owns_or_subject_of = yes }
						1020 = { owns_or_subject_of = yes }
				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ICH } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_indochina
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ICH
			add_stability = 0.15
			set_capital = { state = 289 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				289 = { add_core_of = ROOT }
				868 = { add_core_of = ROOT }
				869 = { add_core_of = ROOT }
				724 = { add_core_of = ROOT }
				741 = { add_core_of = ROOT }
				670 = { add_core_of = ROOT }
				286 = { add_core_of = ROOT }
				671 = { add_core_of = ROOT }
				336 = { add_core_of = ROOT }
				
				288 = { owns_or_subject_of = yes }
				640 = { owns_or_subject_of = yes }
				924 = { owns_or_subject_of = yes }
				925 = { owns_or_subject_of = yes }
				926 = { owns_or_subject_of = yes }
				927 = { owns_or_subject_of = yes }
				928 = { owns_or_subject_of = yes }
				1018 = { owns_or_subject_of = yes }
				1019 = { owns_or_subject_of = yes }
				1020 = { owns_or_subject_of = yes }
				
			}
		}
	}

	formable_nations_swedish_empire = {
	
		priority = 964
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = SWE
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 38
				state = 111
				state = 124
				state = 138
				state = 139
				state = 140
				state = 141
				state = 143
				state = 145
				state = 146
				state = 147
				state = 148
				state = 149
				state = 150
				state = 666
				state = 722
				state = 968
				state = 969
				state = 1026
				state = 1028
				state = 1029
				state = 1030
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						38 = { owns_or_subject_of = yes }
						111 = { owns_or_subject_of = yes }
				        124 = { owns_or_subject_of = yes }
				        138 = { owns_or_subject_of = yes }
				        139 = { owns_or_subject_of = yes }
				        140 = { owns_or_subject_of = yes }
				        141 = { owns_or_subject_of = yes }
				        143 = { owns_or_subject_of = yes }
				        145 = { owns_or_subject_of = yes }
				        146 = { owns_or_subject_of = yes }
				        147 = { owns_or_subject_of = yes }
				        148 = { owns_or_subject_of = yes }
				        149 = { owns_or_subject_of = yes }
				        150 = { owns_or_subject_of = yes }
				        666 = { owns_or_subject_of = yes }
				        722 = { owns_or_subject_of = yes }
				        968 = { owns_or_subject_of = yes }
						969 = { owns_or_subject_of = yes }
				        1026 = { owns_or_subject_of = yes }
				        1028 = { owns_or_subject_of = yes }
				        1029 = { owns_or_subject_of = yes }
				        1030 = { owns_or_subject_of = yes }
				        1036 = { owns_or_subject_of = yes }
				        1037 = { owns_or_subject_of = yes }
				        1038 = { owns_or_subject_of = yes }
				        1039 = { owns_or_subject_of = yes }
				        1040 = { owns_or_subject_of = yes }						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_SEP } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_swedish_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_SEP
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				38 = { add_core_of = ROOT }
				111 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				968 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1028 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
				1030 = { add_core_of = ROOT }
				1036 = { add_core_of = ROOT }
				1037 = { add_core_of = ROOT }
				1038 = { add_core_of = ROOT }
				1039 = { add_core_of = ROOT }
				1040 = { add_core_of = ROOT }				
			}
			811 = { add_core_of = ROOT }
			812 = { add_core_of = ROOT }
			813 = { add_core_of = ROOT }
			13 = { add_core_of = ROOT }
			191 = { add_core_of = ROOT }
			12 = { add_core_of = ROOT }
			808 = { add_core_of = ROOT }
			810 = { add_core_of = ROOT }
			809 = { add_core_of = ROOT }
			109 = { add_core_of = ROOT }
		}
	}

	formable_nations_greater_tibet = {
	
		priority = 963
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = TIB
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 322
				state = 434
				state = 601
				state = 604
				state = 752
				state = 754
				state = 755
				state = 757
				state = 758
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						601 = { owns_or_subject_of = yes }
						322 = { owns_or_subject_of = yes }
						757 = { owns_or_subject_of = yes }
						758 = { owns_or_subject_of = yes }						
						323 = { owns_or_subject_of = yes }
						324 = { owns_or_subject_of = yes }						
						752 = { owns_or_subject_of = yes }
						604 = { owns_or_subject_of = yes }
						755 = { owns_or_subject_of = yes }
						753 = { owns_or_subject_of = yes }
						754 = { owns_or_subject_of = yes }
						283 = { owns_or_subject_of = yes }						
						287 = { owns_or_subject_of = yes }
						619 = { owns_or_subject_of = yes }
						759 = { owns_or_subject_of = yes }						
						441 = { owns_or_subject_of = yes }

						616 = { owns_or_subject_of = yes }
				        756 = { owns_or_subject_of = yes }
				        434 = { owns_or_subject_of = yes }
						1075 = { owns_or_subject_of = yes }
						1091 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GTI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_tibet
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GTI
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				322 = { add_core_of = ROOT }
				601 = { add_core_of = ROOT }
				604 = { add_core_of = ROOT }
				322 = { add_core_of = ROOT }
				757 = { add_core_of = ROOT }
				758 = { add_core_of = ROOT }
				323 = { add_core_of = ROOT }
				324 = { add_core_of = ROOT }
				752 = { add_core_of = ROOT }
				755 = { add_core_of = ROOT }
				753 = { add_core_of = ROOT }
				754 = { add_core_of = ROOT }
				283 = { add_core_of = ROOT }
				287 = { add_core_of = ROOT }
				619 = { add_core_of = ROOT }
				759 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				
				616 = { add_core_of = ROOT }
				756 = { add_core_of = ROOT }
				434 = { add_core_of = ROOT }
				1075 = { add_core_of = ROOT }
				1091 = { add_core_of = ROOT }
				
			}

			
		}
	}

	formable_nations_greater_yugoslavia = {
	
		priority = 962
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = YUG
				original_tag = CRO
				original_tag = SER
				original_tag = MNT
				original_tag = BUL
				original_tag = ALB
				original_tag = MAC
				original_tag = SLV
				original_tag = BOS
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 44
				state = 805
				state = 107
				state = 108
				state = 45
				state = 764
				state = 802
				state = 803
				state = 104
				state = 804
				state = 103
				state = 109
				state = 163
				state = 102
				state = 853
				state = 736
				state = 106
				state = 105
				state = 48
				state = 211
				state = 212
				state = 801
				state = 852
				
				state = 910
				state = 950
				state = 952
				state = 953
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }						
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						45 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }						
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }						
						103 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }						
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }						
						106 = { owns_or_subject_of = yes }						
						105 = { owns_or_subject_of = yes }						
						48 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }
						
						910 = { owns_or_subject_of = yes }
						950 = { owns_or_subject_of = yes }
				        952 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_YUG } } }
		}
		icon = formable_nations_greater_yugoslavia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_YUG
			add_stability = 0.1
			set_capital = { state = 107 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }

				970 = { add_core_of = ROOT }
			}
			77 = { add_claim_by = ROOT }
			184 = { add_claim_by = ROOT }
			731 = { add_claim_by = ROOT }
		}
	}

	formable_nations_abyssinia = {
	
		priority = 961
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = ETH
				original_tag = ERI
				original_tag = TIG
				original_tag = AFA
				original_tag = QEM
				original_tag = BEG
				original_tag = ORO
				original_tag = HAR
				original_tag = SID
				original_tag = GBA
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 271
				state = 835
				state = 836
				state = 837
				state = 838
				state = 839
				state = 840
				state = 841
				state = 842
				state = 908
				state = 843
				state = 269
				state = 559
				state = 844
				state = 550
				state = 268
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						271 = { owns_or_subject_of = yes }
						835 = { owns_or_subject_of = yes }
						836 = { owns_or_subject_of = yes }
						837 = { owns_or_subject_of = yes }
						838 = { owns_or_subject_of = yes }
						839 = { owns_or_subject_of = yes }
						840 = { owns_or_subject_of = yes }
						841 = { owns_or_subject_of = yes }
						842 = { owns_or_subject_of = yes }
						908 = { owns_or_subject_of = yes }
						843 = { owns_or_subject_of = yes }						
						269 = { owns_or_subject_of = yes }
						559 = { owns_or_subject_of = yes }
						844 = { owns_or_subject_of = yes }
						550 = { owns_or_subject_of = yes }						
						268 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ABY } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_abyssinia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ABY
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				271 = { add_core_of = ROOT }
				550 = { add_core_of = ROOT }
				269 = { add_core_of = ROOT }
				559 = { add_core_of = ROOT }
				844 = { add_core_of = ROOT }
				835 = { add_core_of = ROOT }
				836 = { add_core_of = ROOT }
				837 = { add_core_of = ROOT }
				838 = { add_core_of = ROOT }
				839 = { add_core_of = ROOT }
				840 = { add_core_of = ROOT }
				841 = { add_core_of = ROOT }
				842 = { add_core_of = ROOT }
				908 = { add_core_of = ROOT }
				843 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_north_america = {#continent
	
		priority = 6
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = north_america }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
			    OR = {
				is_on_continent = north_america	
				state = 311
				state = 313
				state = 312
				state = 314
				state = 316
				state = 317
				state = 685
				state = 304
				}
			}
		}
		available = {
		custom_trigger_tooltip = {
			tooltip = north_america_requirement_tooltip
			OR = {
				AND = {
					all_state = {
						OR = {
							AND = {
								OR = {
									is_on_continent = north_america
									state = 311
									state = 313
									state = 312
									state = 314
									state = 316
									state = 317
									state = 685
									state = 304
								}
								NOT = {
									OR = {
										state = 101
										state = 730 #These are in North America, but not needed
										state = 696
									}
								}
								is_controlled_by = ROOT
							}
							NOT = { #Make sure non-American states are valid.
								OR = {
									is_on_continent = north_america 
									state = 311
									state = 313
									state = 312
									state = 314
									state = 316
									state = 317
									state = 685
									state = 304
								}
							}
							state = 101
							state = 730 #These are in North America, but not needed.
							state = 696
						}
					}
				}
				AND = {
					is_ai = no
					has_global_flag = debug_mode
				}
			}
		}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_NOA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_north_america
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_NOA
			add_stability = 0.2
			set_capital = { state = 358 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = {
						OR = {
							is_on_continent = north_america
							state = 690
							state = 693
							state = 689
							state = 315
							state = 318
							state = 319
							state = 692
							state = 694
							state = 308
							state = 686
							state = 311
							state = 313
							state = 312
							state = 314
							state = 316
							state = 317
							state = 685
							state = 304
						}
						NOT = { 
							is_core_of = ROOT
						}
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_greater_egypt = {
	
		priority = 960
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = EGY
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 551
				state = 767
				state = 549
				state = 887
				state = 884
				state = 885
				state = 886
				state = 883
				state = 552
				state = 456
				state = 457
				state = 453
				state = 907
				state = 447
				state = 452
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						551 = { owns_or_subject_of = yes }
						767 = { owns_or_subject_of = yes }
						549 = { owns_or_subject_of = yes }
						887 = { owns_or_subject_of = yes }
						884 = { owns_or_subject_of = yes }
						885 = { owns_or_subject_of = yes }
						886 = { owns_or_subject_of = yes }
						883 = { owns_or_subject_of = yes }						
						552 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }						
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }
						
						949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
			            1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GEG } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_egypt
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GEG
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				551 = { add_core_of = ROOT }
				767 = { add_core_of = ROOT }
				549 = { add_core_of = ROOT }
				887 = { add_core_of = ROOT }
				884 = { add_core_of = ROOT }
				885 = { add_core_of = ROOT }
				886 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				
			}
			663 = { add_core_of = ROOT }
			451 = { add_core_of = ROOT }
			450 = { add_core_of = ROOT }
			679 = { add_core_of = ROOT }
			855 = { add_core_of = ROOT }
		}
	}

	formable_nations_hispaniola = {
	
		priority = 959
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = DOM
				original_tag = HAI
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 318
				state = 319
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						318 = { owns_or_subject_of = yes }
						319 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_HIS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hispaniola
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_HIS
			add_stability = 0.1
			set_capital = { state = 318 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				318 = { add_core_of = ROOT }
				319 = { add_core_of = ROOT }
			}

			
		}
	}

	formable_nations_peru_bolivia = {
	
		priority = 958
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = PRU
				original_tag = BOL
				has_global_flag = no_limit
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 490
				state = 491
				state = 303
				state = 494
				state = 492
				state = 487
				state = 302

				state = 1061
				state = 1077
				
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						490 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }
						303 = { owns_or_subject_of = yes }
						494 = { owns_or_subject_of = yes }
						492 = { owns_or_subject_of = yes }
						487 = { owns_or_subject_of = yes }
						302 = { owns_or_subject_of = yes }
						
						1061 = { owns_or_subject_of = yes }
						1077 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_PRB } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_peru_bolivia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_PRB
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				490 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				303 = { add_core_of = ROOT }
				494 = { add_core_of = ROOT }
				492 = { add_core_of = ROOT }
				487 = { add_core_of = ROOT }
				302 = { add_core_of = ROOT }

				1061 = { add_core_of = ROOT }
				1077 = { add_core_of = ROOT }

			}
			506 = { add_core_of = ROOT }

			
		}
	}

	formable_nations_caribbean = {
	
		priority = 957
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = DOM
				original_tag = HAI
				original_tag = CUB
				original_tag = JAM
				original_tag = BAH
				original_tag = PUE
				original_tag = CRC
				original_tag = TRI
				original_tag = BAS
				original_tag = GDL
				has_global_flag = no_limit
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 315
				state = 318
				state = 319
				
				state = 994
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						315 = { owns_or_subject_of = yes }
						318 = { owns_or_subject_of = yes }
						319 = { owns_or_subject_of = yes }
						994 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CAB } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_caribbean
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CAB
			add_stability = 0.1
			set_capital = { state = 318 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				315 = { add_core_of = ROOT }
				318 = { add_core_of = ROOT }
				319 = { add_core_of = ROOT }
				
				994 = { owns_or_subject_of = yes }
				
			}
			689 = { add_core_of = ROOT }
			690 = { add_core_of = ROOT }
			693 = { add_core_of = ROOT }
			686 = { add_core_of = ROOT }
			694 = { add_core_of = ROOT }
			308 = { add_core_of = ROOT }
			692 = { add_core_of = ROOT }
			691 = { add_core_of = ROOT }
			695 = { add_core_of = ROOT }
		}
	}

	formable_nations_australasia = {
	
		priority = 956
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = AST
				original_tag = NZL
				original_tag = PNG
				original_tag = TAH
				original_tag = FIJ
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 870
				state = 871
				state = 872
				state = 873
				state = 285
				state = 517
				state = 518
				state = 519
				state = 520
				state = 521
				state = 522 
				state = 674
				state = 284
				state = 723
				state = 634
				state = 523
				state = 737
				
				state = 1096
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						870 = { owns_or_subject_of = yes }
						871 = { owns_or_subject_of = yes }
						872 = { owns_or_subject_of = yes }
						873 = { owns_or_subject_of = yes }
						285 = { owns_or_subject_of = yes }
						517 = { owns_or_subject_of = yes }
						518 = { owns_or_subject_of = yes }
						519 = { owns_or_subject_of = yes }
						520 = { owns_or_subject_of = yes }
						521 = { owns_or_subject_of = yes }
						522 = { owns_or_subject_of = yes } 
						674 = { owns_or_subject_of = yes }
						
						284 = { owns_or_subject_of = yes }
						723 = { owns_or_subject_of = yes }
						
						634 = { owns_or_subject_of = yes }
						
						523 = { owns_or_subject_of = yes }
						737 = { owns_or_subject_of = yes }
						
						1096 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AAS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_australasia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AAS
			add_stability = 0.05
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				285 = { add_core_of = ROOT }
				517 = { add_core_of = ROOT }
				518 = { add_core_of = ROOT }
				519 = { add_core_of = ROOT }
				520 = { add_core_of = ROOT }
				521 = { add_core_of = ROOT }
				522 = { add_core_of = ROOT }
				523 = { add_core_of = ROOT }
				634 = { add_core_of = ROOT }
				674 = { add_core_of = ROOT }
				737 = { add_core_of = ROOT }
				284 = { add_core_of = ROOT }
				723 = { add_core_of = ROOT }
				870 = { add_core_of = ROOT }
				871 = { add_core_of = ROOT }
				872 = { add_core_of = ROOT }
				873 = { add_core_of = ROOT }
				
				1096 = { add_core_of = ROOT }

			}
			635 = { add_core_of = ROOT }
			636 = { add_core_of = ROOT }
			734 = { add_core_of = ROOT }
			669 = { add_core_of = ROOT }
		}
	}

	formable_nations_golden_circle = {
	
		priority = 955
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			if = {
				limit = { has_dlc = "Man the Guns" }
				OR = {
					original_tag = CSA
					original_tag = USA
					original_tag = TXS
					has_global_flag = no_limit
				}
			}
			else = {
				OR = {
					original_tag = USA
					original_tag = MEX
					has_global_flag = no_limit
				}
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 361
				state = 374
				state = 369
				state = 375
				state = 371
				state = 372
				state = 370
				state = 367
				state = 368
				state = 365
				state = 366
				state = 364
				state = 363
				state = 362
				state = 373
				state = 311
				state = 313
				state = 314
				state = 312
				state = 317
				state = 316
				state = 685
				state = 304
				state = 489
				state = 493
				state = 307
				state = 315
				state = 318
				state = 319
				state = 689
				state = 690
				state = 693
				state = 686
				state = 694
				state = 308
				state = 692
				state = 691
				state = 695
				state = 277
				state = 474
				state = 475
				state = 476
				state = 477
				state = 478
				state = 479
				state = 480
				state = 481
				state = 482
				state = 483
				state = 484
				state = 485
				
				state = 929
				state = 930
				state = 931
				state = 932
				state = 937
				state = 972
				state = 994
				state = 1051
				state = 1079
				state = 1080
				state = 1081
				state = 1082
				state = 1083
				state = 1084
				state = 1085
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						361 = { owns_or_subject_of = yes }
						374 = { owns_or_subject_of = yes }
						369 = { owns_or_subject_of = yes }
						375 = { owns_or_subject_of = yes }
						371 = { owns_or_subject_of = yes }
						372 = { owns_or_subject_of = yes }
						370 = { owns_or_subject_of = yes }
						367 = { owns_or_subject_of = yes }
						368 = { owns_or_subject_of = yes }
						365 = { owns_or_subject_of = yes }
						366 = { owns_or_subject_of = yes }
						364 = { owns_or_subject_of = yes }
						363 = { owns_or_subject_of = yes }
						362 = { owns_or_subject_of = yes }
						373 = { owns_or_subject_of = yes }						
						311 = { owns_or_subject_of = yes }
						313 = { owns_or_subject_of = yes }
						314 = { owns_or_subject_of = yes }
						312 = { owns_or_subject_of = yes }
						317 = { owns_or_subject_of = yes }
						316 = { owns_or_subject_of = yes }
						685 = { owns_or_subject_of = yes }
						304 = { owns_or_subject_of = yes }						
						489 = { owns_or_subject_of = yes }
						493 = { owns_or_subject_of = yes }
						307 = { owns_or_subject_of = yes }						
						315 = { owns_or_subject_of = yes }
						318 = { owns_or_subject_of = yes }
						319 = { owns_or_subject_of = yes }
						689 = { owns_or_subject_of = yes }
						690 = { owns_or_subject_of = yes }
						693 = { owns_or_subject_of = yes }
						686 = { owns_or_subject_of = yes }
						694 = { owns_or_subject_of = yes }
						308 = { owns_or_subject_of = yes }
						692 = { owns_or_subject_of = yes }
						691 = { owns_or_subject_of = yes }
						695 = { owns_or_subject_of = yes }						
						277 = { owns_or_subject_of = yes }
						474 = { owns_or_subject_of = yes }
						475 = { owns_or_subject_of = yes }
						476 = { owns_or_subject_of = yes }
						477 = { owns_or_subject_of = yes }
						478 = { owns_or_subject_of = yes }
						479 = { owns_or_subject_of = yes }
						480 = { owns_or_subject_of = yes }
						481 = { owns_or_subject_of = yes }
						482 = { owns_or_subject_of = yes }
						483 = { owns_or_subject_of = yes }
						484 = { owns_or_subject_of = yes }
						485 = { owns_or_subject_of = yes }
						
						929 = { owns_or_subject_of = yes }
				        930 = { owns_or_subject_of = yes }
				        931 = { owns_or_subject_of = yes }
						932 = { owns_or_subject_of = yes }
				        937 = { owns_or_subject_of = yes }
				        972 = { owns_or_subject_of = yes }
						994 = { owns_or_subject_of = yes }
				        1051 = { owns_or_subject_of = yes }
				        1079 = { owns_or_subject_of = yes }
				        1080 = { owns_or_subject_of = yes }
				        1081 = { owns_or_subject_of = yes }
				        1082 = { owns_or_subject_of = yes }
				        1083 = { owns_or_subject_of = yes }
				        1084 = { owns_or_subject_of = yes }
				        1085 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GOL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_golden_circle
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GOL
			add_stability = 0.15
			set_capital = { state = 315 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				361 = { add_core_of = ROOT }
				374 = { add_core_of = ROOT }
				369 = { add_core_of = ROOT }
				375 = { add_core_of = ROOT }
				371 = { add_core_of = ROOT }
				372 = { add_core_of = ROOT }
				370 = { add_core_of = ROOT }
				367 = { add_core_of = ROOT }
				368 = { add_core_of = ROOT }
				365 = { add_core_of = ROOT }
				366 = { add_core_of = ROOT }
				364 = { add_core_of = ROOT }
				363 = { add_core_of = ROOT }
				362 = { add_core_of = ROOT }
				277 = { add_core_of = ROOT }
				474 = { add_core_of = ROOT }
				475 = { add_core_of = ROOT }
				476 = { add_core_of = ROOT }
				477 = { add_core_of = ROOT }
				478 = { add_core_of = ROOT }
				479 = { add_core_of = ROOT }
				480 = { add_core_of = ROOT }
				481 = { add_core_of = ROOT }
				482 = { add_core_of = ROOT }
				483 = { add_core_of = ROOT }
				484 = { add_core_of = ROOT }
				485 = { add_core_of = ROOT }
				311 = { add_core_of = ROOT }
				313 = { add_core_of = ROOT }
				314 = { add_core_of = ROOT }
				312 = { add_core_of = ROOT }
				317 = { add_core_of = ROOT }
				316 = { add_core_of = ROOT }
				685 = { add_core_of = ROOT }
				304 = { add_core_of = ROOT }
				315 = { add_core_of = ROOT }
				318 = { add_core_of = ROOT }
				689 = { add_core_of = ROOT }
				690 = { add_core_of = ROOT }
				693 = { add_core_of = ROOT }
				686 = { add_core_of = ROOT }
				694 = { add_core_of = ROOT }
				308 = { add_core_of = ROOT }
				692 = { add_core_of = ROOT }
				691 = { add_core_of = ROOT }
				695 = { add_core_of = ROOT }
				489 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
				307 = { add_core_of = ROOT }
				373 = { add_core_of = ROOT }
				
				929 = { add_core_of = ROOT }
				930 = { add_core_of = ROOT }
				931 = { add_core_of = ROOT }
				932 = { add_core_of = ROOT }
				937 = { add_core_of = ROOT }
				972 = { add_core_of = ROOT }
				994 = { add_core_of = ROOT }
				1051 = { add_core_of = ROOT }
				1079 = { add_core_of = ROOT }
				1080 = { add_core_of = ROOT }
				1081 = { add_core_of = ROOT }
				1082 = { add_core_of = ROOT }
				1083 = { add_core_of = ROOT }
				1084 = { add_core_of = ROOT }
				1085 = { owns_or_subject_of = yes }
				
			}

			
		}
	}

	formable_nations_maghreb = {
	
		priority = 954
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = LBA
				original_tag = WES
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 459
				state = 460
				state = 513
				state = 461
				state = 462
				state = 290
				state = 783
				state = 448
				state = 661
				state = 449
				state = 662
				state = 663
				state = 450
				state = 451
				state = 458
				state = 665
				state = 699
				
				state = 933
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						459 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						513 = { owns_or_subject_of = yes }
						461 = { owns_or_subject_of = yes }
						462 = { owns_or_subject_of = yes }
						290 = { owns_or_subject_of = yes }
						783 = { owns_or_subject_of = yes }						
						448 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }						
						458 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }
						
						699 = { owns_or_subject_of = yes }
						
						933 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MAG } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_maghreb
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MAG
			add_stability = 0.1
			set_capital = { state = 461 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				462 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				699 = { add_core_of = ROOT }
				783 = { add_core_of = ROOT }
				699 = { add_core_of = ROOT }
				
				933 = { add_core_of = ROOT }
			}
			557 = { add_core_of = ROOT }
			514 = { add_core_of = ROOT }
			273 = { add_core_of = ROOT }
			
		}
	}

	formable_nations_greater_canada = {
	
		priority = 953
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CAN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 276
				state = 464
				state = 465
				state = 466
				state = 467
				state = 468
				state = 469
				state = 865
				state = 866
				state = 867
				state = 860
				state = 862
				state = 863
				state = 470
				state = 471
				state = 864
				state = 472
				state = 473
				state = 682
				state = 683
				state = 739
				state = 740
				state = 332
				state = 331
				state = 357
				state = 358
				state = 463
				state = 861

				state = 921
				state = 990
				state = 991
				state = 992
				state = 993
								
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						276 = { owns_or_subject_of = yes }
						464 = { owns_or_subject_of = yes }
						465 = { owns_or_subject_of = yes }
						466 = { owns_or_subject_of = yes }
						467 = { owns_or_subject_of = yes }
						468 = { owns_or_subject_of = yes }
						469 = { owns_or_subject_of = yes }
						865 = { owns_or_subject_of = yes }
						866 = { owns_or_subject_of = yes }
						867 = { owns_or_subject_of = yes }
						860 = { owns_or_subject_of = yes }
						862 = { owns_or_subject_of = yes }
						863 = { owns_or_subject_of = yes }
						470 = { owns_or_subject_of = yes }
						471 = { owns_or_subject_of = yes }
						864 = { owns_or_subject_of = yes }
						472 = { owns_or_subject_of = yes }
						473 = { owns_or_subject_of = yes }
						682 = { owns_or_subject_of = yes }
						683 = { owns_or_subject_of = yes }
						739 = { owns_or_subject_of = yes }
						740 = { owns_or_subject_of = yes }
						332 = { owns_or_subject_of = yes }
						331 = { owns_or_subject_of = yes }						
						357 = { owns_or_subject_of = yes }
						358 = { owns_or_subject_of = yes }
						463 = { owns_or_subject_of = yes }
						861 = { owns_or_subject_of = yes }
						
						921 = { owns_or_subject_of = yes }
						990 = { owns_or_subject_of = yes }
						991 = { owns_or_subject_of = yes }
						992 = { owns_or_subject_of = yes }
						993 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GCA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_canada
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GCA
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				276 = { add_core_of = ROOT }
				464 = { add_core_of = ROOT }
				465 = { add_core_of = ROOT }
				466 = { add_core_of = ROOT }
				467 = { add_core_of = ROOT }
				468 = { add_core_of = ROOT }
				469 = { add_core_of = ROOT }
				865 = { add_core_of = ROOT }
				866 = { add_core_of = ROOT }
				867 = { add_core_of = ROOT }
				860 = { add_core_of = ROOT }
				862 = { add_core_of = ROOT }
				863 = { add_core_of = ROOT }
				470 = { add_core_of = ROOT }
				471 = { add_core_of = ROOT }
				864 = { add_core_of = ROOT }
				472 = { add_core_of = ROOT }
				473 = { add_core_of = ROOT }
				682 = { add_core_of = ROOT }
				683 = { add_core_of = ROOT }
				739 = { add_core_of = ROOT }
				740 = { add_core_of = ROOT }
				357 = { add_core_of = ROOT }
				358 = { add_core_of = ROOT }
				463 = { add_core_of = ROOT }
				331 = { add_core_of = ROOT }
				332 = { add_core_of = ROOT }
				861 = { add_core_of = ROOT }
				
				921 = { add_core_of = ROOT }
				990 = { add_core_of = ROOT }
				991 = { add_core_of = ROOT }
				992 = { add_core_of = ROOT }
				993 = { add_core_of = ROOT }
				
			}
			730 = { add_claim_by = ROOT }
		}
	}

	formable_nations_visegrad = {
	
		priority = 952
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = CZE
				original_tag = SLO
				original_tag = HUN
				original_tag = DNZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 807
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 762
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 43
				state = 154
				state = 155
				state = 76

				state = 784
                state = 913
				state = 934
				state = 935
				state = 936
				state = 996
				state = 1078
				state = 1104
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }						
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						72 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }						
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }
						76 = { owns_or_subject_of = yes }
						
						784 = { owns_or_subject_of = yes }
					    913 = { owns_or_subject_of = yes }
				        934 = { owns_or_subject_of = yes }
						935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
				        1078 = { owns_or_subject_of = yes }
						1104 = { owns_or_subject_of = yes }
				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_VIS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_visegrad
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_VIS
			add_stability = 0.1
			set_capital = { state = 43 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				10 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }

				784 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_la_plata = {
	
	    priority = 951
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BOL
				original_tag = ARG
				original_tag = URG
				original_tag = PAR
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 278
				state = 508
				state = 509
				state = 510
				state = 511
				state = 512
				state = 301
				state = 688
				state = 300
				state = 302
				state = 487
				
				state = 1059
				state = 1060
				state = 1065
				state = 1066
				state = 1067
				state = 1068
				state = 1069
				state = 1070
				state = 1071
				state = 1077
				
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						278 = { owns_or_subject_of = yes }
						508 = { owns_or_subject_of = yes }
						509 = { owns_or_subject_of = yes }
						510 = { owns_or_subject_of = yes }
						511 = { owns_or_subject_of = yes }
						512 = { owns_or_subject_of = yes }
						301 = { owns_or_subject_of = yes }
						688 = { owns_or_subject_of = yes }
						300 = { owns_or_subject_of = yes }
						302 = { owns_or_subject_of = yes }
						487 = { owns_or_subject_of = yes }
						
				        1059 = { owns_or_subject_of = yes }
				        1060 = { owns_or_subject_of = yes }
						1065 = { owns_or_subject_of = yes }
						1066 = { owns_or_subject_of = yes }
				        1067 = { owns_or_subject_of = yes }
				        1068 = { owns_or_subject_of = yes }
						1069 = { owns_or_subject_of = yes }
				        1070 = { owns_or_subject_of = yes }
						1071 = { owns_or_subject_of = yes }
				        1077 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_PLA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_la_plata
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_PLA
			add_stability = 0.1
			set_capital = { state = 278 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				278 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				509 = { add_core_of = ROOT }
				510 = { add_core_of = ROOT }
				511 = { add_core_of = ROOT }
				512 = { add_core_of = ROOT }
				301 = { add_core_of = ROOT }
				688 = { add_core_of = ROOT }
				300 = { add_core_of = ROOT }
				302 = { add_core_of = ROOT }
				487 = { add_core_of = ROOT }
						
				1059 = { add_core_of = ROOT }
				1060 = { add_core_of = ROOT }
				1065 = { add_core_of = ROOT }
				1066 = { add_core_of = ROOT }
				1067 = { add_core_of = ROOT }
				1068 = { add_core_of = ROOT }
				1069 = { add_core_of = ROOT }
				1070 = { add_core_of = ROOT }
				1071 = { add_core_of = ROOT }
				1077 = { add_core_of = ROOT }
			}
			299 = { add_claim_by = ROOT }
			720 = { add_claim_by = ROOT }
		}
	}

	formable_nations_celtic_union = {
	
	    priority = 950
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = IRE
				original_tag = NIR
				original_tag = SCO
				original_tag = WLS
				original_tag = BRI
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 113
				state = 119
				state = 134
				state = 135
				state = 120
				state = 121
				state = 133
				state = 136
				state = 122
				state = 14
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						113 = { owns_or_subject_of = yes }
						119 = { owns_or_subject_of = yes }
						134 = { owns_or_subject_of = yes }
						135 = { owns_or_subject_of = yes }
						120 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }
						133 = { owns_or_subject_of = yes }
						136 = { owns_or_subject_of = yes }
						122 = { owns_or_subject_of = yes }
						14 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CEL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_celtic_union
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CEL
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				113 = { add_core_of = ROOT }
				119 = { add_core_of = ROOT }
				134 = { add_core_of = ROOT }
				135 = { add_core_of = ROOT }
				120 = { add_core_of = ROOT }
				121 = { add_core_of = ROOT }
				133 = { add_core_of = ROOT }
				136 = { add_core_of = ROOT }
				122 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
			}
			123 = { add_core_of = ROOT }
		}
	}

	formable_nations_alpine_federation = {
	
		priority = 949
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AUS
				original_tag = SWI
				original_tag = LIE
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 3
				state = 151
				state = 845
				state = 846
				state = 847
				state = 4
				state = 152
				state = 153
				state = 848
				state = 997

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						3 = { owns_or_subject_of = yes }
						151 = { owns_or_subject_of = yes }
						845 = { owns_or_subject_of = yes }
						846 = { owns_or_subject_of = yes }
						847 = { owns_or_subject_of = yes }
						
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						997 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ALP } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_alpine_federation
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ALP
			add_stability = 0.1
			set_capital = { state = 4 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }

			}
			39 = { add_core_of = ROOT }
			850 = { add_core_of = ROOT }
			52 = { add_core_of = ROOT }
		}
	}

	formable_nations_greater_croatia = {
	
		priority = 948
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CRO
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 103
				state = 109
				state = 163
				state = 852
				state = 104
				state = 804
				
				state = 45
				state = 952
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						103 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
						
						45 = { owns_or_subject_of = yes }
						952 = { owns_or_subject_of = yes }
						958 = { owns_or_subject_of = yes }
						959 = { owns_or_subject_of = yes }
						961 = { owns_or_subject_of = yes }
						962 = { owns_or_subject_of = yes }
						963 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GCR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_croatia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GCR
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				103 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				
				45 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				
			}
			736 = { add_core_of = ROOT }
			102 = { add_claim_by = ROOT }
			853 = { add_claim_by = ROOT }
		}
	}

	formable_nations_greater_serbia = {
	
		priority = 947
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SER
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 45
				state = 764
				state = 107
				state = 108
				state = 802
				state = 803
				state = 106
				state = 105
				
				state = 950
				state = 952
				state = 953
				state = 963
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						45 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }						
						106 = { owns_or_subject_of = yes }						
						105 = { owns_or_subject_of = yes }
						
						950 = { owns_or_subject_of = yes }
						952 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GSE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_serbia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GSE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				45 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				
				950 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }

			}
			104 = { add_claim_by = ROOT }
		}
	}

	formable_nations_greater_lithuania = {
	
		priority = 946
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = LIT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 11
				state = 814
				state = 815
				state = 189
				state = 784
				state = 97
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 199
				state = 192
				state = 197
				state = 834
				state = 201
				state = 198
				state = 202
				state = 203
				state = 193
				state = 259
				state = 225
				state = 91
				state = 93
				state = 224
				state = 243
				
				state = 934
				state = 935
				state = 936
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						11 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }						
						97 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }						
						199 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						197 = { owns_or_subject_of = yes }
						834 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						243	= { is_controlled_by = ROOT }
						
						934 = { owns_or_subject_of = yes }
						935 = { owns_or_subject_of = yes }
						936	= { is_controlled_by = ROOT }
												
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GLI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_lithuania
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GLI
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				11 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				243	= { add_core_of = ROOT }
				
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936	= { add_core_of = ROOT }
				
			}
			188 = { add_core_of = ROOT }
		}
	}

	formable_nations_chile_argentina = {
	
		priority = 945
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CHL
				original_tag = ARG
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 278
				state = 508
				state = 509
				state = 510
				state = 511
				state = 512
				state = 506
				state = 279
				state = 507
				
				state = 954
				state = 1062
				state = 1063
				state = 1064
				state = 1065
				state = 1066
				state = 1067
				state = 1068
				state = 1069
				state = 1070
				state = 1071
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						278 = { owns_or_subject_of = yes }
				        508 = { owns_or_subject_of = yes }
				        509 = { owns_or_subject_of = yes }
				        510 = { owns_or_subject_of = yes }
				        511 = { owns_or_subject_of = yes }
						512 = { owns_or_subject_of = yes }
						506 = { owns_or_subject_of = yes }
				        279 = { owns_or_subject_of = yes }
				        507 = { owns_or_subject_of = yes }
				
				        954 = { owns_or_subject_of = yes }
				        1062 = { owns_or_subject_of = yes }
				        1063 = { owns_or_subject_of = yes }
				        1064 = { owns_or_subject_of = yes }
				        1065 = { owns_or_subject_of = yes }
				        1066 = { owns_or_subject_of = yes }
				        1067 = { owns_or_subject_of = yes }
						1068 = { owns_or_subject_of = yes }
				        1069 = { owns_or_subject_of = yes }
				        1070 = { owns_or_subject_of = yes }
				        1071 = { owns_or_subject_of = yes }				
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CHG } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_chile_argentina
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CHG
			add_stability = 0.1
			set_capital = { state = 278 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				507 = { add_core_of = ROOT }
				279 = { add_core_of = ROOT }
				506 = { add_core_of = ROOT }
				512 = { add_core_of = ROOT }
				511 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				509 = { add_core_of = ROOT }
				510 = { add_core_of = ROOT }
				278 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				960 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				954 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }

				949 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				951 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
			}
			299 = { add_claim_by = ROOT }
			720 = { add_claim_by = ROOT }
		}
	}

	formable_nations_assyria = {
		
		priority = 944
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = IRQ
				original_tag = SYR
				original_tag = KUW
				original_tag = KUR
				original_tag = LEB
				original_tag = JOR
				original_tag = MPL
			}
			NOT = { has_global_flag = modern_country }
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 291
				state = 675
				state = 676
				state = 656
				state = 454
				state = 553
				state = 677
				state = 799
				state = 554
				state = 680
				state = 455
				state = 453
				state = 907
				state = 447
				state = 456
				state = 457
				state = 421
				state = 344
				state = 350
				state = 352
				state = 348
				state = 349
				state = 353
				state = 800
				state = 854
				
				state = 911
				state = 949
				state = 966
				state = 995
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						656 = { owns_or_subject_of = yes }						
						454 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }						
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }						
						421 = { owns_or_subject_of = yes }						
						344 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }						
						854 = { owns_or_subject_of = yes }
						
						911 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ASS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_assyria
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ASS
			add_stability = 0.15
			set_capital = { state = 291 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_asia = {#continent
	
	    priority = 3
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { OR = { is_on_continent = asia  is_on_continent = middle_east } }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
				is_on_continent = asia	
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = asia_requirement_tooltip 
				OR = {
					AND = {
						all_state = {
							OR = {
								AND = {
									OR = { is_on_continent = asia  is_on_continent = middle_east }
									NOT = {
										OR = {
											state = 281
											state = 710
											state = 711
											state = 712
											state = 733
											state = 270
											state = 641
											state = 726
											state = 642
											state = 727
											state = 630
											state = 631
											state = 629
											state = 636
											state = 643
											state = 639
											state = 633
											state = 725
											state = 684
											state = 632
											state = 638
											state = 646
											state = 647
											state = 645
											state = 648
											state = 526
											state = 650
											state = 406
											state = 407
											state = 236
											state = 401
											state = 829
											state = 239
											state = 255
											state = 250
											state = 251
											state = 652
											state = 651
											state = 249
											state = 252
											state = 256
											state = 833
											state = 398
											state = 399
											state = 351
											state = 400
											state = 880
											state = 262
											state = 825
											state = 397
											state = 698
								            state = 1076
										}
									}
									is_controlled_by = ROOT
								}
								NOT = { OR = { is_on_continent = asia  is_on_continent = middle_east } }
								state = 281
								state = 710
								state = 711
								state = 712
								state = 733
								state = 270
								state = 641
								state = 726
								state = 642
								state = 727
								state = 630
								state = 631
								state = 629
								state = 636
								state = 643
								state = 639
								state = 633
								state = 725
								state = 684
								state = 632
								state = 638
								state = 646
								state = 647
								state = 645
								state = 648
								state = 526
								state = 650
								state = 406
								state = 407
								state = 236
								state = 401
								state = 829
								state = 239
								state = 255
								state = 250
								state = 251
								state = 652
								state = 651
								state = 249
								state = 252
								state = 256
								state = 833
								state = 398
								state = 399
								state = 351
								state = 400
								state = 880
								state = 262
								state = 825
								state = 397
								state = 698
							    state = 1076
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ASI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_asia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ASI
			add_stability = 0.2
			set_capital = { state = 605 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = { 
						OR = { 
							AND = {
								is_on_continent = asia 
								NOT = {
									state = 406
									state = 407
									state = 236
									state = 401
									state = 829
									state = 239
									state = 255
									state = 250
									state = 251
									state = 652
									state = 651
									state = 249
									state = 252
									state = 256
									state = 833
									state = 398
									state = 399
									state = 351
									state = 400
									state = 880
									state = 262
									state = 825
									state = 397
								}
							}
							is_on_continent = middle_east 
						}
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_eurasia = {#continent
	
		priority = 2
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = europe }
				capital_scope = { OR = { is_on_continent = asia  is_on_continent = middle_east } }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
				OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe }
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = eurasia_requirement_tooltip 
				OR = {
					AND = {
						all_state = {
							OR = {
								AND = {
									OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe }
									NOT = {
										OR = {				
											state = 698
											state = 177
											state = 1
											state = 114
											state = 116
											state = 183
											state = 182
											state = 164
											state = 337
											state = 100
											state = 124
											state = 281
											state = 710
											state = 711
											state = 712
											state = 733
											state = 270
											state = 641
											state = 726
											state = 642
											state = 727
											state = 630
											state = 631
											state = 629
											state = 636
											state = 643
											state = 639
											state = 633
											state = 725
											state = 684
											state = 632
											state = 638
											state = 646
											state = 647
											state = 645
											state = 648
											state = 526
											state = 650
										}
									}
									is_controlled_by = ROOT
								}
								NOT = { OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe } }
								
								state = 698
								state = 177
								state = 1
								state = 114
								state = 116
								state = 183
								state = 182
								state = 164
								state = 337
								state = 100
								state = 124
								state = 281
								state = 710
								state = 711
								state = 712
								state = 733
								state = 270
								state = 641
								state = 726
								state = 642
								state = 727
								state = 630
								state = 631
								state = 629
								state = 636
								state = 643
								state = 639
								state = 633
								state = 725
								state = 684
								state = 632
								state = 638
								state = 646
								state = 647
								state = 645
								state = 648
								state = 526
								state = 650
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_EUA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_eurasia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_EUA
			add_stability = 0.2
			set_capital = { state = 219 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = {
						OR = {
							is_on_continent = europe
							OR = { is_on_continent = asia  is_on_continent = middle_east }
						}
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_great_britain = {
	
		priority = 943
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ENG
				original_tag = SCO
				original_tag = WLS
				original_tag = IRE
				original_tag = NIR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 113
				state = 134
				state = 135
				state = 119
				state = 120
				state = 121
				state = 133
				state = 136
				state = 131
				state = 130
				state = 132
				state = 128
				state = 122
				state = 129
				state = 125
				state = 338
				state = 123
				state = 127
				state = 126

                state = 970
				state = 971
                state = 1041
				state = 1042

			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {	
						113 = { owns_or_subject_of = yes }
						134 = { owns_or_subject_of = yes }
						135 = { owns_or_subject_of = yes }
						119 = { owns_or_subject_of = yes }
						120 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }
						133 = { owns_or_subject_of = yes }
						136 = { owns_or_subject_of = yes }
						131 = { owns_or_subject_of = yes }
						130 = { owns_or_subject_of = yes }
						132 = { owns_or_subject_of = yes }
						128 = { owns_or_subject_of = yes }
						122 = { owns_or_subject_of = yes }
						129 = { owns_or_subject_of = yes }
						125 = { owns_or_subject_of = yes }
						338 = { owns_or_subject_of = yes }
						123 = { owns_or_subject_of = yes }
						127 = { owns_or_subject_of = yes }
						126 = { owns_or_subject_of = yes }
						
						970 = { owns_or_subject_of = yes }
						971 = { owns_or_subject_of = yes }
						1041 = { owns_or_subject_of = yes }
					    1042 = { owns_or_subject_of = yes }
												
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BRI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_great_britain
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BRI
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				113 = { add_core_of = ROOT }
				134 = { add_core_of = ROOT }
				135 = { add_core_of = ROOT }
				119 = { add_core_of = ROOT }
				120 = { add_core_of = ROOT }
				121 = { add_core_of = ROOT }
				133 = { add_core_of = ROOT }
				136 = { add_core_of = ROOT }
				131 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				122 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				123 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				
				970 = { add_core_of = ROOT }
				971 = { add_core_of = ROOT }
				1041 = { add_core_of = ROOT }
				1042 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_greater_russia = {
	
		priority = 942
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SOV
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 40
				state = 137
				state = 192
				state = 193
				state = 194
				state = 195
				state = 196
				state = 197
				state = 198
				state = 199
				state = 200
				state = 201
				state = 202
				state = 203
				state = 204
				state = 205
				state = 206
				state = 207
				state = 208
				state = 209
				state = 210
				state = 217
				state = 218
				state = 219
				state = 220
				state = 221
				state = 222
				state = 223
				state = 224
				state = 225
				state = 226
				state = 227
				state = 228
				state = 232
				state = 233
				state = 234
				state = 235
				state = 236
				state = 237
				state = 238
				state = 239
				state = 240
				state = 241
				state = 242
				state = 243
				state = 244
				state = 245
				state = 246
				state = 247
				state = 248
				state = 249
				state = 250
				state = 251
				state = 252
				state = 253
				state = 254
				state = 255
				state = 256
				state = 257
				state = 258
				state = 259
				state = 260
				state = 263
				state = 264
				state = 265
				state = 351
				state = 398
				state = 399
				state = 400
				state = 401
				state = 402
				state = 403
				state = 404
				state = 405
				state = 406
				state = 407
				state = 408
				state = 409
				state = 560
				state = 561
				state = 563
				state = 564
				state = 565
				state = 566
				state = 567
				state = 568
				state = 569
				state = 570
				state = 571
				state = 572
				state = 573
				state = 578
				state = 582
				state = 583
				state = 584
				state = 585
				state = 586
				state = 587
				state = 588
				state = 589
				state = 590
				state = 651
				state = 652
				state = 653
				state = 654
				state = 657
				state = 732
				state = 742
				state = 826
				state = 231
				state = 229
				state = 230
				state = 406
				state = 407
				state = 402
				state = 584
				state = 585
				state = 587
				state = 583
				state = 590
				state = 588
				state = 404
				state = 589
				state = 586
				state = 881
				state = 882
				state = 823
				state = 831
				state = 585
				state = 830
				state = 405
				state = 584
				state = 832
				state = 742
				state = 732
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 196
				state = 200
				state = 227
				state = 221
				state = 228
				state = 192
				state = 197
				state = 834
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 827
				state = 828
				state = 821
				state = 829
				state = 833
				state = 213
				state = 215
				state = 216
				state = 879
				state = 214
				state = 880
				state = 825
				state = 262
				state = 397
				state = 581
				state = 579
				state = 580
				state = 577
				state = 824
				state = 516
				state = 576
				state = 878
				state = 575
				state = 876
				state = 877
				state = 574
				state = 562
				state = 644
				state = 874
				state = 822
				state = 637
				state = 111
				state = 145
				state = 146
				state = 147
				state = 148
				state = 149
				state = 150
				state = 722
				state = 87
				state = 90
				state = 10
				state = 98
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 11
				state = 784
				state = 814
				state = 815
				state = 189
				state = 12
				state = 190
				state = 809
				state = 808
				state = 810
				state = 13
				state = 812
				state = 811
				state = 191
				state = 813
				state = 766
				state = 78
				
				state = 934
				state = 935
				state = 936
				state = 985
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
				state = 1044
				
			}
		}

		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {	
						40 = { owns_or_subject_of = yes }
						137 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						195 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
						197	= { is_controlled_by = ROOT }
						198 = { owns_or_subject_of = yes }
						199 = { owns_or_subject_of = yes }
						200 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						205 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						208 = { owns_or_subject_of = yes }
						209 = { owns_or_subject_of = yes }
						210 = { owns_or_subject_of = yes }
						217 = { owns_or_subject_of = yes }
						218 = { owns_or_subject_of = yes }
						219 = { owns_or_subject_of = yes }
						220 = { owns_or_subject_of = yes }
						221 = { owns_or_subject_of = yes }
						222 = { owns_or_subject_of = yes }
						223 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						227 = { owns_or_subject_of = yes }
						228 = { owns_or_subject_of = yes }
						232 = { owns_or_subject_of = yes }
						233 = { owns_or_subject_of = yes }
						234 = { owns_or_subject_of = yes }
						235 = { owns_or_subject_of = yes }
						236 = { owns_or_subject_of = yes }
						237 = { owns_or_subject_of = yes }
						238 = { owns_or_subject_of = yes }
						239 = { owns_or_subject_of = yes }
						240 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }
						244 = { owns_or_subject_of = yes }
						245 = { owns_or_subject_of = yes }
						246 = { owns_or_subject_of = yes }
						247 = { owns_or_subject_of = yes }
						248 = { owns_or_subject_of = yes }
						249 = { owns_or_subject_of = yes }
						250 = { owns_or_subject_of = yes }
						251 = { owns_or_subject_of = yes }
						252 = { owns_or_subject_of = yes }
						253 = { owns_or_subject_of = yes }
						254 = { owns_or_subject_of = yes }
						255 = { owns_or_subject_of = yes }
						256 = { owns_or_subject_of = yes }
						257 = { owns_or_subject_of = yes }
						258 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						260 = { owns_or_subject_of = yes }
						263 = { owns_or_subject_of = yes }
						264 = { owns_or_subject_of = yes }
						265 = { owns_or_subject_of = yes }
						351 = { owns_or_subject_of = yes }
						398 = { owns_or_subject_of = yes }
						399 = { owns_or_subject_of = yes }
						400 = { owns_or_subject_of = yes }
						401 = { owns_or_subject_of = yes }
						402 = { owns_or_subject_of = yes }
						403 = { owns_or_subject_of = yes }
						404 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }
						406 = { owns_or_subject_of = yes }
						407 = { owns_or_subject_of = yes }
						408 = { owns_or_subject_of = yes }
						409 = { owns_or_subject_of = yes }
						560 = { owns_or_subject_of = yes }
						561 = { owns_or_subject_of = yes }
						563 = { owns_or_subject_of = yes }
						564 = { owns_or_subject_of = yes }
						565 = { owns_or_subject_of = yes }
						566 = { owns_or_subject_of = yes }
						567 = { owns_or_subject_of = yes }
						568 = { owns_or_subject_of = yes }
						569 = { owns_or_subject_of = yes }
						570 = { owns_or_subject_of = yes }
						571 = { owns_or_subject_of = yes }
						572 = { owns_or_subject_of = yes }
						573 = { owns_or_subject_of = yes }
						578 = { owns_or_subject_of = yes }
						582 = { owns_or_subject_of = yes }
						583 = { owns_or_subject_of = yes }
						584 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						586 = { owns_or_subject_of = yes }
						587 = { owns_or_subject_of = yes }
						588 = { owns_or_subject_of = yes }
						589 = { owns_or_subject_of = yes }
						590 = { owns_or_subject_of = yes }
						651 = { owns_or_subject_of = yes }
						652 = { owns_or_subject_of = yes }
						653 = { owns_or_subject_of = yes }
						654 = { owns_or_subject_of = yes }
						657 = { owns_or_subject_of = yes }
						732 = { owns_or_subject_of = yes }
						742 = { owns_or_subject_of = yes }
						826 = { owns_or_subject_of = yes }
						231 = { owns_or_subject_of = yes }
						229 = { owns_or_subject_of = yes }
						230 = { owns_or_subject_of = yes }
						406 = { owns_or_subject_of = yes }
						407 = { owns_or_subject_of = yes }
						402 = { owns_or_subject_of = yes }
						584 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						587 = { owns_or_subject_of = yes }
						583 = { owns_or_subject_of = yes }
						590 = { owns_or_subject_of = yes }
						588 = { owns_or_subject_of = yes }
						404 = { owns_or_subject_of = yes }
						589 = { owns_or_subject_of = yes }
						586 = { owns_or_subject_of = yes }
						881 = { owns_or_subject_of = yes }
						882 = { owns_or_subject_of = yes }
						823 = { owns_or_subject_of = yes }
						831 = { owns_or_subject_of = yes }
						585 = { owns_or_subject_of = yes }
						830 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }
						584 = { owns_or_subject_of = yes }
						832 = { owns_or_subject_of = yes }
						742 = { owns_or_subject_of = yes }
						732 = { owns_or_subject_of = yes }
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
						200 = { owns_or_subject_of = yes }
						227 = { owns_or_subject_of = yes }
						221 = { owns_or_subject_of = yes }
						228 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						197 = { owns_or_subject_of = yes }
						834 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						827 = { owns_or_subject_of = yes }
						828 = { owns_or_subject_of = yes }
						821 = { owns_or_subject_of = yes }
						829 = { owns_or_subject_of = yes }
						833 = { owns_or_subject_of = yes }
						213 = { owns_or_subject_of = yes }
						215 = { owns_or_subject_of = yes }
						216 = { owns_or_subject_of = yes }
						879 = { owns_or_subject_of = yes }
						214 = { owns_or_subject_of = yes }
						880 = { owns_or_subject_of = yes }
						825 = { owns_or_subject_of = yes }
						262 = { owns_or_subject_of = yes }
						397 = { owns_or_subject_of = yes }
						581 = { owns_or_subject_of = yes }
						579 = { owns_or_subject_of = yes }
						580 = { owns_or_subject_of = yes }
						577 = { owns_or_subject_of = yes }
						824 = { owns_or_subject_of = yes }
						516 = { owns_or_subject_of = yes }
						576 = { owns_or_subject_of = yes }
						878 = { owns_or_subject_of = yes }
						575 = { owns_or_subject_of = yes }
						876 = { owns_or_subject_of = yes }
						877 = { owns_or_subject_of = yes }
						574 = { owns_or_subject_of = yes }
						562 = { owns_or_subject_of = yes }
						644 = { owns_or_subject_of = yes }
						874 = { owns_or_subject_of = yes }
						822 = { owns_or_subject_of = yes }
						637 = { owns_or_subject_of = yes }						
						111 = { owns_or_subject_of = yes }
						145 = { owns_or_subject_of = yes }
						146 = { owns_or_subject_of = yes }
						147 = { owns_or_subject_of = yes }
						148 = { owns_or_subject_of = yes }
						149 = { owns_or_subject_of = yes }
						150 = { owns_or_subject_of = yes }						
						87 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }						
						11 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						12 = { owns_or_subject_of = yes }
						190 = { owns_or_subject_of = yes }
						809 = { owns_or_subject_of = yes }
						808 = { owns_or_subject_of = yes }
						810 = { owns_or_subject_of = yes }
						13 = { owns_or_subject_of = yes }
						812 = { owns_or_subject_of = yes }
						811 = { owns_or_subject_of = yes }
						191 = { owns_or_subject_of = yes }
						813 = { owns_or_subject_of = yes }						
						766 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						
						934 = { owns_or_subject_of = yes }
				        935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
				        985 = { owns_or_subject_of = yes }
				        1036 = { owns_or_subject_of = yes }
				        1037 = { owns_or_subject_of = yes }
				        1038 = { owns_or_subject_of = yes }
				        1039 = { owns_or_subject_of = yes }
			            1040 = { owns_or_subject_of = yes }
				        1044 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_RUE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_russia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_RUE
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				40 = { add_core_of = ROOT }
				137 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				195 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197	= { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				205 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				208 = { add_core_of = ROOT }
				209 = { add_core_of = ROOT }
				210 = { add_core_of = ROOT }
				217 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				219 = { add_core_of = ROOT }
				220 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				222 = { add_core_of = ROOT }
				223 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				235 = { add_core_of = ROOT }
				236 = { add_core_of = ROOT }
				237 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				239 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				244 = { add_core_of = ROOT }
				245 = { add_core_of = ROOT }
				246 = { add_core_of = ROOT }
				247 = { add_core_of = ROOT }
				248 = { add_core_of = ROOT }
				249 = { add_core_of = ROOT }
				250 = { add_core_of = ROOT }
				251 = { add_core_of = ROOT }
				252 = { add_core_of = ROOT }
				253 = { add_core_of = ROOT }
				254 = { add_core_of = ROOT }
				255 = { add_core_of = ROOT }
				256 = { add_core_of = ROOT }
				257 = { add_core_of = ROOT }
				258 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				260 = { add_core_of = ROOT }
				263 = { add_core_of = ROOT }
				264 = { add_core_of = ROOT }
				329 = { add_core_of = ROOT }
				265 = { add_core_of = ROOT }
				351 = { add_core_of = ROOT }
				398 = { add_core_of = ROOT }
				399 = { add_core_of = ROOT }
				400 = { add_core_of = ROOT }
				401 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				403 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				408 = { add_core_of = ROOT }
				409 = { add_core_of = ROOT }
				560 = { add_core_of = ROOT }
				561 = { add_core_of = ROOT }
				563 = { add_core_of = ROOT }
				564 = { add_core_of = ROOT }
				565 = { add_core_of = ROOT }
				566 = { add_core_of = ROOT }
				567 = { add_core_of = ROOT }
				568 = { add_core_of = ROOT }
				569 = { add_core_of = ROOT }
				570 = { add_core_of = ROOT }
				571 = { add_core_of = ROOT }
				572 = { add_core_of = ROOT }
				573 = { add_core_of = ROOT }
				578 = { add_core_of = ROOT }
				582 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				651 = { add_core_of = ROOT }
				652 = { add_core_of = ROOT }
				653 = { add_core_of = ROOT }
				654 = { add_core_of = ROOT }
				655 = { add_core_of = ROOT }
				657 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
				882 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				827 = { add_core_of = ROOT }
				828 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				829 = { add_core_of = ROOT }
				833 = { add_core_of = ROOT }
				213 = { add_core_of = ROOT }
				215 = { add_core_of = ROOT }
				216 = { add_core_of = ROOT }
				879 = { add_core_of = ROOT }
				214 = { add_core_of = ROOT }
				880 = { add_core_of = ROOT }
				825 = { add_core_of = ROOT }
				262 = { add_core_of = ROOT }
				397 = { add_core_of = ROOT }
				581 = { add_core_of = ROOT }
				579 = { add_core_of = ROOT }
				580 = { add_core_of = ROOT }
				577 = { add_core_of = ROOT }
				824 = { add_core_of = ROOT }
				516 = { add_core_of = ROOT }
				576 = { add_core_of = ROOT }
				878 = { add_core_of = ROOT }
				575 = { add_core_of = ROOT }
				876 = { add_core_of = ROOT }
				877 = { add_core_of = ROOT }
				574 = { add_core_of = ROOT }
				562 = { add_core_of = ROOT }
				644 = { add_core_of = ROOT }
				874 = { add_core_of = ROOT }
				822 = { add_core_of = ROOT }
				637 = { add_core_of = ROOT }
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				10 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				11 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				13 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				
				934 = { owns_or_subject_of = yes }
				935 = { owns_or_subject_of = yes }
				936 = { owns_or_subject_of = yes }
				985 = { owns_or_subject_of = yes }
				1036 = { owns_or_subject_of = yes }
				1037 = { owns_or_subject_of = yes }
				1038 = { owns_or_subject_of = yes }
				1039 = { owns_or_subject_of = yes }
				1040 = { owns_or_subject_of = yes }
				1044 = { owns_or_subject_of = yes }
				

			}
			537 = { add_core_of = ROOT }
			463 = { add_core_of = ROOT }
			#341 = { add_claim_by = ROOT }
			797 = { add_claim_by = ROOT }
			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 }
			330 = { add_claim_by = ROOT }
			817 = { add_claim_by = ROOT }
			818 = { add_claim_by = ROOT }
			819 = { add_claim_by = ROOT }
			820 = { add_claim_by = ROOT }
			328 = { add_claim_by = ROOT }
			610 = { add_claim_by = ROOT }
			714 = { add_claim_by = ROOT }
			715 = { add_claim_by = ROOT }
			716 = { add_claim_by = ROOT }
			717 = { add_claim_by = ROOT }
			761 = { add_claim_by = ROOT }
			611 = { add_claim_by = ROOT }
			612 = { add_claim_by = ROOT }
			745 = { add_claim_by = ROOT }
		}
	}

	formable_nations_carthage = {
	
		priority = 941
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = TUN
				original_tag = LBA
				original_tag = WES
				original_tag = MOR
				original_tag = ALG
				original_tag = SAD
				original_tag = COR
				original_tag = SIC
				original_tag = MLT
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 448
				state = 661
				state = 449
				state = 662
				state = 458
				state = 665
				state = 290
				state = 461
				state = 459
				state = 460
				state = 513
				state = 169
				state = 789
				state = 168
				state = 167
				state = 173
				state = 118
				state = 1
				state = 114
				state = 115
				state = 116
				state = 177
				
				state = 933
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						448 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }						
						458 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }						
						290 = { owns_or_subject_of = yes }
						461 = { owns_or_subject_of = yes }						
						459 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						513 = { owns_or_subject_of = yes }						
						169 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						118 = { owns_or_subject_of = yes }						
						1 = { owns_or_subject_of = yes }
						114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						116 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						
						933 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_CAR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_carthage
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_CAR
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				116 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				
				933 = { add_core_of = ROOT }
				
			}
			513 = { add_core_of = ROOT }
			661 = { add_core_of = ROOT }
			662 = { add_core_of = ROOT }
			114 = { add_core_of = ROOT }
			167 = { add_core_of = ROOT }
			1 = { add_core_of = ROOT }
			175 = { add_core_of = ROOT }
		}
	}

	formable_nations_east_africa = {
	
		priority = 940
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = TZN
				original_tag = KEN
				original_tag = UGA
				original_tag = RWA
				original_tag = BRD
				original_tag = COG
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 547
				state = 903
				state = 904
				state = 905
				state = 546
				state = 548
				state = 768
				state = 769
				state = 295
				state = 538
				state = 718
				state = 890
				state = 888
				state = 889
				state = 884
				state = 885
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						547 = { owns_or_subject_of = yes }
						903 = { owns_or_subject_of = yes }
						904 = { owns_or_subject_of = yes }
						905 = { owns_or_subject_of = yes }
						
						546 = { owns_or_subject_of = yes }
						
						548 = { owns_or_subject_of = yes }
						
						768 = { owns_or_subject_of = yes }
						769 = { owns_or_subject_of = yes }
						295 = { owns_or_subject_of = yes }
						538 = { owns_or_subject_of = yes }
						718 = { owns_or_subject_of = yes }
						890 = { owns_or_subject_of = yes }
						888 = { owns_or_subject_of = yes }
						889 = { owns_or_subject_of = yes }
						
						884 = { owns_or_subject_of = yes }
						885 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_EAF } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_east_africa
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_EAF
			add_stability = 0.2
			set_capital = { state = 546 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available		
				547 = { add_core_of = ROOT }
				903 = { add_core_of = ROOT }
				904 = { add_core_of = ROOT }
				905 = { add_core_of = ROOT }

				546 = { add_core_of = ROOT }

				548 = { add_core_of = ROOT }

				768 = { add_core_of = ROOT }
				769 = { add_core_of = ROOT }
				295 = { add_core_of = ROOT }
				538 = { add_core_of = ROOT }
				718 = { add_core_of = ROOT }
				890 = { add_core_of = ROOT }
				888 = { add_core_of = ROOT }
				889 = { add_core_of = ROOT }

				884 = { add_core_of = ROOT }
				885 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_mali_empire = {
	
		priority = 939
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MLI
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 556
				state = 899
				state = 898
				state = 782
				state = 557
				state = 786
				state = 701
				state = 272
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						556 = { owns_or_subject_of = yes }
						899 = { owns_or_subject_of = yes }
						898 = { owns_or_subject_of = yes }
						782 = { owns_or_subject_of = yes }
						557 = { owns_or_subject_of = yes }
						786 = { owns_or_subject_of = yes }
						701 = { owns_or_subject_of = yes }
						272 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MAE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_mali_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MAE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				556 = { add_core_of = ROOT }
				782 = { add_core_of = ROOT }
				786 = { add_core_of = ROOT }
				557 = { add_core_of = ROOT }
				272 = { add_core_of = ROOT }
				701 = { add_core_of = ROOT }
				899 = { add_core_of = ROOT }
				898 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_sahel = {
	
		priority = 938
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MRT
				original_tag = MLI
				original_tag = NGR
				original_tag = CHA
				original_tag = SUD
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 556
				state = 899
				state = 898
				state = 782
				state = 557
				state = 786
				state = 515
				state = 781
				state = 774
				state = 775
				state = 549
				state = 767
				state = 887
				state = 551
				state = 883
				state = 886
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						556 = { owns_or_subject_of = yes }
						899 = { owns_or_subject_of = yes }
						898 = { owns_or_subject_of = yes }
						782 = { owns_or_subject_of = yes }
						557 = { owns_or_subject_of = yes }
						786 = { owns_or_subject_of = yes }			
						515 = { owns_or_subject_of = yes }
						781 = { owns_or_subject_of = yes }						
						774 = { owns_or_subject_of = yes }
						775 = { owns_or_subject_of = yes }						
						549 = { owns_or_subject_of = yes }
						767 = { owns_or_subject_of = yes }
						887 = { owns_or_subject_of = yes }
						551 = { owns_or_subject_of = yes }
						883 = { owns_or_subject_of = yes }
						886 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_SAH } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_sahel
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_SAH
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				557 = { add_core_of = ROOT }
				786 = { add_core_of = ROOT }
				556 = { add_core_of = ROOT }
				782 = { add_core_of = ROOT }
				515 = { add_core_of = ROOT }
				781 = { add_core_of = ROOT }
				774 = { add_core_of = ROOT }
				775 = { add_core_of = ROOT }
				549 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				886 = { add_core_of = ROOT }
				887 = { add_core_of = ROOT }
				551 = { add_core_of = ROOT }
				767 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_afro_eurasia = {#continent
	
		priority = 4
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = africa }
				capital_scope = { is_on_continent = europe }
				capital_scope = { OR = { is_on_continent = asia  is_on_continent = middle_east } }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger= {
				OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe is_on_continent = africa }
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = afro_eurasia_requirement_tooltip 
				OR = {
					AND = {
						all_state = {
							OR = {
								AND = {
									OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe is_on_continent = africa }
									NOT = {
										OR = {				
											state = 698
											state = 177
											state = 1
											state = 114
											state = 116
											state = 183
											state = 182
											state = 164
											state = 337
											state = 100
											state = 124
											state = 281
											state = 710
											state = 711
											state = 712
											state = 733
											state = 270
											state = 641
											state = 726
											state = 642
											state = 727
											state = 630
											state = 631
											state = 629
											state = 636
											state = 643
											state = 639
											state = 633
											state = 725
											state = 684
											state = 632
											state = 638
											state = 646
											state = 647
											state = 645
											state = 648
											state = 526
											state = 650
											state = 697
											state = 178
											state = 702
											state = 703
											state = 704
											state = 297
											state = 705
											state = 708
											state = 709
											state = 706
											state = 707
											state = 713
											state = 543
										}
									}
									is_controlled_by = ROOT
								}
								NOT = { OR = { is_on_continent = asia  is_on_continent = middle_east is_on_continent = europe is_on_continent = africa } }
								
								state = 698
								state = 177
								state = 1
								state = 114
								state = 116
								state = 183
								state = 182
								state = 164
								state = 337
								state = 100
								state = 124
								state = 281
								state = 710
								state = 711
								state = 712
								state = 733
								state = 270
								state = 641
								state = 726
								state = 642
								state = 727
								state = 630
								state = 631
								state = 629
								state = 636
								state = 643
								state = 639
								state = 633
								state = 725
								state = 684
								state = 632
								state = 638
								state = 646
								state = 647
								state = 645
								state = 648
								state = 526
								state = 650
								state = 697
								state = 178
								state = 702
								state = 703
								state = 704
								state = 297
								state = 705
								state = 708
								state = 709
								state = 706
								state = 707
								state = 713
								state = 543
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AEA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_afro_eurasia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AEA
			add_stability = 0.2
			set_capital = { state = 797 }
			set_province_name = { id = 9833 name = "The City" }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = {
						OR = {
							is_on_continent = europe
							OR = { is_on_continent = asia  is_on_continent = middle_east }
							is_on_continent = africa
						}
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_greater_austria = {
	
		priority = 937
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AUS
			}
		}
		
		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 152
				state = 153
				state = 848
				state = 9
				state = 69
				state = 74
				state = 75
				state = 102
				state = 853
				state = 736
				state = 103
				state = 163
				state = 852
				state = 159
				state = 160
				state = 736
				state = 852
				state = 39
				state = 850
				
				state = 912
				state = 956
				state = 958
				state = 1054
				state = 1078
				state = 1086

			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						
						103 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						
						159 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }

                        912 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1078 = { owns_or_subject_of = yes }
						1086 = { owns_or_subject_of = yes }
				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GAU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_austria
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GAU
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }

                912 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }

			}
			72 = { add_core_of = ROOT }
			997 = { add_core_of = ROOT }
			997 = { add_claim_by = ROOT }
		}
	}

	formable_nations_anglosphere = {
	
		priority = 936
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ENG
				original_tag = WLS
				original_tag = SCO
				original_tag = NIR
				original_tag = IRE
				original_tag = CAN
				original_tag = USA
				original_tag = AST
				original_tag = NZL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 113
				state = 134
				state = 135
				state = 119
				state = 120
				state = 121
				state = 133
				state = 136
				state = 131
				state = 130
				state = 132
				state = 128
				state = 122
				state = 129
				state = 125
				state = 338
				state = 123
				state = 127
				state = 126
				state = 870
				state = 871
				state = 872
				state = 873
				state = 285
				state = 517
				state = 518
				state = 519
				state = 520
				state = 521
				state = 522 
				state = 674
				state = 284
				state = 723
				state = 276
				state = 464
				state = 465
				state = 466
				state = 467
				state = 468
				state = 469
				state = 865
				state = 866
				state = 867
				state = 860
				state = 862
				state = 863
				state = 470
				state = 471
				state = 864
				state = 472
				state = 473
				state = 682
				state = 683
				state = 739
				state = 740
				state = 332
				state = 331
				state = 261
				state = 357
				state = 358
				state = 359
				state = 360
				state = 361
				state = 362
				state = 363
				state = 364
				state = 365
				state = 366
				state = 367
				state = 368
				state = 369
				state = 370
				state = 371
				state = 372
				state = 373
				state = 374
				state = 375
				state = 376
				state = 377
				state = 378
				state = 379
				state = 380
				state = 381
				state = 382
				state = 383
				state = 384
				state = 385
				state = 386
				state = 387
				state = 388
				state = 389
				state = 390
				state = 391
				state = 392
				state = 393
				state = 394
				state = 395
				state = 396
				state = 816

				state = 463
				state = 861
				state = 921
				state = 970
				state = 971
				state = 990
				state = 991
				state = 992
				state = 993
                state = 1041
				state = 1042
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {	
						113 = { owns_or_subject_of = yes }
						134 = { owns_or_subject_of = yes }
						135 = { owns_or_subject_of = yes }
						119 = { owns_or_subject_of = yes }
						120 = { owns_or_subject_of = yes }
						121 = { owns_or_subject_of = yes }
						133 = { owns_or_subject_of = yes }
						136 = { owns_or_subject_of = yes }
						131 = { owns_or_subject_of = yes }
						130 = { owns_or_subject_of = yes }
						132 = { owns_or_subject_of = yes }
						128 = { owns_or_subject_of = yes }
						122 = { owns_or_subject_of = yes }
						129 = { owns_or_subject_of = yes }
						125 = { owns_or_subject_of = yes }
						338 = { owns_or_subject_of = yes }
						123 = { owns_or_subject_of = yes }
						127 = { owns_or_subject_of = yes }
						126 = { owns_or_subject_of = yes }
						870 = { owns_or_subject_of = yes }
						871 = { owns_or_subject_of = yes }
						872 = { owns_or_subject_of = yes }
						873 = { owns_or_subject_of = yes }
						285 = { owns_or_subject_of = yes }
						517 = { owns_or_subject_of = yes }
						518 = { owns_or_subject_of = yes }
						519 = { owns_or_subject_of = yes }
						520 = { owns_or_subject_of = yes }
						521 = { owns_or_subject_of = yes }
						522 = { owns_or_subject_of = yes } 
						674 = { owns_or_subject_of = yes }						
						284 = { owns_or_subject_of = yes }
						723 = { owns_or_subject_of = yes }						
						276 = { owns_or_subject_of = yes }
						464 = { owns_or_subject_of = yes }
						465 = { owns_or_subject_of = yes }
						466 = { owns_or_subject_of = yes }
						467 = { owns_or_subject_of = yes }
						468 = { owns_or_subject_of = yes }
						469 = { owns_or_subject_of = yes }
						865 = { owns_or_subject_of = yes }
						866 = { owns_or_subject_of = yes }
						867 = { owns_or_subject_of = yes }
						860 = { owns_or_subject_of = yes }
						862 = { owns_or_subject_of = yes }
						863 = { owns_or_subject_of = yes }
						470 = { owns_or_subject_of = yes }
						471 = { owns_or_subject_of = yes }
						864 = { owns_or_subject_of = yes }
						472 = { owns_or_subject_of = yes }
						473 = { owns_or_subject_of = yes }
						682 = { owns_or_subject_of = yes }
						683 = { owns_or_subject_of = yes }
						739 = { owns_or_subject_of = yes }
						740 = { owns_or_subject_of = yes }
						332 = { owns_or_subject_of = yes }
						331 = { owns_or_subject_of = yes }						
						261 = { owns_or_subject_of = yes }
						357 = { owns_or_subject_of = yes }
						358 = { owns_or_subject_of = yes }
						359 = { owns_or_subject_of = yes }
						360 = { owns_or_subject_of = yes }
						361 = { owns_or_subject_of = yes }
						362 = { owns_or_subject_of = yes }
						363 = { owns_or_subject_of = yes }
						364 = { owns_or_subject_of = yes }
						365 = { owns_or_subject_of = yes }
						366 = { owns_or_subject_of = yes }
						367 = { owns_or_subject_of = yes }
						368 = { owns_or_subject_of = yes }
						369 = { owns_or_subject_of = yes }
						370 = { owns_or_subject_of = yes }
						371 = { owns_or_subject_of = yes }
						372 = { owns_or_subject_of = yes }
						373 = { owns_or_subject_of = yes }
						374 = { owns_or_subject_of = yes }
						375 = { owns_or_subject_of = yes }
						376 = { owns_or_subject_of = yes }
						377 = { owns_or_subject_of = yes }
						378 = { owns_or_subject_of = yes }
						379 = { owns_or_subject_of = yes }
						380 = { owns_or_subject_of = yes }
						381 = { owns_or_subject_of = yes }
						382 = { owns_or_subject_of = yes }
						383 = { owns_or_subject_of = yes }
						384 = { owns_or_subject_of = yes }
						385 = { owns_or_subject_of = yes }
						386 = { owns_or_subject_of = yes }
						387 = { owns_or_subject_of = yes }
						388 = { owns_or_subject_of = yes }
						389 = { owns_or_subject_of = yes }
						390 = { owns_or_subject_of = yes }
						391 = { owns_or_subject_of = yes }
						392 = { owns_or_subject_of = yes }
						393 = { owns_or_subject_of = yes }
						394 = { owns_or_subject_of = yes }
						395 = { owns_or_subject_of = yes }
						396 = { owns_or_subject_of = yes }
						816 = { owns_or_subject_of = yes }

						463 = { owns_or_subject_of = yes }
						861 = { owns_or_subject_of = yes }
						921 = { owns_or_subject_of = yes }
						970 = { owns_or_subject_of = yes }
						971 = { owns_or_subject_of = yes }
						990 = { owns_or_subject_of = yes }
				        991 = { owns_or_subject_of = yes }
				        992 = { owns_or_subject_of = yes }
						993 = { owns_or_subject_of = yes }
						1041 = { owns_or_subject_of = yes }
					    1042 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AGL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_anglosphere
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AGL
			add_stability = 0.2
			if = {
				limit = {
					OR = {
						original_tag = CAN
						original_tag = USA
					}
				}
				set_capital = { state = 358 }
				else = { set_capital = { state = 126 } }
			}
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				285 = { add_core_of = ROOT }
				517 = { add_core_of = ROOT }
				519 = { add_core_of = ROOT }
				520 = { add_core_of = ROOT }
				522 = { add_core_of = ROOT }
				870 = { add_core_of = ROOT }
				871 = { add_core_of = ROOT }
				872 = { add_core_of = ROOT }
				861 = { add_core_of = ROOT }
				873 = { add_core_of = ROOT }
				521 = { add_core_of = ROOT }
				674 = { add_core_of = ROOT }
				518 = { add_core_of = ROOT }
				284 = { add_core_of = ROOT }
				723 = { add_core_of = ROOT }
				113 = { add_core_of = ROOT }
				134 = { add_core_of = ROOT }
				135 = { add_core_of = ROOT }
				119 = { add_core_of = ROOT }
				276 = { add_core_of = ROOT }
				464 = { add_core_of = ROOT }
				465 = { add_core_of = ROOT }
				466 = { add_core_of = ROOT }
				467 = { add_core_of = ROOT }
				468 = { add_core_of = ROOT }
				469 = { add_core_of = ROOT }
				865 = { add_core_of = ROOT }
				866 = { add_core_of = ROOT }
				867 = { add_core_of = ROOT }
				860 = { add_core_of = ROOT }
				862 = { add_core_of = ROOT }
				863 = { add_core_of = ROOT }
				470 = { add_core_of = ROOT }
				471 = { add_core_of = ROOT }
				864 = { add_core_of = ROOT }
				472 = { add_core_of = ROOT }
				473 = { add_core_of = ROOT }
				682 = { add_core_of = ROOT }
				683 = { add_core_of = ROOT }
				740 = { add_core_of = ROOT }
				331 = { add_core_of = ROOT }
				332 = { add_core_of = ROOT }
				120 = { add_core_of = ROOT }
				121 = { add_core_of = ROOT }
				133 = { add_core_of = ROOT }
				136 = { add_core_of = ROOT }
				131 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				122 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				816 = { add_core_of = ROOT }
				123 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				261 = { add_core_of = ROOT }
				357 = { add_core_of = ROOT }
				358 = { add_core_of = ROOT }
				359 = { add_core_of = ROOT }
				360 = { add_core_of = ROOT }
				361 = { add_core_of = ROOT }
				362 = { add_core_of = ROOT }
				363 = { add_core_of = ROOT }
				364 = { add_core_of = ROOT }
				365 = { add_core_of = ROOT }
				366 = { add_core_of = ROOT }
				367 = { add_core_of = ROOT }
				368 = { add_core_of = ROOT }
				369 = { add_core_of = ROOT }
				370 = { add_core_of = ROOT }
				371 = { add_core_of = ROOT }
				372 = { add_core_of = ROOT }
				373 = { add_core_of = ROOT }
				374 = { add_core_of = ROOT }
				375 = { add_core_of = ROOT }
				376 = { add_core_of = ROOT }
				377 = { add_core_of = ROOT }
				378 = { add_core_of = ROOT }
				379 = { add_core_of = ROOT }
				380 = { add_core_of = ROOT }
				381 = { add_core_of = ROOT }
				382 = { add_core_of = ROOT }
				383 = { add_core_of = ROOT }
				384 = { add_core_of = ROOT }
				385 = { add_core_of = ROOT }
				386 = { add_core_of = ROOT }
				387 = { add_core_of = ROOT }
				388 = { add_core_of = ROOT }
				389 = { add_core_of = ROOT }
				390 = { add_core_of = ROOT }
				391 = { add_core_of = ROOT }
				392 = { add_core_of = ROOT }
				393 = { add_core_of = ROOT }
				394 = { add_core_of = ROOT }
				395 = { add_core_of = ROOT }
				396 = { add_core_of = ROOT }
				463 = { add_core_of = ROOT }
				739 = { add_core_of = ROOT }

				463 = { add_core_of = ROOT }
				861 = { add_core_of = ROOT }
				921 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				971 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				971 = { add_core_of = ROOT }
				990 = { add_core_of = ROOT }
				991 = { add_core_of = ROOT }
				992 = { add_core_of = ROOT }
				993 = { add_core_of = ROOT }
				1041 = { add_core_of = ROOT }
				1042 = { add_core_of = ROOT }
				
			}
			629 = { add_core_of = ROOT }
			686 = { add_core_of = ROOT }
		}
	}

	formable_nations_levant = {
		
		priority = 935
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SYR
				original_tag = LEB
				original_tag = PAL
				original_tag = JOR
				original_tag = ISR
				original_tag = MPL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 553
				state = 554
				state = 677
				state = 680
				state = 454
				state = 455
				
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }
						
						949 = { owns_or_subject_of = yes }
						966 = { owns_or_subject_of = yes }
						1016 = { owns_or_subject_of = yes }
						1017 = { owns_or_subject_of = yes }
						1021 = { owns_or_subject_of = yes }
						1022 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_LEV } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_levant
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_LEV
			add_stability = 0.1
			set_capital = { state = 554 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				
			}
			183 = { add_claim_by = ROOT }
			799 = { add_claim_by = ROOT }
		}
	}

	formable_nations_greater_korea = {
	
		priority = 934
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = KOR
				original_tag = NKR
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 525
				state = 527
				state = 328
				state = 716
				state = 717
				state = 745
				
				state = 917
				state = 918
				state = 919
				state = 920
				state = 941
				state = 942
				state = 943
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						525 = { owns_or_subject_of = yes }
						527 = { owns_or_subject_of = yes }
						328 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						717 = { owns_or_subject_of = yes }
						745 = { owns_or_subject_of = yes }
						
						917 = { owns_or_subject_of = yes }
						918 = { owns_or_subject_of = yes }
						919 = { owns_or_subject_of = yes }
						920 = { owns_or_subject_of = yes }
						941 = { owns_or_subject_of = yes }
						942 = { owns_or_subject_of = yes }
						943 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GKO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_korea
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GKO
			add_stability = 0.05
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				525 = { add_core_of = ROOT }
				527 = { add_core_of = ROOT }
				328 = { add_core_of = ROOT }
				716 = { add_core_of = ROOT }
				717 = { add_core_of = ROOT }
				745 = { add_core_of = ROOT }
				
				917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				941 = { add_core_of = ROOT }
				942 = { add_core_of = ROOT }
				943 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_middle_east = {#continent
	
		priority = 8
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { is_on_continent = middle_east }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
			    OR {
				is_on_continent = middle_east	
				state = 341
				state = 797
				state = 907
				state = 447
				state = 452
				state = 456
				state = 457
				state = 552
				state = 911
				state = 995
				}
			}
		}
		available = {
			custom_trigger_tooltip = { 
				tooltip = middle_east_requirement_tooltip 
				OR = {
					all_state = {
						OR = {
							AND = {
								OR = {
									is_on_continent = middle_east
									state = 341
									state = 797
									state = 907
									state = 447
									state = 452
									state = 456
									state = 457
									state = 552
									state = 183
									state = 911
									state = 995
								}
								NOT = {
									OR = {
										state = 230
										state = 229
										state = 231 
										state = 826
										state = 415
										state = 1010
									}
								}
								is_controlled_by = ROOT
							}
							NOT = { 
								OR = {
									is_on_continent = middle_east
									state = 341
									state = 797
									state = 907
									state = 447
									state = 452
									state = 456
									state = 457
									state = 552
									state = 183
									state = 911
									state = 995
								}
							}
							state = 230
							state = 229
							state = 231 
							state = 826
							state = 415
							state = 1010
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_MID } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_middle_east
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_MID
			add_stability = 0.2
			set_capital = { state = 291 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = { 
						OR = {
							is_on_continent = middle_east
							state = 341
							state = 797
							state = 907
							state = 447
							state = 452
							state = 456
							state = 457
							state = 552
							state = 183
							state = 911
							state = 995
						}
						NOT = {
							OR = {
								state = 230
								state = 229
								state = 231 
								state = 826
								state = 415
								state = 1010
							}
						}
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_greater_japan = {
	
		priority = 931
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = JAP
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 528
				state = 530
				state = 529
				state = 531
				state = 532
				state = 535
				state = 282
				state = 534
				state = 533
				state = 536
				state = 526
				state = 537
				state = 555
				state = 611
				state = 612
				state = 328
				state = 610
				state = 714
				state = 715
				state = 716
				state = 717
				state = 761
				state = 745
				state = 609
				state = 716
				state = 610
				state = 608
				state = 614
				state = 597
				state = 743
				state = 598
				state = 613
				state = 525
				state = 527
				
				state = 917
				state = 918
				state = 919
				state = 920
				state = 941
				state = 942
				state = 943
				state = 944
				state = 945
				state = 946
				state = 947
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						528 = { owns_or_subject_of = yes }
						530 = { owns_or_subject_of = yes }
						529 = { owns_or_subject_of = yes }
						531 = { owns_or_subject_of = yes }
						532 = { owns_or_subject_of = yes }
						535 = { owns_or_subject_of = yes }
						282 = { owns_or_subject_of = yes }
						534 = { owns_or_subject_of = yes }
						533 = { owns_or_subject_of = yes }
						536 = { owns_or_subject_of = yes }
						526 = { owns_or_subject_of = yes }
						537 = { owns_or_subject_of = yes }
						555 = { owns_or_subject_of = yes }
						
						611 = { owns_or_subject_of = yes }
						612 = { owns_or_subject_of = yes }
						328 = { owns_or_subject_of = yes }
						610 = { owns_or_subject_of = yes }
						714 = { owns_or_subject_of = yes }
						715 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						717 = { owns_or_subject_of = yes }
						761 = { owns_or_subject_of = yes }
						
						745 = { owns_or_subject_of = yes }
						609 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						610 = { owns_or_subject_of = yes }
						608 = { owns_or_subject_of = yes }
						614 = { owns_or_subject_of = yes }
						597 = { owns_or_subject_of = yes }
						743 = { owns_or_subject_of = yes }
						598 = { owns_or_subject_of = yes }
						613 = { owns_or_subject_of = yes }
						
						525 = { owns_or_subject_of = yes }
						527 = { owns_or_subject_of = yes }
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GJA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_japan
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GJA
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				528 = { add_core_of = ROOT }
				530 = { add_core_of = ROOT }
				529 = { add_core_of = ROOT }
				531 = { add_core_of = ROOT }
				532 = { add_core_of = ROOT }
				535 = { add_core_of = ROOT }
				282 = { add_core_of = ROOT }
				534 = { add_core_of = ROOT }
				533 = { add_core_of = ROOT }
				536 = { add_core_of = ROOT }
				555 = { add_core_of = ROOT }
				537 = { add_core_of = ROOT }
				655 = { add_core_of = ROOT }
				526 = { add_core_of = ROOT }
				525 = { add_core_of = ROOT }
				527 = { add_core_of = ROOT }
				524 = { add_core_of = ROOT }
				645 = { add_core_of = ROOT }
				761 = { add_core_of = ROOT }
				714 = { add_core_of = ROOT }
				610 = { add_core_of = ROOT }
				328 = { add_core_of = ROOT }
				715 = { add_core_of = ROOT }
				716 = { add_core_of = ROOT }
				717 = { add_core_of = ROOT }
				745 = { add_core_of = ROOT }
				609 = { add_core_of = ROOT }
				408 = { add_core_of = ROOT }
				409 = { add_core_of = ROOT }
				611 = { add_core_of = ROOT }
				612 = { add_core_of = ROOT }
			}
			608 = { add_core_of = ROOT }
			614 = { add_core_of = ROOT }
			597 = { add_core_of = ROOT }
			743 = { add_core_of = ROOT }
			598 = { add_core_of = ROOT }
			613 = { add_core_of = ROOT }
		}
	}

	formable_nations_khmer_empire = {
	
		priority = 930
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CAM
				original_tag = FRI
				original_tag = SIA
				original_tag = LAO
				original_tag = VIN
				original_tag = BRM
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 741
				state = 670
				state = 286
				state = 289
				state = 868
				state = 724
				
				state = 869
				state = 924
				state = 925
				state = 926
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						741 = { owns_or_subject_of = yes }						
						670 = { owns_or_subject_of = yes }
						286 = { owns_or_subject_of = yes }						
						289 = { owns_or_subject_of = yes }
						868 = { owns_or_subject_of = yes }
						724 = { owns_or_subject_of = yes }
						
						869 = { owns_or_subject_of = yes }
						924 = { owns_or_subject_of = yes }
						925 = { owns_or_subject_of = yes }
						926 = { owns_or_subject_of = yes }
						
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_KHM } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_khmer_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_KHM
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				741 = { add_core_of = ROOT }
				670 = { add_core_of = ROOT }
				286 = { add_core_of = ROOT }
				289 = { add_core_of = ROOT }
				868 = { add_core_of = ROOT }
				724 = { add_core_of = ROOT }
				
				869 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				925 = { add_core_of = ROOT }
				926 = { add_core_of = ROOT }
				
			}
		}
	}

	formable_nations_bengal_empire = {
	
		priority = 929
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BAN
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 430
				state = 431
				state = 432
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						430 = { owns_or_subject_of = yes }
						431 = { owns_or_subject_of = yes }
						432 = { owns_or_subject_of = yes }
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BEE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_bengal_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BEE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				430 = { add_core_of = ROOT }
				431 = { add_core_of = ROOT }
				432 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_guyanas = {
	
		priority = 928
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GYA
				original_tag = SUR
				original_tag = CAY
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 309
				state = 310
				state = 687
				
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						309 = { owns_or_subject_of = yes }
						310 = { owns_or_subject_of = yes }
						687 = { owns_or_subject_of = yes }
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GUY } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_guyanas
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_GUY
			add_stability = 0.1
			set_capital = { state = 687 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				309 = { add_core_of = ROOT }
				310 = { add_core_of = ROOT }
				687 = { add_core_of = ROOT }
			}
			488 = { add_core_of = ROOT }
		}
	}

	formable_nations_americas = {#continent
	
		priority = 5
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				capital_scope = { OR = { is_on_continent = north_america  is_on_continent = south_america } }
			}
		}
		on_map_mode = decision_view_only
		highlight_states = {
			highlight_states_trigger = {
				OR = {
					is_on_continent = north_america
					is_on_continent = south_america
					state = 649
				}
			}
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = north_america_requirement_tooltip
				OR = {
					AND = {
						OR = { is_subject = no has_global_flag = puppets_allowed }
						
						all_state = {
							OR = {
								AND = {
									OR = {
										is_on_continent = north_america
										state = 311
										state = 313
										state = 312
										state = 314
										state = 316
										state = 317
										state = 685
										state = 304
									}
									NOT = {
										OR = {
											state = 696
											state = 101
											state = 739
											state = 730
										}
									}
									is_controlled_by = ROOT
								}
								NOT = { 
									OR = {
										is_on_continent = north_america 
										state = 311
										state = 313
										state = 312
										state = 314
										state = 316
										state = 317
										state = 685
										state = 304
									}
								}
								state = 696
								state = 101
								state = 739
								state = 730
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { 
				tooltip = south_america_requirement_tooltip 
				OR = {
					all_state = {
						OR = {
							AND = {
								is_on_continent = south_america
								is_controlled_by = ROOT
								NOT = {
									state = 690
									state = 693
									state = 689
									state = 315
									state = 318
									state = 319
									state = 692
									state = 694
									state = 308
									state = 686
									state = 311
									state = 313
									state = 312
									state = 314
									state = 316
									state = 317
									state = 299
									state = 720
									state = 649
								}
							}
							NOT = {
								is_on_continent = south_america
							}
							OR = {
								state = 690
								state = 693
								state = 689
								state = 315
								state = 318
								state = 319
								state = 692
								state = 694
								state = 308
								state = 686
								state = 311
								state = 313
								state = 312
								state = 314
								state = 316
								state = 317
								state = 299
								state = 720
								state = 649
							}
						}
					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AME } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_americas
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AME
			add_stability = 0.2
			set_capital = { state = 304 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				every_state = {
					limit = {
						OR = { is_on_continent = north_america is_on_continent = south_america }
						NOT = { is_core_of = ROOT }
					}
					add_core_of = ROOT
				}
			}
		}
	}

	formable_nations_andes = {
	
		priority = 927
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = COL
				original_tag = ECU
				original_tag = PRU
				original_tag = BOL
				original_tag = ARG
				original_tag = CHL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 507
				state = 279
				state = 506
				state = 492
				state = 303
				state = 305
				state = 306
				state = 489
				state = 493
				state = 302
				state = 508
				state = 494
				state = 491
				state = 490

                state = 954
                state = 1051
				state = 1061
				state = 1062
				state = 1063
				state = 1064
				state = 1071

			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						507 = { owns_or_subject_of = yes }
						279 = { owns_or_subject_of = yes }
						506 = { owns_or_subject_of = yes }
						492 = { owns_or_subject_of = yes }
						303 = { owns_or_subject_of = yes }
						305 = { owns_or_subject_of = yes }
						306 = { owns_or_subject_of = yes }
						489 = { owns_or_subject_of = yes }
						493 = { owns_or_subject_of = yes }
						302 = { owns_or_subject_of = yes }
						508 = { owns_or_subject_of = yes }
						494 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }
						490 = { owns_or_subject_of = yes }

                        954 = { owns_or_subject_of = yes }
						1051 = { owns_or_subject_of = yes }
				        1061 = { owns_or_subject_of = yes }
						1062 = { owns_or_subject_of = yes }
				        1063 = { owns_or_subject_of = yes }
				        1064 = { owns_or_subject_of = yes }
				        1071 = { owns_or_subject_of = yes }

					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_AND } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_andes
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_AND
			add_stability = 0.15
			set_capital = { state = 303 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				507 = { add_core_of = ROOT }
				279 = { add_core_of = ROOT }
				506 = { add_core_of = ROOT }
				492 = { add_core_of = ROOT }
				303 = { add_core_of = ROOT }
				305 = { add_core_of = ROOT }
				306 = { add_core_of = ROOT }
				489 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
				302 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				494 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				490 = { add_core_of = ROOT }

				954 = { add_core_of = ROOT }
                1051 = { add_core_of = ROOT }
				1061 = { add_core_of = ROOT }
				1062 = { add_core_of = ROOT }
				1063 = { add_core_of = ROOT }
				1064 = { add_core_of = ROOT }
				1071 = { add_core_of = ROOT }

			}
		}
	}

	formable_nations_zapadoslavia = {
	
		priority = 926
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = SLO
				original_tag = CZE
				original_tag = DNZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 807
				state = 762
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 66
				state = 67
				state = 762

                state = 934
                state = 935
				state = 936
				state = 996
				state = 1078
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }						
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						72 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }					
						66 = { owns_or_subject_of = yes }
						67 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }

						934 = { owns_or_subject_of = yes }
						935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
				        1078 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ZAP } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_zapadoslavia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ZAP
			add_stability = 0.1
			set_capital = { state = 88 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				10 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }

				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
						
			}
			5 = { add_core_of = ROOT }
		}
	}

	formable_nations_south_german_federation = {
	
		priority = 925
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AUS
				original_tag = BAY
				original_tag = WUR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 152
				state = 153
				state = 848
				state = 39
				state = 850
				state = 52
				state = 53
				state = 54
				state = 50
				
				state = 1054
				state = 1086
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }
						
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						
						52 = { owns_or_subject_of = yes }
						53 = { owns_or_subject_of = yes }
						54 = { owns_or_subject_of = yes }
						50 = { owns_or_subject_of = yes }
	
						1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_SGF } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_south_german_federation
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_SGF
			add_stability = 0.1
			set_capital = { state = 52 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }				
			}
			997 = { add_core_of = ROOT }
			997 = { add_claim_by = ROOT }
		}
	}

	formable_nations_north_german_federation = {
	
		priority = 924
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PRE
				original_tag = HAN
				original_tag = MEK
				original_tag = SAX
				original_tag = SHL
				original_tag = SIL
				original_tag = RHI
				original_tag = DNZ
				original_tag = THU
				original_tag = HES
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 64
				state = 5
				state = 59
				state = 55
				state = 63
				state = 763
				state = 61
				state = 42
				state = 66
				state = 67
				state = 68
				state = 51
				state = 65
				state = 58
				state = 60
				state = 62
				state = 56
				state = 57
				state = 762
				state = 86
				state = 188
				state = 85
				state = 807

				state = 922
				state = 989
				state = 998
				state = 1053
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						64 = { owns_or_subject_of = yes }
						5 = { owns_or_subject_of = yes }
						59 = { owns_or_subject_of = yes }
						55 = { owns_or_subject_of = yes }
						63 = { owns_or_subject_of = yes }
						763 = { owns_or_subject_of = yes }
						61 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
						66 = { owns_or_subject_of = yes }
						67 = { owns_or_subject_of = yes }
						68 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						65 = { owns_or_subject_of = yes }
						58 = { owns_or_subject_of = yes }
						60 = { owns_or_subject_of = yes }
						62 = { owns_or_subject_of = yes }
						56 = { owns_or_subject_of = yes }
						57 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						188 = { owns_or_subject_of = yes }
						85 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						
						922 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
				        998 = { owns_or_subject_of = yes }
				        1053 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_NGF } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_north_german_federation
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_NGF
			add_stability = 0.1
			set_capital = { state = 64 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				64 = { add_core_of = ROOT }
				5 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				763 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }

				922 = { owns_or_subject_of = yes }
				989 = { owns_or_subject_of = yes }
				998 = { owns_or_subject_of = yes }
				1053 = { owns_or_subject_of = yes }
			}
		}
	}

	formable_nations_germany = {
	
		priority = 923
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PRE
				original_tag = HAN
				original_tag = MEK
				original_tag = SAX
				original_tag = SHL
				original_tag = AUS
				original_tag = BAY
				original_tag = WUR
				original_tag = SIL
				original_tag = RHI
				original_tag = WUR
				original_tag = THU
				original_tag = SAR
				original_tag = HES
				original_tag = BAD
			}
			OR = {
				has_cosmetic_tag = FORM_NGF
				has_cosmetic_tag = FORM_SGF
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 5
				state = 42
				state = 50
				state = 51
				state = 52
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 65
				state = 66
				state = 67
				state = 68
				state = 762
				state = 86
				state = 85
				state = 807
				state = 188
				
				state = 763
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						5 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
						50 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						52 = { owns_or_subject_of = yes }
						53 = { owns_or_subject_of = yes }
						54 = { owns_or_subject_of = yes }
						55 = { owns_or_subject_of = yes }
						56 = { owns_or_subject_of = yes }
						57 = { owns_or_subject_of = yes }
						58 = { owns_or_subject_of = yes }
						59 = { owns_or_subject_of = yes }
						60 = { owns_or_subject_of = yes }
						61 = { owns_or_subject_of = yes }
						62 = { owns_or_subject_of = yes }
						63 = { owns_or_subject_of = yes }
						64 = { owns_or_subject_of = yes }
						65 = { owns_or_subject_of = yes }
						66 = { owns_or_subject_of = yes }
						67 = { owns_or_subject_of = yes }
						763 = { owns_or_subject_of = yes }
						68 = { owns_or_subject_of = yes }					
						762 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						85 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						188 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = GER } } NOT = { country_exists = GER } }
		}
		icon = formable_nations_germany
		complete_effect = {
			hidden_effect = { sound_effect = complete_focus
				ROOT = {
					GER = {
						set_politics = {
							ruling_party = ROOT
							elections_allowed = no
						}
						add_popularity = {
							ideology = ROOT
							popularity = 0.8
						}
					}
					every_state = {
						limit = {
							is_core_of = root
						}
						add_core_of = GER
					}
				}
				add_to_faction = GER
				GER = { change_tag_from = ROOT }
				GER = {
					annex_country = {
						target = ROOT
						transfer_troops = yes
					}
					set_faction_leader = yes
					add_state_core = 762
					add_state_core = 86
					add_state_core = 85
					add_state_core = 807
					add_state_core = 188
					5 = { add_core_of = GER }
					42 = { add_core_of = GER }
					50 = { add_core_of = GER }
					51 = { add_core_of = GER }
					52 = { add_core_of = GER }
					53 = { add_core_of = GER }
					54 = { add_core_of = GER }
					55 = { add_core_of = GER }
					56 = { add_core_of = GER }
					57 = { add_core_of = GER }
					58 = { add_core_of = GER }
					59 = { add_core_of = GER }
					60 = { add_core_of = GER }
					61 = { add_core_of = GER }
					62 = { add_core_of = GER }
					63 = { add_core_of = GER }
					64 = { add_core_of = GER }
					65 = { add_core_of = GER }
					66 = { add_core_of = GER }
					67 = { add_core_of = GER }
					68 = { add_core_of = GER }
					763 = { add_core_of = GER }
					add_stability = 0.1
				}
			}
		}
	}

	formable_nations_byzantium = {
		
		priority = 922
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = GRE
				has_global_flag = no_limit
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 47
				state = 182
				state = 184
				state = 185
				state = 186
				state = 187
				state = 731
				state = 164
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 800
				state = 353
				state = 354
				state = 355
				state = 356
				state = 799
				state = 48
				state = 211
				state = 212
				state = 801
				state = 44
				state = 805
				state = 663
				state = 450
				state = 451
				state = 453
				state = 907
				state = 447
				state = 452
				state = 456
				state = 457
				state = 107
				state = 108
				state = 802
				state = 803
				state = 106
				state = 105
				
				state = 77
				state = 183
				state = 910
				state = 911
				state = 949
				state = 950
				state = 953
				state = 955
				state = 963
				state = 966
				state = 995
				state = 1016
				state = 1017
				state = 1021
				state = 1022

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						47 = { owns_or_subject_of = yes }
						182 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						185 = { owns_or_subject_of = yes }
						186 = { owns_or_subject_of = yes }
						187 = { owns_or_subject_of = yes }
						731 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }						
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						347 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }						
						48 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }				
						663 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }						
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }						
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }						
						106 = { owns_or_subject_of = yes }						
						105 = { owns_or_subject_of = yes }

						77 = { owns_or_subject_of = yes }
				        183 = { owns_or_subject_of = yes }
				        910 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        950 = { owns_or_subject_of = yes }
			            953 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
			            963 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
			            1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
						1022 = { owns_or_subject_of = yes }
				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BYZ } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_byzantium
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_BYZ
			add_stability = 0.2
			set_capital = { state = 797 }
			set_province_name = { id = 9833 name = "Konstantinoúpolis"}
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				47 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }

                77 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }

			}
		}
	}

	formable_nations_west_rome = {
	
		priority = 921
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = ITA
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = FRA
				original_tag = BRI
				original_tag = GLC
				original_tag = CAT
				original_tag = NAV
				original_tag = ADR
				has_global_flag = no_limit
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 2
				state = 39
				state = 850
				state = 114
				state = 115
				state = 117
				state = 849
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 736
				state = 852
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 795
				state = 180
				state = 181
				state = 177
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 4
				state = 152
				state = 153
				state = 848
				state = 102
				state = 853
				state = 736
				state = 163
				state = 103
				state = 109
				state = 852
				state = 104
				state = 804
				state = 6
				state = 34
				state = 8
				state = 3
				state = 151
				state = 845
				state = 846
				state = 847
				state = 459
				state = 458
				state = 460
				state = 458
				state = 448
				state = 449
				state = 665
				state = 661
				state = 662
				state = 290
				state = 461
				state = 35
				state = 155

                state = 912
				state = 956
				state = 957
				state = 958
				state = 959
				state = 961
				state = 962
				state = 965
				state = 973
				state = 997
				state = 1012
				state = 1015
				state = 1054
				state = 1086
                state = 1094
                state = 1095
				state = 1104
				

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						2 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						117 = { owns_or_subject_of = yes }
						849 = { owns_or_subject_of = yes }
						156 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						159 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }						
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						1 = { owns_or_subject_of = yes }
						14 = { owns_or_subject_of = yes }
						15 = { owns_or_subject_of = yes }
						16 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }
						24 = { owns_or_subject_of = yes }
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
						32 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }						
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }						
						163 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }						
						6 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }						
						8 = { owns_or_subject_of = yes }						
						3 = { owns_or_subject_of = yes }
						151 = { owns_or_subject_of = yes }
						845 = { owns_or_subject_of = yes }
						846 = { owns_or_subject_of = yes }
						847 = { owns_or_subject_of = yes }				
						459 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						448 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						290 = { owns_or_subject_of = yes }
						461 = { owns_or_subject_of = yes }						
						35 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }

                        912 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        965 = { owns_or_subject_of = yes }
						973 = { owns_or_subject_of = yes }
				        997 = { owns_or_subject_of = yes }
				        1012 = { owns_or_subject_of = yes }
				        1015 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
                        1094 = { owns_or_subject_of = yes }
                        1095 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_BYZ } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_west_rome
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_WRO
			add_stability = 0.2
			set_capital = { state = 2 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available	
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				1 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }

				912 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
			}
			122 = { add_claim_by = ROOT }
		    123 = { add_claim_by = ROOT }
			125 = { add_claim_by = ROOT }
			126 = { add_claim_by = ROOT }
			127 = { add_claim_by = ROOT }
			128 = { add_claim_by = ROOT }
			129 = { add_claim_by = ROOT }
			130 = { add_claim_by = ROOT }
			131 = { add_claim_by = ROOT }
			132 = { add_claim_by = ROOT }
			338 = { add_claim_by = ROOT }
			1104 = { add_claim_by = ROOT }
			42 = { add_claim_by = ROOT }
			51 = { add_claim_by = ROOT }
			52 = { add_claim_by = ROOT }
			1053 = { add_claim_by = ROOT }
			116 = { add_claim_by = ROOT }
		}
	}

	formable_nations_roman_empire = {
	
		priority = 920
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			#NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = ITA
				original_tag = GRE
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = FRA
				original_tag = BRI
				original_tag = GLC
				original_tag = CAT
				original_tag = NAV
				original_tag = ROM
			}
			NOT = { has_global_flag = modern_country }
			OR = {
				has_cosmetic_tag = FORM_BYZ
				has_cosmetic_tag = FORM_WRO
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 2
				state = 39
				state = 850
				state = 114
				state = 115
				state = 117
				state = 849
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 736
				state = 852
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 795
				state = 180
				state = 181
				state = 177
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 4
				state = 152
				state = 153
				state = 848
				state = 102
				state = 853
				state = 736
				state = 163
				state = 103
				state = 109
				state = 852
				state = 104
				state = 804
				state = 6
				state = 34
				state = 8
				state = 116
				state = 3
				state = 151
				state = 845
				state = 846
				state = 847
				state = 459
				state = 458
				state = 460
				state = 458
				state = 448
				state = 449
				state = 665
				state = 661
				state = 662
				state = 290
				state = 461
				state = 35
				state = 42
				state = 51
				state = 52
				state = 155

                state = 122
                state = 123
				state = 125
				state = 126
				state = 127
				state = 128
				state = 129
				state = 130
				state = 131
				state = 132
				state = 338
                state = 912
				state = 956
				state = 957
				state = 958
				state = 959
				state = 961
				state = 962
				state = 965
				state = 1041
                state = 1053
				state = 1054
				state = 1086
                state = 1094
                state = 1095
				state = 1104
				
				state = 44
				state = 45
				state = 47
				state = 48
				state = 49
				state = 77
				state = 81
				state = 105
				state = 106
				state = 107
				state = 108
				state = 164
				state = 182
				state = 183
				state = 184
				state = 185
				state = 186
				state = 187
				state = 211
				state = 212
				state = 229
				state = 230
				state = 231
				state = 291
				state = 339
				state = 340
				state = 341
				state = 342
				state = 343
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 353
				state = 354
				state = 355
				state = 356
				state = 447
				state = 450
				state = 451
				state = 452
				state = 453
				state = 454
				state = 553
				state = 554
				state = 663
				state = 676
				state = 677
				state = 680
				state = 731
				state = 797
				state = 798
				state = 799
				state = 800
				state = 801
				state = 802
				state = 803
				state = 805
				state = 907
				state = 910
				state = 911
				state = 949
				state = 950
				state = 952
				state = 953
				state = 955
				state = 963
				state = 966
				state = 995
				state = 1016
				state = 1017
				state = 1044
				state = 1045
				state = 1048
				state = 1049

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						2 = { owns_or_subject_of = yes }
						39 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
						114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						117 = { owns_or_subject_of = yes }
						849 = { owns_or_subject_of = yes }
						156 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						159 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }						
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						1 = { owns_or_subject_of = yes }
						14 = { owns_or_subject_of = yes }
						15 = { owns_or_subject_of = yes }
						16 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }
						24 = { owns_or_subject_of = yes }
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
						32 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						4 = { owns_or_subject_of = yes }
						152 = { owns_or_subject_of = yes }
						153 = { owns_or_subject_of = yes }
						848 = { owns_or_subject_of = yes }						
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }						
						163 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }						
						6 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }						
						8 = { owns_or_subject_of = yes }						
						116 = { owns_or_subject_of = yes }
						3 = { owns_or_subject_of = yes }
						151 = { owns_or_subject_of = yes }
						845 = { owns_or_subject_of = yes }
						846 = { owns_or_subject_of = yes }
						847 = { owns_or_subject_of = yes }				
						459 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						448 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						290 = { owns_or_subject_of = yes }
						461 = { owns_or_subject_of = yes }						
						35 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						52 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }

                        122 = { owns_or_subject_of = yes }
						123 = { owns_or_subject_of = yes }
				        125 = { owns_or_subject_of = yes }
				        126 = { owns_or_subject_of = yes }
				        127 = { owns_or_subject_of = yes }
				        128 = { owns_or_subject_of = yes }
				        129 = { owns_or_subject_of = yes }
				        130 = { owns_or_subject_of = yes }
				        131 = { owns_or_subject_of = yes }
				        132 = { owns_or_subject_of = yes }
				        338 = { owns_or_subject_of = yes }
                        912 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        965 = { owns_or_subject_of = yes }
				        1041 = { owns_or_subject_of = yes }
                        1053 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
                        1094 = { owns_or_subject_of = yes }
                        1095 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }
						
						44 = { owns_or_subject_of = yes }
				        45 = { owns_or_subject_of = yes }
			            47 = { owns_or_subject_of = yes }
				        48 = { owns_or_subject_of = yes }
				        49 = { owns_or_subject_of = yes }
				        77 = { owns_or_subject_of = yes }
				        81 = { owns_or_subject_of = yes }
				        105 = { owns_or_subject_of = yes }
				        106 = { owns_or_subject_of = yes }
				        107 = { owns_or_subject_of = yes }
				        108 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }
				        182 = { owns_or_subject_of = yes }
						183 = { owns_or_subject_of = yes }
				        184 = { owns_or_subject_of = yes }
				        185 = { owns_or_subject_of = yes }
				        186 = { owns_or_subject_of = yes }
				        187 = { owns_or_subject_of = yes }
				        211 = { owns_or_subject_of = yes }
				        212 = { owns_or_subject_of = yes }
				        229 = { owns_or_subject_of = yes }
				        230 = { owns_or_subject_of = yes }
				        231 = { owns_or_subject_of = yes }
				        291 = { owns_or_subject_of = yes }
				        339 = { owns_or_subject_of = yes }
				        340 = { owns_or_subject_of = yes }
				        341 = { owns_or_subject_of = yes }
				        342 = { owns_or_subject_of = yes }
				        343 = { owns_or_subject_of = yes }
				        343 = { owns_or_subject_of = yes }
				        344 = { owns_or_subject_of = yes }
				        345 = { owns_or_subject_of = yes }
				        346 = { owns_or_subject_of = yes }
				        347 = { owns_or_subject_of = yes }
				        348 = { owns_or_subject_of = yes }
				        349 = { owns_or_subject_of = yes }
				        350 = { owns_or_subject_of = yes }
				        352 = { owns_or_subject_of = yes }
				        353 = { owns_or_subject_of = yes }
				        354 = { owns_or_subject_of = yes }
				        355 = { owns_or_subject_of = yes }
				        356 = { owns_or_subject_of = yes }
				        447 = { owns_or_subject_of = yes }
				        450 = { owns_or_subject_of = yes }
				        451 = { owns_or_subject_of = yes }
				        452 = { owns_or_subject_of = yes }
				        453 = { owns_or_subject_of = yes }
				        454 = { owns_or_subject_of = yes }
				        553 = { owns_or_subject_of = yes }
				        554 = { owns_or_subject_of = yes }
				        663 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }
				        677 = { owns_or_subject_of = yes }
				        680 = { owns_or_subject_of = yes }
				        731 = { owns_or_subject_of = yes }
				        797 = { owns_or_subject_of = yes }
				        798 = { owns_or_subject_of = yes }
				        799 = { owns_or_subject_of = yes }
				        800 = { owns_or_subject_of = yes }
				        801 = { owns_or_subject_of = yes }
				        802 = { owns_or_subject_of = yes }
				        803 = { owns_or_subject_of = yes }
				        805 = { owns_or_subject_of = yes }
				        907 = { owns_or_subject_of = yes }
				        910 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        950 = { owns_or_subject_of = yes }
				        952 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1044 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_ROE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_roman_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_ROE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				1 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				116 = { add_core_of = ROOT }
				3 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }

				122 = { add_core_of = ROOT }
				123 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				131 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				1041 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
				
				44 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_intermarium = {
	
		priority = 919
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = POL
				original_tag = CZE
				original_tag = UKR
				original_tag = BLR
				original_tag = LIT
				original_tag = LAT
				original_tag = EST
				original_tag = YUG
				original_tag = ROM
				original_tag = HUN
				original_tag = DNZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 807
				state = 762
				state = 11
				state = 814
				state = 815
				state = 189
				state = 188
				state = 12
				state = 190
				state = 808
				state = 809
				state = 810
				state = 13
				state = 191
				state = 811
				state = 812
				state = 813
				state = 807
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 43
				state = 154
				state = 155
				state = 45
				state = 102
				state = 853
				state = 103
				state = 104
				state = 804
				state = 105
				state = 106
				state = 107
				state = 108
				state = 802
				state = 803
				state = 109
				state = 764
				state = 736
				state = 852
				state = 163
				state = 76
				state = 77
				state = 78
				state = 79
				state = 80
				state = 46
				state = 81
				state = 82
				state = 83
				state = 84
				state = 766
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 196
				state = 200
				state = 227
				state = 221
				state = 228
				state = 89
				state = 91
				state = 93
				state = 80
				state = 766
				state = 192
				state = 197
				state = 834

                state = 913
				state = 934
				state = 935
				state = 936
				state = 950
				state = 952
				state = 953
				state = 955
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
                state = 996
				state = 1078
				state = 1104
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						784 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }			
						11 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
						815 = { owns_or_subject_of = yes }
						189 = { owns_or_subject_of = yes }
						188 = { owns_or_subject_of = yes }
						12 = { owns_or_subject_of = yes }
						190 = { owns_or_subject_of = yes }
						808 = { owns_or_subject_of = yes }
						809 = { owns_or_subject_of = yes }
						810 = { owns_or_subject_of = yes }
						13 = { owns_or_subject_of = yes }
						191 = { owns_or_subject_of = yes }
						811 = { owns_or_subject_of = yes }
						812 = { owns_or_subject_of = yes }
						813 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }						
						9 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						70 = { owns_or_subject_of = yes }
						71 = { owns_or_subject_of = yes }
						72 = { owns_or_subject_of = yes }
						73 = { owns_or_subject_of = yes }
						74 = { owns_or_subject_of = yes }
						75 = { owns_or_subject_of = yes }
						69 = { owns_or_subject_of = yes }
						664 = { owns_or_subject_of = yes }						
						43 = { owns_or_subject_of = yes }
						154 = { owns_or_subject_of = yes }
						155 = { owns_or_subject_of = yes }					
						45 = { owns_or_subject_of = yes }
						102 = { owns_or_subject_of = yes }
						853 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
						105 = { owns_or_subject_of = yes }
						106 = { owns_or_subject_of = yes }
						107 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }
						109 = { owns_or_subject_of = yes }
						764 = { owns_or_subject_of = yes }
						736 = { owns_or_subject_of = yes }
						852 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }						
						76 = { owns_or_subject_of = yes }
						77 = { owns_or_subject_of = yes }
						78 = { owns_or_subject_of = yes }
						79 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						46 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						82 = { owns_or_subject_of = yes }
						83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }						
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
						200 = { owns_or_subject_of = yes }
						227 = { owns_or_subject_of = yes }
						221 = { owns_or_subject_of = yes }
						228 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						80 = { owns_or_subject_of = yes }
						766 = { owns_or_subject_of = yes }
						192 = { owns_or_subject_of = yes }
						197 = { owns_or_subject_of = yes }
						834 = { owns_or_subject_of = yes }
						
						913 = { owns_or_subject_of = yes }
				        934 = { owns_or_subject_of = yes }
				        935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
				        950 = { owns_or_subject_of = yes }
				        952 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
						959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
						963 = { owns_or_subject_of = yes }
                        996 = { owns_or_subject_of = yes }
				        1078 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_LAU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_intermarium
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = FORM_INT
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				10 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				11 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				13 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				188 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				43 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				69 = { add_core_of = ROOT }				
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				72 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				74 = { add_core_of = ROOT }
				75 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				9 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }

				913 = { add_core_of = ROOT }
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
				1078 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
			}
		}
	}

	formable_nations_italy = {
	
		priority = 918
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PAP
				original_tag = TOS
				original_tag = TTS
				original_tag = SPM
				original_tag = LBV
				original_tag = SAN
				original_tag = SAD
				original_tag = SIC
				original_tag = NAP
				original_tag = VNZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 2
				state = 114
				state = 115
				state = 117
				state = 849
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				
				state = 39
				state = 736
				state = 850
				state = 852
				state = 912
				state = 957
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						2 = { owns_or_subject_of = yes }
						114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						117 = { owns_or_subject_of = yes }
						849 = { owns_or_subject_of = yes }
						156 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						158 = { owns_or_subject_of = yes }
						159 = { owns_or_subject_of = yes }
						160 = { owns_or_subject_of = yes }
						161 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
						
						39 = { owns_or_subject_of = yes }
				        736 = { owns_or_subject_of = yes }
						850 = { owns_or_subject_of = yes }
				        852 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = FORM_GAU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_italy
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = ITA
			add_stability = 0.1
			set_capital = { state = 2 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				ROOT = {
					ITA = {
						set_politics = {
							ruling_party = ROOT
							elections_allowed = no
						}
						add_popularity = {
							ideology = ROOT
							popularity = 0.8
						}
					}
					every_state = {
						limit = {
							is_core_of = root
						}
						add_core_of = ITA
					}
				}
				add_to_faction = ITA
				ITA = { change_tag_from = ROOT }
				ITA = {
					annex_country = {
						target = ROOT
						transfer_troops = yes
					}
					set_faction_leader = yes
					add_stability = 0.2
					2 = { add_core_of = ITA }
					39 = { add_core_of = ITA }
					850 = { add_core_of = ITA }
					114 = { add_core_of = ITA }
					115 = { add_core_of = ITA }
					117 = { add_core_of = ITA }
					849 = { add_core_of = ITA }
					156 = { add_core_of = ITA }
					157 = { add_core_of = ITA }
					158 = { add_core_of = ITA }
					159 = { add_core_of = ITA }
					160 = { add_core_of = ITA }
					161 = { add_core_of = ITA }
					162 = { add_core_of = ITA }
					736 = { add_core_of = ITA }
					852 = { add_core_of = ITA }
					
					39 = { add_core_of = ROOT }
					736 = { add_core_of = ROOT }
					850 = { add_core_of = ROOT }
					852 = { add_core_of = ROOT }
					912 = { add_core_of = ROOT }
					957 = { add_core_of = ROOT }
					
				}
			}
			163 = { add_core_of = ROOT }

		}
	}

	formable_nations_french_empire = { #Copyrighted by awxe
	
		priority = 917
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = NAV
				original_tag = BRI
				original_tag = OCC
				original_tag = ADR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 165
				state = 6
				state = 34
				state = 7
				state = 35
				state = 36
				state = 8
				state = 158
				state = 162
				state = 2
				state = 42
				state = 51
				state = 56
				
				state = 922
				state = 923
				state = 965
				state = 973
				state = 989
				state = 1012
				state = 1053
				state = 1094
				state = 1095

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
				        14 = { owns_or_subject_of = yes }
				        15 = { owns_or_subject_of = yes }
				        16 = { owns_or_subject_of = yes }
				        17 = { owns_or_subject_of = yes }
				        18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
				        806 = { owns_or_subject_of = yes }
				        20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
				        23 = { owns_or_subject_of = yes }
				        24 = { owns_or_subject_of = yes }
				        25 = { owns_or_subject_of = yes }
				        26 = { owns_or_subject_of = yes }
				        27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
				        29 = { owns_or_subject_of = yes }
				        30 = { owns_or_subject_of = yes }
				        31 = { owns_or_subject_of = yes }
				        32 = { owns_or_subject_of = yes }
				        33 = { owns_or_subject_of = yes }
				        735 = { owns_or_subject_of = yes }
				        785 = { owns_or_subject_of = yes }
				        165 = { owns_or_subject_of = yes }
				        6 = { owns_or_subject_of = yes }
				        34 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
				        35 = { owns_or_subject_of = yes }
				        36 = { owns_or_subject_of = yes }
				        8 = { owns_or_subject_of = yes }
				        158 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
				        2 = { owns_or_subject_of = yes }
				        42 = { owns_or_subject_of = yes }
				        51 = { owns_or_subject_of = yes }
				        56 = { owns_or_subject_of = yes }
				
				        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
					    1053 = { owns_or_subject_of = yes }
				        1094 = { owns_or_subject_of = yes }
				        1095 = { owns_or_subject_of = yes }
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_FRA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_france
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_FRA
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
			    28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }

				
			}
			165 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_akhand_bharat = {
	
		priority = 916
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = RAJ
				original_tag = BHU
				original_tag = NEP
				original_tag = AFG
				original_tag = PAK
				original_tag = SRL
				original_tag = BAN
				original_tag = TIB
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 440
				state = 787
				state = 442
				state = 443
				state = 444
				state = 445
				state = 423
				state = 320
				state = 432
				state = 434
				state = 424
				state = 425
				state = 426
				state = 427
				state = 428
				state = 429
				state = 431
				state = 433
				state = 435
				state = 436
				state = 437
				state = 438
				state = 439
				state = 441
				state = 430
				state = 267
				state = 415
				state = 288
				state = 640
				state = 324
				state = 323
				state = 422
				state = 601
				state = 321
				state = 322
				state = 733
				state = 757
				state = 758
				state = 758
				
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1013
				state = 1018
				state = 1019
				state = 1020
				state = 1090
				state = 1091
				state = 1092
				state = 1093
				state = 1098
				state = 1099
				state = 1100
				state = 1101
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						440 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }					
						423 = { owns_or_subject_of = yes }
						320 = { owns_or_subject_of = yes }
						432 = { owns_or_subject_of = yes }
						434 = { owns_or_subject_of = yes }
						424 = { owns_or_subject_of = yes }
						425 = { owns_or_subject_of = yes }
						426 = { owns_or_subject_of = yes }
						427 = { owns_or_subject_of = yes }
						428 = { owns_or_subject_of = yes }
						429 = { owns_or_subject_of = yes }
						431 = { owns_or_subject_of = yes }
						433 = { owns_or_subject_of = yes }
						435 = { owns_or_subject_of = yes }
						436 = { owns_or_subject_of = yes }
						437 = { owns_or_subject_of = yes }
						438 = { owns_or_subject_of = yes }
						439 = { owns_or_subject_of = yes }
						441 = { owns_or_subject_of = yes }						
						430 = { owns_or_subject_of = yes }						
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }						
						288 = { owns_or_subject_of = yes }
						640 = { owns_or_subject_of = yes }				
						324 = { owns_or_subject_of = yes }						
						323 = { owns_or_subject_of = yes }					
						422 = { owns_or_subject_of = yes }						
						322 = { owns_or_subject_of = yes }
						757 = { owns_or_subject_of = yes }
						758 = { owns_or_subject_of = yes }
						
						1008 = { owns_or_subject_of = yes }
				        1009 = { owns_or_subject_of = yes }
				        1010 = { owns_or_subject_of = yes }
				        1011 = { owns_or_subject_of = yes }
				        1013 = { owns_or_subject_of = yes }
				        1018 = { owns_or_subject_of = yes }
				        1019 = { owns_or_subject_of = yes }
				        1020 = { owns_or_subject_of = yes }
				        1090 = { owns_or_subject_of = yes }
				        1091 = { owns_or_subject_of = yes }
				        1092 = { owns_or_subject_of = yes }
				        1093 = { owns_or_subject_of = yes }
				        1098 = { owns_or_subject_of = yes }
				        1099 = { owns_or_subject_of = yes }
				        1100 = { owns_or_subject_of = yes }
				        1101 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_AKH } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_akhand_bharat
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_AKH
			add_stability = 0.15
			set_capital = { state = 439 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available					
				440 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				423 = { add_core_of = ROOT }
				320 = { add_core_of = ROOT }
				432 = { add_core_of = ROOT }
				434 = { add_core_of = ROOT }
				424 = { add_core_of = ROOT }
				425 = { add_core_of = ROOT }
				426 = { add_core_of = ROOT }
				427 = { add_core_of = ROOT }
				428 = { add_core_of = ROOT }
				429 = { add_core_of = ROOT }
				431 = { add_core_of = ROOT }
				433 = { add_core_of = ROOT }
				435 = { add_core_of = ROOT }
				436 = { add_core_of = ROOT }
				437 = { add_core_of = ROOT }
				438 = { add_core_of = ROOT }
				439 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				430 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				288 = { add_core_of = ROOT }
				640 = { add_core_of = ROOT }
				324 = { add_core_of = ROOT }
				323 = { add_core_of = ROOT }
				422 = { add_core_of = ROOT }
				322 = { add_core_of = ROOT }`
				757 = { add_core_of = ROOT }
				758 = { add_core_of = ROOT }
				
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1013 = { add_core_of = ROOT }
				1018 = { add_core_of = ROOT }
				1019 = { add_core_of = ROOT }
				1020 = { add_core_of = ROOT }
				1090 = { add_core_of = ROOT }
				1091 = { add_core_of = ROOT }
				1092 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
				1098 = { add_core_of = ROOT }
				1099 = { add_core_of = ROOT }
				1100 = { add_core_of = ROOT }
				1101 = { add_core_of = ROOT }
			}
			281 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_durrani_empire = {
	
		priority = 915
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AFG
				original_tag = PAK
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 267
				state = 415
				state = 440
				state = 787
				state = 442
				state = 443
				state = 444
				state = 445
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1093
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }						
						440 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }	
                        1008 = { owns_or_subject_of = yes }	
				        1009 = { owns_or_subject_of = yes }	
				        1010 = { owns_or_subject_of = yes }	
				        1011 = { owns_or_subject_of = yes }	
				        1093 = { owns_or_subject_of = yes }	
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_DUR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_durrani_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_DUR
			add_stability = 0.1
			set_capital = { state = 1010 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }	
				1009 = { add_core_of = ROOT }	
				1010 = { add_core_of = ROOT }	
				1011 = { add_core_of = ROOT }	
				1093 = { add_core_of = ROOT }	
				
			}
			416 = { add_core_of = ROOT }
			439 = { add_core_of = ROOT }
			1101 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_umayyad_caliphate = {
	
	    priority = 914
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AFG
				original_tag = PAK
				original_tag = LBA
				original_tag = PER
				original_tag = EGY
				original_tag = TUN
				original_tag = ALG
				original_tag = MOR
				original_tag = LEB
				original_tag = PAL
				original_tag = SYR
				original_tag = YEM
				original_tag = OMA
				original_tag = QAT
				original_tag = KUW
				original_tag = IRQ
				original_tag = UAE
				original_tag = JOR
				original_tag = BHR
				original_tag = SAU
				original_tag = MPL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 267
				state = 415
				state = 552
				state = 456
				state = 457
				state = 453
				state = 907
				state = 447
				state = 452
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				state = 292
				state = 678
				state = 679
				state = 854
				state = 855
				state = 856
				state = 857
				state = 858
				state = 859
				state = 293
				state = 659
				state = 294
				state = 658
				state = 765
				state = 656
				state = 291
				state = 675
				state = 676
				state = 230
				state = 229
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 440
				state = 787
				state = 442
				state = 443
				state = 444
				state = 445
				state = 830
				state = 405
				state = 183
				state = 459
				state = 460
				state = 513
				state = 448
				state = 661
				state = 449
				state = 662
				state = 663
				state = 450
				state = 451
				state = 458
				state = 665
				state = 461
				state = 462
				state = 290
				state = 783
				state = 344
				state = 350
				state = 352
				state = 353
				state = 800
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 177
				state = 266
				state = 732
				state = 742
				state = 795
				state = 911
				state = 933
				state = 949
				state = 966
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 986
				state = 987
				state = 988
				state = 995
				state = 1102
				state = 1103
				state = 1007
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1044
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1093

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						267 = { owns_or_subject_of = yes }
						415 = { owns_or_subject_of = yes }						
						552 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }						
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }				
						292 = { owns_or_subject_of = yes }
						678 = { owns_or_subject_of = yes }
						679 = { owns_or_subject_of = yes }
						854 = { owns_or_subject_of = yes }
						855 = { owns_or_subject_of = yes }
						856 = { owns_or_subject_of = yes }
						857 = { owns_or_subject_of = yes }
						858 = { owns_or_subject_of = yes }
						859 = { owns_or_subject_of = yes }
						293 = { owns_or_subject_of = yes }
						659 = { owns_or_subject_of = yes }
						294 = { owns_or_subject_of = yes }
						658 = { owns_or_subject_of = yes }
						765 = { owns_or_subject_of = yes }				
						656 = { owns_or_subject_of = yes }						
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						230 = { owns_or_subject_of = yes }						
						229 = { owns_or_subject_of = yes }						
						410 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
						412 = { owns_or_subject_of = yes }
						413 = { owns_or_subject_of = yes }
						414 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
						417 = { owns_or_subject_of = yes }
						418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
						420 = { owns_or_subject_of = yes }
						421 = { owns_or_subject_of = yes }						
						440 = { owns_or_subject_of = yes }
						787 = { owns_or_subject_of = yes }
						442 = { owns_or_subject_of = yes }
						443 = { owns_or_subject_of = yes }
						444 = { owns_or_subject_of = yes }
						445 = { owns_or_subject_of = yes }						
						830 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }						
						183 = { owns_or_subject_of = yes }						
						459 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						513 = { owns_or_subject_of = yes }						
						448 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }						
						458 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }	
						461 = { owns_or_subject_of = yes }
						462 = { owns_or_subject_of = yes }
						290 = { owns_or_subject_of = yes }
						783 = { owns_or_subject_of = yes }						
						344 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }						
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						266 = { owns_or_subject_of = yes }
                        732 = { owns_or_subject_of = yes }
                        742 = { owns_or_subject_of = yes }
                        795 = { owns_or_subject_of = yes }
                        911 = { owns_or_subject_of = yes }
						933 = { owns_or_subject_of = yes }
						949 = { owns_or_subject_of = yes }
                        966 = { owns_or_subject_of = yes }
                        980 = { owns_or_subject_of = yes }
						981 = { owns_or_subject_of = yes }
                        982 = { owns_or_subject_of = yes }
                        984 = { owns_or_subject_of = yes }
                        986 = { owns_or_subject_of = yes }
                        987 = { owns_or_subject_of = yes }
                        988 = { owns_or_subject_of = yes }
                        995 = { owns_or_subject_of = yes }
						1102 = { owns_or_subject_of = yes }
                        1007 = { owns_or_subject_of = yes }
						1008 = { owns_or_subject_of = yes }
                        1009 = { owns_or_subject_of = yes }
						1010 = { owns_or_subject_of = yes }
                        1011 = { owns_or_subject_of = yes }
                        1016 = { owns_or_subject_of = yes }
						1017 = { owns_or_subject_of = yes }
                        1021 = { owns_or_subject_of = yes }
                        1022 = { owns_or_subject_of = yes }
                        1044 = { owns_or_subject_of = yes }
                        1045 = { owns_or_subject_of = yes }
                        1047 = { owns_or_subject_of = yes }
                        1048 = { owns_or_subject_of = yes }
                        1049 = { owns_or_subject_of = yes }
                        1093 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}

			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_UMA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_umayyad_caliphate
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_UMA
			add_stability = 0.2
			set_capital = { state = 554 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available				
				267 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				292 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				443 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				462 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				783 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }				
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				933 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1102 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_southeast_asia = {
	
		priority = 913
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SIA
				original_tag = MAL
				original_tag = VIN
				original_tag = CAM
				original_tag = LAO
				original_tag = PHI
				original_tag = INS
				original_tag = BRN
				original_tag = BRM
				original_tag = TML
				original_tag = EIS
				original_tag = MLK
				original_tag = PPA
				original_tag = SGP
				original_tag = SWK
				original_tag = FRI
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 286
				state = 671
				state = 741
				state = 670
				state = 724
				state = 289
				state = 868
				state = 869
				state = 336
				state = 333
				state = 335
				state = 672
				state = 334
				state = 667
				state = 673
				state = 668
				state = 669
				state = 738
				state = 286
				state = 288
				state = 327
				state = 446
				state = 623
				state = 624
				state = 625
				state = 626
				state = 627
				state = 628
				state = 640
				state = 672
				state = 721
				state = 909
				state = 914
				state = 915
				state = 916
				state = 924
				state = 925
				state = 926
				state = 927
				state = 928
				state = 951
				state = 960
				state = 974
				state = 975
				state = 976
				state = 977
				state = 978
				state = 1014
				state = 1018
				state = 1019
				state = 1020
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						286 = { owns_or_subject_of = yes }
				        671 = { owns_or_subject_of = yes }
						741 = { owns_or_subject_of = yes }
				        670 = { owns_or_subject_of = yes }
				        724 = { owns_or_subject_of = yes }
						289 = { owns_or_subject_of = yes }
				        868 = { owns_or_subject_of = yes }
				        869 = { owns_or_subject_of = yes }
				        336 = { owns_or_subject_of = yes }
				        333 = { owns_or_subject_of = yes }
				        335 = { owns_or_subject_of = yes }
				        672 = { owns_or_subject_of = yes }
				        334 = { owns_or_subject_of = yes }
				        667 = { owns_or_subject_of = yes }
				        673 = { owns_or_subject_of = yes }
						668 = { owns_or_subject_of = yes }
				        669 = { owns_or_subject_of = yes }
				        738 = { owns_or_subject_of = yes }
				        286 = { owns_or_subject_of = yes }
				        288 = { owns_or_subject_of = yes }
				        327 = { owns_or_subject_of = yes }
				        446 = { owns_or_subject_of = yes }
				        623 = { owns_or_subject_of = yes }
				        624 = { owns_or_subject_of = yes }
				        625 = { owns_or_subject_of = yes }
				        626 = { owns_or_subject_of = yes }
				        627 = { owns_or_subject_of = yes }
				        628 = { owns_or_subject_of = yes }
				        640 = { owns_or_subject_of = yes }
				        672 = { owns_or_subject_of = yes }
				        721 = { owns_or_subject_of = yes }
				        909 = { owns_or_subject_of = yes }
						914 = { owns_or_subject_of = yes }
				        915 = { owns_or_subject_of = yes }
				        916 = { owns_or_subject_of = yes }
				        924 = { owns_or_subject_of = yes }
				        925 = { owns_or_subject_of = yes }
				        926 = { owns_or_subject_of = yes }
						927 = { owns_or_subject_of = yes }
				        928 = { owns_or_subject_of = yes }
				        951 = { owns_or_subject_of = yes }
				        960 = { owns_or_subject_of = yes }
				        974 = { owns_or_subject_of = yes }
				        975 = { owns_or_subject_of = yes }
				        976 = { owns_or_subject_of = yes }
				        977 = { owns_or_subject_of = yes }
				        978 = { owns_or_subject_of = yes }
						1014 = { owns_or_subject_of = yes }
				        1018 = { owns_or_subject_of = yes }
				        1019 = { owns_or_subject_of = yes }
				        1020 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SEA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_southeast_asia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_SEA
			add_stability = 0.2
			set_capital = { state = 289 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				286 = { add_core_of = ROOT }
				671 = { add_core_of = ROOT }
				741 = { add_core_of = ROOT }
				670 = { add_core_of = ROOT }
				724 = { add_core_of = ROOT }
				289 = { add_core_of = ROOT }
				868 = { add_core_of = ROOT }
				869 = { add_core_of = ROOT }
				336 = { add_core_of = ROOT }
				333 = { add_core_of = ROOT }
				335 = { add_core_of = ROOT }
				672 = { add_core_of = ROOT }
				334 = { add_core_of = ROOT }
				667 = { add_core_of = ROOT }
				673 = { add_core_of = ROOT }
				668 = { add_core_of = ROOT }
				669 = { add_core_of = ROOT }
				738 = { add_core_of = ROOT }
				286 = { add_core_of = ROOT }
				288 = { add_core_of = ROOT }
				327 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				623 = { add_core_of = ROOT }
				624 = { add_core_of = ROOT }
				625 = { add_core_of = ROOT }
				626 = { add_core_of = ROOT }
				627 = { add_core_of = ROOT }
				628 = { add_core_of = ROOT }
				640 = { add_core_of = ROOT }
				672 = { add_core_of = ROOT }
				721 = { add_core_of = ROOT }
				909 = { add_core_of = ROOT }
				914 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				925 = { add_core_of = ROOT }
				926 = { add_core_of = ROOT }
				927 = { add_core_of = ROOT }
				928 = { add_core_of = ROOT }
				951 = { add_core_of = ROOT }
				960 = { add_core_of = ROOT }
				974 = { add_core_of = ROOT }
				975 = { add_core_of = ROOT }
				976 = { add_core_of = ROOT }
				977 = { add_core_of = ROOT }
				978 = { add_core_of = ROOT }
				1014 = { add_core_of = ROOT }
				1018 = { add_core_of = ROOT }
				1019 = { add_core_of = ROOT }
				1020 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_ghaznavid_empire = {
	
		priority = 913
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PER
				original_tag = AFG
				original_tag = PAK
				original_tag = TAJ
				original_tag = RAJ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 267
				state = 410
				state = 415
				state = 416
				state = 440
				state = 787
				state = 441
				state = 442
				state = 444
				state = 445
				state = 742
				state = 982
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1093
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						267 = { owns_or_subject_of = yes }
				        410 = { owns_or_subject_of = yes }
				        415 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
				        440 = { owns_or_subject_of = yes }
				        787 = { owns_or_subject_of = yes }
				        441 = { owns_or_subject_of = yes }
				        442 = { owns_or_subject_of = yes }
				        444 = { owns_or_subject_of = yes }
				        445 = { owns_or_subject_of = yes }
				        742 = { owns_or_subject_of = yes }
			            982 = { owns_or_subject_of = yes }
				        1008 = { owns_or_subject_of = yes }
				        1009 = { owns_or_subject_of = yes }
				        1010 = { owns_or_subject_of = yes }
				        1011 = { owns_or_subject_of = yes }
				        1093 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GHE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_ghaznavid_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_GHE
			add_stability = 0.12
			set_capital = { state = 415 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				267 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				441 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1093 = { add_core_of = ROOT }	
				
			}
		}
	}
	
	formable_nations_afsharid_dynasty = {
	
		priority = 912
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PER
				original_tag = AFG
				original_tag = IRQ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 229
				state = 230
				state = 231
				state = 232
				state = 266
				state = 267
				state = 291
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 415
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 821
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 1008
				state = 1009
				state = 1010
				state = 1044
				state = 1048
				state = 1049
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
					    229 = { owns_or_subject_of = yes }
				        230 = { owns_or_subject_of = yes }
				        231 = { owns_or_subject_of = yes }
				        232 = { owns_or_subject_of = yes }
				        266 = { owns_or_subject_of = yes }
						267 = { owns_or_subject_of = yes }
				        291 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
				        412 = { owns_or_subject_of = yes }
				        413 = { owns_or_subject_of = yes }
				        414 = { owns_or_subject_of = yes }
				        415 = { owns_or_subject_of = yes }
				        416 = { owns_or_subject_of = yes }
				        417 = { owns_or_subject_of = yes }
				        418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
				        420 = { owns_or_subject_of = yes }
				        421 = { owns_or_subject_of = yes }
				        821 = { owns_or_subject_of = yes }
				        980 = { owns_or_subject_of = yes }
				        981 = { owns_or_subject_of = yes }
				        982 = { owns_or_subject_of = yes }
				        983 = { owns_or_subject_of = yes }
				        984 = { owns_or_subject_of = yes }
				        985 = { owns_or_subject_of = yes }
						986 = { owns_or_subject_of = yes }
				        987 = { owns_or_subject_of = yes }
				        988 = { owns_or_subject_of = yes }
						1008 = { owns_or_subject_of = yes }
						1009 = { owns_or_subject_of = yes }
						1010 = { owns_or_subject_of = yes }	
						1044 = { owns_or_subject_of = yes }	
				        1048 = { owns_or_subject_of = yes }	
				        1049 = { owns_or_subject_of = yes }	
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_AFD } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_afsharid_dynasty
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		set_cosmetic_tag = AFN_AFD
			add_stability = 0.15
			set_capital = { state = 414 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
			    232 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				985 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }	
				1044 = { add_core_of = ROOT }	
				1048 = { add_core_of = ROOT }	
				1049 = { add_core_of = ROOT }		
				
			}
			352 = { add_core_of = ROOT }
			800 = { add_core_of = ROOT }
			444 = { add_core_of = ROOT }
			1011 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_illyrian_kingdom = {
	
		priority = 911
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ALB
				original_tag = KOS
				original_tag = MAC
				original_tag = D08
				original_tag = HRZ
				original_tag = BOS
				original_tag = CRO
				original_tag = SLV
				original_tag = SER
			}
			AND = {
			has_global_flag = no_limit
            NOT = { tag = ALG }
			}
		}

		highlight_states = {
			highlight_state_targets = {
			    state = 102
				state = 103
				state = 104
				state = 105
				state = 107
				state = 109
				state = 163
				state = 910
				state = 802
				state = 804
				state = 853
				state = 953
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
					    102 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
				        105 = { owns_or_subject_of = yes }
				        107 = { owns_or_subject_of = yes }
				        109 = { owns_or_subject_of = yes }
						163 = { owns_or_subject_of = yes }
				        910 = { owns_or_subject_of = yes }
				        802 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
				        853 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ILL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_illyrian_kingdom
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_ILL
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				102 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }					
			}
			849 = { add_core_of = ROOT }
			157 = { add_core_of = ROOT }
			957 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_bantu = {
	
		priority = 910
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ZIM
				original_tag = MZB
				original_tag = ZAM
				original_tag = MLW
				original_tag = ANG
				original_tag = COG
				original_tag = RCG
				original_tag = GAB
				original_tag = BRD
				original_tag = RWA
				original_tag = UGA
				original_tag = ZAN
				original_tag = SAF
				original_tag = SWA
				original_tag = LES
			}
		}

		highlight_states = {
			highlight_state_targets = {
			    state = 275
				state = 295
				state = 297
				state = 538
				state = 539
				state = 540
				state = 544
				state = 545
				state = 546
				state = 548
				state = 718
				state = 719
				state = 768
				state = 769
				state = 770
				state = 771
				state = 772
				state = 796
				state = 888
				state = 889
				state = 890
				state = 891
				state = 892
				state = 896
				state = 897
				state = 938
				state = 939
				state = 940
				state = 1097
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						275 = { owns_or_subject_of = yes }
				        295 = { owns_or_subject_of = yes }
				        297 = { owns_or_subject_of = yes }
				        538 = { owns_or_subject_of = yes }
				        539 = { owns_or_subject_of = yes }
				        540 = { owns_or_subject_of = yes }
				        544 = { owns_or_subject_of = yes }
				        545 = { owns_or_subject_of = yes }
				        546 = { owns_or_subject_of = yes }
				        548 = { owns_or_subject_of = yes }
				        718 = { owns_or_subject_of = yes }
				        719 = { owns_or_subject_of = yes }
				        768 = { owns_or_subject_of = yes }
				        769 = { owns_or_subject_of = yes }
				        770 = { owns_or_subject_of = yes }
				        771 = { owns_or_subject_of = yes }
				        772 = { owns_or_subject_of = yes }
			            796 = { owns_or_subject_of = yes }
				        888 = { owns_or_subject_of = yes }
				        889 = { owns_or_subject_of = yes }
				        890 = { owns_or_subject_of = yes }
				        891 = { owns_or_subject_of = yes }
						892 = { owns_or_subject_of = yes }
				        896 = { owns_or_subject_of = yes }
				        897 = { owns_or_subject_of = yes }
				        938 = { owns_or_subject_of = yes }
				        939 = { owns_or_subject_of = yes }
				        940 = { owns_or_subject_of = yes }
						1097 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_BNT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_bantu
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_BNT
			add_stability = 0.1
			set_capital = { state = 771 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				275 = { add_core_of = ROOT }
				295 = { add_core_of = ROOT }
				297 = { add_core_of = ROOT }
				538 = { add_core_of = ROOT }
				539 = { add_core_of = ROOT }
				540 = { add_core_of = ROOT }
				544 = { add_core_of = ROOT }
				545 = { add_core_of = ROOT }
				546 = { add_core_of = ROOT }
				548 = { add_core_of = ROOT }
				718 = { add_core_of = ROOT }
				719 = { add_core_of = ROOT }
				768 = { add_core_of = ROOT }
				769 = { add_core_of = ROOT }
				770 = { add_core_of = ROOT }
				771 = { add_core_of = ROOT }
				772 = { add_core_of = ROOT }
				796 = { add_core_of = ROOT }
				888 = { add_core_of = ROOT }
				889 = { add_core_of = ROOT }
				890 = { add_core_of = ROOT }
				891 = { add_core_of = ROOT }
				892 = { add_core_of = ROOT }
				896 = { add_core_of = ROOT }
				897 = { add_core_of = ROOT }
				938 = { add_core_of = ROOT }
				939 = { add_core_of = ROOT }
				940 = { add_core_of = ROOT }
				1097 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_oceania = {
	
		priority = 909
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AST
				original_tag = NZL
				original_tag = PNG
				original_tag = SOL
				original_tag = VAN
				original_tag = FIJ
				original_tag = CHT
				original_tag = TON
				original_tag = NIU
				original_tag = TUV
				original_tag = NRU
				original_tag = FSM
				original_tag = MRS
				original_tag = GUM
				original_tag = PLU
				original_tag = TAH
				original_tag = HAW
				original_tag = SAM
				original_tag = KIR
				original_tag = GYA
				original_tag = RAP
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 284
				state = 285
				state = 517
				state = 518
				state = 519
				state = 520
				state = 521
				state = 522
				state = 523
				state = 632
				state = 633
				state = 634
				state = 635
				state = 636
				state = 639
				state = 641
				state = 642
				state = 643
				state = 646
				state = 647
				state = 674
				state = 684
				state = 723
				state = 725
				state = 726
				state = 727
				state = 734
				state = 737
				state = 870
				state = 871
				state = 872
				state = 873
				state = 1087
				state = 1089
				state = 1096

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						284 = { owns_or_subject_of = yes }
				        285 = { owns_or_subject_of = yes }
			            517 = { owns_or_subject_of = yes }
				        518 = { owns_or_subject_of = yes }
						519 = { owns_or_subject_of = yes }
				        520 = { owns_or_subject_of = yes }
						521 = { owns_or_subject_of = yes }
				        522 = { owns_or_subject_of = yes }
				        523 = { owns_or_subject_of = yes }
						632 = { owns_or_subject_of = yes }
				        633 = { owns_or_subject_of = yes }
				        634 = { owns_or_subject_of = yes }
				        635 = { owns_or_subject_of = yes }
				        636 = { owns_or_subject_of = yes }
				        639 = { owns_or_subject_of = yes }
						641 = { owns_or_subject_of = yes }
						642 = { owns_or_subject_of = yes }
				        643 = { owns_or_subject_of = yes }
				        646 = { owns_or_subject_of = yes }
				        647 = { owns_or_subject_of = yes }
				        674 = { owns_or_subject_of = yes }
				        684 = { owns_or_subject_of = yes }
						723 = { owns_or_subject_of = yes }
				        725 = { owns_or_subject_of = yes }
				        726 = { owns_or_subject_of = yes }
						727 = { owns_or_subject_of = yes }
				        734 = { owns_or_subject_of = yes }
				        737 = { owns_or_subject_of = yes }
				        870 = { owns_or_subject_of = yes }
				        871 = { owns_or_subject_of = yes }
				        872 = { owns_or_subject_of = yes }
				        873 = { owns_or_subject_of = yes }
				        1087 = { owns_or_subject_of = yes }
				        1089 = { owns_or_subject_of = yes }
				        1096 = { owns_or_subject_of = yes }
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_OCE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_oceania
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_OCE
			add_stability = 0.15
			set_capital = { state = 285 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				284 = { add_core_of = ROOT }
				285 = { add_core_of = ROOT }
				517 = { add_core_of = ROOT }
				518 = { add_core_of = ROOT }
				519 = { add_core_of = ROOT }
				520 = { add_core_of = ROOT }
				521 = { add_core_of = ROOT }
				522 = { add_core_of = ROOT }
				523 = { add_core_of = ROOT }
				632 = { add_core_of = ROOT }
				633 = { add_core_of = ROOT }
				634 = { add_core_of = ROOT }
				635 = { add_core_of = ROOT }
				636 = { add_core_of = ROOT }
				639 = { add_core_of = ROOT }
				641 = { add_core_of = ROOT }
				642 = { add_core_of = ROOT }
				643 = { add_core_of = ROOT }
				646 = { add_core_of = ROOT }
				647 = { add_core_of = ROOT }
				674 = { add_core_of = ROOT }
				684 = { add_core_of = ROOT }
				723 = { add_core_of = ROOT }
				725 = { add_core_of = ROOT }
				726 = { add_core_of = ROOT }
				727 = { add_core_of = ROOT }
				734 = { add_core_of = ROOT }
				737 = { add_core_of = ROOT }
				870 = { add_core_of = ROOT }
				871 = { add_core_of = ROOT }
				872 = { add_core_of = ROOT }
				873 = { add_core_of = ROOT }
				1087 = { add_core_of = ROOT }
				1089 = { add_core_of = ROOT }
				1096 = { add_core_of = ROOT }	
			}
			629 = { add_core_of = ROOT }
			630 = { add_core_of = ROOT }
			631 = { add_core_of = ROOT }
			270 = { add_core_of = ROOT }
			1074 = { add_core_of = ROOT }
			629 = { add_claim_by = ROOT }
			630 = { add_claim_by = ROOT }
			631 = { add_claim_by = ROOT }
			270 = { add_claim_by = ROOT }
			1074 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_pirates = {
	
		priority = 908
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BAH
				original_tag = DOM
				original_tag = PUE
				original_tag = MAA
				original_tag = STK
				original_tag = BAS
				original_tag = GDL
				original_tag = DMN
				original_tag = MAR
				original_tag = STL
				original_tag = SVG
				original_tag = BRB
				original_tag = GRA
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 308
				state = 319
				state = 686
				state = 690
				state = 692
				state = 693
				state = 694
				state = 972
				state = 1079
				state = 1080
				state = 1081
				state = 1082
				state = 1083
				state = 1084
				state = 1085
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						308 = { owns_or_subject_of = yes }
						319 = { owns_or_subject_of = yes }
				        686 = { owns_or_subject_of = yes }
				        690 = { owns_or_subject_of = yes }
						692 = { owns_or_subject_of = yes }
				        693 = { owns_or_subject_of = yes }
				        694 = { owns_or_subject_of = yes }
				        972 = { owns_or_subject_of = yes }
				        1079 = { owns_or_subject_of = yes }
				        1080 = { owns_or_subject_of = yes }
				        1081 = { owns_or_subject_of = yes }
				        1082 = { owns_or_subject_of = yes }
				        1083 = { owns_or_subject_of = yes }
				        1084 = { owns_or_subject_of = yes }
				        1085 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PRT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_pirates
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PRT
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				308 = { add_core_of = ROOT }
				319 = { add_core_of = ROOT }
				686 = { add_core_of = ROOT }
				690 = { add_core_of = ROOT }
				692 = { add_core_of = ROOT }
				693 = { add_core_of = ROOT }
				694 = { add_core_of = ROOT }
				972 = { add_core_of = ROOT }
				1079 = { add_core_of = ROOT }
				1080 = { add_core_of = ROOT }
				1081 = { add_core_of = ROOT }
				1082 = { add_core_of = ROOT }
				1083 = { add_core_of = ROOT }
				1084 = { add_core_of = ROOT }
				1085 = { add_core_of = ROOT }
				
			}
		}
	}
	
	formable_nations_pala_empire = {
	
		priority = 907
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BAN
				original_tag = NEP
				
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 323
				state = 430
				state = 431
				state = 435
				state = 438
				state = 1013
				state = 1090
				state = 1091
				state = 1092
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						323 = { owns_or_subject_of = yes }
				        430 = { owns_or_subject_of = yes }
				        431 = { owns_or_subject_of = yes }
				        435 = { owns_or_subject_of = yes }
				        438 = { owns_or_subject_of = yes }
				        1013 = { owns_or_subject_of = yes }
				        1090 = { owns_or_subject_of = yes }
				        1091 = { owns_or_subject_of = yes }
				        1092 = { owns_or_subject_of = yes }
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PLE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_pala_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PLE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				323 = { add_core_of = ROOT }
				430 = { add_core_of = ROOT }
				431 = { add_core_of = ROOT }
				435 = { add_core_of = ROOT }
				438 = { add_core_of = ROOT }
				1013 = { add_core_of = ROOT }
				1090 = { add_core_of = ROOT }
				1091 = { add_core_of = ROOT }
				1092 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_denmark_norway = {
	
		priority = 906
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = DEN
				original_tag = NOR
				
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 37
				state = 99
				state = 110
				state = 101
				state = 142
				state = 143
				state = 144
				state = 337
				state = 964
				state = 967
				state = 1024
				state = 1025
				state = 1027
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						37 = { owns_or_subject_of = yes }
						99 = { owns_or_subject_of = yes }
				        110 = { owns_or_subject_of = yes }
				        101 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
				        144 = { owns_or_subject_of = yes }
				        337 = { owns_or_subject_of = yes }
				        964 = { owns_or_subject_of = yes }
						967 = { owns_or_subject_of = yes }
						1024 = { owns_or_subject_of = yes }
				        1025 = { owns_or_subject_of = yes }
				        1027 = { owns_or_subject_of = yes }
						1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
				        1033 = { owns_or_subject_of = yes }
				        1034 = { owns_or_subject_of = yes }
				        1035 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_DNU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_denmark_norway
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_DNU
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				101 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				1024 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT }
				1027 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
			}
			1043 = { add_core_of = ROOT }
			100 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_mamluk = {
	
		priority = 905
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = EGY
				original_tag = LBA
				original_tag = TUN
				original_tag = PAL
				original_tag = JOR
				original_tag = LEB
				original_tag = SYR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 551
				state = 767
				state = 549
				state = 887
				state = 884
				state = 885
				state = 886
				state = 883
				state = 552
				state = 455
				state = 456
				state = 457
				state = 453
				state = 907
				state = 447
				state = 452
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 448	
				state = 665
				state = 661
				state = 662
				state = 663
                state = 449
				state = 450
				state = 911
				state = 995
				state = 344
				state = 350
				state = 451
				state = 183
				state = 855
				state = 679
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						551 = { owns_or_subject_of = yes }
						767 = { owns_or_subject_of = yes }
						549 = { owns_or_subject_of = yes }
						887 = { owns_or_subject_of = yes }
						884 = { owns_or_subject_of = yes }
						885 = { owns_or_subject_of = yes }
						886 = { owns_or_subject_of = yes }
						883 = { owns_or_subject_of = yes }						
						552 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }						
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }			
						949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
			            1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
						448 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }
				        661 = { owns_or_subject_of = yes }
				        662 = { owns_or_subject_of = yes }
				        663 = { owns_or_subject_of = yes }
                        449 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        344 = { owns_or_subject_of = yes }
				        350 = { owns_or_subject_of = yes }
				        451 = { owns_or_subject_of = yes }
				        183 = { owns_or_subject_of = yes }
				        855 = { owns_or_subject_of = yes }
				        679 = { owns_or_subject_of = yes }
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_MAM } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_mamluk
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_MAM
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				551 = { add_core_of = ROOT }
				767 = { add_core_of = ROOT }
				549 = { add_core_of = ROOT }
				887 = { add_core_of = ROOT }
				884 = { add_core_of = ROOT }
				885 = { add_core_of = ROOT }
				886 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }				
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				
			}
			182 = { add_core_of = ROOT }
			164 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_greater_georgia = {
	
		priority = 904
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GEO		
			}
		}

		highlight_states = {
			highlight_state_targets = {
			    state = 229
				state = 230
				state = 231
                state = 232	
				state = 233
				state = 354
				state = 821
				state = 826
				state = 827
				state = 828
				state = 1044
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						229 = { owns_or_subject_of = yes }
				        230 = { owns_or_subject_of = yes }
				        231 = { owns_or_subject_of = yes }
                        232 = { owns_or_subject_of = yes }
						233 = { owns_or_subject_of = yes }
				        354 = { owns_or_subject_of = yes }
				        821 = { owns_or_subject_of = yes }
				        826 = { owns_or_subject_of = yes }
				        827 = { owns_or_subject_of = yes }
				        828 = { owns_or_subject_of = yes }	
						1044 = { owns_or_subject_of = yes }	
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GGE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_georgia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GGE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				827 = { add_core_of = ROOT }
				828 = { add_core_of = ROOT }	
				1044 = { add_core_of = ROOT }	
			}
			354 = { add_core_of = ROOT }
			137 = { add_core_of = ROOT }
			234 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_megali_idea = {
	
		priority = 903
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GRE
			}
		}

		highlight_states = {
			highlight_state_targets = {
			    state = 47
				state = 164
				state = 182
				state = 183
				state = 184
				state = 185
				state = 186
				state = 187
				state = 339
				state = 340
				state = 341
				state = 342
				state = 347
				state = 731
				state = 797
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						47 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }
				        182 = { owns_or_subject_of = yes }
				        183 = { owns_or_subject_of = yes }
				        184 = { owns_or_subject_of = yes }
				        185 = { owns_or_subject_of = yes }
				        186 = { owns_or_subject_of = yes }
				        187 = { owns_or_subject_of = yes }
				        339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
				        341 = { owns_or_subject_of = yes }
				        342 = { owns_or_subject_of = yes }
				        347 = { owns_or_subject_of = yes }
				        731 = { owns_or_subject_of = yes }
				        797 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GGR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_megali_idea
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GGR
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				47 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }

			}
			211 = { add_core_of = ROOT }
			212 = { add_core_of = ROOT }
			343 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_hellenoturkism = {
	
		priority = 902
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GRE
				original_tag = TUR
			}
		}

		highlight_states = {
			highlight_state_targets = {
			    state = 47
				state = 182
				state = 184
				state = 185
				state = 186
				state = 187
				state = 339
				state = 340
				state = 341
				state = 342
				state = 347
				state = 731
				state = 797
				state = 49
				state = 343
				state = 344
				state = 345
				state = 346
				state = 348
				state = 349
				state = 350
				state = 352
				state = 353
				state = 354
				state = 355
				state = 356
				state = 798
				state = 800
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						47 = { owns_or_subject_of = yes }
				        182 = { owns_or_subject_of = yes }
				        184 = { owns_or_subject_of = yes }
				        185 = { owns_or_subject_of = yes }
				        186 = { owns_or_subject_of = yes }
				        187 = { owns_or_subject_of = yes }
				        339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
				        341 = { owns_or_subject_of = yes }
				        342 = { owns_or_subject_of = yes }
				        347 = { owns_or_subject_of = yes }
				        731 = { owns_or_subject_of = yes }
				        797 = { owns_or_subject_of = yes }
						49 = { owns_or_subject_of = yes }
				        343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
				        345 = { owns_or_subject_of = yes }
				        346 = { owns_or_subject_of = yes }
				        348 = { owns_or_subject_of = yes }
				        349 = { owns_or_subject_of = yes }
				        350 = { owns_or_subject_of = yes }
				        352 = { owns_or_subject_of = yes }
				        353 = { owns_or_subject_of = yes }
				        354 = { owns_or_subject_of = yes }
				        355 = { owns_or_subject_of = yes }
			            356 = { owns_or_subject_of = yes }
				        798 = { owns_or_subject_of = yes }
				        800 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_HTM } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hellenoturkism
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_HTM
			add_stability = 0.15
			set_capital = { state = 797 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				47 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
			}	
			183 = { add_core_of = ROOT }
			799 = { add_core_of = ROOT }
			164 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_great_ottomans = {
	
	    priority = 973
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			#NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = TUR
			}
			NOT = { has_global_flag = modern_country }
			OR = {
				has_cosmetic_tag = FORM_OTT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 49
				state = 798
				state = 339
				state = 340
				state = 341
				state = 797
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 800
				state = 353
				state = 354
				state = 355
				state = 356
				state = 799
				state = 47
				state = 182
				state = 184
				state = 185
				state = 186
				state = 187
				state = 731
				state = 164
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				state = 183
				state = 48
				state = 211
				state = 212
				state = 801
				state = 291
				state = 675
				state = 676
				state = 679
				state = 855
				state = 856
				state = 453
				state = 907
				state = 447
				state = 452
				state = 456
				state = 457
				state = 448
				state = 449
				state = 450
				state = 451
				state = 665
				state = 106
				state = 802
				state = 803
				state = 108
				state = 107
				state = 104
				state = 804
				state = 105
				state = 293
				state = 44
				state = 805
				state = 656
				
				state = 910
				state = 911
				state = 949
				state = 950
				state = 953
				state = 963
				state = 966
				state = 995
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				
				state = 43
				state = 45
				state = 46
				state = 80
				state = 81
				state = 82
				state = 83
				state = 84
				state = 76
				state = 77
				state = 78
				state = 79
				state = 109
				state = 137
				state = 154
				state = 155
				state = 192
				state = 196
				state = 197
				state = 200
				state = 218
				state = 227
				state = 229
				state = 230
				state = 231
				state = 233
				state = 234
				state = 235
				state = 238
				state = 458
				state = 459
				state = 460
				state = 513
				state = 550
				state = 551
				state = 552
				state = 661
				state = 662
				state = 663
				state = 665
				state = 764
				state = 766
				state = 767
				state = 821
				state = 826
				state = 827
				state = 828
				state = 834
				state = 859
				state = 883
				state = 913
				state = 933
				state = 952
				state = 955
				state = 959
				state = 961
				state = 962
				state = 1044
				state = 1104
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						49 = { owns_or_subject_of = yes }
						798 = { owns_or_subject_of = yes }
						339 = { owns_or_subject_of = yes }
						340 = { owns_or_subject_of = yes }
						341 = { owns_or_subject_of = yes }
						797 = { owns_or_subject_of = yes }
						342 = { owns_or_subject_of = yes }
						343 = { owns_or_subject_of = yes }
						344 = { owns_or_subject_of = yes }
						345 = { owns_or_subject_of = yes }
						346 = { owns_or_subject_of = yes }
						347 = { owns_or_subject_of = yes }
						348 = { owns_or_subject_of = yes }
						349 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						354 = { owns_or_subject_of = yes }
						355 = { owns_or_subject_of = yes }
						356 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						47 = { owns_or_subject_of = yes }
						182 = { owns_or_subject_of = yes }
						184 = { owns_or_subject_of = yes }
						185 = { owns_or_subject_of = yes }
						186 = { owns_or_subject_of = yes }
						187 = { owns_or_subject_of = yes }
						731 = { owns_or_subject_of = yes }
						164 = { owns_or_subject_of = yes }						
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }						
						183 = { owns_or_subject_of = yes }						
						48 = { owns_or_subject_of = yes }
						211 = { owns_or_subject_of = yes }
						212 = { owns_or_subject_of = yes }
						801 = { owns_or_subject_of = yes }
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						679 = { owns_or_subject_of = yes }
						855 = { owns_or_subject_of = yes }
						856 = { owns_or_subject_of = yes }						
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }						
						459 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						458 = { owns_or_subject_of = yes }
						448 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }						
						106 = { owns_or_subject_of = yes }
						802 = { owns_or_subject_of = yes }
						803 = { owns_or_subject_of = yes }
						108 = { owns_or_subject_of = yes }
						107 = { owns_or_subject_of = yes }
						104 = { owns_or_subject_of = yes }
						804 = { owns_or_subject_of = yes }
						105 = { owns_or_subject_of = yes }						
						293 = { owns_or_subject_of = yes }						
						44 = { owns_or_subject_of = yes }
						805 = { owns_or_subject_of = yes }					
						656 = { owns_or_subject_of = yes }

						910 = { owns_or_subject_of = yes }
				        911 = { owns_or_subject_of = yes }
				        933 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        950 = { owns_or_subject_of = yes }
				        953 = { owns_or_subject_of = yes }
				        963 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        995 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
						
						43 = { owns_or_subject_of = yes }
				        45 = { owns_or_subject_of = yes }
				        46 = { owns_or_subject_of = yes }
				        80 = { owns_or_subject_of = yes }
				        81 = { owns_or_subject_of = yes }
				        82 = { owns_or_subject_of = yes }
				        83 = { owns_or_subject_of = yes }
						84 = { owns_or_subject_of = yes }
				        76 = { owns_or_subject_of = yes }
				        77 = { owns_or_subject_of = yes }
				        78 = { owns_or_subject_of = yes }
				        79 = { owns_or_subject_of = yes }
				        109 = { owns_or_subject_of = yes }
				        137 = { owns_or_subject_of = yes }
				        154 = { owns_or_subject_of = yes }
				        155 = { owns_or_subject_of = yes }
				        192 = { owns_or_subject_of = yes }
				        196 = { owns_or_subject_of = yes }
				        197 = { owns_or_subject_of = yes }
				        200 = { owns_or_subject_of = yes }
						218 = { owns_or_subject_of = yes }
				        227 = { owns_or_subject_of = yes }
				        229 = { owns_or_subject_of = yes }
				        230 = { owns_or_subject_of = yes }
				        231 = { owns_or_subject_of = yes }
				        233 = { owns_or_subject_of = yes }
				        234 = { owns_or_subject_of = yes }
				        235 = { owns_or_subject_of = yes }
				        238 = { owns_or_subject_of = yes }
				        458 = { owns_or_subject_of = yes }
						459 = { owns_or_subject_of = yes }
				        460 = { owns_or_subject_of = yes }
				        513 = { owns_or_subject_of = yes }
				        550 = { owns_or_subject_of = yes }
				        551 = { owns_or_subject_of = yes }
				        552 = { owns_or_subject_of = yes }
				        661 = { owns_or_subject_of = yes }
				        662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
				        665 = { owns_or_subject_of = yes }
				        764 = { owns_or_subject_of = yes }
				        766 = { owns_or_subject_of = yes }
				        767 = { owns_or_subject_of = yes }
				        821 = { owns_or_subject_of = yes }
				        826 = { owns_or_subject_of = yes }
				        827 = { owns_or_subject_of = yes }
				        828 = { owns_or_subject_of = yes }
				        834 = { owns_or_subject_of = yes }
				        859 = { owns_or_subject_of = yes }
				        883 = { owns_or_subject_of = yes }
				        913 = { owns_or_subject_of = yes }
				        933 = { owns_or_subject_of = yes }
				        952 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
						1044 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GOT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}

		icon = formable_nations_great_ottomans
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GOT
			set_capital = { state = 797 }
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				49 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				47 = { add_core_of = ROOT }
				182 = { add_core_of = ROOT }
				184 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				186 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				731 = { add_core_of = ROOT }
				164 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				106 = { add_core_of = ROOT }
				802 = { add_core_of = ROOT }
				803 = { add_core_of = ROOT }
				108 = { add_core_of = ROOT }
				107 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				
				910 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				933 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				950 = { add_core_of = ROOT }
				953 = { add_core_of = ROOT }
				963 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				
				43 = { add_core_of = ROOT }
				45 = { add_core_of = ROOT }
				46 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				82 = { add_core_of = ROOT }
				83 = { add_core_of = ROOT }
				84 = { add_core_of = ROOT }
				76 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				78 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				137 = { add_core_of = ROOT }
				154 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				235 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				550 = { add_core_of = ROOT }
				551 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				764 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				767 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				827 = { add_core_of = ROOT }
				828 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				913 = { add_core_of = ROOT }
				933 = { add_core_of = ROOT }
				952 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }

			}
		}
	}
	
	formable_nations_golden_horde = {
	
		priority = 901
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = KAZ
				original_tag = UZB
				original_tag = CRI
				original_tag = BSK
				original_tag = TAT
				original_tag = CHU
				original_tag = MEL
				original_tag = UDM
				original_tag = DON
				original_tag = KAL
				original_tag = KYR
				original_tag = TAN
				original_tag = KBK
				original_tag = CIN
				original_tag = NOA
				original_tag = DAG
				original_tag = MON
				original_tag = ALT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 137
				state = 192
				state = 193
				state = 196
				state = 197
				state = 198
				state = 199
				state = 200
				state = 201
				state = 202
				state = 203
				state = 217
				state = 218
				state = 221
				state = 225
				state = 226
				state = 227
				state = 228
				state = 232
				state = 233
				state = 234
				state = 235
				state = 236
				state = 237
				state = 238
				state = 239
				state = 240
				state = 245
				state = 249
				state = 250
				state = 251
				state = 252
				state = 255
				state = 256
				state = 257
				state = 259
				state = 260
				state = 265
				state = 401
				state = 402
				state = 404
				state = 405
				state = 406
				state = 407
				state = 582
				state = 583
				state = 585
				state = 586
				state = 587
				state = 588
				state = 589
				state = 590
				state = 651
				state = 652
				state = 821
				state = 823
				state = 827
				state = 828
				state = 829
				state = 830
				state = 831
				state = 833
				state = 834
				state = 881
				state = 882
			
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						137 = { owns_or_subject_of = yes }
				        192 = { owns_or_subject_of = yes }
				        193 = { owns_or_subject_of = yes }
				        196 = { owns_or_subject_of = yes }
				        197 = { owns_or_subject_of = yes }
				        198 = { owns_or_subject_of = yes }
				        199 = { owns_or_subject_of = yes }
				        200 = { owns_or_subject_of = yes }
				        201 = { owns_or_subject_of = yes }
				        202 = { owns_or_subject_of = yes }
			            203 = { owns_or_subject_of = yes }
				        217 = { owns_or_subject_of = yes }
				        218 = { owns_or_subject_of = yes }
				        221 = { owns_or_subject_of = yes }
				        225 = { owns_or_subject_of = yes }
				        226 = { owns_or_subject_of = yes }
				        227 = { owns_or_subject_of = yes }
				        228 = { owns_or_subject_of = yes }
				        232 = { owns_or_subject_of = yes }
				        233 = { owns_or_subject_of = yes }
				        234 = { owns_or_subject_of = yes }
				        235 = { owns_or_subject_of = yes }
				        236 = { owns_or_subject_of = yes }
				        237 = { owns_or_subject_of = yes }
				        238 = { owns_or_subject_of = yes }
				        239 = { owns_or_subject_of = yes }
				        240 = { owns_or_subject_of = yes }
				        245 = { owns_or_subject_of = yes }
				        249 = { owns_or_subject_of = yes }
				        250 = { owns_or_subject_of = yes }
				        251 = { owns_or_subject_of = yes }
				        252 = { owns_or_subject_of = yes }
				        255 = { owns_or_subject_of = yes }
				        256 = { owns_or_subject_of = yes }
				        257 = { owns_or_subject_of = yes }
				        259 = { owns_or_subject_of = yes }
						260 = { owns_or_subject_of = yes }
				        265 = { owns_or_subject_of = yes }
				        401 = { owns_or_subject_of = yes }
				        402 = { owns_or_subject_of = yes }
				        404 = { owns_or_subject_of = yes }
				        405 = { owns_or_subject_of = yes }
				        406 = { owns_or_subject_of = yes }
				        407 = { owns_or_subject_of = yes }
				        582 = { owns_or_subject_of = yes }
				        583 = { owns_or_subject_of = yes }
				        585 = { owns_or_subject_of = yes }
						586 = { owns_or_subject_of = yes }
				        587 = { owns_or_subject_of = yes }
				        588 = { owns_or_subject_of = yes }
				        589 = { owns_or_subject_of = yes }
						590 = { owns_or_subject_of = yes }
				        651 = { owns_or_subject_of = yes }
						652 = { owns_or_subject_of = yes }
				        821 = { owns_or_subject_of = yes }
				        823 = { owns_or_subject_of = yes }
				        827 = { owns_or_subject_of = yes }
				        828 = { owns_or_subject_of = yes }
						829 = { owns_or_subject_of = yes }
				        830 = { owns_or_subject_of = yes }
				        831 = { owns_or_subject_of = yes }
				        833 = { owns_or_subject_of = yes }
				        834 = { owns_or_subject_of = yes }
						881 = { owns_or_subject_of = yes }
				        882 = { owns_or_subject_of = yes }
						

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GHO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_golden_horde
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GHO
			add_stability = 0.1
			set_capital = { state = 249 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				137 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				217 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				235 = { add_core_of = ROOT }
				236 = { add_core_of = ROOT }
				237 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				239 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				245 = { add_core_of = ROOT }
				249 = { add_core_of = ROOT }
				250 = { add_core_of = ROOT }
				251 = { add_core_of = ROOT }
				252 = { add_core_of = ROOT }
				255 = { add_core_of = ROOT }
				256 = { add_core_of = ROOT }
				257 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				260 = { add_core_of = ROOT }
				265 = { add_core_of = ROOT }
				401 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				582 = { add_core_of = ROOT }
				583 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				586 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				588 = { add_core_of = ROOT }
				589 = { add_core_of = ROOT }
				590 = { add_core_of = ROOT }
				651 = { add_core_of = ROOT }
				652 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				827 = { add_core_of = ROOT }
				828 = { add_core_of = ROOT }
				829 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
				833 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
				882 = { add_core_of = ROOT }
				
			}
		}
	}
	
	formable_nations_unified_korea = {
	
		priority = 900
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = KOR
				original_tag = NKR
				original_tag = MAN
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 525
				state = 527
				state = 328
				state = 716
				state = 717
				state = 745
				
				state = 917
				state = 918
				state = 919
				state = 920
				state = 941
				state = 942
				state = 943
				
				state = 408
				state = 409
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						525 = { owns_or_subject_of = yes }
						527 = { owns_or_subject_of = yes }
						328 = { owns_or_subject_of = yes }
						716 = { owns_or_subject_of = yes }
						717 = { owns_or_subject_of = yes }
						745 = { owns_or_subject_of = yes }
						
						917 = { owns_or_subject_of = yes }
						918 = { owns_or_subject_of = yes }
						919 = { owns_or_subject_of = yes }
						920 = { owns_or_subject_of = yes }
						941 = { owns_or_subject_of = yes }
						942 = { owns_or_subject_of = yes }
						943 = { owns_or_subject_of = yes }
						
						408 = { owns_or_subject_of = yes }
						409 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_UKO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_unified_korea
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_UKO
			add_stability = 0.10
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				525 = { add_core_of = ROOT }
				527 = { add_core_of = ROOT }
				328 = { add_core_of = ROOT }
				716 = { add_core_of = ROOT }
				717 = { add_core_of = ROOT }
				745 = { add_core_of = ROOT }
				
				917 = { add_core_of = ROOT }
				918 = { add_core_of = ROOT }
				919 = { add_core_of = ROOT }
				920 = { add_core_of = ROOT }
				941 = { add_core_of = ROOT }
				942 = { add_core_of = ROOT }
				943 = { add_core_of = ROOT }
				
				408 = { owns_or_subject_of = yes }
				409 = { owns_or_subject_of = yes }
				
			}
		}
	}
	
	formable_nations_bani_khalid = {
	
		priority = 889
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = SAU
				original_tag = QAT
				original_tag = BHR
				original_tag = KUW
				original_tag = UAE
				original_tag = OMA
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 292
				state = 294
				state = 656
				state = 658
				state = 765
				state = 857
				state = 858
				state = 859
				state = 979
				state = 1007
				state = 1102
				state = 1103
		
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						292 = { owns_or_subject_of = yes }
				        294 = { owns_or_subject_of = yes }
				        656 = { owns_or_subject_of = yes }
				        658 = { owns_or_subject_of = yes }
				        765 = { owns_or_subject_of = yes }
						857 = { owns_or_subject_of = yes }
				        858 = { owns_or_subject_of = yes }
				        859 = { owns_or_subject_of = yes }
				        979 = { owns_or_subject_of = yes }
				        1007 = { owns_or_subject_of = yes }
				        1102 = { owns_or_subject_of = yes }
				        1103 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_BKE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_bani_khalid
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_BKE
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				292 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				979 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1102 = { add_core_of = ROOT }
				1103 = { add_core_of = ROOT }
				
				
			}
		}
	}
	
	formable_nations_sasanian_empire = {
	
		priority = 888
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				original_tag = PER
				original_tag = QAT
				original_tag = BHR
				original_tag = KUW
				original_tag = UAE
				original_tag = OMA
				original_tag = IRQ
				original_tag = SAU
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 49
				state = 183
				state = 229
				state = 230
				state = 231
				state = 266
				state = 267
				state = 291
				state = 294
				state = 339
				state = 340
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 353
				state = 354
				state = 355
				state = 356
				state = 405
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 415
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 442
				state = 444
				state = 445
				state = 447
				state = 452
				state = 453
				state = 454
				state = 455
				state = 456
				state = 457
				state = 553
				state = 554
				state = 584
				state = 585
				state = 656
				state = 658
				state = 675
                state = 676
				state = 677
				state = 680
				state = 732
				state = 742
				state = 765
				state = 798
				state = 799
				state = 800
				state = 823
				state = 830
				state = 831
				state = 832
				state = 858
				state = 859
				state = 907
				state = 911
				state = 949
				state = 966
				state = 979
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 995
				state = 1007
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1044
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1102
				state = 1103
				
		
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					 AND = {
				49 = { owns_or_subject_of = yes }	
				183 = { owns_or_subject_of = yes }	
				229 = { owns_or_subject_of = yes }	
				230 = { owns_or_subject_of = yes }	
				231 = { owns_or_subject_of = yes }	
				266 = { owns_or_subject_of = yes }	
				267 = { owns_or_subject_of = yes }	
				291 = { owns_or_subject_of = yes }	
				294 = { owns_or_subject_of = yes }	
				339 = { owns_or_subject_of = yes }	
				340 = { owns_or_subject_of = yes }	
				342 = { owns_or_subject_of = yes }	
				343 = { owns_or_subject_of = yes }	
				344 = { owns_or_subject_of = yes }	
				345 = { owns_or_subject_of = yes }	
				346 = { owns_or_subject_of = yes }	
				347 = { owns_or_subject_of = yes }	
				348 = { owns_or_subject_of = yes }	
				349 = { owns_or_subject_of = yes }	
				350 = { owns_or_subject_of = yes }	
				352 = { owns_or_subject_of = yes }	
				353 = { owns_or_subject_of = yes }	
				354 = { owns_or_subject_of = yes }	
				355 = { owns_or_subject_of = yes }	
				356 = { owns_or_subject_of = yes }	
				405 = { owns_or_subject_of = yes }	
				410 = { owns_or_subject_of = yes }	
				411 = { owns_or_subject_of = yes }	
				412 = { owns_or_subject_of = yes }	
				413 = { owns_or_subject_of = yes }	
				414 = { owns_or_subject_of = yes }	
				415 = { owns_or_subject_of = yes }	
				416 = { owns_or_subject_of = yes }	
				417 = { owns_or_subject_of = yes }	
				418 = { owns_or_subject_of = yes }	
				419 = { owns_or_subject_of = yes }	
				420 = { owns_or_subject_of = yes }	
				421 = { owns_or_subject_of = yes }	
				442 = { owns_or_subject_of = yes }	
				444 = { owns_or_subject_of = yes }	
				445 = { owns_or_subject_of = yes }	
				447 = { owns_or_subject_of = yes }	
				452 = { owns_or_subject_of = yes }	
				453 = { owns_or_subject_of = yes }	
				454 = { owns_or_subject_of = yes }	
				455 = { owns_or_subject_of = yes }	
				456 = { owns_or_subject_of = yes }	
				457 = { owns_or_subject_of = yes }	
				553 = { owns_or_subject_of = yes }	
				554 = { owns_or_subject_of = yes }	
				584 = { owns_or_subject_of = yes }	
				585 = { owns_or_subject_of = yes }	
				656 = { owns_or_subject_of = yes }	
				658 = { owns_or_subject_of = yes }	
				675 = { owns_or_subject_of = yes }	
				676 = { owns_or_subject_of = yes }	
				677 = { owns_or_subject_of = yes }	
				680 = { owns_or_subject_of = yes }	
				732 = { owns_or_subject_of = yes }	
				742 = { owns_or_subject_of = yes }	
				765 = { owns_or_subject_of = yes }	
				798 = { owns_or_subject_of = yes }	
				799 = { owns_or_subject_of = yes }	
				800 = { owns_or_subject_of = yes }	
				823 = { owns_or_subject_of = yes }	
				830 = { owns_or_subject_of = yes }	
				831 = { owns_or_subject_of = yes }	
				832 = { owns_or_subject_of = yes }	
				858 = { owns_or_subject_of = yes }	
				859 = { owns_or_subject_of = yes }	
				907 = { owns_or_subject_of = yes }	
				911 = { owns_or_subject_of = yes }	
				949 = { owns_or_subject_of = yes }	
				966 = { owns_or_subject_of = yes }	
				979 = { owns_or_subject_of = yes }	
				980 = { owns_or_subject_of = yes }	
				981 = { owns_or_subject_of = yes }	
				982 = { owns_or_subject_of = yes }	
				983 = { owns_or_subject_of = yes }	
				984 = { owns_or_subject_of = yes }	
				985 = { owns_or_subject_of = yes }	
				986 = { owns_or_subject_of = yes }	
				987 = { owns_or_subject_of = yes }	
				988 = { owns_or_subject_of = yes }	
				995 = { owns_or_subject_of = yes }	
				1007 = { owns_or_subject_of = yes }	
				1008 = { owns_or_subject_of = yes }	
				1009 = { owns_or_subject_of = yes }	
				1010 = { owns_or_subject_of = yes }	
				1011 = { owns_or_subject_of = yes }	
				1016 = { owns_or_subject_of = yes }	
				1017 = { owns_or_subject_of = yes }	
				1021 = { owns_or_subject_of = yes }	
				1022 = { owns_or_subject_of = yes }	
				1044 = { owns_or_subject_of = yes }	
				1045 = { owns_or_subject_of = yes }	
				1046 = { owns_or_subject_of = yes }	
				1047 = { owns_or_subject_of = yes }	
				1048 = { owns_or_subject_of = yes }	
				1049 = { owns_or_subject_of = yes }	
				1102 = { owns_or_subject_of = yes }	
				1103 = { owns_or_subject_of = yes }	

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SAS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_sasanian_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_SAS
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				49 = { add_core_of = ROOT }
				183 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				266 = { add_core_of = ROOT }
				267 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				345 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				415 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				442 = { add_core_of = ROOT }
				444 = { add_core_of = ROOT }
				445 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				979 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				983 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				985 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1009 = { add_core_of = ROOT }
				1010 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1102 = { add_core_of = ROOT }
				1103 = { add_core_of = ROOT }
			}
			341 = { add_core_of = ROOT }
			797 = { add_core_of = ROOT }
			659 = { add_core_of = ROOT }
			293 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_qajar_empire = {
	
		priority = 887
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PER
				original_tag = AFG
				original_tag = PAK
				original_tag = TUR
				original_tag = TMS
				original_tag = UZB
				original_tag = TAJ
				original_tag = AZR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 229
				state = 230
				state = 231
				state = 266
				state = 267
				state = 405
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 415
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 442
				state = 444
				state = 445
				state = 584
				state = 585
				state = 742
				state = 823
				state = 830
				state = 831
				state = 832
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1044				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
				229 = { owns_or_subject_of = yes }	
				230 = { owns_or_subject_of = yes }	
				231 = { owns_or_subject_of = yes }	
				266 = { owns_or_subject_of = yes }	
				267 = { owns_or_subject_of = yes }	
				405 = { owns_or_subject_of = yes }	
				410 = { owns_or_subject_of = yes }	
				411 = { owns_or_subject_of = yes }	
				412 = { owns_or_subject_of = yes }	
				413 = { owns_or_subject_of = yes }	
				414 = { owns_or_subject_of = yes }	
				415 = { owns_or_subject_of = yes }	
				416 = { owns_or_subject_of = yes }	
				417 = { owns_or_subject_of = yes }	
				418 = { owns_or_subject_of = yes }	
				419 = { owns_or_subject_of = yes }	
				420 = { owns_or_subject_of = yes }	
				421 = { owns_or_subject_of = yes }	
				442 = { owns_or_subject_of = yes }	
				444 = { owns_or_subject_of = yes }	
				445 = { owns_or_subject_of = yes }	
				584 = { owns_or_subject_of = yes }	
				585 = { owns_or_subject_of = yes }	
				742 = { owns_or_subject_of = yes }	
				823 = { owns_or_subject_of = yes }	
				830 = { owns_or_subject_of = yes }	
				831 = { owns_or_subject_of = yes }	
				832 = { owns_or_subject_of = yes }	
				980 = { owns_or_subject_of = yes }	
				981 = { owns_or_subject_of = yes }	
				982 = { owns_or_subject_of = yes }	
				983 = { owns_or_subject_of = yes }	
				984 = { owns_or_subject_of = yes }	
				985 = { owns_or_subject_of = yes }	
				986 = { owns_or_subject_of = yes }	
				987 = { owns_or_subject_of = yes }	
				988 = { owns_or_subject_of = yes }	
				1008 = { owns_or_subject_of = yes }	
				1009 = { owns_or_subject_of = yes }	
				1010 = { owns_or_subject_of = yes }	
				1011 = { owns_or_subject_of = yes }	
				1044 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_QAJ } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_qajar_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_QAJ
			add_stability = 0.15
			set_capital = { state = 266 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				229 = { add_core_of = ROOT }	
				230 = { add_core_of = ROOT }	
				231 = { add_core_of = ROOT }	
				266 = { add_core_of = ROOT }	
				267 = { add_core_of = ROOT }	
				405 = { add_core_of = ROOT }	
				410 = { add_core_of = ROOT }	
				411 = { add_core_of = ROOT }	
				412 = { add_core_of = ROOT }	
				413 = { add_core_of = ROOT }	
				414 = { add_core_of = ROOT }	
				415 = { add_core_of = ROOT }	
				416 = { add_core_of = ROOT }	
				417 = { add_core_of = ROOT }	
				418 = { add_core_of = ROOT }	
				419 = { add_core_of = ROOT }	
				420 = { add_core_of = ROOT }	
				421 = { add_core_of = ROOT }	
				442 = { add_core_of = ROOT }	
				444 = { add_core_of = ROOT }	
				445 = { add_core_of = ROOT }	
				584 = { add_core_of = ROOT }	
				585 = { add_core_of = ROOT }	
				742 = { add_core_of = ROOT }	
				823 = { add_core_of = ROOT }	
				830 = { add_core_of = ROOT }	
				831 = { add_core_of = ROOT }	
				832 = { add_core_of = ROOT }	
				980 = { add_core_of = ROOT }	
				981 = { add_core_of = ROOT }	
				982 = { add_core_of = ROOT }	
				983 = { add_core_of = ROOT }	
				984 = { add_core_of = ROOT }	
				985 = { add_core_of = ROOT }	
				986 = { add_core_of = ROOT }	
				987 = { add_core_of = ROOT }	
				988 = { add_core_of = ROOT }	
				1008 = { add_core_of = ROOT }	
				1009 = { add_core_of = ROOT }	
				1010 = { add_core_of = ROOT }	
				1011 = { add_core_of = ROOT }	
				1044 = { add_core_of = ROOT }	
			}
		}
	}
	
	formable_nations_seljuk_empire = {
	
		priority = 886
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PER
				original_tag = TUR
				original_tag = TMS
				original_tag = UZB
				original_tag = TAJ
				original_tag = AZR
				original_tag = KYR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 49
				state = 229
				state = 230
				state = 231
				state = 266
				state = 291
				state = 339
				state = 340
				state = 342
				state = 343
				state = 344
				state = 345
				state = 346
				state = 347
				state = 348
				state = 349
				state = 350
				state = 352
				state = 353
				state = 354
				state = 355
				state = 356
				state = 405
				state = 411
				state = 412
				state = 413
				state = 414
				state = 415
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 454
				state = 553
				state = 554
				state = 584
				state = 585
				state = 676
				state = 677
				state = 680
				state = 732
				state = 742
				state = 798
				state = 799
				state = 800
				state = 823
				state = 830
				state = 831
				state = 832
				state = 949
				state = 966
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 1008
				state = 1011
				state = 1016
				state = 1017
				state = 1044
				state = 1045
				state = 1048
                state = 1049			
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
				49 = { owns_or_subject_of = yes }	
				229 = { owns_or_subject_of = yes }	
				230 = { owns_or_subject_of = yes }	
				231 = { owns_or_subject_of = yes }	
				266 = { owns_or_subject_of = yes }	
				291 = { owns_or_subject_of = yes }	
				339 = { owns_or_subject_of = yes }	
				340 = { owns_or_subject_of = yes }	
				342 = { owns_or_subject_of = yes }	
				343 = { owns_or_subject_of = yes }	
				344 = { owns_or_subject_of = yes }	
				345 = { owns_or_subject_of = yes }	
				346 = { owns_or_subject_of = yes }	
				347 = { owns_or_subject_of = yes }	
				348 = { owns_or_subject_of = yes }	
				349 = { owns_or_subject_of = yes }	
				350 = { owns_or_subject_of = yes }	
				352 = { owns_or_subject_of = yes }	
				353 = { owns_or_subject_of = yes }	
				354 = { owns_or_subject_of = yes }	
				355 = { owns_or_subject_of = yes }	
				356 = { owns_or_subject_of = yes }	
				405 = { owns_or_subject_of = yes }	
				411 = { owns_or_subject_of = yes }	
				412 = { owns_or_subject_of = yes }	
				413 = { owns_or_subject_of = yes }	
				414 = { owns_or_subject_of = yes }	
				415 = { owns_or_subject_of = yes }	
				416 = { owns_or_subject_of = yes }	
				417 = { owns_or_subject_of = yes }	
				418 = { owns_or_subject_of = yes }	
				419 = { owns_or_subject_of = yes }	
				420 = { owns_or_subject_of = yes }	
				421 = { owns_or_subject_of = yes }	
				454 = { owns_or_subject_of = yes }	
				553 = { owns_or_subject_of = yes }	
				554 = { owns_or_subject_of = yes }	
				584 = { owns_or_subject_of = yes }	
				585 = { owns_or_subject_of = yes }	
				676 = { owns_or_subject_of = yes }	
				677 = { owns_or_subject_of = yes }	
				680 = { owns_or_subject_of = yes }	
				732 = { owns_or_subject_of = yes }	
				742 = { owns_or_subject_of = yes }	
				798 = { owns_or_subject_of = yes }	
				799 = { owns_or_subject_of = yes }	
				800 = { owns_or_subject_of = yes }	
				823 = { owns_or_subject_of = yes }	
				830 = { owns_or_subject_of = yes }	
				831 = { owns_or_subject_of = yes }	
				832 = { owns_or_subject_of = yes }	
				949 = { owns_or_subject_of = yes }	
				966 = { owns_or_subject_of = yes }	
				980 = { owns_or_subject_of = yes }	
				981 = { owns_or_subject_of = yes }	
				982 = { owns_or_subject_of = yes }	
				983 = { owns_or_subject_of = yes }	
				984 = { owns_or_subject_of = yes }	
				985 = { owns_or_subject_of = yes }	
				986 = { owns_or_subject_of = yes }	
				987 = { owns_or_subject_of = yes }	
				988 = { owns_or_subject_of = yes }	
				1008 = { owns_or_subject_of = yes }	
				1011 = { owns_or_subject_of = yes }	
				1016 = { owns_or_subject_of = yes }	
				1017 = { owns_or_subject_of = yes }	
				1044 = { owns_or_subject_of = yes }	
				1045 = { owns_or_subject_of = yes }	
				1048 = { owns_or_subject_of = yes }	
				1049 = { owns_or_subject_of = yes }	
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SEL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_seljuk_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_SEL
			add_stability = 0.2
			set_capital = { state = 346 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				49 = { add_core_of = ROOT }	
				229 = { add_core_of = ROOT }	
				230 = { add_core_of = ROOT }	
				231 = { add_core_of = ROOT }	
				266 = { add_core_of = ROOT }	
				291 = { add_core_of = ROOT }		
				339 = { add_core_of = ROOT }	
				340 = { add_core_of = ROOT }	
				342 = { add_core_of = ROOT }	
				343 = { add_core_of = ROOT }	
				344 = { add_core_of = ROOT }	
				345 = { add_core_of = ROOT }	
				346 = { add_core_of = ROOT }	
				347 = { add_core_of = ROOT }	
				348 = { add_core_of = ROOT }	
				349 = { add_core_of = ROOT }	
				350 = { add_core_of = ROOT }	
				352 = { add_core_of = ROOT }	
				353 = { add_core_of = ROOT }	
				354 = { add_core_of = ROOT }	
				355 = { add_core_of = ROOT }	
				356 = { add_core_of = ROOT }	
				405 = { add_core_of = ROOT }	
				411 = { add_core_of = ROOT }	
				412 = { add_core_of = ROOT }	
				413 = { add_core_of = ROOT }	
				414 = { add_core_of = ROOT }	
				415 = { add_core_of = ROOT }	
				416 = { add_core_of = ROOT }	
				417 = { add_core_of = ROOT }	
				418 = { add_core_of = ROOT }	
				419 = { add_core_of = ROOT }	
				420 = { add_core_of = ROOT }	
				421 = { add_core_of = ROOT }	
				454 = { add_core_of = ROOT }	
				553 = { add_core_of = ROOT }	
				554 = { add_core_of = ROOT }	
				584 = { add_core_of = ROOT }	
				585 = { add_core_of = ROOT }		
				676 = { add_core_of = ROOT }	
				677 = { add_core_of = ROOT }	
				680 = { add_core_of = ROOT }	
				732 = { add_core_of = ROOT }	
				742 = { add_core_of = ROOT }	
				798 = { add_core_of = ROOT }	
				799 = { add_core_of = ROOT }	
				800 = { add_core_of = ROOT }	
				823 = { add_core_of = ROOT }	
				830 = { add_core_of = ROOT }	
				831 = { add_core_of = ROOT }	
				832 = { add_core_of = ROOT }	
				949 = { add_core_of = ROOT }	
				966 = { add_core_of = ROOT }	
				980 = { add_core_of = ROOT }	
				981 = { add_core_of = ROOT }	
				982 = { add_core_of = ROOT }	
				983 = { add_core_of = ROOT }	
				984 = { add_core_of = ROOT }	
				985 = { add_core_of = ROOT }	
				986 = { add_core_of = ROOT }	
				987 = { add_core_of = ROOT }	
				988 = { add_core_of = ROOT }	
				1008 = { add_core_of = ROOT }	
				1011 = { add_core_of = ROOT }	
				1016 = { add_core_of = ROOT }	
				1017 = { add_core_of = ROOT }	
				1044 = { add_core_of = ROOT }	
				1045 = { add_core_of = ROOT }	
				1048 = { add_core_of = ROOT }	
				1049 = { add_core_of = ROOT }
			}
			410 = { add_core_of = ROOT }
			183 = { add_claim_by = ROOT }	
			341 = { add_claim_by = ROOT }
			797 = { add_claim_by = ROOT }	
			1021 = { add_claim_by = ROOT }
			1022 = { add_claim_by = ROOT }	
			855 = { add_claim_by = ROOT }
			856 = { add_claim_by = ROOT }	
			679 = { add_claim_by = ROOT }
			658 = { add_claim_by = ROOT }
			979 = { add_claim_by = ROOT }
			294 = { add_claim_by = ROOT }
			1102 = { add_claim_by = ROOT }
			1103 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_europe_unity = {
	
		priority = 885
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = ITA
				original_tag = BEL
				original_tag = HOL
				original_tag = LUX
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 6
				state = 34
				state = 7
				state = 35
				state = 36
				state = 8
				state = 158
				state = 162
				state = 2
				state = 42
				state = 51
				state = 56
				
				state = 922
				state = 923
				state = 965
				state = 989
				state = 1012
				state = 1015
				state = 1053
				state = 1094
				state = 1095
				
				state = 2
				state = 39
				state = 50
				state = 52
				state = 53
				state = 54
				state = 55
				state = 57
				state = 58
				state = 59
				state = 114
				state = 115
				state = 117
				state = 156
				state = 157
				state = 159
				state = 160
				state = 161
				state = 736
				state = 849
				state = 850
				state = 852
				state = 912
				state = 957
				state = 998
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }	
				14 = { owns_or_subject_of = yes }	
				15 = { owns_or_subject_of = yes }	
				16 = { owns_or_subject_of = yes }	
				17 = { owns_or_subject_of = yes }	
				18 = { owns_or_subject_of = yes }	
				19 = { owns_or_subject_of = yes }	
				806 = { owns_or_subject_of = yes }	
				20 = { owns_or_subject_of = yes }	
				21 = { owns_or_subject_of = yes }	
				851 = { owns_or_subject_of = yes }	
				22 = { owns_or_subject_of = yes }	
				23 = { owns_or_subject_of = yes }	
				24 = { owns_or_subject_of = yes }	
				25 = { owns_or_subject_of = yes }	
				26 = { owns_or_subject_of = yes }	
				27 = { owns_or_subject_of = yes }	
				28 = { owns_or_subject_of = yes }	
				29 = { owns_or_subject_of = yes }	
				30 = { owns_or_subject_of = yes }	
				31 = { owns_or_subject_of = yes }	
				32 = { owns_or_subject_of = yes }	
				33 = { owns_or_subject_of = yes }	
				735 = { owns_or_subject_of = yes }	
				785 = { owns_or_subject_of = yes }	
				6 = { owns_or_subject_of = yes }	
				34 = { owns_or_subject_of = yes }	
				7 = { owns_or_subject_of = yes }	
				35 = { owns_or_subject_of = yes }	
				36 = { owns_or_subject_of = yes }	
				8 = { owns_or_subject_of = yes }	
				158 = { owns_or_subject_of = yes }	
				162 = { owns_or_subject_of = yes }	
				2 = { owns_or_subject_of = yes }	
				42 = { owns_or_subject_of = yes }	
				51 = { owns_or_subject_of = yes }	
				56 = { owns_or_subject_of = yes }	
				922 = { owns_or_subject_of = yes }	
				923 = { owns_or_subject_of = yes }	
				965 = { owns_or_subject_of = yes }	
				989 = { owns_or_subject_of = yes }	
				1012 = { owns_or_subject_of = yes }
				1015 = { owns_or_subject_of = yes }
				1053 = { owns_or_subject_of = yes }	
				1094 = { owns_or_subject_of = yes }	
				1095 = { owns_or_subject_of = yes }	
				2 = { owns_or_subject_of = yes }	
				39 = { owns_or_subject_of = yes }	
				50 = { owns_or_subject_of = yes }	
				52 = { owns_or_subject_of = yes }	
				53 = { owns_or_subject_of = yes }	
				54 = { owns_or_subject_of = yes }	
				55 = { owns_or_subject_of = yes }	
				57 = { owns_or_subject_of = yes }	
				58 = { owns_or_subject_of = yes }	
				59 = { owns_or_subject_of = yes }	
				114 = { owns_or_subject_of = yes }	
				115 = { owns_or_subject_of = yes }	
				117 = { owns_or_subject_of = yes }	
				156 = { owns_or_subject_of = yes }	
				157 = { owns_or_subject_of = yes }	
				159 = { owns_or_subject_of = yes }	
				160 = { owns_or_subject_of = yes }	
				161 = { owns_or_subject_of = yes }	
				736 = { owns_or_subject_of = yes }	
				849 = { owns_or_subject_of = yes }	
				850 = { owns_or_subject_of = yes }	
				852 = { owns_or_subject_of = yes }	
				912 = { owns_or_subject_of = yes }	
				957 = { owns_or_subject_of = yes }	
				998 = { owns_or_subject_of = yes }	
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_EUU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_europe_unity
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_EUU
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }	
				14 = { add_core_of = ROOT }	
				15 = { add_core_of = ROOT }	
				16 = { add_core_of = ROOT }	
				17 = { add_core_of = ROOT }	
				18 = { add_core_of = ROOT }	
				19 = { add_core_of = ROOT }	
				806 = { add_core_of = ROOT }	
				20 = { add_core_of = ROOT }	
				21 = { add_core_of = ROOT }	
				851 = { add_core_of = ROOT }	
				22 = { add_core_of = ROOT }	
				23 = { add_core_of = ROOT }	
				24 = { add_core_of = ROOT }	
				25 = { add_core_of = ROOT }	
				26 = { add_core_of = ROOT }	
				27 = { add_core_of = ROOT }	
				28 = { add_core_of = ROOT }	
				29 = { add_core_of = ROOT }	
				30 = { add_core_of = ROOT }	
				31 = { add_core_of = ROOT }	
				32 = { add_core_of = ROOT }	
				33 = { add_core_of = ROOT }	
				735 = { add_core_of = ROOT }	
				785 = { add_core_of = ROOT }	
				6 = { add_core_of = ROOT }	
				34 = { add_core_of = ROOT }	
				7 = { add_core_of = ROOT }	
				35 = { add_core_of = ROOT }	
				36 = { add_core_of = ROOT }	
				8 = { add_core_of = ROOT }	
				158 = { add_core_of = ROOT }	
				162 = { add_core_of = ROOT }	
				2 = { add_core_of = ROOT }	
				42 = { add_core_of = ROOT }	
				51 = { add_core_of = ROOT }	
				56 = { add_core_of = ROOT }	
				922 = { add_core_of = ROOT }	
				923 = { add_core_of = ROOT }	
				965 = { add_core_of = ROOT }	
				989 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }				
				1053 = { add_core_of = ROOT }	
				1094 = { add_core_of = ROOT }	
				1095 = { add_core_of = ROOT }	
				2 = { add_core_of = ROOT }	
				39 = { add_core_of = ROOT }	
				50 = { add_core_of = ROOT }	
				52 = { add_core_of = ROOT }	
				53 = { add_core_of = ROOT }	
				54 = { add_core_of = ROOT }	
				55 = { add_core_of = ROOT }	
				57 = { add_core_of = ROOT }	
				58 = { add_core_of = ROOT }	
				59 = { add_core_of = ROOT }	
				114 = { add_core_of = ROOT }	
				115 = { add_core_of = ROOT }	
				117 = { add_core_of = ROOT }	
				156 = { add_core_of = ROOT }	
				157 = { add_core_of = ROOT }	
				159 = { add_core_of = ROOT }	
				160 = { add_core_of = ROOT }	
				161 = { add_core_of = ROOT }	
				736 = { add_core_of = ROOT }	
				849 = { add_core_of = ROOT }	
				850 = { add_core_of = ROOT }	
				852 = { add_core_of = ROOT }	
				912 = { add_core_of = ROOT }	
				957 = { add_core_of = ROOT }	
				998 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_ming = {
	
		priority = 884
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = CHI
				original_tag = XSM
				original_tag = PRC
				original_tag = SHX
				original_tag = MEN
				original_tag = MAN
				original_tag = YUN
				original_tag = GXC
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 283
				state = 325
				state = 326
				state = 328
				state = 408
				state = 409
				state = 591
				state = 592
				state = 593
				state = 594
				state = 595
				state = 596
				state = 597
				state = 598
				state = 599
				state = 600
				state = 602
				state = 603
				state = 604
				state = 605
				state = 606
				state = 607
				state = 608
				state = 609
				state = 610
				state = 611
				state = 613
				state = 614
				state = 615
				state = 616
				state = 620
				state = 621
				state = 622
				state = 671
				state = 714
				state = 715
				state = 716
				state = 717
				state = 728
				state = 729
				state = 743
				state = 744
				state = 745
				state = 746
				state = 747
				state = 748
				state = 749
				state = 750
				state = 751
				state = 752
				state = 753
				state = 754
				state = 755
				state = 756
				state = 761
				state = 928
				state = 941
				state = 942
				state = 943
				state = 944
				state = 945
				state = 946
				state = 947
				state = 1075
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						283 = { owns_or_subject_of = yes }	
				        325 = { owns_or_subject_of = yes }
						326 = { owns_or_subject_of = yes }	
						328 = { owns_or_subject_of = yes }	
						408 = { owns_or_subject_of = yes }	
				        409 = { owns_or_subject_of = yes }	
				        591 = { owns_or_subject_of = yes }	
						592 = { owns_or_subject_of = yes }	
				        593 = { owns_or_subject_of = yes }	
				        594 = { owns_or_subject_of = yes }	
				        595 = { owns_or_subject_of = yes }	
				        596 = { owns_or_subject_of = yes }	
				        597 = { owns_or_subject_of = yes }	
				        598 = { owns_or_subject_of = yes }	
				        599 = { owns_or_subject_of = yes }	
				        600 = { owns_or_subject_of = yes }	
				        602 = { owns_or_subject_of = yes }	
						603 = { owns_or_subject_of = yes }	
				        604 = { owns_or_subject_of = yes }	
				        605 = { owns_or_subject_of = yes }	
				        606 = { owns_or_subject_of = yes }	
				        607 = { owns_or_subject_of = yes }	
				        608 = { owns_or_subject_of = yes }	
				        609 = { owns_or_subject_of = yes }	
						610 = { owns_or_subject_of = yes }	
				        611 = { owns_or_subject_of = yes }	
				        613 = { owns_or_subject_of = yes }	
						614 = { owns_or_subject_of = yes }	
				        615 = { owns_or_subject_of = yes }	
				        616 = { owns_or_subject_of = yes }	
				        620 = { owns_or_subject_of = yes }	
				        621 = { owns_or_subject_of = yes }	
						622 = { owns_or_subject_of = yes }	
				        671 = { owns_or_subject_of = yes }	
				        714 = { owns_or_subject_of = yes }	
						715 = { owns_or_subject_of = yes }	
				        716 = { owns_or_subject_of = yes }	
				        717 = { owns_or_subject_of = yes }	
						728 = { owns_or_subject_of = yes }
						729 = { owns_or_subject_of = yes }
						743 = { owns_or_subject_of = yes }
				        744 = { owns_or_subject_of = yes }	
				        745 = { owns_or_subject_of = yes }	
						746 = { owns_or_subject_of = yes }	
						747 = { owns_or_subject_of = yes }	
				        748 = { owns_or_subject_of = yes }	
				        749 = { owns_or_subject_of = yes }	
				        750 = { owns_or_subject_of = yes }	
				        751 = { owns_or_subject_of = yes }	
						752 = { owns_or_subject_of = yes }	
				        753 = { owns_or_subject_of = yes }	
						754 = { owns_or_subject_of = yes }	
				        755 = { owns_or_subject_of = yes }	
				        756 = { owns_or_subject_of = yes }	
				        761 = { owns_or_subject_of = yes }	
				        928 = { owns_or_subject_of = yes }	
				        941 = { owns_or_subject_of = yes }	
			         	942 = { owns_or_subject_of = yes }	
			        	943 = { owns_or_subject_of = yes }	
				        944 = { owns_or_subject_of = yes }	
				        945 = { owns_or_subject_of = yes }	
				        946 = { owns_or_subject_of = yes }	
				        947 = { owns_or_subject_of = yes }	
						1075 = { owns_or_subject_of = yes }						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_MNG } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_ming
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_MNG
			add_stability = 0.15
			set_capital = { state = 613 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				283 = { add_core_of = ROOT }	
				325 = { add_core_of = ROOT }
                326 = { add_core_of = ROOT }				
				328 = { add_core_of = ROOT }	
				408 = { add_core_of = ROOT }	
				409 = { add_core_of = ROOT }	
				591 = { add_core_of = ROOT }	
				592 = { add_core_of = ROOT }	
				593 = { add_core_of = ROOT }	
				594 = { add_core_of = ROOT }	
				595 = { add_core_of = ROOT }	
				596 = { add_core_of = ROOT }	
				597 = { add_core_of = ROOT }	
				598 = { add_core_of = ROOT }	
				599 = { add_core_of = ROOT }	
				600 = { add_core_of = ROOT }	
				602 = { add_core_of = ROOT }	
				603 = { add_core_of = ROOT }	
				604 = { add_core_of = ROOT }	
				605 = { add_core_of = ROOT }	
				606 = { add_core_of = ROOT }	
				607 = { add_core_of = ROOT }	
				608 = { add_core_of = ROOT }	
				609 = { add_core_of = ROOT }	
				610 = { add_core_of = ROOT }	
				611 = { add_core_of = ROOT }	
				613 = { add_core_of = ROOT }	
				614 = { add_core_of = ROOT }	
				615 = { add_core_of = ROOT }	
				616 = { add_core_of = ROOT }	
				620 = { add_core_of = ROOT }	
				621 = { add_core_of = ROOT }	
				622 = { add_core_of = ROOT }	
				671 = { add_core_of = ROOT }	
				714 = { add_core_of = ROOT }	
				715 = { add_core_of = ROOT }	
				716 = { add_core_of = ROOT }	
				717 = { add_core_of = ROOT }
				728 = { add_core_of = ROOT }
				729 = { add_core_of = ROOT }
                743 = { add_core_of = ROOT }				
				744 = { add_core_of = ROOT }	
				745 = { add_core_of = ROOT }	
				746 = { add_core_of = ROOT }	
				747 = { add_core_of = ROOT }	
				748 = { add_core_of = ROOT }	
				749 = { add_core_of = ROOT }	
				750 = { add_core_of = ROOT }	
				751 = { add_core_of = ROOT }	
				752 = { add_core_of = ROOT }	
				753 = { add_core_of = ROOT }	
				754 = { add_core_of = ROOT }	
				755 = { add_core_of = ROOT }	
				756 = { add_core_of = ROOT }	
				761 = { add_core_of = ROOT }	
				928 = { add_core_of = ROOT }	
				941 = { add_core_of = ROOT }	
				942 = { add_core_of = ROOT }	
				943 = { add_core_of = ROOT }	
				944 = { add_core_of = ROOT }	
				945 = { add_core_of = ROOT }	
				946 = { add_core_of = ROOT }	
				947 = { add_core_of = ROOT }	
				1075 = { add_core_of = ROOT }	
			}
		}
	}
	
	formable_nations_xiongnu = {
	
		priority = 883
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MON
				original_tag = TAN
				original_tag = BYA
                original_tag = KYR
				original_tag = KAZ
				original_tag = ALT
				original_tag = KHA
				original_tag = MEN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 40
				state = 287
				state = 330
				state = 329
				state = 563
				state = 564
				state = 566
				state = 567
				state = 568
				state = 569
				state = 586
				state = 588
				state = 589
				state = 610
				state = 611
				state = 612
				state = 616
				state = 617
				state = 618
				state = 619
				state = 621
				state = 654
				state = 714
				state = 715
				state = 732
				state = 746
				state = 756
				state = 759
				state = 760
				state = 761
				state = 817
				state = 818
				state = 819
				state = 820
				state = 944
				state = 945
				state = 946
				state = 947				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						40 = { owns_or_subject_of = yes }	
						287 = { owns_or_subject_of = yes }	
						330 = { owns_or_subject_of = yes }	
						329 = { owns_or_subject_of = yes }	
						563 = { owns_or_subject_of = yes }	
						564 = { owns_or_subject_of = yes }	
						566 = { owns_or_subject_of = yes }	
				        567 = { owns_or_subject_of = yes }	
				        568 = { owns_or_subject_of = yes }	
				        569 = { owns_or_subject_of = yes }	
				        586 = { owns_or_subject_of = yes }	
						588 = { owns_or_subject_of = yes }	
				        589 = { owns_or_subject_of = yes }	
				        610 = { owns_or_subject_of = yes }	
				        611 = { owns_or_subject_of = yes }	
				        612 = { owns_or_subject_of = yes }	
				        616 = { owns_or_subject_of = yes }	
						617 = { owns_or_subject_of = yes }	
				        618 = { owns_or_subject_of = yes }	
				        619 = { owns_or_subject_of = yes }	
						621 = { owns_or_subject_of = yes }	
				        654 = { owns_or_subject_of = yes }	
				        714 = { owns_or_subject_of = yes }	
				        715 = { owns_or_subject_of = yes }	
				        732 = { owns_or_subject_of = yes }	
						746 = { owns_or_subject_of = yes }	
				        756 = { owns_or_subject_of = yes }	
				        759 = { owns_or_subject_of = yes }	
				        760 = { owns_or_subject_of = yes }	
				        761 = { owns_or_subject_of = yes }	
				        817 = { owns_or_subject_of = yes }	
						818 = { owns_or_subject_of = yes }	
				        819 = { owns_or_subject_of = yes }	
				        820 = { owns_or_subject_of = yes }	
				        944 = { owns_or_subject_of = yes }	
				        945 = { owns_or_subject_of = yes }	
						946 = { owns_or_subject_of = yes }	
				        947 = { owns_or_subject_of = yes }				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_XIO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_xiongnu
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_XIO
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				40 = { add_core_of = ROOT }	
				287 = { add_core_of = ROOT }	
				330 = { add_core_of = ROOT }	
				329 = { add_core_of = ROOT }	
				563 = { add_core_of = ROOT }	
				564 = { add_core_of = ROOT }	
				566 = { add_core_of = ROOT }	
				567 = { add_core_of = ROOT }	
				568 = { add_core_of = ROOT }	
				569 = { add_core_of = ROOT }	
				586 = { add_core_of = ROOT }	
				588 = { add_core_of = ROOT }	
				589 = { add_core_of = ROOT }	
				610 = { add_core_of = ROOT }	
				611 = { add_core_of = ROOT }	
				612 = { add_core_of = ROOT }	
				616 = { add_core_of = ROOT }	
				617 = { add_core_of = ROOT }	
				618 = { add_core_of = ROOT }	
				619 = { add_core_of = ROOT }	
				621 = { add_core_of = ROOT }	
				654 = { add_core_of = ROOT }	
				714 = { add_core_of = ROOT }	
				715 = { add_core_of = ROOT }	
				732 = { add_core_of = ROOT }	
				746 = { add_core_of = ROOT }	
				756 = { add_core_of = ROOT }	
				759 = { add_core_of = ROOT }	
				760 = { add_core_of = ROOT }	
				761 = { add_core_of = ROOT }	
				817 = { add_core_of = ROOT }	
				818 = { add_core_of = ROOT }	
				819 = { add_core_of = ROOT }	
				820 = { add_core_of = ROOT }	
				944 = { add_core_of = ROOT }	
				945 = { add_core_of = ROOT }	
				946 = { add_core_of = ROOT }	
				947 = { add_core_of = ROOT }				
			}
		}
	}
	
	formable_nations_babylonian = {
		
		priority = 882
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SYR
				original_tag = LEB
				original_tag = IRQ
				original_tag = JOR
				original_tag = PAL
				original_tag = KUW
				original_tag = MPL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 553
				state = 554
				state = 677
				state = 680
				state = 454
				state = 455
				
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				
				state = 291
				state = 344
				state = 345
				state = 350
				state = 656
				state = 675
				state = 676
				state = 799
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }
						
						949 = { owns_or_subject_of = yes }
						966 = { owns_or_subject_of = yes }
						1016 = { owns_or_subject_of = yes }
						1017 = { owns_or_subject_of = yes }
						1021 = { owns_or_subject_of = yes }
						1022 = { owns_or_subject_of = yes }
						
						291 = { owns_or_subject_of = yes }
				        344 = { owns_or_subject_of = yes }
				        345 = { owns_or_subject_of = yes }
				        350 = { owns_or_subject_of = yes }
						656 = { owns_or_subject_of = yes }
				        675 = { owns_or_subject_of = yes }
				        676 = { owns_or_subject_of = yes }
				        799 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_BAB } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_babylonian
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_BAB
			add_stability = 0.12
			set_capital = { state = 291 }
			set_province_name = { id = 2097 name = "Babylon"}
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				
				291 = { owns_or_subject_of = yes }
				344 = { owns_or_subject_of = yes }
				345 = { owns_or_subject_of = yes }
				350 = { owns_or_subject_of = yes }
				656 = { owns_or_subject_of = yes }
				675 = { owns_or_subject_of = yes }
				676 = { owns_or_subject_of = yes }
				799 = { owns_or_subject_of = yes }
				1045 = { owns_or_subject_of = yes }
				1046 = { owns_or_subject_of = yes }
				1047 = { owns_or_subject_of = yes }
				1048 = { owns_or_subject_of = yes }
				1049 = { owns_or_subject_of = yes }
				
			}
		}
	}
	
	formable_nations_hispanic_america = {
	
		priority = 882
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = COL
				original_tag = ECU
				original_tag = PRU
				original_tag = BOL
				original_tag = ARG
				original_tag = CHL
				original_tag = PAR
				original_tag = PAN
				original_tag = COS
				original_tag = NIC
				original_tag = HON
				original_tag = ELS
				original_tag = GUA
				original_tag = BLZ
				original_tag = MEX
				original_tag = GYA
				original_tag = CUB
				original_tag = DOM
				original_tag = PUE
				original_tag = CRC
				original_tag = JAM
				original_tag = HAI
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 507
				state = 279
				state = 506
				state = 492
				state = 303
				state = 305
				state = 306
				state = 489
				state = 493
				state = 302
				state = 508
				state = 494
				state = 491
				state = 490

                state = 954
                state = 1051
				state = 1061
				state = 1062
				state = 1063
				state = 1064
				state = 1071
				
				state = 277
				state = 278
				state = 300
				state = 301
				state = 304
				state = 307
				state = 311
				state = 312
				state = 313
				state = 314
				state = 316
				state = 317
				state = 474
				state = 475
				state = 476
				state = 477
				state = 478
				state = 479
				state = 480
				state = 481
				state = 482
				state = 483
				state = 484
				state = 485
				state = 486
				state = 487
				state = 488
				state = 509
				state = 510
				state = 511
				state = 512
				state = 688
				state = 929
				state = 930
				state = 931
				state = 932
				state = 937
				state = 948
				state = 1059
				state = 1060
				state = 1065
				state = 1066
				state = 1067
				state = 1068
				state = 1069
				state = 1070
				state = 1073
				state = 1077

			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						507 = { owns_or_subject_of = yes }
						279 = { owns_or_subject_of = yes }
						506 = { owns_or_subject_of = yes }
						492 = { owns_or_subject_of = yes }
						303 = { owns_or_subject_of = yes }
						305 = { owns_or_subject_of = yes }
						306 = { owns_or_subject_of = yes }
						489 = { owns_or_subject_of = yes }
						493 = { owns_or_subject_of = yes }
						302 = { owns_or_subject_of = yes }
						508 = { owns_or_subject_of = yes }
						494 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }
						490 = { owns_or_subject_of = yes }

                        954 = { owns_or_subject_of = yes }
						1051 = { owns_or_subject_of = yes }
				        1061 = { owns_or_subject_of = yes }
						1062 = { owns_or_subject_of = yes }
				        1063 = { owns_or_subject_of = yes }
				        1064 = { owns_or_subject_of = yes }
				        1071 = { owns_or_subject_of = yes }
						
						277 = { owns_or_subject_of = yes }	
				        278 = { owns_or_subject_of = yes }
						300 = { owns_or_subject_of = yes }	
				        301 = { owns_or_subject_of = yes }	
				        304 = { owns_or_subject_of = yes }	
						307 = { owns_or_subject_of = yes }	
				        311 = { owns_or_subject_of = yes }	
				        312 = { owns_or_subject_of = yes }	
						313 = { owns_or_subject_of = yes }	
				        314 = { owns_or_subject_of = yes }	
				        316 = { owns_or_subject_of = yes }	
				        317 = { owns_or_subject_of = yes }	
				        474 = { owns_or_subject_of = yes }	
				        475 = { owns_or_subject_of = yes }	
				        476 = { owns_or_subject_of = yes }	
						477 = { owns_or_subject_of = yes }	
				        478 = { owns_or_subject_of = yes }	
				        479 = { owns_or_subject_of = yes }	
						480 = { owns_or_subject_of = yes }	
				        481 = { owns_or_subject_of = yes }	
			        	482 = { owns_or_subject_of = yes }	
			         	483 = { owns_or_subject_of = yes }	
				        484 = { owns_or_subject_of = yes }	
					    485 = { owns_or_subject_of = yes }	
				        486 = { owns_or_subject_of = yes }	
				        487 = { owns_or_subject_of = yes }	
						488 = { owns_or_subject_of = yes }	
				        509 = { owns_or_subject_of = yes }	
				        510 = { owns_or_subject_of = yes }	
				        511 = { owns_or_subject_of = yes }	
				        512 = { owns_or_subject_of = yes }	
				        688 = { owns_or_subject_of = yes }	
				        929 = { owns_or_subject_of = yes }	
				        930 = { owns_or_subject_of = yes }	
				        931 = { owns_or_subject_of = yes }	
				        932 = { owns_or_subject_of = yes }	
				        937 = { owns_or_subject_of = yes }	
				        948 = { owns_or_subject_of = yes }	
				        1059 = { owns_or_subject_of = yes }	
				        1060 = { owns_or_subject_of = yes }	
				        1065 = { owns_or_subject_of = yes }	
				        1066 = { owns_or_subject_of = yes }	
				        1067 = { owns_or_subject_of = yes }	
				        1068 = { owns_or_subject_of = yes }	
				        1069 = { owns_or_subject_of = yes }	
				        1070 = { owns_or_subject_of = yes }	
				        1073 = { owns_or_subject_of = yes }	
				        1077 = { owns_or_subject_of = yes }	

					}
					AND = {
						is_ai = no
						has_global_flag = debug_mode
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_HPA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hispanic_america
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_HPA
			add_stability = 0.2
			set_capital = { state = 277 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				507 = { add_core_of = ROOT }
				279 = { add_core_of = ROOT }
				506 = { add_core_of = ROOT }
				492 = { add_core_of = ROOT }
				303 = { add_core_of = ROOT }
				305 = { add_core_of = ROOT }
				306 = { add_core_of = ROOT }
				489 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
				302 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				494 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				490 = { add_core_of = ROOT }

				954 = { add_core_of = ROOT }
                1051 = { add_core_of = ROOT }
				1061 = { add_core_of = ROOT }
				1062 = { add_core_of = ROOT }
				1063 = { add_core_of = ROOT }
				1064 = { add_core_of = ROOT }
				1071 = { add_core_of = ROOT }
				
				277 = { add_core_of = ROOT }	
				278 = { add_core_of = ROOT }
				300 = { add_core_of = ROOT }
				301 = { add_core_of = ROOT }	
				304 = { add_core_of = ROOT }	
				307 = { add_core_of = ROOT }	
				311 = { add_core_of = ROOT }	
				312 = { add_core_of = ROOT }	
				313 = { add_core_of = ROOT }	
				314 = { add_core_of = ROOT }	
				316 = { add_core_of = ROOT }	
				317 = { add_core_of = ROOT }	
				474 = { add_core_of = ROOT }	
				475 = { add_core_of = ROOT }	
				476 = { add_core_of = ROOT }	
				477 = { add_core_of = ROOT }	
				478 = { add_core_of = ROOT }	
				479 = { add_core_of = ROOT }	
				480 = { add_core_of = ROOT }	
			    481 = { add_core_of = ROOT }	
				482 = { add_core_of = ROOT }	
				483 = { add_core_of = ROOT }	
				484 = { add_core_of = ROOT }	
				485 = { add_core_of = ROOT }	
				486 = { add_core_of = ROOT }	
				487 = { add_core_of = ROOT }	
				488 = { add_core_of = ROOT }	
				509 = { add_core_of = ROOT }	
				510 = { add_core_of = ROOT }	
				511 = { add_core_of = ROOT }	
				512 = { add_core_of = ROOT }	
				688 = { add_core_of = ROOT }	
				929 = { add_core_of = ROOT }	
				930 = { add_core_of = ROOT }	
				931 = { add_core_of = ROOT }	
				932 = { add_core_of = ROOT }	
				937 = { add_core_of = ROOT }	
				948 = { add_core_of = ROOT }	
				1059 = { add_core_of = ROOT }	
				1060 = { add_core_of = ROOT }	
				1065 = { add_core_of = ROOT }	
				1066 = { add_core_of = ROOT }	
				1067 = { add_core_of = ROOT }	
				1068 = { add_core_of = ROOT }	
				1069 = { add_core_of = ROOT }	
				1070 = { add_core_of = ROOT }	
				1073 = { add_core_of = ROOT }	
				1077 = { add_core_of = ROOT }	
			}
			299 = { add_core_of = ROOT }
			649 = { add_core_of = ROOT }
			695 = { add_core_of = ROOT }
			315 = { add_core_of = ROOT }
			994 = { add_core_of = ROOT }
			319 = { add_core_of = ROOT }
			686 = { add_core_of = ROOT }
			685 = { add_core_of = ROOT }
			689 = { add_core_of = ROOT }
			318 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_phoenicia = {
	
		priority = 881
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
			    original_tag = LEB
				original_tag = LBA
				original_tag = WES
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				has_global_flag = no_limit
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 459
				state = 460
				state = 513
				state = 461
				state = 462
				state = 290
				state = 783
				state = 448
				state = 661
				state = 449
				state = 662
				state = 663
				state = 450
				state = 451
				state = 458
				state = 665
				state = 699
				
				state = 933

				state = 114
				state = 115
				state = 169
				state = 173
				state = 177
				state = 553
				state = 789
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						459 = { owns_or_subject_of = yes }
						460 = { owns_or_subject_of = yes }
						513 = { owns_or_subject_of = yes }
						461 = { owns_or_subject_of = yes }
						462 = { owns_or_subject_of = yes }
						290 = { owns_or_subject_of = yes }
						783 = { owns_or_subject_of = yes }						
						448 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }					
						458 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }						
						699 = { owns_or_subject_of = yes }
						
						933 = { owns_or_subject_of = yes }
						
						114 = { owns_or_subject_of = yes }
				        115 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
				        173 = { owns_or_subject_of = yes }
				        177 = { owns_or_subject_of = yes }
						553 = { owns_or_subject_of = yes }
			            789 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PHO } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_phoenicia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PHO
			add_stability = 0.15
			set_capital = { state = 553 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				459 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				513 = { add_core_of = ROOT }
				461 = { add_core_of = ROOT }
				462 = { add_core_of = ROOT }
				290 = { add_core_of = ROOT }
				699 = { add_core_of = ROOT }
				783 = { add_core_of = ROOT }
				699 = { add_core_of = ROOT }
				
				933 = { add_core_of = ROOT }
				
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
			}
			557 = { add_core_of = ROOT }
			514 = { add_core_of = ROOT }
			273 = { add_core_of = ROOT }
			1 = { add_core_of = ROOT }
			116 = { add_core_of = ROOT }
			118 = { add_core_of = ROOT }
			
		}
	}
	
	formable_nations_pan_slavic = {
	
	    priority = 880
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = UKR
				original_tag = BLR
				original_tag = BUL
				original_tag = YUG
				original_tag = MNT
				original_tag = BOS
				original_tag = HRZ
				original_tag = D08
				original_tag = SLV
				original_tag = CRO
				original_tag = SLO
				original_tag = CZE
				original_tag = KAR
				original_tag = CRI
				original_tag = DON
				original_tag = KAL
				original_tag = VGE
				original_tag = DAG
				original_tag = CIN
				original_tag = NOA
				original_tag = KBK
				original_tag = KOM
				original_tag = NEN
				original_tag = CHU
				original_tag = MEL
				original_tag = TAT
				original_tag = UDM
				original_tag = SOV
				original_tag = RUT
				original_tag = DNZ
			}		
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 807
				state = 762
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 224
				state = 242
				state = 243
				
				state = 934
				state = 935
				state = 936
				
				state = 9
				state = 45
				state = 48
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 102
				state = 103
				state = 104
				state = 105
				state = 106
				state = 107
				state = 108
				state = 109
				state = 137
				state = 192
				state = 195
				state = 196
				state = 197
				state = 200
				state = 205
				state = 208
				state = 209
				state = 210
				state = 211
				state = 212
				state = 213
				state = 214
				state = 215
				state = 216
				state = 217
				state = 218
				state = 219
				state = 220
				state = 221
				state = 222
				state = 223
				state = 227
				state = 228
				state = 232
				state = 233
				state = 234
				state = 235
				state = 236
				state = 237
				state = 238
				state = 239
				state = 240
				state = 244
				state = 245
				state = 246
				state = 247
				state = 248
				state = 249
				state = 250
				state = 251
				state = 252
				state = 253
				state = 254
				state = 255
				state = 256
				state = 257
				state = 258
				state = 260
				state = 262
				state = 263
				state = 264
				state = 265
				state = 351
				state = 399
				state = 397
				state = 400
				state = 401
				state = 581
				state = 664
				state = 764
				state = 784
				state = 801
				state = 803
				state = 804
				state = 821
				state = 825
				state = 827
				state = 828
				state = 829
				state = 833
				state = 834
				state = 853
				state = 879
				state = 880
				state = 950
				state = 952
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 963
				state = 996
				state = 1078
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						85 = { owns_or_subject_of = yes }
						86 = { owns_or_subject_of = yes }
						87 = { owns_or_subject_of = yes }
						88 = { owns_or_subject_of = yes }
						89 = { owns_or_subject_of = yes }
						90 = { owns_or_subject_of = yes }
						10 = { owns_or_subject_of = yes }
						98 = { owns_or_subject_of = yes }
						91 = { owns_or_subject_of = yes }
						92 = { owns_or_subject_of = yes }
						93 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						97 = { owns_or_subject_of = yes }
						807 = { owns_or_subject_of = yes }
						762 = { owns_or_subject_of = yes }
						199 = { owns_or_subject_of = yes }
						201 = { owns_or_subject_of = yes }
						198 = { owns_or_subject_of = yes }
						202 = { owns_or_subject_of = yes }
						203 = { owns_or_subject_of = yes }
						226 = { owns_or_subject_of = yes }
						193 = { owns_or_subject_of = yes }
						259 = { owns_or_subject_of = yes }
						225 = { owns_or_subject_of = yes }
						204 = { owns_or_subject_of = yes }
						206 = { owns_or_subject_of = yes }
						207 = { owns_or_subject_of = yes }
						194 = { owns_or_subject_of = yes }
						241 = { owns_or_subject_of = yes }
						94 = { owns_or_subject_of = yes }
						95 = { owns_or_subject_of = yes }
						96 = { owns_or_subject_of = yes }
						224 = { owns_or_subject_of = yes }
						242 = { owns_or_subject_of = yes }
						243 = { owns_or_subject_of = yes }
						
						934 = { owns_or_subject_of = yes }
				        935 = { owns_or_subject_of = yes }
				        936 = { owns_or_subject_of = yes }
						
						9 = { owns_or_subject_of = yes }	
				        45 = { owns_or_subject_of = yes }	
						48 = { owns_or_subject_of = yes }	
				        69 = { owns_or_subject_of = yes }	
				        70 = { owns_or_subject_of = yes }	
				        71 = { owns_or_subject_of = yes }	
				        72 = { owns_or_subject_of = yes }	
				        73 = { owns_or_subject_of = yes }	
				        74 = { owns_or_subject_of = yes }	
				        75 = { owns_or_subject_of = yes }	
			           	102 = { owns_or_subject_of = yes }	
						103 = { owns_or_subject_of = yes }	
			          	104 = { owns_or_subject_of = yes }	
			        	105 = { owns_or_subject_of = yes }	
						106 = { owns_or_subject_of = yes }	
				        107 = { owns_or_subject_of = yes }	
						108 = { owns_or_subject_of = yes }	
				        109 = { owns_or_subject_of = yes }	
				        137 = { owns_or_subject_of = yes }	
				        192 = { owns_or_subject_of = yes }	
				        195 = { owns_or_subject_of = yes }	
				        196 = { owns_or_subject_of = yes }	
						197 = { owns_or_subject_of = yes }	
				        200 = { owns_or_subject_of = yes }	
				        205 = { owns_or_subject_of = yes }	
				        208 = { owns_or_subject_of = yes }	
				        209 = { owns_or_subject_of = yes }	
				        210 = { owns_or_subject_of = yes }	
				        211 = { owns_or_subject_of = yes }	
				        212 = { owns_or_subject_of = yes }	
				        213 = { owns_or_subject_of = yes }	
				        214 = { owns_or_subject_of = yes }	
				        215 = { owns_or_subject_of = yes }	
				        216 = { owns_or_subject_of = yes }	
				        217 = { owns_or_subject_of = yes }	
				        218 = { owns_or_subject_of = yes }	
				        219 = { owns_or_subject_of = yes }	
				        220 = { owns_or_subject_of = yes }	
				        221 = { owns_or_subject_of = yes }	
				        222 = { owns_or_subject_of = yes }	
				        223 = { owns_or_subject_of = yes }	
				        227 = { owns_or_subject_of = yes }	
				        228 = { owns_or_subject_of = yes }	
				        232 = { owns_or_subject_of = yes }	
				        233 = { owns_or_subject_of = yes }	
						234 = { owns_or_subject_of = yes }	
						235 = { owns_or_subject_of = yes }	
			        	236 = { owns_or_subject_of = yes }	
			        	237 = { owns_or_subject_of = yes }	
				        238 = { owns_or_subject_of = yes }	
				        239 = { owns_or_subject_of = yes }	
				        240 = { owns_or_subject_of = yes }	
				        244 = { owns_or_subject_of = yes }	
				        245 = { owns_or_subject_of = yes }	
				        246 = { owns_or_subject_of = yes }	
				        247 = { owns_or_subject_of = yes }	
				        248 = { owns_or_subject_of = yes }	
				        249 = { owns_or_subject_of = yes }	
				        250 = { owns_or_subject_of = yes }	
				        251 = { owns_or_subject_of = yes }	
				        252 = { owns_or_subject_of = yes }	
						253 = { owns_or_subject_of = yes }	
				        254 = { owns_or_subject_of = yes }	
				        255 = { owns_or_subject_of = yes }	
				        256 = { owns_or_subject_of = yes }	
				        257 = { owns_or_subject_of = yes }	
				        258 = { owns_or_subject_of = yes }	
				        260 = { owns_or_subject_of = yes }	
						262 = { owns_or_subject_of = yes }	
						263 = { owns_or_subject_of = yes }	
				        264 = { owns_or_subject_of = yes }	
				        265 = { owns_or_subject_of = yes }	
				        351 = { owns_or_subject_of = yes }	
						399 = { owns_or_subject_of = yes }	
						397 = { owns_or_subject_of = yes }	
				        400 = { owns_or_subject_of = yes }	
			        	401 = { owns_or_subject_of = yes }	
				        581 = { owns_or_subject_of = yes }	
				        664 = { owns_or_subject_of = yes }	
				        764 = { owns_or_subject_of = yes }	
						784 = { owns_or_subject_of = yes }
				        801 = { owns_or_subject_of = yes }	
				        803 = { owns_or_subject_of = yes }	
				        804 = { owns_or_subject_of = yes }	
				        821 = { owns_or_subject_of = yes }	
						825 = { owns_or_subject_of = yes }	
				        827 = { owns_or_subject_of = yes }	
				        828 = { owns_or_subject_of = yes }	
				        829 = { owns_or_subject_of = yes }	
				        833 = { owns_or_subject_of = yes }	
						834 = { owns_or_subject_of = yes }	
				        853 = { owns_or_subject_of = yes }	
						879 = { owns_or_subject_of = yes }	
			          	880 = { owns_or_subject_of = yes }	
				        950 = { owns_or_subject_of = yes }	
				        952 = { owns_or_subject_of = yes }	
						956 = { owns_or_subject_of = yes }	
				        958 = { owns_or_subject_of = yes }	
				        959 = { owns_or_subject_of = yes }	
				        961 = { owns_or_subject_of = yes }	
				        962 = { owns_or_subject_of = yes }	
						963 = { owns_or_subject_of = yes }	
				        996 = { owns_or_subject_of = yes }	
				        1078 = { owns_or_subject_of = yes }	

						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PSF } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_pan_slavic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PSF
			add_stability = 0.2
			set_capital = { state = 219 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				10 = { add_core_of = ROOT }
				98 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				224 = { owns_or_subject_of = yes }
				242 = { owns_or_subject_of = yes }
				243 = { owns_or_subject_of = yes }
				
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				
				9 = { add_core_of = ROOT }	
                45 = { add_core_of = ROOT }	
                48 = { add_core_of = ROOT }	
                69 = { add_core_of = ROOT }	
                70 = { add_core_of = ROOT }	
                71 = { add_core_of = ROOT }	
                72 = { add_core_of = ROOT }	
                73 = { add_core_of = ROOT }	
                74 = { add_core_of = ROOT }	
                75 = { add_core_of = ROOT }	
                102 = { add_core_of = ROOT }	
                103 = { add_core_of = ROOT }	
                104 = { add_core_of = ROOT }	
                105 = { add_core_of = ROOT }	
                106 = { add_core_of = ROOT }	
                107 = { add_core_of = ROOT }	
                108 = { add_core_of = ROOT }	
                109 = { add_core_of = ROOT }	
                137 = { add_core_of = ROOT }	
                192 = { add_core_of = ROOT }	
                195 = { add_core_of = ROOT }	
                196 = { add_core_of = ROOT }	
                197 = { add_core_of = ROOT }	
                200 = { add_core_of = ROOT }	
                205 = { add_core_of = ROOT }	
                208 = { add_core_of = ROOT }	
                209 = { add_core_of = ROOT }	
                210 = { add_core_of = ROOT }	
                211 = { add_core_of = ROOT }	
                212 = { add_core_of = ROOT }	
                213 = { add_core_of = ROOT }	
                214 = { add_core_of = ROOT }	
                215 = { add_core_of = ROOT }	
                216 = { add_core_of = ROOT }	
                217 = { add_core_of = ROOT }	
                218 = { add_core_of = ROOT }	
                219 = { add_core_of = ROOT }	
                220 = { add_core_of = ROOT }	
                221 = { add_core_of = ROOT }	
                222 = { add_core_of = ROOT }	
                223 = { add_core_of = ROOT }	
                227 = { add_core_of = ROOT }	
                228 = { add_core_of = ROOT }	
                232 = { add_core_of = ROOT }	
                233 = { add_core_of = ROOT }	
                234 = { add_core_of = ROOT }	
                235 = { add_core_of = ROOT }	
                236 = { add_core_of = ROOT }	
                237 = { add_core_of = ROOT }	
                238 = { add_core_of = ROOT }	
                239 = { add_core_of = ROOT }	
                240 = { add_core_of = ROOT }	
                244 = { add_core_of = ROOT }	
                245 = { add_core_of = ROOT }	
                246 = { add_core_of = ROOT }	
                247 = { add_core_of = ROOT }	
                248 = { add_core_of = ROOT }	
                249 = { add_core_of = ROOT }	
                250 = { add_core_of = ROOT }	
                251 = { add_core_of = ROOT }	
                252 = { add_core_of = ROOT }	
                253 = { add_core_of = ROOT }	
                254 = { add_core_of = ROOT }	
                255 = { add_core_of = ROOT }	
                256 = { add_core_of = ROOT }	
                257 = { add_core_of = ROOT }	
                258 = { add_core_of = ROOT }	
                260 = { add_core_of = ROOT }	
                262 = { add_core_of = ROOT }	
                263 = { add_core_of = ROOT }	
                264 = { add_core_of = ROOT }	
                265 = { add_core_of = ROOT }	
                351 = { add_core_of = ROOT }	
                399 = { add_core_of = ROOT }	
                397 = { add_core_of = ROOT }	
                400 = { add_core_of = ROOT }	
                401 = { add_core_of = ROOT }	
                581 = { add_core_of = ROOT }	
                664 = { add_core_of = ROOT }	
                764 = { add_core_of = ROOT }
                784 = { add_core_of = ROOT }				
                801 = { add_core_of = ROOT }	
                803 = { add_core_of = ROOT }	
                804 = { add_core_of = ROOT }	
                821 = { add_core_of = ROOT }	
                825 = { add_core_of = ROOT }	
                827 = { add_core_of = ROOT }	
                828 = { add_core_of = ROOT }	
                829 = { add_core_of = ROOT }	
                833 = { add_core_of = ROOT }	
                834 = { add_core_of = ROOT }	
                853 = { add_core_of = ROOT }	
                879 = { add_core_of = ROOT }	
                880 = { add_core_of = ROOT }	
                950 = { add_core_of = ROOT }	
                952 = { add_core_of = ROOT }	
                956 = { add_core_of = ROOT }	
                958 = { add_core_of = ROOT }	
                959 = { add_core_of = ROOT }	
                961 = { add_core_of = ROOT }	
                962 = { add_core_of = ROOT }	
                963 = { add_core_of = ROOT }	
                996 = { add_core_of = ROOT }	
                1078 = { add_core_of = ROOT }			
			}
			5 = { add_core_of = ROOT }
			763 = { add_core_of = ROOT }
			66 = { add_core_of = ROOT }
			67 = { add_core_of = ROOT }
			398 = { add_core_of = ROOT }
			651 = { add_core_of = ROOT }
			573 = { add_core_of = ROOT }
			582 = { add_core_of = ROOT }
			652 = { add_core_of = ROOT }
			653 = { add_core_of = ROOT }
			579 = { add_core_of = ROOT }
			580 = { add_core_of = ROOT }
			824 = { add_core_of = ROOT }
			577 = { add_core_of = ROOT }
			572 = { add_core_of = ROOT }
			403 = { add_core_of = ROOT }
			571 = { add_core_of = ROOT }
			570 = { add_core_of = ROOT }
			578 = { add_core_of = ROOT }
			40 = { add_core_of = ROOT }
			576 = { add_core_of = ROOT }
			516 = { add_core_of = ROOT }
			878 = { add_core_of = ROOT }
			568 = { add_core_of = ROOT }
			567 = { add_core_of = ROOT }
			566 = { add_core_of = ROOT }
			575 = { add_core_of = ROOT }
			565 = { add_core_of = ROOT }
			574 = { add_core_of = ROOT }
			876 = { add_core_of = ROOT }
			877 = { add_core_of = ROOT }
			644 = { add_core_of = ROOT }
			822 = { add_core_of = ROOT }
			563 = { add_core_of = ROOT }
			561 = { add_core_of = ROOT }
			657 = { add_core_of = ROOT }
			560 = { add_core_of = ROOT }
			409 = { add_core_of = ROOT }
			408 = { add_core_of = ROOT }
			655 = { add_core_of = ROOT }
			562 = { add_core_of = ROOT }
			874 = { add_core_of = ROOT }
			637 = { add_core_of = ROOT }
			822 = { add_core_of = ROOT }
			68 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_thracia = {
	
		priority = 879
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = TUR
				original_tag = GRE
				original_tag = BUL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 184
				state = 211
				state = 212
				state = 341
				
			}			
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						184 = { owns_or_subject_of = yes }
                        211 = { owns_or_subject_of = yes }
                        212 = { owns_or_subject_of = yes }
                        341 = { owns_or_subject_of = yes }			
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no						
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_TRC } } }
			custom_trigger_tooltip = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_thracia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_TRC
			add_stability = 0.05
			set_capital = { state = 184 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				184 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				341 = { add_core_of = ROOT }
				
			}
		}
	}
	
	formable_nations_aksum = {
	
		priority = 878
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SUD
				original_tag = EGY
				original_tag = ERI
				original_tag = YEM
				original_tag = ETH
				original_tag = AFA
				original_tag = DJI	
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 268
				state = 293
				state = 550
				state = 841
				state = 842
				state = 843
				state = 883
				state = 886
				state = 908
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						268 = { owns_or_subject_of = yes }
						293 = { owns_or_subject_of = yes }
				        550 = { owns_or_subject_of = yes }
				        841 = { owns_or_subject_of = yes }
						842 = { owns_or_subject_of = yes }
				        843 = { owns_or_subject_of = yes }
				        883 = { owns_or_subject_of = yes }
				        886 = { owns_or_subject_of = yes }
				        908 = { owns_or_subject_of = yes }				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_AKS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_aksum
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_AKS
			add_stability = 0.1
			set_capital = { state = 842 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				268 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				550 = { add_core_of = ROOT }
				841 = { add_core_of = ROOT }
				842 = { add_core_of = ROOT }
				843 = { add_core_of = ROOT }
				883 = { add_core_of = ROOT }
				886 = { add_core_of = ROOT }
				908 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_srivijaya = {
	
		priority = 878
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MAL
				original_tag = INS
				original_tag = SGP
				original_tag = SIA
				original_tag = BRN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 333
				state = 335
				state = 336
				state = 446
				state = 667
				state = 672
				state = 673
				state = 724
				state = 909
				state = 914
				state = 915
				state = 916
				state = 951
				state = 960
				state = 974
				state = 976
				state = 978
				state = 1014
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						333 = { owns_or_subject_of = yes }
				        335 = { owns_or_subject_of = yes }
				        336 = { owns_or_subject_of = yes }
				        446 = { owns_or_subject_of = yes }
				        667 = { owns_or_subject_of = yes }
				        672 = { owns_or_subject_of = yes }
				        673 = { owns_or_subject_of = yes }
				        724 = { owns_or_subject_of = yes }
				        909 = { owns_or_subject_of = yes }
				        914 = { owns_or_subject_of = yes }
				        915 = { owns_or_subject_of = yes }
				        916 = { owns_or_subject_of = yes }
				        951 = { owns_or_subject_of = yes }
				        960 = { owns_or_subject_of = yes }
				        974 = { owns_or_subject_of = yes }
				        976 = { owns_or_subject_of = yes }
			            978 = { owns_or_subject_of = yes }
				        1014 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SRV } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_srivijaya
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_SRV
			add_stability = 0.1
			set_capital = { state = 672 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				333 = { add_core_of = ROOT }
				335 = { add_core_of = ROOT }
				336 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				667 = { add_core_of = ROOT }
				672 = { add_core_of = ROOT }
				673 = { add_core_of = ROOT }
				724 = { add_core_of = ROOT }
				909 = { add_core_of = ROOT }
				914 = { add_core_of = ROOT }
				915 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				951 = { add_core_of = ROOT }
				960 = { add_core_of = ROOT }
				974 = { add_core_of = ROOT }
				976 = { add_core_of = ROOT }
				978 = { add_core_of = ROOT }
				1014 = { add_core_of = ROOT }
				
			}
		}
	}
	
	formable_nations_danubian = {
	
		priority = 877
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AUS
				original_tag = HUN
				original_tag = SLV
				original_tag = CRO
				original_tag = VNZ
				original_tag = ITA
				original_tag = BOS
				original_tag = YUG
				original_tag = ROM
				original_tag = SLO
				original_tag = RUT
				original_tag = CZE
				original_tag = D08
				original_tag = POL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 9
				state = 39
				state = 43
				state = 45
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 76
				state = 80
				state = 82
				state = 83
				state = 84
				state = 88
				state = 89
				state = 102
				state = 103
				state = 104
				state = 109
				state = 152
				state = 153
				state = 154
				state = 155
				state = 664
				state = 736
				state = 764
				state = 804
				state = 848
				state = 852
				state = 853
				state = 913
				state = 952
				state = 956
				state = 958
				state = 959
				state = 961
				state = 962
				state = 996
				state = 1054
				state = 1078
				state = 1086
				state = 1104
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
                       4 = { owns_or_subject_of = yes }	
                       9 = { owns_or_subject_of = yes }	
                       39 = { owns_or_subject_of = yes }	
                       43 = { owns_or_subject_of = yes }	
                       45 = { owns_or_subject_of = yes }	
                       69 = { owns_or_subject_of = yes }	
                       70 = { owns_or_subject_of = yes }	
                       71 = { owns_or_subject_of = yes }	
                       72 = { owns_or_subject_of = yes }	
                       73 = { owns_or_subject_of = yes }	
                       74 = { owns_or_subject_of = yes }	
                       75 = { owns_or_subject_of = yes }	
                       76 = { owns_or_subject_of = yes }	
                       80 = { owns_or_subject_of = yes }	
                       82 = { owns_or_subject_of = yes }	
                       83 = { owns_or_subject_of = yes }	
                       84 = { owns_or_subject_of = yes }	
                       88 = { owns_or_subject_of = yes }	
                       89 = { owns_or_subject_of = yes }	
                       102 = { owns_or_subject_of = yes }	
                       103 = { owns_or_subject_of = yes }	
                       104 = { owns_or_subject_of = yes }	
                       109 = { owns_or_subject_of = yes }	
                       152 = { owns_or_subject_of = yes }	
                       153 = { owns_or_subject_of = yes }	
                       154 = { owns_or_subject_of = yes }	
                       155 = { owns_or_subject_of = yes }	
                       664 = { owns_or_subject_of = yes }	
                       736 = { owns_or_subject_of = yes }	
                       764 = { owns_or_subject_of = yes }	
                       804 = { owns_or_subject_of = yes }	
                       848 = { owns_or_subject_of = yes }	
                       852 = { owns_or_subject_of = yes }	
                       853 = { owns_or_subject_of = yes }	
                       913 = { owns_or_subject_of = yes }	
                       952 = { owns_or_subject_of = yes }	
                       956 = { owns_or_subject_of = yes }	
                       958 = { owns_or_subject_of = yes }	
                       959 = { owns_or_subject_of = yes }	
                       961 = { owns_or_subject_of = yes }	
                       962 = { owns_or_subject_of = yes }	
                       996 = { owns_or_subject_of = yes }	
                       1054 = { owns_or_subject_of = yes }	
                       1078 = { owns_or_subject_of = yes }	
                       1086 = { owns_or_subject_of = yes }	
                       1104 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_DNF } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_danubian
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_DNF
			add_stability = 0.15
			set_capital = { state = 43 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
                4 = { add_core_of = ROOT }	
                9 = { add_core_of = ROOT }	
                39 = { add_core_of = ROOT }	
                43 = { add_core_of = ROOT }	
                45 = { add_core_of = ROOT }	
                69 = { add_core_of = ROOT }	
                70 = { add_core_of = ROOT }	
                71 = { add_core_of = ROOT }	
                72 = { add_core_of = ROOT }	
                73 = { add_core_of = ROOT }	
                74 = { add_core_of = ROOT }	
                75 = { add_core_of = ROOT }	
                76 = { add_core_of = ROOT }	
                80 = { add_core_of = ROOT }	
                82 = { add_core_of = ROOT }	
                83 = { add_core_of = ROOT }	
                84 = { add_core_of = ROOT }	
                88 = { add_core_of = ROOT }	
                89 = { add_core_of = ROOT }	
                102 = { add_core_of = ROOT }	
                103 = { add_core_of = ROOT }	
                104 = { add_core_of = ROOT }	
                109 = { add_core_of = ROOT }	
                152 = { add_core_of = ROOT }	
                153 = { add_core_of = ROOT }	
                154 = { add_core_of = ROOT }	
                155 = { add_core_of = ROOT }	
                664 = { add_core_of = ROOT }	
                736 = { add_core_of = ROOT }	
                764 = { add_core_of = ROOT }	
                804 = { add_core_of = ROOT }	
                848 = { add_core_of = ROOT }	
                852 = { add_core_of = ROOT }	
                853 = { add_core_of = ROOT }	
                913 = { add_core_of = ROOT }	
                952 = { add_core_of = ROOT }	
                956 = { add_core_of = ROOT }	
                958 = { add_core_of = ROOT }	
                959 = { add_core_of = ROOT }	
                961 = { add_core_of = ROOT }	
                962 = { add_core_of = ROOT }	
                996 = { add_core_of = ROOT }	
                1054 = { add_core_of = ROOT }	
                1078 = { add_core_of = ROOT }	
                1086 = { add_core_of = ROOT }	
                1104 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_great_nordic = {
	
		priority = 876
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SWE
				original_tag = FIN
				original_tag = NOR
				original_tag = DEN
				original_tag = ICE
				original_tag = GRN
				original_tag = AHV
				original_tag = FAR
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 37
				state = 99
				state = 38
				state = 124
				state = 138
				state = 139
				state = 140
				state = 141
				state = 666
				state = 110
				state = 142
				state = 143
				state = 144

				state = 100
				state = 337
                state = 964
                state = 967
				state = 968
				state = 969
				state = 1024
				state = 1025
				state = 1026
				state = 1027
				state = 1028
				state = 1029
				state = 1030
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				state = 1043
				
				state = 11
				state = 12
				state = 13
				state = 101
				state = 111
				state = 145
				state = 146
				state = 147
				state = 148
				state = 149
				state = 150
				state = 189
				state = 190
				state = 191
				state = 722
				state = 808
				state = 809
				state = 810
				state = 811
				state = 812
				state = 813
				state = 814
				state = 815
				state = 970
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						37 = { owns_or_subject_of = yes }
						99 = { owns_or_subject_of = yes }
						38 = { owns_or_subject_of = yes }
						124 = { owns_or_subject_of = yes }
						138 = { owns_or_subject_of = yes }
						139 = { owns_or_subject_of = yes }
						140 = { owns_or_subject_of = yes }
						141 = { owns_or_subject_of = yes }
						666 = { owns_or_subject_of = yes }
						110 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
						144 = { owns_or_subject_of = yes }

                        100 = { owns_or_subject_of = yes }
				        337 = { owns_or_subject_of = yes }
                        964 = { owns_or_subject_of = yes }
						967 = { owns_or_subject_of = yes }
				        968 = { owns_or_subject_of = yes }
				        969 = { owns_or_subject_of = yes }
						1024 = { owns_or_subject_of = yes }
				        1025 = { owns_or_subject_of = yes }
				        1026 = { owns_or_subject_of = yes }
						1027 = { owns_or_subject_of = yes }
				        1028 = { owns_or_subject_of = yes }
						1029 = { owns_or_subject_of = yes }
						1030 = { owns_or_subject_of = yes }
				        1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
						1033 = { owns_or_subject_of = yes }
				        1034 = { owns_or_subject_of = yes }
				        1035 = { owns_or_subject_of = yes }
				        1043 = { owns_or_subject_of = yes }
						
						11 = { owns_or_subject_of = yes }
				        12 = { owns_or_subject_of = yes }
				        13 = { owns_or_subject_of = yes }
				        101 = { owns_or_subject_of = yes }
				        111 = { owns_or_subject_of = yes }
				        145 = { owns_or_subject_of = yes }
				        146 = { owns_or_subject_of = yes }
				        147 = { owns_or_subject_of = yes }
				        148 = { owns_or_subject_of = yes }
						149 = { owns_or_subject_of = yes }
				        150 = { owns_or_subject_of = yes }
				        189 = { owns_or_subject_of = yes }
				        190 = { owns_or_subject_of = yes }
				        191 = { owns_or_subject_of = yes }
						722 = { owns_or_subject_of = yes }
				        808 = { owns_or_subject_of = yes }
				        809 = { owns_or_subject_of = yes }
				        810 = { owns_or_subject_of = yes }
				        811 = { owns_or_subject_of = yes }
				        812 = { owns_or_subject_of = yes }
				        813 = { owns_or_subject_of = yes }
						814 = { owns_or_subject_of = yes }
				        815 = { owns_or_subject_of = yes }
				        970 = { owns_or_subject_of = yes }
				        1036 = { owns_or_subject_of = yes }
				        1037 = { owns_or_subject_of = yes }
						1038 = { owns_or_subject_of = yes }
				        1039 = { owns_or_subject_of = yes }
				        1040 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GNU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_great_nordic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GNU
			add_stability = 0.2
			set_capital = { state = 141 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				38 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }

                100 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				968 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1024 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1027 = { add_core_of = ROOT }
				1028 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
				1030 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
				1043 = { add_core_of = ROOT }	

                11 = { add_core_of = ROOT }
				12 = { add_core_of = ROOT }
				13 = { add_core_of = ROOT }
				101 = { add_core_of = ROOT }
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				809 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				970 = { add_core_of = ROOT }
				1036 = { add_core_of = ROOT }
				1037 = { add_core_of = ROOT }
				1038 = { add_core_of = ROOT }
				1039 = { add_core_of = ROOT }
				1040 = { add_core_of = ROOT }				
			}
			188 = { add_core_of = ROOT }
			971 = { add_claim_by = ROOT }				
		}
	}
	
	formable_nations_hun_empire = {
	
		priority = 875
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = HUN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 10
				state = 98
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 784
				state = 807
				state = 762
				state = 807
				state = 9
				state = 69
				state = 70
				state = 71
				state = 72
				state = 73
				state = 74
				state = 75
				state = 69
				state = 664
				state = 43
				state = 154
				state = 155
				state = 76
				state = 77
				state = 78
				state = 79
				state = 80
				state = 46
				state = 81
				state = 82
				state = 83
				state = 84
				state = 766
				state = 204
				state = 206
				state = 207
				state = 194
				state = 241
				state = 94
				state = 95
				state = 96
				state = 199
				state = 201
				state = 198
				state = 202
				state = 203
				state = 226
				state = 193
				state = 259
				state = 225
				state = 196
				state = 200
				state = 227
				state = 221
				state = 228
				state = 89
				state = 91
				state = 93
				state = 80
				state = 766
				state = 192
				state = 197
				state = 834

                state = 913
				state = 934
				state = 935
				state = 936
				state = 955
                state = 996
				state = 1078
				state = 1104

				state = 4
				state = 5
				state = 7
				state = 11
				state = 12
				state = 35
				state = 36
				state = 37
				state = 42
				state = 50
				state = 51
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 65
				state = 66
				state = 67
				state = 68
				state = 99
				state = 137
				state = 152
				state = 188
				state = 189
				state = 190
				state = 205
				state = 210
				state = 217
				state = 218
				state = 219
				state = 220
				state = 222
				state = 223
				state = 224
				state = 233
				state = 234
				state = 235
				state = 236
				state = 237
				state = 238
				state = 239
				state = 240
				state = 242
				state = 243
				state = 245
				state = 246
				state = 250
				state = 251
				state = 254
				state = 255
				state = 257
				state = 258
				state = 260
				state = 265
				state = 401
				state = 763
				state = 808
				state = 809
				state = 810
				state = 814
				state = 815
				state = 821
				state = 827
				state = 828
				state = 829
				state = 922
				state = 923
				state = 964
				state = 989
				state = 998
				state = 1053
				state = 1054
				state = 1086
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
                85 = { owns_or_subject_of = yes }	
                86 = { owns_or_subject_of = yes }	
                87 = { owns_or_subject_of = yes }	
                88 = { owns_or_subject_of = yes }	
                89 = { owns_or_subject_of = yes }	
                90 = { owns_or_subject_of = yes }	
                10 = { owns_or_subject_of = yes }	
                98 = { owns_or_subject_of = yes }	
                91 = { owns_or_subject_of = yes }	
                92 = { owns_or_subject_of = yes }	
                93 = { owns_or_subject_of = yes }	
                94 = { owns_or_subject_of = yes }	
                95 = { owns_or_subject_of = yes }	
                96 = { owns_or_subject_of = yes }	
                97 = { owns_or_subject_of = yes }	
               784 = { owns_or_subject_of = yes }	
               807 = { owns_or_subject_of = yes }	
               762 = { owns_or_subject_of = yes }	
               807 = { owns_or_subject_of = yes }	
                 9 = { owns_or_subject_of = yes }	
                69 = { owns_or_subject_of = yes }	
                70 = { owns_or_subject_of = yes }	
                71 = { owns_or_subject_of = yes }	
                72 = { owns_or_subject_of = yes }	
                73 = { owns_or_subject_of = yes }	
                74 = { owns_or_subject_of = yes }	
                75 = { owns_or_subject_of = yes }	
                69 = { owns_or_subject_of = yes }	
               664 = { owns_or_subject_of = yes }	
                43 = { owns_or_subject_of = yes }	
               154 = { owns_or_subject_of = yes }	
               155 = { owns_or_subject_of = yes }	
                76 = { owns_or_subject_of = yes }	
                77 = { owns_or_subject_of = yes }	
                78 = { owns_or_subject_of = yes }	
                79 = { owns_or_subject_of = yes }	
                80 = { owns_or_subject_of = yes }	
                46 = { owns_or_subject_of = yes }	
                81 = { owns_or_subject_of = yes }	
                82 = { owns_or_subject_of = yes }	
                83 = { owns_or_subject_of = yes }	
                84 = { owns_or_subject_of = yes }	
               766 = { owns_or_subject_of = yes }	
               204 = { owns_or_subject_of = yes }	
               206 = { owns_or_subject_of = yes }	
               207 = { owns_or_subject_of = yes }	
               194 = { owns_or_subject_of = yes }	
               241 = { owns_or_subject_of = yes }	
                94 = { owns_or_subject_of = yes }	
                95 = { owns_or_subject_of = yes }	
                96 = { owns_or_subject_of = yes }	
               199 = { owns_or_subject_of = yes }	
               201 = { owns_or_subject_of = yes }	
               198 = { owns_or_subject_of = yes }	
               202 = { owns_or_subject_of = yes }	
               203 = { owns_or_subject_of = yes }	
               226 = { owns_or_subject_of = yes }	
               193 = { owns_or_subject_of = yes }	
               259 = { owns_or_subject_of = yes }	
               225 = { owns_or_subject_of = yes }	
               196 = { owns_or_subject_of = yes }	
               200 = { owns_or_subject_of = yes }	
               227 = { owns_or_subject_of = yes }	
               221 = { owns_or_subject_of = yes }	
               228 = { owns_or_subject_of = yes }	
                89 = { owns_or_subject_of = yes }	
                91 = { owns_or_subject_of = yes }	
                93 = { owns_or_subject_of = yes }	
                80 = { owns_or_subject_of = yes }	
               766 = { owns_or_subject_of = yes }	
               192 = { owns_or_subject_of = yes }	
               197 = { owns_or_subject_of = yes }	
               834 = { owns_or_subject_of = yes }	
               913 = { owns_or_subject_of = yes }	
               934 = { owns_or_subject_of = yes }	
               935 = { owns_or_subject_of = yes }	
               936 = { owns_or_subject_of = yes }	
               955 = { owns_or_subject_of = yes }	
               996 = { owns_or_subject_of = yes }	
              1078 = { owns_or_subject_of = yes }	
              1104 = { owns_or_subject_of = yes }	
                 4 = { owns_or_subject_of = yes }	
                 5 = { owns_or_subject_of = yes }	
                 7 = { owns_or_subject_of = yes }	
                11 = { owns_or_subject_of = yes }	
                12 = { owns_or_subject_of = yes }	
                35 = { owns_or_subject_of = yes }	
                36 = { owns_or_subject_of = yes }	
                37 = { owns_or_subject_of = yes }	
                42 = { owns_or_subject_of = yes }	
                50 = { owns_or_subject_of = yes }	
                51 = { owns_or_subject_of = yes }	
                53 = { owns_or_subject_of = yes }	
                54 = { owns_or_subject_of = yes }	
                55 = { owns_or_subject_of = yes }	
                56 = { owns_or_subject_of = yes }	
                57 = { owns_or_subject_of = yes }	
                58 = { owns_or_subject_of = yes }	
                59 = { owns_or_subject_of = yes }	
                60 = { owns_or_subject_of = yes }	
                61 = { owns_or_subject_of = yes }	
                62 = { owns_or_subject_of = yes }	
                63 = { owns_or_subject_of = yes }	
                64 = { owns_or_subject_of = yes }	
                65 = { owns_or_subject_of = yes }	
                66 = { owns_or_subject_of = yes }	
                67 = { owns_or_subject_of = yes }	
                68 = { owns_or_subject_of = yes }	
                99 = { owns_or_subject_of = yes }	
               137 = { owns_or_subject_of = yes }	
               152 = { owns_or_subject_of = yes }	
               188 = { owns_or_subject_of = yes }	
               189 = { owns_or_subject_of = yes }	
               190 = { owns_or_subject_of = yes }	
               205 = { owns_or_subject_of = yes }	
               210 = { owns_or_subject_of = yes }	
               217 = { owns_or_subject_of = yes }	
               218 = { owns_or_subject_of = yes }	
               219 = { owns_or_subject_of = yes }	
               220 = { owns_or_subject_of = yes }	
               222 = { owns_or_subject_of = yes }	
               223 = { owns_or_subject_of = yes }	
               224 = { owns_or_subject_of = yes }	
               233 = { owns_or_subject_of = yes }	
               234 = { owns_or_subject_of = yes }	
               235 = { owns_or_subject_of = yes }	
               236 = { owns_or_subject_of = yes }	
               237 = { owns_or_subject_of = yes }	
               238 = { owns_or_subject_of = yes }	
               239 = { owns_or_subject_of = yes }	
               240 = { owns_or_subject_of = yes }	
               242 = { owns_or_subject_of = yes }	
               243 = { owns_or_subject_of = yes }	
               245 = { owns_or_subject_of = yes }	
               246 = { owns_or_subject_of = yes }	
			   250 = { owns_or_subject_of = yes }
			   251 = { owns_or_subject_of = yes }
               254 = { owns_or_subject_of = yes }	
               255 = { owns_or_subject_of = yes }	
               257 = { owns_or_subject_of = yes }	
               258 = { owns_or_subject_of = yes }	
               260 = { owns_or_subject_of = yes }	
               265 = { owns_or_subject_of = yes }	
               401 = { owns_or_subject_of = yes }	
               763 = { owns_or_subject_of = yes }	
               808 = { owns_or_subject_of = yes }	
               809 = { owns_or_subject_of = yes }	
               810 = { owns_or_subject_of = yes }	
               814 = { owns_or_subject_of = yes }	
               815 = { owns_or_subject_of = yes }	
               821 = { owns_or_subject_of = yes }	
               827 = { owns_or_subject_of = yes }	
               828 = { owns_or_subject_of = yes }	
               829 = { owns_or_subject_of = yes }	
               922 = { owns_or_subject_of = yes }	
               923 = { owns_or_subject_of = yes }	
               964 = { owns_or_subject_of = yes }	
               989 = { owns_or_subject_of = yes }	
               998 = { owns_or_subject_of = yes }	
              1053 = { owns_or_subject_of = yes }	
              1054 = { owns_or_subject_of = yes }	
              1086 = { owns_or_subject_of = yes }	

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_EHE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_hun_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_EHE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
                85 = { add_core_of = ROOT }	
                86 = { add_core_of = ROOT }	
                87 = { add_core_of = ROOT }	
                88 = { add_core_of = ROOT }	
                89 = { add_core_of = ROOT }	
                90 = { add_core_of = ROOT }	
                10 = { add_core_of = ROOT }	
                98 = { add_core_of = ROOT }	
                91 = { add_core_of = ROOT }	
                92 = { add_core_of = ROOT }	
                93 = { add_core_of = ROOT }	
                94 = { add_core_of = ROOT }	
                95 = { add_core_of = ROOT }	
                96 = { add_core_of = ROOT }	
                97 = { add_core_of = ROOT }	
               784 = { add_core_of = ROOT }	
               807 = { add_core_of = ROOT }	
               762 = { add_core_of = ROOT }	
               807 = { add_core_of = ROOT }	
                 9 = { add_core_of = ROOT }	
                69 = { add_core_of = ROOT }	
                70 = { add_core_of = ROOT }	
                71 = { add_core_of = ROOT }	
                72 = { add_core_of = ROOT }	
                73 = { add_core_of = ROOT }	
                74 = { add_core_of = ROOT }	
                75 = { add_core_of = ROOT }	
                69 = { add_core_of = ROOT }	
               664 = { add_core_of = ROOT }	
                43 = { add_core_of = ROOT }	
               154 = { add_core_of = ROOT }	
               155 = { add_core_of = ROOT }	
                76 = { add_core_of = ROOT }	
                77 = { add_core_of = ROOT }	
                78 = { add_core_of = ROOT }	
                79 = { add_core_of = ROOT }	
                80 = { add_core_of = ROOT }	
                46 = { add_core_of = ROOT }	
                81 = { add_core_of = ROOT }	
                82 = { add_core_of = ROOT }	
                83 = { add_core_of = ROOT }	
                84 = { add_core_of = ROOT }	
               766 = { add_core_of = ROOT }	
               204 = { add_core_of = ROOT }	
               206 = { add_core_of = ROOT }	
               207 = { add_core_of = ROOT }	
               194 = { add_core_of = ROOT }	
               241 = { add_core_of = ROOT }	
                94 = { add_core_of = ROOT }	
                95 = { add_core_of = ROOT }	
                96 = { add_core_of = ROOT }	
               199 = { add_core_of = ROOT }	
               201 = { add_core_of = ROOT }	
               198 = { add_core_of = ROOT }	
               202 = { add_core_of = ROOT }	
               203 = { add_core_of = ROOT }	
               226 = { add_core_of = ROOT }	
               193 = { add_core_of = ROOT }	
               259 = { add_core_of = ROOT }	
               225 = { add_core_of = ROOT }	
               196 = { add_core_of = ROOT }	
               200 = { add_core_of = ROOT }	
               227 = { add_core_of = ROOT }	
               221 = { add_core_of = ROOT }	
               228 = { add_core_of = ROOT }	
                89 = { add_core_of = ROOT }	
                91 = { add_core_of = ROOT }	
                93 = { add_core_of = ROOT }	
                80 = { add_core_of = ROOT }	
               766 = { add_core_of = ROOT }	
               192 = { add_core_of = ROOT }	
               197 = { add_core_of = ROOT }	
               834 = { add_core_of = ROOT }	
               913 = { add_core_of = ROOT }	
               934 = { add_core_of = ROOT }	
               935 = { add_core_of = ROOT }	
               936 = { add_core_of = ROOT }	
               955 = { add_core_of = ROOT }	
               996 = { add_core_of = ROOT }	
              1078 = { add_core_of = ROOT }	
              1104 = { add_core_of = ROOT }	
                 4 = { add_core_of = ROOT }	
                 5 = { add_core_of = ROOT }	
                 7 = { add_core_of = ROOT }	
                11 = { add_core_of = ROOT }	
                12 = { add_core_of = ROOT }	
                35 = { add_core_of = ROOT }	
                36 = { add_core_of = ROOT }	
                37 = { add_core_of = ROOT }	
                42 = { add_core_of = ROOT }	
                50 = { add_core_of = ROOT }	
                51 = { add_core_of = ROOT }	
                53 = { add_core_of = ROOT }	
                54 = { add_core_of = ROOT }	
                55 = { add_core_of = ROOT }	
                56 = { add_core_of = ROOT }	
                57 = { add_core_of = ROOT }	
                58 = { add_core_of = ROOT }	
                59 = { add_core_of = ROOT }	
                60 = { add_core_of = ROOT }	
                61 = { add_core_of = ROOT }	
                62 = { add_core_of = ROOT }	
                63 = { add_core_of = ROOT }	
                64 = { add_core_of = ROOT }	
                65 = { add_core_of = ROOT }	
                66 = { add_core_of = ROOT }	
                67 = { add_core_of = ROOT }	
                68 = { add_core_of = ROOT }	
                99 = { add_core_of = ROOT }	
               137 = { add_core_of = ROOT }	
               152 = { add_core_of = ROOT }	
               188 = { add_core_of = ROOT }	
               189 = { add_core_of = ROOT }	
               190 = { add_core_of = ROOT }	
               205 = { add_core_of = ROOT }	
               210 = { add_core_of = ROOT }	
               217 = { add_core_of = ROOT }	
               218 = { add_core_of = ROOT }	
               219 = { add_core_of = ROOT }	
               220 = { add_core_of = ROOT }	
               222 = { add_core_of = ROOT }	
               223 = { add_core_of = ROOT }	
               224 = { add_core_of = ROOT }	
               233 = { add_core_of = ROOT }	
               234 = { add_core_of = ROOT }	
               235 = { add_core_of = ROOT }	
               236 = { add_core_of = ROOT }	
               237 = { add_core_of = ROOT }	
               238 = { add_core_of = ROOT }	
               239 = { add_core_of = ROOT }	
               240 = { add_core_of = ROOT }	
               242 = { add_core_of = ROOT }	
               243 = { add_core_of = ROOT }	
               245 = { add_core_of = ROOT }	
               246 = { add_core_of = ROOT }
               250 = { add_core_of = ROOT }
			   251 = { add_core_of = ROOT }			   
               254 = { add_core_of = ROOT }	
               255 = { add_core_of = ROOT }	
               257 = { add_core_of = ROOT }	
               258 = { add_core_of = ROOT }	
               260 = { add_core_of = ROOT }	
               265 = { add_core_of = ROOT }	
               401 = { add_core_of = ROOT }	
               763 = { add_core_of = ROOT }	
               808 = { add_core_of = ROOT }	
               809 = { add_core_of = ROOT }	
               810 = { add_core_of = ROOT }	
               814 = { add_core_of = ROOT }	
               815 = { add_core_of = ROOT }	
               821 = { add_core_of = ROOT }	
               827 = { add_core_of = ROOT }	
               828 = { add_core_of = ROOT }	
               829 = { add_core_of = ROOT }	
               922 = { add_core_of = ROOT }	
               923 = { add_core_of = ROOT }	
               964 = { add_core_of = ROOT }	
               989 = { add_core_of = ROOT }	
               998 = { add_core_of = ROOT }	
              1053 = { add_core_of = ROOT }	
              1054 = { add_core_of = ROOT }	
              1086 = { add_core_of = ROOT }	
			}
			139 = { add_core_of = ROOT }	
			140 = { add_core_of = ROOT }	
			969 = { add_core_of = ROOT }	
			1026 = { add_core_of = ROOT }	
			124 = { add_core_of = ROOT }	
			138 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_gokturk = {
	
		priority = 874
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MON
				original_tag = TAN
				original_tag = BYA
                original_tag = KYR
				original_tag = KAZ
				original_tag = ALT
				original_tag = MEN
				original_tag = UZB
				original_tag = TMS
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 287
				state = 330
				state = 329
				state = 563
				state = 586
				state = 588
				state = 589
				state = 611
				state = 612
				state = 616
				state = 617
				state = 618
				state = 619
				state = 621
				state = 654
				state = 714
				state = 715
				state = 732
				state = 746
				state = 756
				state = 759
				state = 760
				state = 761
				state = 817
				state = 818
				state = 819
				state = 820
				state = 946

				state = 217
				state = 232
				state = 234
				state = 235
				state = 236
				state = 237
				state = 238
				state = 402
				state = 404
				state = 405
				state = 406
				state = 407
				state = 584
				state = 585
				state = 587
				state = 742
				state = 823
				state = 830
				state = 831
				state = 832
				state = 881
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						287 = { owns_or_subject_of = yes }	
						330 = { owns_or_subject_of = yes }	
						329 = { owns_or_subject_of = yes }	
						563 = { owns_or_subject_of = yes }		
				        586 = { owns_or_subject_of = yes }	
						588 = { owns_or_subject_of = yes }	
				        589 = { owns_or_subject_of = yes }	
				        611 = { owns_or_subject_of = yes }	
				        612 = { owns_or_subject_of = yes }	
				        616 = { owns_or_subject_of = yes }	
						617 = { owns_or_subject_of = yes }	
				        618 = { owns_or_subject_of = yes }	
				        619 = { owns_or_subject_of = yes }	
						621 = { owns_or_subject_of = yes }	
				        654 = { owns_or_subject_of = yes }	
				        714 = { owns_or_subject_of = yes }	
				        715 = { owns_or_subject_of = yes }	
				        732 = { owns_or_subject_of = yes }	
						746 = { owns_or_subject_of = yes }	
				        756 = { owns_or_subject_of = yes }	
				        759 = { owns_or_subject_of = yes }	
				        760 = { owns_or_subject_of = yes }	
				        761 = { owns_or_subject_of = yes }	
				        817 = { owns_or_subject_of = yes }	
						818 = { owns_or_subject_of = yes }	
				        819 = { owns_or_subject_of = yes }	
				        820 = { owns_or_subject_of = yes }	
						946 = { owns_or_subject_of = yes }

                        217 = { owns_or_subject_of = yes }
				        232 = { owns_or_subject_of = yes }
				        234 = { owns_or_subject_of = yes }
				        235 = { owns_or_subject_of = yes }
						236 = { owns_or_subject_of = yes }
				        237 = { owns_or_subject_of = yes }
				        238 = { owns_or_subject_of = yes }
				        402 = { owns_or_subject_of = yes }
				        404 = { owns_or_subject_of = yes }
				        405 = { owns_or_subject_of = yes }
				        406 = { owns_or_subject_of = yes }
				        407 = { owns_or_subject_of = yes }
				        584 = { owns_or_subject_of = yes }
				        585 = { owns_or_subject_of = yes }
				        587 = { owns_or_subject_of = yes }
				        742 = { owns_or_subject_of = yes }
				        823 = { owns_or_subject_of = yes }
				        830 = { owns_or_subject_of = yes }
				        831 = { owns_or_subject_of = yes }
				        832 = { owns_or_subject_of = yes }
				        881 = { owns_or_subject_of = yes }				
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_FTK } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_gokturk
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_FTK
			add_stability = 0.15
			set_capital = { state = 330 }
			set_province_name = { id = 4801 name = "Ötüken" }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				287 = { add_core_of = ROOT }	
				330 = { add_core_of = ROOT }	
				329 = { add_core_of = ROOT }	
				563 = { add_core_of = ROOT }			
				586 = { add_core_of = ROOT }	
				588 = { add_core_of = ROOT }	
				589 = { add_core_of = ROOT }		
				611 = { add_core_of = ROOT }	
				612 = { add_core_of = ROOT }	
				616 = { add_core_of = ROOT }	
				617 = { add_core_of = ROOT }	
				618 = { add_core_of = ROOT }	
				619 = { add_core_of = ROOT }	
				621 = { add_core_of = ROOT }	
				654 = { add_core_of = ROOT }	
				714 = { add_core_of = ROOT }	
				715 = { add_core_of = ROOT }	
				732 = { add_core_of = ROOT }	
				746 = { add_core_of = ROOT }	
				756 = { add_core_of = ROOT }	
				759 = { add_core_of = ROOT }	
				760 = { add_core_of = ROOT }	
				761 = { add_core_of = ROOT }	
				817 = { add_core_of = ROOT }	
				818 = { add_core_of = ROOT }	
				819 = { add_core_of = ROOT }	
				820 = { add_core_of = ROOT }		
				946 = { add_core_of = ROOT }	

				217 = { add_core_of = ROOT }
				232 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				235 = { add_core_of = ROOT }
				236 = { add_core_of = ROOT }
				237 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				402 = { add_core_of = ROOT }
				404 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				406 = { add_core_of = ROOT }
				407 = { add_core_of = ROOT }
				584 = { add_core_of = ROOT }
				585 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				823 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				831 = { add_core_of = ROOT }
				832 = { add_core_of = ROOT }
				881 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_spanish_empire = {
	
		priority = 873
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = GLC
				original_tag = NAV
				original_tag = CAT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 177
				state = 795
				
				state = 507
				state = 279
				state = 506
				state = 492
				state = 303
				state = 305
				state = 306
				state = 489
				state = 493
				state = 302
				state = 508
				state = 494
				state = 491
				state = 490

                state = 954
                state = 1051
				state = 1061
				state = 1062
				state = 1063
				state = 1064
				state = 1071
				
				state = 277
				state = 278
				state = 300
				state = 301
				state = 304
				state = 307
				state = 311
				state = 312
				state = 313
				state = 314
				state = 316
				state = 317
				state = 474
				state = 475
				state = 476
				state = 477
				state = 478
				state = 479
				state = 480
				state = 481
				state = 482
				state = 483
				state = 484
				state = 485
				state = 486
				state = 487
				state = 488
				state = 509
				state = 510
				state = 511
				state = 512
				state = 688
				state = 929
				state = 930
				state = 931
				state = 932
				state = 937
				state = 948
				state = 1059
				state = 1060
				state = 1065
				state = 1066
				state = 1067
				state = 1068
				state = 1069
				state = 1070
				state = 1073
				state = 1077
				
				state = 178
				state = 299
				state = 315
				state = 994
				
				state = 319
				state = 649
				state = 686
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
						
						507 = { owns_or_subject_of = yes }
						279 = { owns_or_subject_of = yes }
						506 = { owns_or_subject_of = yes }
						492 = { owns_or_subject_of = yes }
						303 = { owns_or_subject_of = yes }
						305 = { owns_or_subject_of = yes }
						306 = { owns_or_subject_of = yes }
						489 = { owns_or_subject_of = yes }
						493 = { owns_or_subject_of = yes }
						302 = { owns_or_subject_of = yes }
						508 = { owns_or_subject_of = yes }
						494 = { owns_or_subject_of = yes }
						491 = { owns_or_subject_of = yes }
						490 = { owns_or_subject_of = yes }

                        954 = { owns_or_subject_of = yes }
						1051 = { owns_or_subject_of = yes }
				        1061 = { owns_or_subject_of = yes }
						1062 = { owns_or_subject_of = yes }
				        1063 = { owns_or_subject_of = yes }
				        1064 = { owns_or_subject_of = yes }
				        1071 = { owns_or_subject_of = yes }
						
						277 = { owns_or_subject_of = yes }	
				        278 = { owns_or_subject_of = yes }
						300 = { owns_or_subject_of = yes }	
				        301 = { owns_or_subject_of = yes }	
				        304 = { owns_or_subject_of = yes }	
						307 = { owns_or_subject_of = yes }	
				        311 = { owns_or_subject_of = yes }	
				        312 = { owns_or_subject_of = yes }	
						313 = { owns_or_subject_of = yes }	
				        314 = { owns_or_subject_of = yes }	
				        316 = { owns_or_subject_of = yes }	
				        317 = { owns_or_subject_of = yes }	
				        474 = { owns_or_subject_of = yes }	
				        475 = { owns_or_subject_of = yes }	
				        476 = { owns_or_subject_of = yes }	
						477 = { owns_or_subject_of = yes }	
				        478 = { owns_or_subject_of = yes }	
				        479 = { owns_or_subject_of = yes }	
						480 = { owns_or_subject_of = yes }	
				        481 = { owns_or_subject_of = yes }	
			        	482 = { owns_or_subject_of = yes }	
			         	483 = { owns_or_subject_of = yes }	
				        484 = { owns_or_subject_of = yes }	
					    485 = { owns_or_subject_of = yes }	
				        486 = { owns_or_subject_of = yes }	
				        487 = { owns_or_subject_of = yes }	
						488 = { owns_or_subject_of = yes }	
				        509 = { owns_or_subject_of = yes }	
				        510 = { owns_or_subject_of = yes }	
				        511 = { owns_or_subject_of = yes }	
				        512 = { owns_or_subject_of = yes }	
				        688 = { owns_or_subject_of = yes }	
				        929 = { owns_or_subject_of = yes }	
				        930 = { owns_or_subject_of = yes }	
				        931 = { owns_or_subject_of = yes }	
				        932 = { owns_or_subject_of = yes }	
				        937 = { owns_or_subject_of = yes }	
				        948 = { owns_or_subject_of = yes }	
				        1059 = { owns_or_subject_of = yes }	
				        1060 = { owns_or_subject_of = yes }	
				        1065 = { owns_or_subject_of = yes }	
				        1066 = { owns_or_subject_of = yes }	
				        1067 = { owns_or_subject_of = yes }	
				        1068 = { owns_or_subject_of = yes }	
				        1069 = { owns_or_subject_of = yes }	
				        1070 = { owns_or_subject_of = yes }	
				        1073 = { owns_or_subject_of = yes }	
				        1077 = { owns_or_subject_of = yes }
						
						178 = { owns_or_subject_of = yes }
				        299 = { owns_or_subject_of = yes }
				        315 = { owns_or_subject_of = yes }
				        994 = { owns_or_subject_of = yes }
						
						319 = { owns_or_subject_of = yes }
				        649 = { owns_or_subject_of = yes }
				        686 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SPI } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_spanish_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_SPI
			add_stability = 0.2
			set_capital = { state = 41 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				
				507 = { add_core_of = ROOT }
				279 = { add_core_of = ROOT }
				506 = { add_core_of = ROOT }
				492 = { add_core_of = ROOT }
				303 = { add_core_of = ROOT }
				305 = { add_core_of = ROOT }
				306 = { add_core_of = ROOT }
				489 = { add_core_of = ROOT }
				493 = { add_core_of = ROOT }
				302 = { add_core_of = ROOT }
				508 = { add_core_of = ROOT }
				494 = { add_core_of = ROOT }
				491 = { add_core_of = ROOT }
				490 = { add_core_of = ROOT }

				954 = { add_core_of = ROOT }
                1051 = { add_core_of = ROOT }
				1061 = { add_core_of = ROOT }
				1062 = { add_core_of = ROOT }
				1063 = { add_core_of = ROOT }
				1064 = { add_core_of = ROOT }
				1071 = { add_core_of = ROOT }
				
				277 = { add_core_of = ROOT }	
				278 = { add_core_of = ROOT }
				300 = { add_core_of = ROOT }
				301 = { add_core_of = ROOT }	
				304 = { add_core_of = ROOT }	
				307 = { add_core_of = ROOT }	
				311 = { add_core_of = ROOT }	
				312 = { add_core_of = ROOT }	
				313 = { add_core_of = ROOT }	
				314 = { add_core_of = ROOT }	
				316 = { add_core_of = ROOT }	
				317 = { add_core_of = ROOT }	
				474 = { add_core_of = ROOT }	
				475 = { add_core_of = ROOT }	
				476 = { add_core_of = ROOT }	
				477 = { add_core_of = ROOT }	
				478 = { add_core_of = ROOT }	
				479 = { add_core_of = ROOT }	
				480 = { add_core_of = ROOT }	
			    481 = { add_core_of = ROOT }	
				482 = { add_core_of = ROOT }	
				483 = { add_core_of = ROOT }	
				484 = { add_core_of = ROOT }	
				485 = { add_core_of = ROOT }	
				486 = { add_core_of = ROOT }	
				487 = { add_core_of = ROOT }	
				488 = { add_core_of = ROOT }	
				509 = { add_core_of = ROOT }	
				510 = { add_core_of = ROOT }	
				511 = { add_core_of = ROOT }	
				512 = { add_core_of = ROOT }	
				688 = { add_core_of = ROOT }	
				929 = { add_core_of = ROOT }	
				930 = { add_core_of = ROOT }	
				931 = { add_core_of = ROOT }	
				932 = { add_core_of = ROOT }	
				937 = { add_core_of = ROOT }	
				948 = { add_core_of = ROOT }	
				1059 = { add_core_of = ROOT }	
				1060 = { add_core_of = ROOT }	
				1065 = { add_core_of = ROOT }	
				1066 = { add_core_of = ROOT }	
				1067 = { add_core_of = ROOT }	
				1068 = { add_core_of = ROOT }	
				1069 = { add_core_of = ROOT }	
				1070 = { add_core_of = ROOT }	
				1073 = { add_core_of = ROOT }	
				1077 = { add_core_of = ROOT }
				
				178 = { add_core_of = ROOT }
				299 = { add_core_of = ROOT }
				315 = { add_core_of = ROOT }
				994 = { add_core_of = ROOT }
				
				319 = { owns_or_subject_of = yes }
				649 = { owns_or_subject_of = yes }
				686 = { owns_or_subject_of = yes }
			}
			327 = { add_core_of = ROOT }
			623 = { add_core_of = ROOT }
			624 = { add_core_of = ROOT }
			625 = { add_core_of = ROOT }
			626 = { add_core_of = ROOT }
			627 = { add_core_of = ROOT }
			628 = { add_core_of = ROOT }
			367 = { add_core_of = ROOT }
			366 = { add_core_of = ROOT }
			370 = { add_core_of = ROOT }
			375 = { add_core_of = ROOT }
			371 = { add_core_of = ROOT }
			327 = { add_claim_by = ROOT }
			623 = { add_claim_by = ROOT }
			624 = { add_claim_by = ROOT }
			625 = { add_claim_by = ROOT }
			626 = { add_claim_by = ROOT }
			627 = { add_claim_by = ROOT }
			628 = { add_claim_by = ROOT }
			367 = { add_claim_by = ROOT }
			366 = { add_claim_by = ROOT }
			370 = { add_claim_by = ROOT }
			375 = { add_claim_by = ROOT }
			371 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_timurid = {
	
		priority = 872
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PER
				original_tag = TUR
				original_tag = TMS
				original_tag = UZB
				original_tag = TAJ
				original_tag = AZR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 229
				state = 230
				state = 231
				state = 266
				state = 267
				state = 405
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 415
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 442
				state = 444
				state = 445
				state = 584
				state = 585
				state = 742
				state = 823
				state = 830
				state = 831
				state = 832
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 985
				state = 986
				state = 987
				state = 988
				state = 1008
				state = 1009
				state = 1010
				state = 1011
				state = 1044

				state = 232
				state = 291
				state = 350
				state = 352
				state = 353
				state = 354
				state = 440
				state = 587
				state = 676
				state = 732
				state = 787
				state = 800
				state = 821
				state = 826
				state = 1045
				state = 1048
				state = 1049
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
				229 = { owns_or_subject_of = yes }	
				230 = { owns_or_subject_of = yes }	
				231 = { owns_or_subject_of = yes }	
				266 = { owns_or_subject_of = yes }	
				267 = { owns_or_subject_of = yes }	
				405 = { owns_or_subject_of = yes }	
				410 = { owns_or_subject_of = yes }	
				411 = { owns_or_subject_of = yes }	
				412 = { owns_or_subject_of = yes }	
				413 = { owns_or_subject_of = yes }	
				414 = { owns_or_subject_of = yes }	
				415 = { owns_or_subject_of = yes }	
				416 = { owns_or_subject_of = yes }	
				417 = { owns_or_subject_of = yes }	
				418 = { owns_or_subject_of = yes }	
				419 = { owns_or_subject_of = yes }	
				420 = { owns_or_subject_of = yes }	
				421 = { owns_or_subject_of = yes }	
				442 = { owns_or_subject_of = yes }	
				444 = { owns_or_subject_of = yes }	
				445 = { owns_or_subject_of = yes }	
				584 = { owns_or_subject_of = yes }	
				585 = { owns_or_subject_of = yes }	
				742 = { owns_or_subject_of = yes }	
				823 = { owns_or_subject_of = yes }	
				830 = { owns_or_subject_of = yes }	
				831 = { owns_or_subject_of = yes }	
				832 = { owns_or_subject_of = yes }	
				980 = { owns_or_subject_of = yes }	
				981 = { owns_or_subject_of = yes }	
				982 = { owns_or_subject_of = yes }	
				983 = { owns_or_subject_of = yes }	
				984 = { owns_or_subject_of = yes }	
				985 = { owns_or_subject_of = yes }	
				986 = { owns_or_subject_of = yes }	
				987 = { owns_or_subject_of = yes }	
				988 = { owns_or_subject_of = yes }	
				1008 = { owns_or_subject_of = yes }	
				1009 = { owns_or_subject_of = yes }	
				1010 = { owns_or_subject_of = yes }	
				1011 = { owns_or_subject_of = yes }	
				1044 = { owns_or_subject_of = yes }
				
				232 = { owns_or_subject_of = yes }
				291 = { owns_or_subject_of = yes }
				350 = { owns_or_subject_of = yes }
				352 = { owns_or_subject_of = yes }
				353 = { owns_or_subject_of = yes }
				354 = { owns_or_subject_of = yes }
				440 = { owns_or_subject_of = yes }
				587 = { owns_or_subject_of = yes }
				676 = { owns_or_subject_of = yes }
				732 = { owns_or_subject_of = yes }
				787 = { owns_or_subject_of = yes }
				800 = { owns_or_subject_of = yes }
				821 = { owns_or_subject_of = yes }
				826 = { owns_or_subject_of = yes }
				1045 = { owns_or_subject_of = yes }
				1048 = { owns_or_subject_of = yes }
				1049 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_TIM } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_timurid
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_TIM
			add_stability = 0.15
			set_capital = { state = 415 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				229 = { add_core_of = ROOT }	
				230 = { add_core_of = ROOT }	
				231 = { add_core_of = ROOT }	
				266 = { add_core_of = ROOT }	
				267 = { add_core_of = ROOT }	
				405 = { add_core_of = ROOT }	
				410 = { add_core_of = ROOT }	
				411 = { add_core_of = ROOT }	
				412 = { add_core_of = ROOT }	
				413 = { add_core_of = ROOT }	
				414 = { add_core_of = ROOT }	
				415 = { add_core_of = ROOT }	
				416 = { add_core_of = ROOT }	
				417 = { add_core_of = ROOT }	
				418 = { add_core_of = ROOT }	
				419 = { add_core_of = ROOT }	
				420 = { add_core_of = ROOT }	
				421 = { add_core_of = ROOT }	
				442 = { add_core_of = ROOT }	
				444 = { add_core_of = ROOT }	
				445 = { add_core_of = ROOT }	
				584 = { add_core_of = ROOT }	
				585 = { add_core_of = ROOT }	
				742 = { add_core_of = ROOT }	
				823 = { add_core_of = ROOT }	
				830 = { add_core_of = ROOT }	
				831 = { add_core_of = ROOT }	
				832 = { add_core_of = ROOT }	
				980 = { add_core_of = ROOT }	
				981 = { add_core_of = ROOT }	
				982 = { add_core_of = ROOT }	
				983 = { add_core_of = ROOT }	
				984 = { add_core_of = ROOT }	
				985 = { add_core_of = ROOT }	
				986 = { add_core_of = ROOT }	
				987 = { add_core_of = ROOT }	
				988 = { add_core_of = ROOT }	
				1008 = { add_core_of = ROOT }	
				1009 = { add_core_of = ROOT }	
				1010 = { add_core_of = ROOT }	
				1011 = { add_core_of = ROOT }	
				1044 = { add_core_of = ROOT }	
				
				232 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				440 = { add_core_of = ROOT }
				587 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				787 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }
				821 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_skibidi = {
	
		priority = 871
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = XSM
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 283
				state = 287
				state = 604
				state = 615
				state = 616
				state = 617
				state = 618
				state = 619
				state = 621
				state = 622
				state = 746
				state = 753
				state = 754
				state = 755
				state = 756
				state = 759
				state = 760
				state = 1075
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						283 = { owns_or_subject_of = yes }
						287 = { owns_or_subject_of = yes }
				        604 = { owns_or_subject_of = yes }
				        615 = { owns_or_subject_of = yes }
				        616 = { owns_or_subject_of = yes }
				        617 = { owns_or_subject_of = yes }
				        618 = { owns_or_subject_of = yes }
				        619 = { owns_or_subject_of = yes }
				        621 = { owns_or_subject_of = yes }
				        622 = { owns_or_subject_of = yes }
				        746 = { owns_or_subject_of = yes }
				        753 = { owns_or_subject_of = yes }
				        754 = { owns_or_subject_of = yes }
				        755 = { owns_or_subject_of = yes }
				        756 = { owns_or_subject_of = yes }
				        759 = { owns_or_subject_of = yes }
				        760 = { owns_or_subject_of = yes }
				        1075 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_SKB } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_skibidi
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_SKB
			add_stability = 0.05
			set_capital = { state = 754 }
			set_province_name = { id = 12732 name = "Skibidi Land" }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				283 = { add_core_of = ROOT }
				287 = { add_core_of = ROOT }
				604 = { add_core_of = ROOT }
				615 = { add_core_of = ROOT }
				616 = { add_core_of = ROOT }
				617 = { add_core_of = ROOT }
				618 = { add_core_of = ROOT }
				619 = { add_core_of = ROOT }
				621 = { add_core_of = ROOT }
				622 = { add_core_of = ROOT }
				746 = { add_core_of = ROOT }
				753 = { add_core_of = ROOT }
				754 = { add_core_of = ROOT }
				755 = { add_core_of = ROOT }
				756 = { add_core_of = ROOT }
				759 = { add_core_of = ROOT }
				760 = { add_core_of = ROOT }
				1075 = { add_core_of = ROOT }				
			}
		}
	}
	
	formable_nations_greater_italy = {
	
		priority = 870
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ITA
				original_tag = TOS
				original_tag = POP
				original_tag = PAP
				original_tag = NAP
				original_tag = SIC
				original_tag = SAD
				original_tag = VNZ
				original_tag = SAN
				original_tag = TTS
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 2
				state = 39
				state = 44
				state = 103
				state = 105
				state = 114
				state = 115
				state = 117
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 163
				state = 448
				state = 449
				state = 450
				state = 451
				state = 458
				state = 661
				state = 662
				state = 663
				state = 665
				state = 735
				state = 736
				state = 805
				state = 849
				state = 850
				state = 852
				state = 853
				state = 910
				state = 912
				state = 957
				state = 958
				state = 1012
				state = 1015
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
						2 = { owns_or_subject_of = yes }
				        39 = { owns_or_subject_of = yes }
				        44 = { owns_or_subject_of = yes }
				        103 = { owns_or_subject_of = yes }
				        105 = { owns_or_subject_of = yes }
				        114 = { owns_or_subject_of = yes }
				        115 = { owns_or_subject_of = yes }
				        117 = { owns_or_subject_of = yes }
				        156 = { owns_or_subject_of = yes }
				        157 = { owns_or_subject_of = yes }
				        158 = { owns_or_subject_of = yes }
				        159 = { owns_or_subject_of = yes }
				        160 = { owns_or_subject_of = yes }
				        161 = { owns_or_subject_of = yes }
				        162 = { owns_or_subject_of = yes }
				        163 = { owns_or_subject_of = yes }
				        448 = { owns_or_subject_of = yes }
				        449 = { owns_or_subject_of = yes }
				        450 = { owns_or_subject_of = yes }
				        451 = { owns_or_subject_of = yes }
				        458 = { owns_or_subject_of = yes }
				        661 = { owns_or_subject_of = yes }
				        662 = { owns_or_subject_of = yes }
				        663 = { owns_or_subject_of = yes }
				        665 = { owns_or_subject_of = yes }
				        735 = { owns_or_subject_of = yes }
				        736 = { owns_or_subject_of = yes }
				        805 = { owns_or_subject_of = yes }
				        849 = { owns_or_subject_of = yes }
				        850 = { owns_or_subject_of = yes }
				        852 = { owns_or_subject_of = yes }
				        853 = { owns_or_subject_of = yes }
				        910 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
						1015 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GIT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_greater_italy
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GIT
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				44 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
			
			}
			116 = { add_core_of = ROOT }
			452 = { add_core_of = ROOT }
			447 = { add_core_of = ROOT }
			907 = { add_core_of = ROOT }
			911 = { add_core_of = ROOT }
			995 = { add_core_of = ROOT }
			453 = { add_core_of = ROOT }
			182 = { add_core_of = ROOT }
			185 = { add_core_of = ROOT }
			186 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_cossack = {
	
		priority = 869
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = UKR
				original_tag = DON
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 192
				state = 196
				state = 197
				state = 200
				state = 203
				state = 217
				state = 218
				state = 221
				state = 226
				state = 227
				state = 228
				state = 234
				state = 238
				state = 240
				state = 245
				state = 259
				state = 260
				state = 265
				state = 834
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						192 = { owns_or_subject_of = yes }
						196 = { owns_or_subject_of = yes }
				        197 = { owns_or_subject_of = yes }
				        200 = { owns_or_subject_of = yes }
				        203 = { owns_or_subject_of = yes }
				        217 = { owns_or_subject_of = yes }
				        218 = { owns_or_subject_of = yes }
				        221 = { owns_or_subject_of = yes }
				        226 = { owns_or_subject_of = yes }
				        227 = { owns_or_subject_of = yes }
				        228 = { owns_or_subject_of = yes }
				        234 = { owns_or_subject_of = yes }
				        238 = { owns_or_subject_of = yes }
				        240 = { owns_or_subject_of = yes }
				        245 = { owns_or_subject_of = yes }
				        259 = { owns_or_subject_of = yes }
				        260 = { owns_or_subject_of = yes }
				        265 = { owns_or_subject_of = yes }
				        834 = { owns_or_subject_of = yes }
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_CSK } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_cossack
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_CSK
			add_stability = 0.1
			set_capital = { state = 200 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				192 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				200 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				217 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				226 = { add_core_of = ROOT }
				227 = { add_core_of = ROOT }
				228 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				238 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				245 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				260 = { add_core_of = ROOT }
				265 = { add_core_of = ROOT }
				834 = { add_core_of = ROOT }
			}
			137 = { add_core_of = ROOT }
			137 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_german_colonial = {
	
		priority = 868
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = GER
				original_tag = SHL
				original_tag = MEK
				original_tag = BAY
				original_tag = PRE
				original_tag = SAX
				original_tag = HAN
				original_tag = WUR
				original_tag = RHI
				original_tag = THU
				original_tag = SAR
				original_tag = HES
				original_tag = DNZ
				original_tag = BAD
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 5
				state = 42
				state = 50
				state = 51
				state = 52
				state = 53
				state = 54
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 65
				state = 66
				state = 67
				state = 68
				state = 85
				state = 86
				state = 763
				state = 807
				state = 922
				state = 923
				state = 989	
				state = 998
				state = 1053
				
				state = 541
				state = 546
				state = 633
				state = 638
				state = 639
				state = 646
				state = 647
				state = 684
				state = 725
				state = 737
				state = 773
				state = 777
				state = 893
				state = 894
				state = 895
				state = 1096
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						5 = { owns_or_subject_of = yes }
				        42 = { owns_or_subject_of = yes }
				        50 = { owns_or_subject_of = yes }
				        51 = { owns_or_subject_of = yes }
				        52 = { owns_or_subject_of = yes }
				        53 = { owns_or_subject_of = yes }
				        54 = { owns_or_subject_of = yes }
				        55 = { owns_or_subject_of = yes }
				        56 = { owns_or_subject_of = yes }
				        57 = { owns_or_subject_of = yes }
				        58 = { owns_or_subject_of = yes }
				        59 = { owns_or_subject_of = yes }
				        60 = { owns_or_subject_of = yes }
				        61 = { owns_or_subject_of = yes }
				        62 = { owns_or_subject_of = yes }
				        63 = { owns_or_subject_of = yes }
				        64 = { owns_or_subject_of = yes }
				        65 = { owns_or_subject_of = yes }
				        66 = { owns_or_subject_of = yes }
				        67 = { owns_or_subject_of = yes }
				        68 = { owns_or_subject_of = yes }
				        85 = { owns_or_subject_of = yes }
				        86 = { owns_or_subject_of = yes }
				        763 = { owns_or_subject_of = yes }
				        807 = { owns_or_subject_of = yes }
				        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
				        989	 = { owns_or_subject_of = yes }
				        998 = { owns_or_subject_of = yes }
				        1053 = { owns_or_subject_of = yes }
				
						541 = { owns_or_subject_of = yes }
						546 = { owns_or_subject_of = yes }
						633 = { owns_or_subject_of = yes }
						638 = { owns_or_subject_of = yes }
						639 = { owns_or_subject_of = yes }
						646 = { owns_or_subject_of = yes }
						647 = { owns_or_subject_of = yes }
						684 = { owns_or_subject_of = yes }
						725 = { owns_or_subject_of = yes }
						737 = { owns_or_subject_of = yes }
						773 = { owns_or_subject_of = yes }
						777 = { owns_or_subject_of = yes }
						893 = { owns_or_subject_of = yes }
						894 = { owns_or_subject_of = yes }
						895 = { owns_or_subject_of = yes }
						1096 = { owns_or_subject_of = yes }
						
						
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GCE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_german_colonial
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GCE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				5 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				64 = { add_core_of = ROOT }
				65 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				763 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				989	 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
		
				541 = { add_core_of = ROOT }
				546 = { add_core_of = ROOT }
				633 = { add_core_of = ROOT }
				638 = { add_core_of = ROOT }
				639 = { add_core_of = ROOT }
				646 = { add_core_of = ROOT }
				647 = { add_core_of = ROOT }
				684 = { add_core_of = ROOT }
				725 = { add_core_of = ROOT }
				737 = { add_core_of = ROOT }
				773 = { add_core_of = ROOT }
				777 = { add_core_of = ROOT }
				893 = { add_core_of = ROOT }
				894 = { add_core_of = ROOT }
				895 = { add_core_of = ROOT }
				1096 = { add_core_of = ROOT }				
			}
		}
	}
	
	formable_nations_danish_colonial = {
	
		priority = 867
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = DEN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 37
				state = 99
				state = 100
				state = 110
				state = 101
				state = 142
				state = 143
				state = 144
				state = 337
				state = 964
				state = 967
				state = 1024
				state = 1025
				state = 1027
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				state = 1043
				
				state = 13
				state = 124
				state = 138
				state = 190
				state = 811
				state = 812
				state = 813
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						37 = { owns_or_subject_of = yes }
						99 = { owns_or_subject_of = yes }
						100 = { owns_or_subject_of = yes }
				        110 = { owns_or_subject_of = yes }
				        101 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
				        144 = { owns_or_subject_of = yes }
				        337 = { owns_or_subject_of = yes }
				        964 = { owns_or_subject_of = yes }
						967 = { owns_or_subject_of = yes }
						1024 = { owns_or_subject_of = yes }
				        1025 = { owns_or_subject_of = yes }
				        1027 = { owns_or_subject_of = yes }
						1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
				        1033 = { owns_or_subject_of = yes }
				        1034 = { owns_or_subject_of = yes }
				        1035 = { owns_or_subject_of = yes }
						1043 = { owns_or_subject_of = yes }
						
						13 = { owns_or_subject_of = yes }
				        124 = { owns_or_subject_of = yes }
				        138 = { owns_or_subject_of = yes }
				        190 = { owns_or_subject_of = yes }
				        811 = { owns_or_subject_of = yes }
				        812 = { owns_or_subject_of = yes }
				        813 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_DCE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_danish_colonial
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_DCE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				37 = { add_core_of = ROOT }
				99 = { add_core_of = ROOT }
				100 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				101 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				1024 = { add_core_of = ROOT }
				1025 = { add_core_of = ROOT }
				1027 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
				1043 = { add_core_of = ROOT }
				
				13 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				190 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
			}
			972 = { add_core_of = ROOT }
			274 = { add_core_of = ROOT }
			320 = { add_core_of = ROOT }
			733 = { add_core_of = ROOT }
			972 = { add_claim_by = ROOT }
			274 = { add_claim_by = ROOT }
			320 = { add_claim_by = ROOT }
			733 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_dutch_colonial = {
	
		priority = 867
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = HOL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 7
				state = 34
				state = 35
				state = 36
				state = 965
				state = 1094
				state = 1095
				
				state = 274
				state = 309
				state = 310
				state = 320
				state = 321
				state = 334
				state = 335
				state = 422
				state = 446
				state = 667
				state = 668
				state = 669
				state = 672
				state = 673
				state = 681
				state = 687
				state = 691
				state = 695
				state = 701
				state = 704
				state = 705
				state = 706
				state = 738
				state = 776
				state = 777
				state = 796
				state = 974
				state = 975
				state = 976
				state = 978
				state = 1003
				state = 1005
				state = 1006
				state = 1098
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
					    6 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
				        35 = { owns_or_subject_of = yes }
				        36 = { owns_or_subject_of = yes }
						965 = { owns_or_subject_of = yes }
						1094 = { owns_or_subject_of = yes }
						1095 = { owns_or_subject_of = yes }
						
						274 = { owns_or_subject_of = yes }
				        309 = { owns_or_subject_of = yes }
				        310 = { owns_or_subject_of = yes }
				        320 = { owns_or_subject_of = yes }
				        321 = { owns_or_subject_of = yes }
				        334 = { owns_or_subject_of = yes }
				        335 = { owns_or_subject_of = yes }
				        422 = { owns_or_subject_of = yes }
				        446 = { owns_or_subject_of = yes }
				        667 = { owns_or_subject_of = yes }
				        668 = { owns_or_subject_of = yes }
				        669 = { owns_or_subject_of = yes }
				        672 = { owns_or_subject_of = yes }
				        673 = { owns_or_subject_of = yes }
				        681 = { owns_or_subject_of = yes }
				        687 = { owns_or_subject_of = yes }
				        691 = { owns_or_subject_of = yes }
				        695 = { owns_or_subject_of = yes }
				        701 = { owns_or_subject_of = yes }
				        704 = { owns_or_subject_of = yes }
				        705 = { owns_or_subject_of = yes }
				        706 = { owns_or_subject_of = yes }
				        738 = { owns_or_subject_of = yes }
				        776 = { owns_or_subject_of = yes }
				        777 = { owns_or_subject_of = yes }
				        796 = { owns_or_subject_of = yes }
				        974 = { owns_or_subject_of = yes }
				        975 = { owns_or_subject_of = yes }
				        976 = { owns_or_subject_of = yes }
				        978 = { owns_or_subject_of = yes }
				        1003 = { owns_or_subject_of = yes }
				        1005 = { owns_or_subject_of = yes }
				        1006 = { owns_or_subject_of = yes }
				        1098 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_HCE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_dutch_colonial
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_HCE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				6 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
				
				274 = { add_core_of = ROOT }
				309 = { add_core_of = ROOT }
				310 = { add_core_of = ROOT }
				320 = { add_core_of = ROOT }
				321 = { add_core_of = ROOT }
				334 = { add_core_of = ROOT }
			    335 = { add_core_of = ROOT }
				422 = { add_core_of = ROOT }
				446 = { add_core_of = ROOT }
				667 = { add_core_of = ROOT }
				668 = { add_core_of = ROOT }
				669 = { add_core_of = ROOT }
				672 = { add_core_of = ROOT }
				673 = { add_core_of = ROOT }
				681 = { add_core_of = ROOT }
				687 = { add_core_of = ROOT }
				691 = { add_core_of = ROOT }
				695 = { add_core_of = ROOT }
				701 = { add_core_of = ROOT }
				704 = { add_core_of = ROOT }
				705 = { add_core_of = ROOT }
				706 = { add_core_of = ROOT }
				738 = { add_core_of = ROOT }
				776 = { add_core_of = ROOT }
				777 = { add_core_of = ROOT }
				796 = { add_core_of = ROOT }
				974 = { add_core_of = ROOT }
				975 = { add_core_of = ROOT }
				976 = { add_core_of = ROOT }
				978 = { add_core_of = ROOT }
				1003 = { add_core_of = ROOT }
				1005 = { add_core_of = ROOT }
				1006 = { add_core_of = ROOT }
				1098 = { add_core_of = ROOT }
			}
			972 = { add_core_of = ROOT }
			358 = { add_core_of = ROOT }
			1023 = { add_core_of = ROOT }
			528 = { add_core_of = ROOT }
			972 = { add_claim_by = ROOT }
			358 = { add_claim_by = ROOT }
			1023 = { add_claim_by = ROOT }
			528 = { add_claim_by = ROOT }
			524 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_portuguese_colonial = {
	
		priority = 866
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 112
				state = 179
				state = 180
				state = 181
				state = 697
				state = 698
				state = 795
				
				state = 178
				state = 280
				state = 296
				state = 297
				state = 320
				state = 321
				state = 422
				state = 495
				state = 496
				state = 497
				state = 498
				state = 499
				state = 500
				state = 501
				state = 502
				state = 503
				state = 504
				state = 505
				state = 540
				state = 544
				state = 702
				state = 705
				state = 721
				state = 729
				state = 796
				state = 891
				state = 892
				state = 896
				state = 897
				state = 999
				state = 1000
				state = 1001
				state = 1002
				state = 1003
				state = 1004
				state = 1005
				state = 1006
				state = 1052
				state = 1056
				state = 1057
				state = 1058
				state = 1072
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						112 = { owns_or_subject_of = yes }
				        179 = { owns_or_subject_of = yes }
				        180 = { owns_or_subject_of = yes }
				        181 = { owns_or_subject_of = yes }
				        697 = { owns_or_subject_of = yes }
				        698 = { owns_or_subject_of = yes }
				        795 = { owns_or_subject_of = yes }
				
				        178 = { owns_or_subject_of = yes }
				        280 = { owns_or_subject_of = yes }
				        296 = { owns_or_subject_of = yes }
				        297 = { owns_or_subject_of = yes }
				        320 = { owns_or_subject_of = yes }
				        321 = { owns_or_subject_of = yes }
				        422 = { owns_or_subject_of = yes }
				        495 = { owns_or_subject_of = yes }
				        496 = { owns_or_subject_of = yes }
				        497 = { owns_or_subject_of = yes }
				        498 = { owns_or_subject_of = yes }
				        499 = { owns_or_subject_of = yes }
				        500 = { owns_or_subject_of = yes }
				        501 = { owns_or_subject_of = yes }
				        502 = { owns_or_subject_of = yes }
				        503 = { owns_or_subject_of = yes }
				        504 = { owns_or_subject_of = yes }
				        505 = { owns_or_subject_of = yes }
				        540 = { owns_or_subject_of = yes }
				        544 = { owns_or_subject_of = yes }
				        702 = { owns_or_subject_of = yes }
				        705 = { owns_or_subject_of = yes }
				        721 = { owns_or_subject_of = yes }
				        729 = { owns_or_subject_of = yes }
				        796 = { owns_or_subject_of = yes }
				        891 = { owns_or_subject_of = yes }
				        892 = { owns_or_subject_of = yes }
				        896 = { owns_or_subject_of = yes }
				        897 = { owns_or_subject_of = yes }
				        999 = { owns_or_subject_of = yes }
				        1000 = { owns_or_subject_of = yes }
				        1001 = { owns_or_subject_of = yes }
				        1002 = { owns_or_subject_of = yes }
				        1003 = { owns_or_subject_of = yes }
				        1004 = { owns_or_subject_of = yes }
				        1005 = { owns_or_subject_of = yes }
				        1006 = { owns_or_subject_of = yes }
				        1052 = { owns_or_subject_of = yes }
				        1056 = { owns_or_subject_of = yes }
				        1057 = { owns_or_subject_of = yes }
				        1058 = { owns_or_subject_of = yes }
				        1072 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PCE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_portuguese_colonial
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PCE
			add_stability = 0.2
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				697 = { add_core_of = ROOT }
				698 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				
				178 = { add_core_of = ROOT }
				280 = { add_core_of = ROOT }
				296 = { add_core_of = ROOT }
				297 = { add_core_of = ROOT }
				320 = { add_core_of = ROOT }
				321 = { add_core_of = ROOT }
				422 = { add_core_of = ROOT }
				495 = { add_core_of = ROOT }
				496 = { add_core_of = ROOT }
				497 = { add_core_of = ROOT }
				498 = { add_core_of = ROOT }
				499 = { add_core_of = ROOT }
				500 = { add_core_of = ROOT }
				501 = { add_core_of = ROOT }
				502 = { add_core_of = ROOT }
				503 = { add_core_of = ROOT }
				504 = { add_core_of = ROOT }
				505 = { add_core_of = ROOT }
				540 = { add_core_of = ROOT }
				544 = { add_core_of = ROOT }
				702 = { add_core_of = ROOT }
				705 = { add_core_of = ROOT }
				721 = { add_core_of = ROOT }
			    729 = { add_core_of = ROOT }
				796 = { add_core_of = ROOT }
				891 = { add_core_of = ROOT }
				892 = { add_core_of = ROOT }
				896 = { add_core_of = ROOT }
				897 = { add_core_of = ROOT }
				999 = { add_core_of = ROOT }
				1000 = { add_core_of = ROOT }
				1001 = { add_core_of = ROOT }
				1002 = { add_core_of = ROOT }
				1003 = { add_core_of = ROOT }
				1004 = { add_core_of = ROOT }
				1005 = { add_core_of = ROOT }
				1006 = { add_core_of = ROOT }
				1052 = { add_core_of = ROOT }
				1056 = { add_core_of = ROOT }
				1057 = { add_core_of = ROOT }
				1058 = { add_core_of = ROOT }
				1072 = { add_core_of = ROOT }
			}
			906 = { add_core_of = ROOT }
			668 = { add_core_of = ROOT }
			545 = { add_core_of = ROOT }
			771 = { add_core_of = ROOT }
			1097 = { add_core_of = ROOT }
			906 = { add_claim_by = ROOT }
			668 = { add_claim_by = ROOT }
			545 = { add_claim_by = ROOT }
			771 = { add_claim_by = ROOT }
			1097 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_pontus = {
	
		priority = 865
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = TUR
				original_tag = GRE
				original_tag = GEO
				original_tag = CRI
				original_tag = UKR
				original_tag = ROM
				original_tag = BUL
				original_tag = DON
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 47
				state = 49
				state = 77
				state = 137
				state = 187
				state = 192
				state = 196
				state = 197
				state = 211
				state = 218
				state = 231
				state = 233
				state = 234
				state = 339
				state = 340
				state = 342
				state = 343
				state = 346
				state = 347
				state = 348
				state = 349
				state = 353
				state = 354
				state = 355
				state = 356
				state = 766
				state = 797
				state = 798
				state = 826
				state = 955
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						47 = { owns_or_subject_of = yes }
				        49 = { owns_or_subject_of = yes }
				        77 = { owns_or_subject_of = yes }
				        137 = { owns_or_subject_of = yes }
				        187 = { owns_or_subject_of = yes }
				        192 = { owns_or_subject_of = yes }
				        196 = { owns_or_subject_of = yes }
				        197 = { owns_or_subject_of = yes }
				        211 = { owns_or_subject_of = yes }
				        218 = { owns_or_subject_of = yes }
				        231 = { owns_or_subject_of = yes }
				        233 = { owns_or_subject_of = yes }
				        234 = { owns_or_subject_of = yes }
				        339 = { owns_or_subject_of = yes }
				        340 = { owns_or_subject_of = yes }
				        342 = { owns_or_subject_of = yes }
				        343 = { owns_or_subject_of = yes }
				        346 = { owns_or_subject_of = yes }
				        347 = { owns_or_subject_of = yes }
				        348 = { owns_or_subject_of = yes }
				        349 = { owns_or_subject_of = yes }
				        353 = { owns_or_subject_of = yes }
				        354 = { owns_or_subject_of = yes }
				        355 = { owns_or_subject_of = yes }
				        356 = { owns_or_subject_of = yes }
				        766 = { owns_or_subject_of = yes }
				        797 = { owns_or_subject_of = yes }
				        798 = { owns_or_subject_of = yes }
				        826 = { owns_or_subject_of = yes }
				        955 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PON } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_pontus
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PON
			add_stability = 0.1
			set_capital = { state = 355 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				47 = { add_core_of = ROOT }
				49 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				137 = { add_core_of = ROOT }
				187 = { add_core_of = ROOT }
				192 = { add_core_of = ROOT }
				196 = { add_core_of = ROOT }
				197 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				218 = { add_core_of = ROOT }
				231 = { add_core_of = ROOT }
				233 = { add_core_of = ROOT }
				234 = { add_core_of = ROOT }
				339 = { add_core_of = ROOT }
				340 = { add_core_of = ROOT }
				342 = { add_core_of = ROOT }
				343 = { add_core_of = ROOT }
				346 = { add_core_of = ROOT }
				347 = { add_core_of = ROOT }
				348 = { add_core_of = ROOT }
				349 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				354 = { add_core_of = ROOT }
				355 = { add_core_of = ROOT }
				356 = { add_core_of = ROOT }
				766 = { add_core_of = ROOT }
				797 = { add_core_of = ROOT }
				798 = { add_core_of = ROOT }
				826 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }				
			}
			345 = { add_core_of = ROOT }
			344 = { add_core_of = ROOT }
			350 = { add_core_of = ROOT }
			352 = { add_core_of = ROOT }
			800 = { add_core_of = ROOT }
			184 = { add_core_of = ROOT }
			731 = { add_core_of = ROOT }
			185 = { add_core_of = ROOT }
			186 = { add_core_of = ROOT }
			182 = { add_core_of = ROOT }
			212 = { add_core_of = ROOT }
			801 = { add_core_of = ROOT }
			48 = { add_core_of = ROOT }
			46 = { add_core_of = ROOT }
			81 = { add_core_of = ROOT }
			84 = { add_core_of = ROOT }
			82 = { add_core_of = ROOT }
			83 = { add_core_of = ROOT }
			76 = { add_core_of = ROOT }
			80 = { add_core_of = ROOT }
			79 = { add_core_of = ROOT }
			78 = { add_core_of = ROOT }
			164 = { add_claim_by = ROOT }
			200 = { add_claim_by = ROOT }
			227 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_abbasid_caliphate = {
	
	    priority = 864
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AFG
				original_tag = LBA
				original_tag = PER
				original_tag = EGY
				original_tag = TUN
				original_tag = ALG
				original_tag = LEB
				original_tag = PAL
				original_tag = SYR
				original_tag = YEM
				original_tag = OMA
				original_tag = QAT
				original_tag = KUW
				original_tag = IRQ
				original_tag = UAE
				original_tag = JOR
				original_tag = BHR
				original_tag = SAU
				original_tag = MPL
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 266
				state = 415
				state = 552
				state = 456
				state = 457
				state = 453
				state = 907
				state = 447
				state = 452
				state = 553
				state = 554
				state = 677
				state = 799
				state = 680
				state = 454
				state = 455
				state = 292
				state = 678
				state = 679
				state = 854
				state = 855
				state = 856
				state = 857
				state = 858
				state = 859
				state = 293
				state = 659
				state = 294
				state = 658
				state = 765
				state = 656
				state = 291
				state = 675
				state = 676
				state = 230
				state = 229
				state = 410
				state = 411
				state = 412
				state = 413
				state = 414
				state = 416
				state = 417
				state = 418
				state = 419
				state = 420
				state = 421
				state = 830
				state = 405
				state = 460
				state = 448
				state = 661
				state = 449
				state = 662
				state = 663
				state = 450
				state = 451
				state = 458
				state = 665
				state = 344
				state = 350
				state = 352
				state = 353
				state = 800
				state = 732
				state = 742
				state = 911
				state = 933
				state = 949
				state = 966
				state = 980
				state = 981
				state = 982
				state = 983
				state = 984
				state = 986
				state = 987
				state = 988
				state = 995
				state = 1102
				state = 1103
				state = 1007
				state = 1008
				state = 1011
				state = 1016
				state = 1017
				state = 1021
				state = 1022
				state = 1044
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				
				state = 115
				state = 182
				state = 231
				state = 232
				state = 354
				state = 584
				state = 585
				state = 823
				state = 831
				state = 832
				state = 985
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						415 = { owns_or_subject_of = yes }						
						552 = { owns_or_subject_of = yes }
						456 = { owns_or_subject_of = yes }
						457 = { owns_or_subject_of = yes }
						453 = { owns_or_subject_of = yes }
						907 = { owns_or_subject_of = yes }
						447 = { owns_or_subject_of = yes }
						452 = { owns_or_subject_of = yes }						
						553 = { owns_or_subject_of = yes }
						554 = { owns_or_subject_of = yes }
						677 = { owns_or_subject_of = yes }
						799 = { owns_or_subject_of = yes }
						680 = { owns_or_subject_of = yes }
						454 = { owns_or_subject_of = yes }
						455 = { owns_or_subject_of = yes }				
						292 = { owns_or_subject_of = yes }
						678 = { owns_or_subject_of = yes }
						679 = { owns_or_subject_of = yes }
						854 = { owns_or_subject_of = yes }
						855 = { owns_or_subject_of = yes }
						856 = { owns_or_subject_of = yes }
						857 = { owns_or_subject_of = yes }
						858 = { owns_or_subject_of = yes }
						859 = { owns_or_subject_of = yes }
						293 = { owns_or_subject_of = yes }
						659 = { owns_or_subject_of = yes }
						294 = { owns_or_subject_of = yes }
						658 = { owns_or_subject_of = yes }
						765 = { owns_or_subject_of = yes }				
						656 = { owns_or_subject_of = yes }						
						291 = { owns_or_subject_of = yes }
						675 = { owns_or_subject_of = yes }
						676 = { owns_or_subject_of = yes }						
						230 = { owns_or_subject_of = yes }						
						229 = { owns_or_subject_of = yes }						
						410 = { owns_or_subject_of = yes }
						411 = { owns_or_subject_of = yes }
						412 = { owns_or_subject_of = yes }
						413 = { owns_or_subject_of = yes }
						414 = { owns_or_subject_of = yes }
						416 = { owns_or_subject_of = yes }
						417 = { owns_or_subject_of = yes }
						418 = { owns_or_subject_of = yes }
						419 = { owns_or_subject_of = yes }
						420 = { owns_or_subject_of = yes }
						421 = { owns_or_subject_of = yes }											
						830 = { owns_or_subject_of = yes }
						405 = { owns_or_subject_of = yes }											
						460 = { owns_or_subject_of = yes }					
						448 = { owns_or_subject_of = yes }
						661 = { owns_or_subject_of = yes }
						449 = { owns_or_subject_of = yes }
						662 = { owns_or_subject_of = yes }
						663 = { owns_or_subject_of = yes }
						450 = { owns_or_subject_of = yes }
						451 = { owns_or_subject_of = yes }						
						458 = { owns_or_subject_of = yes }
						665 = { owns_or_subject_of = yes }							
						344 = { owns_or_subject_of = yes }
						350 = { owns_or_subject_of = yes }
						352 = { owns_or_subject_of = yes }
						353 = { owns_or_subject_of = yes }
						800 = { owns_or_subject_of = yes }						
						266 = { owns_or_subject_of = yes }
                        732 = { owns_or_subject_of = yes }
                        742 = { owns_or_subject_of = yes }
                        911 = { owns_or_subject_of = yes }
						933 = { owns_or_subject_of = yes }
						949 = { owns_or_subject_of = yes }
                        966 = { owns_or_subject_of = yes }
                        980 = { owns_or_subject_of = yes }
						981 = { owns_or_subject_of = yes }
                        982 = { owns_or_subject_of = yes }
                        984 = { owns_or_subject_of = yes }
                        986 = { owns_or_subject_of = yes }
                        987 = { owns_or_subject_of = yes }
                        988 = { owns_or_subject_of = yes }
                        995 = { owns_or_subject_of = yes }
						1102 = { owns_or_subject_of = yes }
                        1007 = { owns_or_subject_of = yes }
						1008 = { owns_or_subject_of = yes }
                        1011 = { owns_or_subject_of = yes }
                        1016 = { owns_or_subject_of = yes }
						1017 = { owns_or_subject_of = yes }
                        1021 = { owns_or_subject_of = yes }
                        1022 = { owns_or_subject_of = yes }
                        1044 = { owns_or_subject_of = yes }
                        1045 = { owns_or_subject_of = yes }
                        1047 = { owns_or_subject_of = yes }
                        1048 = { owns_or_subject_of = yes }
                        1049 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}

			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ABB } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_abbasid_caliphate
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_ABB
			add_stability = 0.2
			set_capital = { state = 291 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available				
				415 = { add_core_of = ROOT }
				552 = { add_core_of = ROOT }
				456 = { add_core_of = ROOT }
				457 = { add_core_of = ROOT }
				453 = { add_core_of = ROOT }
				907 = { add_core_of = ROOT }
				447 = { add_core_of = ROOT }
				452 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				292 = { add_core_of = ROOT }
				678 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				291 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				230 = { add_core_of = ROOT }
				229 = { add_core_of = ROOT }
				410 = { add_core_of = ROOT }
				411 = { add_core_of = ROOT }
				412 = { add_core_of = ROOT }
				413 = { add_core_of = ROOT }
				414 = { add_core_of = ROOT }
				416 = { add_core_of = ROOT }
				417 = { add_core_of = ROOT }
				418 = { add_core_of = ROOT }
				419 = { add_core_of = ROOT }
				420 = { add_core_of = ROOT }
				421 = { add_core_of = ROOT }
				830 = { add_core_of = ROOT }
				405 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				661 = { add_core_of = ROOT }
				449 = { add_core_of = ROOT }
				662 = { add_core_of = ROOT }
				663 = { add_core_of = ROOT }
				450 = { add_core_of = ROOT }
				451 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				352 = { add_core_of = ROOT }
				353 = { add_core_of = ROOT }
				800 = { add_core_of = ROOT }				
				266 = { add_core_of = ROOT }
				732 = { add_core_of = ROOT }
				742 = { add_core_of = ROOT }
				911 = { add_core_of = ROOT }
				933 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				980 = { add_core_of = ROOT }
				981 = { add_core_of = ROOT }
				982 = { add_core_of = ROOT }
				984 = { add_core_of = ROOT }
				986 = { add_core_of = ROOT }
				987 = { add_core_of = ROOT }
				988 = { add_core_of = ROOT }
				995 = { add_core_of = ROOT }
				1102 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1008 = { add_core_of = ROOT }
				1011 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }
				1044 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_jerusalem = {
	
		priority = 863
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MPL
				original_tag = PAL
				original_tag = ISR
				original_tag = PAP
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 453
				state = 454
				state = 455
				state = 553
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1022	
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						453 = { owns_or_subject_of = yes }
				        454 = { owns_or_subject_of = yes }
				        455 = { owns_or_subject_of = yes }
				        553 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_JRS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_jerusalem
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_JRS
			add_stability = 0.15
			set_capital = { state = 1016 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }				
			}
		}
	}
	
	formable_nations_adriatic = {
	
		priority = 862
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ITA
				original_tag = PAP
				original_tag = NAP
				original_tag = VNZ
				original_tag = CRO
				original_tag = D08
				original_tag = MNT
				original_tag = YUG
				original_tag = ALB
				original_tag = GRE
				original_tag = SAN
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 44
				state = 103
				state = 105
				state = 157
				state = 160
				state = 161
				state = 163
				state = 185
				state = 736
				state = 805
				state = 849
				state = 852
				state = 910
				state = 912
				state = 957
				state = 958
				state = 1015
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						44 = { owns_or_subject_of = yes }
						103 = { owns_or_subject_of = yes }
				        105 = { owns_or_subject_of = yes }
				        157 = { owns_or_subject_of = yes }
				        160 = { owns_or_subject_of = yes }
				        161 = { owns_or_subject_of = yes }
				        163 = { owns_or_subject_of = yes }
				        185 = { owns_or_subject_of = yes }
				        736 = { owns_or_subject_of = yes }
				        805 = { owns_or_subject_of = yes }
				        849 = { owns_or_subject_of = yes }
				        852 = { owns_or_subject_of = yes }
				        910 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
				        1015 = { owns_or_subject_of = yes }		        
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ADT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_adriatic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_ADT
			add_stability = 0.1
			set_capital = { state = 103 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				44 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				105 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				185 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				805 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				910 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }	
			}
		}
	}
	
	formable_nations_outremer = {
	
		priority = 861
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = MPL
				original_tag = PAP
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 453
				state = 454
				state = 455
				state = 553
				state = 949
				state = 966
				state = 1016
				state = 1017
				state = 1022	
				
				state = 291
				state = 292
				state = 293
				state = 294
				state = 344
				state = 350
				state = 554
				state = 656
				state = 658
				state = 659
				state = 675
				state = 676
				state = 677
				state = 679
				state = 680
				state = 765
				state = 799
				state = 854
				state = 855
				state = 856
				state = 857
				state = 858
				state = 859
				state = 979
				state = 1007
				state = 1021
				state = 1045
				state = 1046
				state = 1047
				state = 1048
				state = 1049
				state = 1103
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						453 = { owns_or_subject_of = yes }
				        454 = { owns_or_subject_of = yes }
				        455 = { owns_or_subject_of = yes }
				        553 = { owns_or_subject_of = yes }
				        949 = { owns_or_subject_of = yes }
				        966 = { owns_or_subject_of = yes }
				        1016 = { owns_or_subject_of = yes }
				        1017 = { owns_or_subject_of = yes }
				        1022 = { owns_or_subject_of = yes }
						
						291 = { owns_or_subject_of = yes }
				        292 = { owns_or_subject_of = yes }
				        293 = { owns_or_subject_of = yes }
				        294 = { owns_or_subject_of = yes }
				        344 = { owns_or_subject_of = yes }
				        350 = { owns_or_subject_of = yes }
				        554 = { owns_or_subject_of = yes }
				        656 = { owns_or_subject_of = yes }
				        658 = { owns_or_subject_of = yes }
				        659 = { owns_or_subject_of = yes }
				        675 = { owns_or_subject_of = yes }
				        676 = { owns_or_subject_of = yes }
				        677 = { owns_or_subject_of = yes }
				        679 = { owns_or_subject_of = yes }
				        680 = { owns_or_subject_of = yes }
				        765 = { owns_or_subject_of = yes }
				        799 = { owns_or_subject_of = yes }
				        854 = { owns_or_subject_of = yes }
				        855 = { owns_or_subject_of = yes }
				        856 = { owns_or_subject_of = yes }
				        857 = { owns_or_subject_of = yes }
				        858 = { owns_or_subject_of = yes }
				        859 = { owns_or_subject_of = yes }
				        979 = { owns_or_subject_of = yes }
				        1007 = { owns_or_subject_of = yes }
				        1021 = { owns_or_subject_of = yes }
				        1045 = { owns_or_subject_of = yes }
				        1046 = { owns_or_subject_of = yes }
				        1047 = { owns_or_subject_of = yes }
				        1048 = { owns_or_subject_of = yes }
				        1049 = { owns_or_subject_of = yes }
				        1103 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_OUT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_outremer
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_OUT
			add_stability = 0.15
			set_capital = { state = 1016 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				453 = { add_core_of = ROOT }
				454 = { add_core_of = ROOT }
				455 = { add_core_of = ROOT }
				553 = { add_core_of = ROOT }
				949 = { add_core_of = ROOT }
				966 = { add_core_of = ROOT }
				1016 = { add_core_of = ROOT }
				1017 = { add_core_of = ROOT }
				1022 = { add_core_of = ROOT }		

				291 = { add_core_of = ROOT }
				292 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				294 = { add_core_of = ROOT }
				344 = { add_core_of = ROOT }
				350 = { add_core_of = ROOT }
				554 = { add_core_of = ROOT }
				656 = { add_core_of = ROOT }
				658 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				675 = { add_core_of = ROOT }
				676 = { add_core_of = ROOT }
				677 = { add_core_of = ROOT }
				679 = { add_core_of = ROOT }
				680 = { add_core_of = ROOT }
				765 = { add_core_of = ROOT }
				799 = { add_core_of = ROOT }
				854 = { add_core_of = ROOT }
				855 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				857 = { add_core_of = ROOT }
				858 = { add_core_of = ROOT }
				859 = { add_core_of = ROOT }
				979 = { add_core_of = ROOT }
				1007 = { add_core_of = ROOT }
				1021 = { add_core_of = ROOT }
				1045 = { add_core_of = ROOT }
				1046 = { add_core_of = ROOT }
				1047 = { add_core_of = ROOT }
				1048 = { add_core_of = ROOT }
				1049 = { add_core_of = ROOT }
				1103 = { add_core_of = ROOT }
			}
		}
	}	
	
	formable_nations_philippine_empire = {
	
		priority = 860
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = PHI
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 286
				state = 327
				state = 333
				state = 334
				state = 524
				state = 591
				state = 592
				state = 594
				state = 623
				state = 624
				state = 625
				state = 626
				state = 627
				state = 628
				state = 668
				state = 669
				state = 670
				state = 671
				state = 728
				state = 916
				state = 924
				state = 926
				state = 927
				state = 928
				state = 975
				state = 977
				state = 1014
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						286 = { owns_or_subject_of = yes }
						327 = { owns_or_subject_of = yes }
				        333 = { owns_or_subject_of = yes }
				        334 = { owns_or_subject_of = yes }
				        524 = { owns_or_subject_of = yes }
				        591 = { owns_or_subject_of = yes }
				        592 = { owns_or_subject_of = yes }
				        594 = { owns_or_subject_of = yes }
				        623 = { owns_or_subject_of = yes }
				        624 = { owns_or_subject_of = yes }
				        625 = { owns_or_subject_of = yes }
				        626 = { owns_or_subject_of = yes }
				        627 = { owns_or_subject_of = yes }
				        628 = { owns_or_subject_of = yes }
				        668 = { owns_or_subject_of = yes }
				        669 = { owns_or_subject_of = yes }
				        670 = { owns_or_subject_of = yes }
				        671 = { owns_or_subject_of = yes }
				        728 = { owns_or_subject_of = yes }
				        916 = { owns_or_subject_of = yes }
				        924 = { owns_or_subject_of = yes }
				        926 = { owns_or_subject_of = yes }
				        927 = { owns_or_subject_of = yes }
				        928 = { owns_or_subject_of = yes }
				        975 = { owns_or_subject_of = yes }
				        977 = { owns_or_subject_of = yes }
				        1014 = { owns_or_subject_of = yes }				        
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PHE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_philippine_empire
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PHE
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				286 = { add_core_of = ROOT }
				327 = { add_core_of = ROOT }
				333 = { add_core_of = ROOT }
				334 = { add_core_of = ROOT }
				524 = { add_core_of = ROOT }
				591 = { add_core_of = ROOT }
				592 = { add_core_of = ROOT }
				594 = { add_core_of = ROOT }
				623 = { add_core_of = ROOT }
				624 = { add_core_of = ROOT }
				625 = { add_core_of = ROOT }
				626 = { add_core_of = ROOT }
				627 = { add_core_of = ROOT }
				628 = { add_core_of = ROOT }
				668 = { add_core_of = ROOT }
				669 = { add_core_of = ROOT }
				670 = { add_core_of = ROOT }
				671 = { add_core_of = ROOT }
				728 = { add_core_of = ROOT }
				916 = { add_core_of = ROOT }
				924 = { add_core_of = ROOT }
				926 = { add_core_of = ROOT }
				927 = { add_core_of = ROOT }
				928 = { add_core_of = ROOT }
				975 = { add_core_of = ROOT }
				977 = { add_core_of = ROOT }
				1014 = { add_core_of = ROOT }
			}
			978 = { add_core_of = ROOT }
			673 = { add_core_of = ROOT }
			741 = { add_core_of = ROOT }
			925 = { add_core_of = ROOT }
			593 = { add_core_of = ROOT }
			599 = { add_core_of = ROOT }
			909 = { add_core_of = ROOT }
			909 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_prussia = {
	
		priority = 859
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = DNZ
				original_tag = PRE
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 5
				state = 42
				state = 51
				state = 55
				state = 56
				state = 57
				state = 58
				state = 59
				state = 60
				state = 61
				state = 62
				state = 63
				state = 64
				state = 66
				state = 67
				state = 68
				state = 85
				state = 86
				state = 762
				state = 763
				state = 807
				state = 922
				state = 989
				state = 998
				state = 1053
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						5 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
				        51 = { owns_or_subject_of = yes }
				        55 = { owns_or_subject_of = yes }
				        56 = { owns_or_subject_of = yes }
				        57 = { owns_or_subject_of = yes }
				        58 = { owns_or_subject_of = yes }
				        59 = { owns_or_subject_of = yes }
				        60 = { owns_or_subject_of = yes }
				        61 = { owns_or_subject_of = yes }
				        62 = { owns_or_subject_of = yes }
				        63 = { owns_or_subject_of = yes }
				        64 = { owns_or_subject_of = yes }
				        66 = { owns_or_subject_of = yes }
				        67 = { owns_or_subject_of = yes }
				        68 = { owns_or_subject_of = yes }
				        85 = { owns_or_subject_of = yes }
				        86 = { owns_or_subject_of = yes }
				        762 = { owns_or_subject_of = yes }
				        763 = { owns_or_subject_of = yes }
				        807 = { owns_or_subject_of = yes }
				        922 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
				        998 = { owns_or_subject_of = yes }
				        1053 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PRS } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_prussia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PRS
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				5 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				60 = { add_core_of = ROOT }
				61 = { add_core_of = ROOT }
				62 = { add_core_of = ROOT }
				63 = { add_core_of = ROOT }
				64 = { add_core_of = ROOT }
				66 = { add_core_of = ROOT }
				67 = { add_core_of = ROOT }
				68 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				763 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_zaidi = {
	
		priority = 858
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = YEM
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 268
				state = 293
				state = 550
				state = 659
				state = 856
				state = 906
				state = 908
				state = 1103
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						268 = { owns_or_subject_of = yes }
						293 = { owns_or_subject_of = yes }
				        550 = { owns_or_subject_of = yes }
				        659 = { owns_or_subject_of = yes }
				        856 = { owns_or_subject_of = yes }
						906 = { owns_or_subject_of = yes }
				        908 = { owns_or_subject_of = yes }
				        1103 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ZKY } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_zaidi
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_ZKY
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				268 = { add_core_of = ROOT }
				293 = { add_core_of = ROOT }
				550 = { add_core_of = ROOT }
				659 = { add_core_of = ROOT }
				856 = { add_core_of = ROOT }
				906 = { add_core_of = ROOT }
				908 = { add_core_of = ROOT }
				1103 = { add_core_of = ROOT }				
			}
		}
	}
	
	formable_nations_ostrogothic = {
	
		priority = 857
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ITA
				original_tag = TOS
				original_tag = POP
				original_tag = PAP
				original_tag = NAP
				original_tag = SIC
				original_tag = SAD
				original_tag = VNZ
				original_tag = SAN
				original_tag = TTS
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 2
				state = 39
				state = 103
				state = 115
				state = 117
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 163
				state = 735
				state = 736
				state = 849
				state = 850
				state = 852
				state = 853
				state = 912
				state = 957
				state = 958
				state = 1012
				state = 1015
				
				state = 21
				state = 102
				state = 104
				state = 109
				state = 151
				state = 153
				state = 155
				state = 804
				state = 846
				state = 848
				state = 851
				state = 956
				state = 959
				state = 961
				state = 962
				state = 997
				state = 1054
				state = 1086
				state = 1104
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						2 = { owns_or_subject_of = yes }
				        39 = { owns_or_subject_of = yes }
				        103 = { owns_or_subject_of = yes }
				        115 = { owns_or_subject_of = yes }
				        117 = { owns_or_subject_of = yes }
				        156 = { owns_or_subject_of = yes }
				        157 = { owns_or_subject_of = yes }
				        158 = { owns_or_subject_of = yes }
				        159 = { owns_or_subject_of = yes }
				        160 = { owns_or_subject_of = yes }
				        161 = { owns_or_subject_of = yes }
				        162 = { owns_or_subject_of = yes }
				        163 = { owns_or_subject_of = yes }
				        735 = { owns_or_subject_of = yes }
				        736 = { owns_or_subject_of = yes }
				        849 = { owns_or_subject_of = yes }
				        850 = { owns_or_subject_of = yes }
				        852 = { owns_or_subject_of = yes }
				        853 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
						1015 = { owns_or_subject_of = yes }
						
						21 = { owns_or_subject_of = yes }
				        102 = { owns_or_subject_of = yes }
				        104 = { owns_or_subject_of = yes }
				        109 = { owns_or_subject_of = yes }
				        151 = { owns_or_subject_of = yes }
				        153 = { owns_or_subject_of = yes }
				        155 = { owns_or_subject_of = yes }
				        804 = { owns_or_subject_of = yes }
				        846 = { owns_or_subject_of = yes }
				        848 = { owns_or_subject_of = yes }
				        851 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        997 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_OST } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_ostrogothic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_OST
			add_stability = 0.15
			set_capital = { state = 161 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
				
				21 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
			
			}
		}
	}
	
	formable_nations_visigothic = {
	
		priority = 856
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = CAT
				original_tag = ADR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 22
				state = 31
				state = 41
				state = 118
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 173
				state = 175
				state = 176
				state = 179
				state = 789
				state = 791
				state = 793
				state = 794
				state = 795
				state = 806
				state = 973
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						22 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
				        41 = { owns_or_subject_of = yes }
				        118 = { owns_or_subject_of = yes }
				        165 = { owns_or_subject_of = yes }
				        166 = { owns_or_subject_of = yes }
				        167 = { owns_or_subject_of = yes }
				        168 = { owns_or_subject_of = yes }
				        169 = { owns_or_subject_of = yes }
				        170 = { owns_or_subject_of = yes }
				        173 = { owns_or_subject_of = yes }
				        175 = { owns_or_subject_of = yes }
				        176 = { owns_or_subject_of = yes }
				        179 = { owns_or_subject_of = yes }
				        789 = { owns_or_subject_of = yes }
				        791 = { owns_or_subject_of = yes }
				        793 = { owns_or_subject_of = yes }
				        794 = { owns_or_subject_of = yes }
				        795 = { owns_or_subject_of = yes }
				        806 = { owns_or_subject_of = yes }
				        973 = { owns_or_subject_of = yes }
				        
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_VIK } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_visigothic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_VIK
			add_stability = 0.15
			set_capital = { state = 41 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				22 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_andalus = {
	
		priority = 855
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ADU
			}
			NOT = { has_global_flag = modern_country }
		}

		highlight_states = {
			highlight_state_targets = {
				state = 41
				state = 118
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 791
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 177
				state = 795
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						41 = { owns_or_subject_of = yes }
						118 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						112 = { owns_or_subject_of = yes }
						179 = { owns_or_subject_of = yes }
						180 = { owns_or_subject_of = yes }
						181 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						795 = { owns_or_subject_of = yes }
						
				        
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_AND } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_andalus
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_AND
			add_stability = 0.1
			set_capital = { state = 173 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				41 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }				
			}
			790 = { add_core_of = ROOT }
			792 = { add_core_of = ROOT }
			172 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_vandal = {
	
		priority = 854
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = TUN
				original_tag = ALG
				original_tag = LBA
				original_tag = COR
				original_tag = MLT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 114
				state = 116
				state = 177
				state = 448
				state = 458
				state = 460
				state = 665
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
				        114 = { owns_or_subject_of = yes }
				        116 = { owns_or_subject_of = yes }
				        177 = { owns_or_subject_of = yes }
				        448 = { owns_or_subject_of = yes }
				        458 = { owns_or_subject_of = yes }
				        460 = { owns_or_subject_of = yes }
				        665 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_VAN } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_vandal
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_VAN
			add_stability = 0.1
			set_capital = { state = 458 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				116 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
				
			}
		}
	}
	
	formable_nations_romano_gothia = {
	
		priority = 853
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			#NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ITA
				original_tag = TOS
				original_tag = POP
				original_tag = PAP
				original_tag = NAP
				original_tag = SIC
				original_tag = SAD
				original_tag = VNZ
				original_tag = SAN
				original_tag = SPR
				original_tag = SPA
				original_tag = POR
				original_tag = CAT
				original_tag = ADR
				original_tag = TUN
				original_tag = ALG
				original_tag = LBA
				original_tag = COR
			}
			NOT = { has_global_flag = modern_country }
			OR = {
				has_cosmetic_tag = AFN_VIK
				has_cosmetic_tag = AFN_VAN
				has_cosmetic_tag = AFN_OST
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 2
				state = 39
				state = 103
				state = 115
				state = 117
				state = 156
				state = 157
				state = 158
				state = 159
				state = 160
				state = 161
				state = 162
				state = 163
				state = 735
				state = 736
				state = 849
				state = 850
				state = 852
				state = 853
				state = 912
				state = 957
				state = 958
				state = 1012
				state = 1015
				
				state = 21
				state = 102
				state = 104
				state = 109
				state = 151
				state = 153
				state = 155
				state = 804
				state = 846
				state = 848
				state = 851
				state = 956
				state = 959
				state = 961
				state = 962
				state = 997
				state = 1054
				state = 1086
				state = 1104
				
				state = 22
				state = 31
				state = 41
				state = 118
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 173
				state = 175
				state = 176
				state = 179
				state = 789
				state = 791
				state = 793
				state = 794
				state = 795
				state = 806
				state = 973
				
				state = 1
				state = 114
				state = 116
				state = 177
				state = 448
				state = 458
				state = 460
				state = 665
				
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						2 = { owns_or_subject_of = yes }
				        39 = { owns_or_subject_of = yes }
				        103 = { owns_or_subject_of = yes }
				        115 = { owns_or_subject_of = yes }
				        117 = { owns_or_subject_of = yes }
				        156 = { owns_or_subject_of = yes }
				        157 = { owns_or_subject_of = yes }
				        158 = { owns_or_subject_of = yes }
				        159 = { owns_or_subject_of = yes }
				        160 = { owns_or_subject_of = yes }
				        161 = { owns_or_subject_of = yes }
				        162 = { owns_or_subject_of = yes }
				        163 = { owns_or_subject_of = yes }
				        735 = { owns_or_subject_of = yes }
				        736 = { owns_or_subject_of = yes }
				        849 = { owns_or_subject_of = yes }
				        850 = { owns_or_subject_of = yes }
				        852 = { owns_or_subject_of = yes }
				        853 = { owns_or_subject_of = yes }
				        912 = { owns_or_subject_of = yes }
				        957 = { owns_or_subject_of = yes }
				        958 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
						1015 = { owns_or_subject_of = yes }
						
						21 = { owns_or_subject_of = yes }
				        102 = { owns_or_subject_of = yes }
				        104 = { owns_or_subject_of = yes }
				        109 = { owns_or_subject_of = yes }
				        151 = { owns_or_subject_of = yes }
				        153 = { owns_or_subject_of = yes }
				        155 = { owns_or_subject_of = yes }
				        804 = { owns_or_subject_of = yes }
				        846 = { owns_or_subject_of = yes }
				        848 = { owns_or_subject_of = yes }
				        851 = { owns_or_subject_of = yes }
				        956 = { owns_or_subject_of = yes }
				        959 = { owns_or_subject_of = yes }
				        961 = { owns_or_subject_of = yes }
				        962 = { owns_or_subject_of = yes }
				        997 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
				        1104 = { owns_or_subject_of = yes }
				        
						22 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
				        41 = { owns_or_subject_of = yes }
				        118 = { owns_or_subject_of = yes }
				        165 = { owns_or_subject_of = yes }
				        166 = { owns_or_subject_of = yes }
				        167 = { owns_or_subject_of = yes }
				        168 = { owns_or_subject_of = yes }
				        169 = { owns_or_subject_of = yes }
				        170 = { owns_or_subject_of = yes }
				        173 = { owns_or_subject_of = yes }
				        175 = { owns_or_subject_of = yes }
				        176 = { owns_or_subject_of = yes }
				        179 = { owns_or_subject_of = yes }
				        789 = { owns_or_subject_of = yes }
				        791 = { owns_or_subject_of = yes }
				        793 = { owns_or_subject_of = yes }
				        794 = { owns_or_subject_of = yes }
				        795 = { owns_or_subject_of = yes }
				        806 = { owns_or_subject_of = yes }
				        973 = { owns_or_subject_of = yes }
						
						1 = { owns_or_subject_of = yes }
				        114 = { owns_or_subject_of = yes }
				        116 = { owns_or_subject_of = yes }
				        177 = { owns_or_subject_of = yes }
				        448 = { owns_or_subject_of = yes }
				        458 = { owns_or_subject_of = yes }
				        460 = { owns_or_subject_of = yes }
				        665 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_RGE } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_romano_gothia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_RGE
			add_stability = 0.1
			set_capital = { state = 161 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				2 = { add_core_of = ROOT }
				39 = { add_core_of = ROOT }
				103 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				160 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				163 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				852 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				958 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }
				
				21 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				104 = { add_core_of = ROOT }
				109 = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				155 = { add_core_of = ROOT }
				804 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				956 = { add_core_of = ROOT }
				959 = { add_core_of = ROOT }
				961 = { add_core_of = ROOT }
				962 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				1104 = { add_core_of = ROOT }
				
				22 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }
				
				1 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				116 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				448 = { add_core_of = ROOT }
				458 = { add_core_of = ROOT }
				460 = { add_core_of = ROOT }
				665 = { add_core_of = ROOT }
			}
		}
	}
	
	formable_nations_bulgaria_romania = {
	
		priority = 852
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BUL
				original_tag = ROM
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 48
				state = 211
				state = 212
				state = 801
				
				state = 46
				state = 77
				state = 79
				state = 80
				state = 81
				state = 955
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						48 = { owns_or_subject_of = yes }
				        211 = { owns_or_subject_of = yes }
				        212 = { owns_or_subject_of = yes }
				        801 = { owns_or_subject_of = yes }
				        
						46 = { owns_or_subject_of = yes }
				        77 = { owns_or_subject_of = yes }
				        79 = { owns_or_subject_of = yes }
				        80 = { owns_or_subject_of = yes }
						81 = { owns_or_subject_of = yes }
						955 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_BRU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_bulgaria_romania
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_BRU
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				48 = { add_core_of = ROOT }
				211 = { add_core_of = ROOT }
				212 = { add_core_of = ROOT }
				801 = { add_core_of = ROOT }
				
				46 = { add_core_of = ROOT }
				77 = { add_core_of = ROOT }
				79 = { add_core_of = ROOT }
				80 = { add_core_of = ROOT }
				81 = { add_core_of = ROOT }
				955 = { add_core_of = ROOT }
			}
			76 = { add_core_of = ROOT }
			78 = { add_core_of = ROOT }
			82 = { add_core_of = ROOT }
			83 = { add_core_of = ROOT }
			84 = { add_core_of = ROOT }	
            766 = { add_core_of = ROOT }			
		}
	}
	
	formable_nations_austro_slovakia = {
	
		priority = 851
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = AUS
				original_tag = CZE
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 4
				state = 152
				state = 153
				state = 848
				state = 1054
				state = 1086
				
				state = 70
				state = 71
				state = 73
				state = 664
				state = 996
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
				        4 = { owns_or_subject_of = yes }
				        152 = { owns_or_subject_of = yes }
				        153 = { owns_or_subject_of = yes }
				        848 = { owns_or_subject_of = yes }
				        1054 = { owns_or_subject_of = yes }
				        1086 = { owns_or_subject_of = yes }
				
				        70 = { owns_or_subject_of = yes }
				        71 = { owns_or_subject_of = yes }
				        73 = { owns_or_subject_of = yes }
				        664 = { owns_or_subject_of = yes }
				        996 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ASU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_austro_slovakia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_ASU
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				4 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				
				70 = { add_core_of = ROOT }
				71 = { add_core_of = ROOT }
				73 = { add_core_of = ROOT }
				664 = { add_core_of = ROOT }
				996 = { add_core_of = ROOT }
			}
			72 = { add_core_of = ROOT }
			75 = { add_core_of = ROOT }
			74 = { add_core_of = ROOT }
			75 = { add_core_of = ROOT }
			1078 = { add_core_of = ROOT }
			9 = { add_core_of = ROOT }
			69 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_polish_swedish = {
	
		priority = 850
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = POL
				original_tag = SWE
				original_tag = DNZ
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 10
				state = 85
				state = 86
				state = 87
				state = 88
				state = 89
				state = 90
				state = 91
				state = 92
				state = 93
				state = 94
				state = 95
				state = 96
				state = 97
				state = 98
				state = 762
				state = 784
				state = 807
				state = 934
				state = 935
				state = 936
				
				state = 38
				state = 139
				state = 141
				state = 666
				state = 1026
				state = 1029
				
				state = 11
				state = 12
				state = 13
				state = 111
				state = 146
				state = 148
				state = 149
				state = 150
				state = 189
				state = 191
				state = 193
				state = 194
				state = 195
				state = 198
				state = 199
				state = 201
				state = 202
				state = 203
				state = 204
				state = 205
				state = 206
				state = 207
				state = 208
				state = 209
				state = 210
				state = 220
				state = 221
				state = 224
				state = 225
				state = 240
				state = 241
				state = 242
				state = 243
				state = 259
				state = 808
				state = 810
				state = 811
				state = 812
				state = 813
				state = 814
				state = 815
				state = 1036
				state = 1037
				state = 1038
				state = 1039
				state = 1040
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
                        10 = { owns_or_subject_of = yes }
                        85 = { owns_or_subject_of = yes }
                        86 = { owns_or_subject_of = yes }
                        87 = { owns_or_subject_of = yes }
                        88 = { owns_or_subject_of = yes }
                        89 = { owns_or_subject_of = yes }
                        90 = { owns_or_subject_of = yes }
                        91 = { owns_or_subject_of = yes }
                        92 = { owns_or_subject_of = yes }
                        93 = { owns_or_subject_of = yes }
                        94 = { owns_or_subject_of = yes }
                        95 = { owns_or_subject_of = yes }
                        96 = { owns_or_subject_of = yes }
                        97 = { owns_or_subject_of = yes }
                        98  = { owns_or_subject_of = yes }
                        762 = { owns_or_subject_of = yes }
                        784 = { owns_or_subject_of = yes }
                        807 = { owns_or_subject_of = yes }
                        934 = { owns_or_subject_of = yes }
                        935 = { owns_or_subject_of = yes }
                        936 = { owns_or_subject_of = yes }
                        38  = { owns_or_subject_of = yes }
                        139 = { owns_or_subject_of = yes }
                        141 = { owns_or_subject_of = yes }
                        666 = { owns_or_subject_of = yes }
                        1026 = { owns_or_subject_of = yes }
                        1029 = { owns_or_subject_of = yes }
                        11  = { owns_or_subject_of = yes }
                        12  = { owns_or_subject_of = yes }
                        13  = { owns_or_subject_of = yes }
                        111 = { owns_or_subject_of = yes }
                        146 = { owns_or_subject_of = yes }
                        148 = { owns_or_subject_of = yes }
                        149 = { owns_or_subject_of = yes }
                        150 = { owns_or_subject_of = yes }
                        189 = { owns_or_subject_of = yes }
                        191 = { owns_or_subject_of = yes }
                        193 = { owns_or_subject_of = yes }
                        194 = { owns_or_subject_of = yes }
                        195 = { owns_or_subject_of = yes }
                        198 = { owns_or_subject_of = yes }
                        199 = { owns_or_subject_of = yes }
                        201 = { owns_or_subject_of = yes }
                        202 = { owns_or_subject_of = yes }
                        203 = { owns_or_subject_of = yes }
                        204 = { owns_or_subject_of = yes }
                        205 = { owns_or_subject_of = yes }
                        206 = { owns_or_subject_of = yes }
                        207 = { owns_or_subject_of = yes }
                        208 = { owns_or_subject_of = yes }
                        209 = { owns_or_subject_of = yes }
                        210 = { owns_or_subject_of = yes }
                        220 = { owns_or_subject_of = yes }
                        221 = { owns_or_subject_of = yes }
                        224 = { owns_or_subject_of = yes }
                        225 = { owns_or_subject_of = yes }
                        240 = { owns_or_subject_of = yes }
                        241 = { owns_or_subject_of = yes }
                        242 = { owns_or_subject_of = yes }
                        243 = { owns_or_subject_of = yes }
                        259 = { owns_or_subject_of = yes }
                        808 = { owns_or_subject_of = yes }
                        810 = { owns_or_subject_of = yes }
                        811 = { owns_or_subject_of = yes }
                        812 = { owns_or_subject_of = yes }
                        813 = { owns_or_subject_of = yes }
                        814 = { owns_or_subject_of = yes }
                        815 = { owns_or_subject_of = yes }
                        1036 = { owns_or_subject_of = yes }
                        1037 = { owns_or_subject_of = yes }
                        1038 = { owns_or_subject_of = yes }
                        1039 = { owns_or_subject_of = yes }
                        1040 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_PSU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_polish_swedish
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_PSU
			add_stability = 0.15
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				10 = { add_core_of = ROOT }
				85 = { add_core_of = ROOT }
				86 = { add_core_of = ROOT }
				87 = { add_core_of = ROOT }
				88 = { add_core_of = ROOT }
				89 = { add_core_of = ROOT }
				90 = { add_core_of = ROOT }
				91 = { add_core_of = ROOT }
				92 = { add_core_of = ROOT }
				93 = { add_core_of = ROOT }
				94 = { add_core_of = ROOT }
				95 = { add_core_of = ROOT }
				96 = { add_core_of = ROOT }
				97 = { add_core_of = ROOT }
				98  = { add_core_of = ROOT }
				762 = { add_core_of = ROOT }
				784 = { add_core_of = ROOT }
				807 = { add_core_of = ROOT }
				934 = { add_core_of = ROOT }
				935 = { add_core_of = ROOT }
				936 = { add_core_of = ROOT }
				38  = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
				11  = { add_core_of = ROOT }
				12  = { add_core_of = ROOT }
				13  = { add_core_of = ROOT }
				111 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				189 = { add_core_of = ROOT }
				191 = { add_core_of = ROOT }
				193 = { add_core_of = ROOT }
				194 = { add_core_of = ROOT }
				195 = { add_core_of = ROOT }
				198 = { add_core_of = ROOT }
				199 = { add_core_of = ROOT }
				201 = { add_core_of = ROOT }
				202 = { add_core_of = ROOT }
				203 = { add_core_of = ROOT }
				204 = { add_core_of = ROOT }
				205 = { add_core_of = ROOT }
				206 = { add_core_of = ROOT }
				207 = { add_core_of = ROOT }
				208 = { add_core_of = ROOT }
				209 = { add_core_of = ROOT }
				210 = { add_core_of = ROOT }
				220 = { add_core_of = ROOT }
				221 = { add_core_of = ROOT }
				224 = { add_core_of = ROOT }
				225 = { add_core_of = ROOT }
				240 = { add_core_of = ROOT }
				241 = { add_core_of = ROOT }
				242 = { add_core_of = ROOT }
				243 = { add_core_of = ROOT }
				259 = { add_core_of = ROOT }
				808 = { add_core_of = ROOT }
				810 = { add_core_of = ROOT }
				811 = { add_core_of = ROOT }
				812 = { add_core_of = ROOT }
				813 = { add_core_of = ROOT }
				814 = { add_core_of = ROOT }
				815 = { add_core_of = ROOT }
				1036 = { add_core_of = ROOT }
				1037 = { add_core_of = ROOT }
				1038 = { add_core_of = ROOT }
				1039 = { add_core_of = ROOT }
				1040 = { add_core_of = ROOT }				
			}
			188 = { add_core_of = ROOT }
			809 = { add_core_of = ROOT }
			190 = { add_core_of = ROOT }
			78 = { add_core_of = ROOT }
			79 = { add_core_of = ROOT }
			124 = { add_core_of = ROOT }
			145 = { add_core_of = ROOT }
			147 = { add_core_of = ROOT }
			722 = { add_core_of = ROOT }
			968 = { add_core_of = ROOT }
			1028 = { add_core_of = ROOT }
			1030 = { add_core_of = ROOT }
			140 = { add_core_of = ROOT }
			969 = { add_core_of = ROOT }
			138 = { add_core_of = ROOT }
			219 = { add_claim_by = ROOT }
			5 = { add_claim_by = ROOT }
			763 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_franco_spanish = {
	
		priority = 849
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = NAV
				original_tag = BRI
				original_tag = OCC
				original_tag = ADR
				original_tag = SPR
				original_tag = SPA
				original_tag = GLC
				original_tag = CAT
				original_tag = ADR
				original_tag = ADU
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 20
				state = 21
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 806
				state = 851
				
				state = 973
				
				state = 41
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 177
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
						14 = { owns_or_subject_of = yes }
                        15 = { owns_or_subject_of = yes }
						16 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
						20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
						23 = { owns_or_subject_of = yes }
						24 = { owns_or_subject_of = yes }
						25 = { owns_or_subject_of = yes }
						26 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						30 = { owns_or_subject_of = yes }
						31 = { owns_or_subject_of = yes }
						32 = { owns_or_subject_of = yes }
						33 = { owns_or_subject_of = yes }
						735 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						806 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						973 = { owns_or_subject_of = yes }
						41 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						168 = { owns_or_subject_of = yes }
						169 = { owns_or_subject_of = yes }
						170 = { owns_or_subject_of = yes }
						171 = { owns_or_subject_of = yes }
						172 = { owns_or_subject_of = yes }
						173 = { owns_or_subject_of = yes }
						174 = { owns_or_subject_of = yes }
						175 = { owns_or_subject_of = yes }
						176 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						788 = { owns_or_subject_of = yes }
						789 = { owns_or_subject_of = yes }
						790 = { owns_or_subject_of = yes }
						791 = { owns_or_subject_of = yes }
						792 = { owns_or_subject_of = yes }
						793 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_FSU } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_franco_spanish
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_FSU
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				14 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }
				41 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
			}	
			1012 = { add_core_of = ROOT }
			118 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_fennoscandia = {
	
		priority = 848
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = FIN
				original_tag = SMI
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 111
				state = 145
				state = 146
				state = 147
				state = 148
				state = 149
				state = 150
				state = 722
				state = 1036
				state = 1037
				state = 1038
				
				state = 38
				state = 124
				state = 138
				state = 139
				state = 140
				state = 141
				state = 666
				state = 110
				state = 142
				state = 143
				state = 144
                state = 967
				state = 968
				state = 969
				state = 1026
				state = 1028
				state = 1029
				state = 1030
				state = 1031
				state = 1032
				state = 1033
				state = 1034
				state = 1035
				state = 1039
				state = 1040

			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						111 = { owns_or_subject_of = yes }
				        145 = { owns_or_subject_of = yes }
				        146 = { owns_or_subject_of = yes }
				        147 = { owns_or_subject_of = yes }
				        148 = { owns_or_subject_of = yes }
				        149 = { owns_or_subject_of = yes }
				        150 = { owns_or_subject_of = yes }
				        722 = { owns_or_subject_of = yes }
				        1036 = { owns_or_subject_of = yes }
				        1037 = { owns_or_subject_of = yes }
				        1038 = { owns_or_subject_of = yes }
						
						38 = { owns_or_subject_of = yes }
						124 = { owns_or_subject_of = yes }
						138 = { owns_or_subject_of = yes }
						139 = { owns_or_subject_of = yes }
						140 = { owns_or_subject_of = yes }
						141 = { owns_or_subject_of = yes }
						666 = { owns_or_subject_of = yes }
						110 = { owns_or_subject_of = yes }
						142 = { owns_or_subject_of = yes }
						143 = { owns_or_subject_of = yes }
						144 = { owns_or_subject_of = yes }
						967 = { owns_or_subject_of = yes }
				        968 = { owns_or_subject_of = yes }
				        969 = { owns_or_subject_of = yes }
				        1026 = { owns_or_subject_of = yes }
				        1028 = { owns_or_subject_of = yes }
						1029 = { owns_or_subject_of = yes }
						1030 = { owns_or_subject_of = yes }
				        1031 = { owns_or_subject_of = yes }
				        1032 = { owns_or_subject_of = yes }
						1033 = { owns_or_subject_of = yes }
				        1034 = { owns_or_subject_of = yes }
				        1035 = { owns_or_subject_of = yes }

					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_FSA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_fennoscandia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_FSA
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				111 = { add_core_of = ROOT }
				145 = { add_core_of = ROOT }
				146 = { add_core_of = ROOT }
				147 = { add_core_of = ROOT }
				148 = { add_core_of = ROOT }
				149 = { add_core_of = ROOT }
				150 = { add_core_of = ROOT }
				722 = { add_core_of = ROOT }
				1036 = { add_core_of = ROOT }
				1037 = { add_core_of = ROOT }
				1038 = { add_core_of = ROOT }
				
				38 = { add_core_of = ROOT }
				124 = { add_core_of = ROOT }
				138 = { add_core_of = ROOT }
				139 = { add_core_of = ROOT }
				140 = { add_core_of = ROOT }
				141 = { add_core_of = ROOT }
				666 = { add_core_of = ROOT }
				110 = { add_core_of = ROOT }
				142 = { add_core_of = ROOT }
				143 = { add_core_of = ROOT }
				144 = { add_core_of = ROOT }
				337 = { add_core_of = ROOT }
				964 = { add_core_of = ROOT }
				967 = { add_core_of = ROOT }
				968 = { add_core_of = ROOT }
				969 = { add_core_of = ROOT }
				1026 = { add_core_of = ROOT }
				1028 = { add_core_of = ROOT }
				1029 = { add_core_of = ROOT }
				1030 = { add_core_of = ROOT }
				1031 = { add_core_of = ROOT }
				1032 = { add_core_of = ROOT }
				1033 = { add_core_of = ROOT }
				1034 = { add_core_of = ROOT }
				1035 = { add_core_of = ROOT }
			}
			213 = { add_core_of = ROOT }
			215 = { add_core_of = ROOT }
			216 = { add_core_of = ROOT }
			195 = { add_claim_by = ROOT }
		}
	}
	
	formable_nations_aragon = {
	
		priority = 847
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = ADR
				original_tag = CAT
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 114
				state = 115
				state = 117
				state = 156
				state = 157
				state = 165
				state = 166
				state = 167
				state = 177
				state = 794
				state = 849
				state = 973
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
				        114 = { owns_or_subject_of = yes }
						115 = { owns_or_subject_of = yes }
						117 = { owns_or_subject_of = yes }
						156 = { owns_or_subject_of = yes }
						157 = { owns_or_subject_of = yes }
						165 = { owns_or_subject_of = yes }
						166 = { owns_or_subject_of = yes }
						167 = { owns_or_subject_of = yes }
						177 = { owns_or_subject_of = yes }
						794 = { owns_or_subject_of = yes }
						849 = { owns_or_subject_of = yes }
						973 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_ARA } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_aragon
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_ARA
			add_stability = 0.1
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				114 = { add_core_of = ROOT }
				115 = { add_core_of = ROOT }
				117 = { add_core_of = ROOT }
				156 = { add_core_of = ROOT }
				157 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				849 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }				
			}
			31 = { add_core_of = ROOT }
			172 = { add_core_of = ROOT }
			22 = { add_core_of = ROOT }
			116 = { add_core_of = ROOT }
			47 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_burgundy = {
	
		priority = 846
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BEL
				original_tag = HOL
				original_tag = LUX
				original_tag = FRA
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 7
				state = 8
				state = 17
				state = 27
				state = 28
				state = 29
				state = 34
				state = 35
				state = 36
				state = 785
				state = 965
				state = 1094
				state = 1095
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
						6 = { owns_or_subject_of = yes }
				        7 = { owns_or_subject_of = yes }
						8 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
						29 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
						35 = { owns_or_subject_of = yes }
						36 = { owns_or_subject_of = yes }
						785 = { owns_or_subject_of = yes }
						965 = { owns_or_subject_of = yes }
						1094 = { owns_or_subject_of = yes }
						1095 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_BUR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_burgundy
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_BUR
			add_stability = 0.1
			set_capital = { state = 8 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				6 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }				
			}
			18 = { add_core_of = ROOT }
			51 = { add_core_of = ROOT }
			42 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_lotharingia = {
	
		priority = 845
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = BEL
				original_tag = HOL
				original_tag = LUX
				original_tag = FRA
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 7
				state = 8
				state = 17
				state = 18
				state = 28
				state = 34
				state = 35
				state = 36
				state = 42
				state = 51
				state = 923
				state = 965
				state = 989
				state = 1053
				state = 1094
				state = 1095
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
				        7 = { owns_or_subject_of = yes }
						8 = { owns_or_subject_of = yes }
						17 = { owns_or_subject_of = yes }
						18 = { owns_or_subject_of = yes }
					    28 = { owns_or_subject_of = yes }
						34 = { owns_or_subject_of = yes }
						35 = { owns_or_subject_of = yes }
						36 = { owns_or_subject_of = yes }
						42 = { owns_or_subject_of = yes }
						51 = { owns_or_subject_of = yes }
						923 = { owns_or_subject_of = yes }
						965 = { owns_or_subject_of = yes }
						989 = { owns_or_subject_of = yes }
						1053 = { owns_or_subject_of = yes }
						1094 = { owns_or_subject_of = yes }
						1095 = { owns_or_subject_of = yes }
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_LOT } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_lotharingia
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_LOT
			add_stability = 0.1
			set_capital = { state = 485 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				7 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				28 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }				
			}
			6 = { add_core_of = ROOT }
			56 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_gallic = {
	
		priority = 844
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0  days_re_enable = 0
		
		visible = {
			NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = { 
				has_global_flag = no_limit
				original_tag = FRA
				original_tag = BRI
				original_tag = NAV
				original_tag = OCC
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 6
				state = 8
				state = 14
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 20
				state = 21
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 34
				state = 35
				state = 42
				state = 50
				state = 51
				state = 735
				state = 785
				state = 806
				state = 851
				state = 922
				state = 923
				state = 965
				state = 973
				state = 1053
				state = 1094
				state = 1095
				
				state = 41
				state = 118
				state = 165
				state = 166
				state = 167
				state = 168
				state = 169
				state = 170
				state = 171
				state = 172
				state = 173
				state = 174
				state = 175
				state = 176
				state = 788
				state = 789
				state = 790
				state = 791
				state = 792
				state = 793
				state = 794
				state = 112
				state = 179
				state = 180
				state = 181
				state = 177
				state = 795
				
				state = 122
				state = 123
				state = 125
				state = 126
				state = 127
				state = 128
				state = 129
				state = 130
				state = 131
				state = 132
				state = 338
				state = 1041
			}
		}
		
		available = {
			custom_trigger_tooltip = { 
				tooltip = highlighted_state_tooltip 
				OR = {
					AND = {
				        6 = { owns_or_subject_of = yes }
                        8 = { owns_or_subject_of = yes }
                        14 = { owns_or_subject_of = yes }
                        15 = { owns_or_subject_of = yes }
                        16 = { owns_or_subject_of = yes }
                        17 = { owns_or_subject_of = yes }
                        18 = { owns_or_subject_of = yes }
                        19 = { owns_or_subject_of = yes }
                        20 = { owns_or_subject_of = yes }
                        21 = { owns_or_subject_of = yes }
                        22 = { owns_or_subject_of = yes }
                        23 = { owns_or_subject_of = yes }
                        24 = { owns_or_subject_of = yes }
                        25 = { owns_or_subject_of = yes }
                        26 = { owns_or_subject_of = yes }
                        27 = { owns_or_subject_of = yes }
                        28 = { owns_or_subject_of = yes }
                        29 = { owns_or_subject_of = yes }
                        30 = { owns_or_subject_of = yes }
                        31 = { owns_or_subject_of = yes }
                        32 = { owns_or_subject_of = yes }
                        33 = { owns_or_subject_of = yes }
                        34 = { owns_or_subject_of = yes }
                        35 = { owns_or_subject_of = yes }
                        42 = { owns_or_subject_of = yes }
                        50 = { owns_or_subject_of = yes }
                        51 = { owns_or_subject_of = yes }
                        735 = { owns_or_subject_of = yes }
                        785 = { owns_or_subject_of = yes }
                        806 = { owns_or_subject_of = yes }
                        851 = { owns_or_subject_of = yes }
                        922 = { owns_or_subject_of = yes }
                        923 = { owns_or_subject_of = yes }
                        965 = { owns_or_subject_of = yes }
                        973 = { owns_or_subject_of = yes }
                        1053 = { owns_or_subject_of = yes }
                        1094 = { owns_or_subject_of = yes }
                        1095 = { owns_or_subject_of = yes }

                        41 = { owns_or_subject_of = yes }
                        118 = { owns_or_subject_of = yes }
                        165 = { owns_or_subject_of = yes }
                        166 = { owns_or_subject_of = yes }
                        167 = { owns_or_subject_of = yes }
                        168 = { owns_or_subject_of = yes }
                        169 = { owns_or_subject_of = yes }
                        170 = { owns_or_subject_of = yes }
                        171 = { owns_or_subject_of = yes }
                        172 = { owns_or_subject_of = yes }
                        173 = { owns_or_subject_of = yes }
                        174 = { owns_or_subject_of = yes }
                        175 = { owns_or_subject_of = yes }
                        176 = { owns_or_subject_of = yes }
                        788 = { owns_or_subject_of = yes }
                        789 = { owns_or_subject_of = yes }
                        790 = { owns_or_subject_of = yes }
                        791 = { owns_or_subject_of = yes }
                        792 = { owns_or_subject_of = yes }
                        793 = { owns_or_subject_of = yes }
                        794 = { owns_or_subject_of = yes }
                        112 = { owns_or_subject_of = yes }
                        179 = { owns_or_subject_of = yes }
                        180 = { owns_or_subject_of = yes }
                        181 = { owns_or_subject_of = yes }
                        177 = { owns_or_subject_of = yes }
                        795 = { owns_or_subject_of = yes }

                        122 = { owns_or_subject_of = yes }
                        123 = { owns_or_subject_of = yes }
                        125 = { owns_or_subject_of = yes }
                        126 = { owns_or_subject_of = yes }
                        127 = { owns_or_subject_of = yes }
                        128 = { owns_or_subject_of = yes }
                        129 = { owns_or_subject_of = yes }
                        130 = { owns_or_subject_of = yes }
                        131 = { owns_or_subject_of = yes }
                        132 = { owns_or_subject_of = yes }
                        338 = { owns_or_subject_of = yes }
                        1041= { controller = { OR = { tag = ROOT is_subject_of = ROOT } } }						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_GAL } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_gallic
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
			set_cosmetic_tag = AFN_GAL
			add_stability = 0.15
			set_capital = { state = 51 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				6 = { add_core_of = ROOT }
				8   = { add_core_of = ROOT }
				14  = { add_core_of = ROOT }
				15  = { add_core_of = ROOT }
				16  = { add_core_of = ROOT }
				17  = { add_core_of = ROOT }
				18  = { add_core_of = ROOT }
				19  = { add_core_of = ROOT }
				20  = { add_core_of = ROOT }
				21  = { add_core_of = ROOT }
				22  = { add_core_of = ROOT }
				23  = { add_core_of = ROOT }
				24  = { add_core_of = ROOT }
				25  = { add_core_of = ROOT }
				26  = { add_core_of = ROOT }
				27  = { add_core_of = ROOT }
				28  = { add_core_of = ROOT }
				29  = { add_core_of = ROOT }
				30  = { add_core_of = ROOT }
				31  = { add_core_of = ROOT }
				32  = { add_core_of = ROOT }
				33  = { add_core_of = ROOT }
				34  = { add_core_of = ROOT }
				35  = { add_core_of = ROOT }
				42  = { add_core_of = ROOT }
				50  = { add_core_of = ROOT }
				51  = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				965 = { add_core_of = ROOT }
				973 = { add_core_of = ROOT }
				1053= { add_core_of = ROOT }
				1094= { add_core_of = ROOT }
				1095= { add_core_of = ROOT }

				41  = { add_core_of = ROOT }
				118 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				166 = { add_core_of = ROOT }
				167 = { add_core_of = ROOT }
				168 = { add_core_of = ROOT }
				169 = { add_core_of = ROOT }
				170 = { add_core_of = ROOT }
				171 = { add_core_of = ROOT }
				172 = { add_core_of = ROOT }
				173 = { add_core_of = ROOT }
				174 = { add_core_of = ROOT }
				175 = { add_core_of = ROOT }
				176 = { add_core_of = ROOT }
				788 = { add_core_of = ROOT }
				789 = { add_core_of = ROOT }
				790 = { add_core_of = ROOT }
				791 = { add_core_of = ROOT }
				792 = { add_core_of = ROOT }
				793 = { add_core_of = ROOT }
				794 = { add_core_of = ROOT }
				112 = { add_core_of = ROOT }
				179 = { add_core_of = ROOT }
				180 = { add_core_of = ROOT }
				181 = { add_core_of = ROOT }
				177 = { add_core_of = ROOT }
				795 = { add_core_of = ROOT }

				122 = { add_core_of = ROOT }
				123 = { add_core_of = ROOT }
				125 = { add_core_of = ROOT }
				126 = { add_core_of = ROOT }
				127 = { add_core_of = ROOT }
				128 = { add_core_of = ROOT }
				129 = { add_core_of = ROOT }
				130 = { add_core_of = ROOT }
				131 = { add_core_of = ROOT }
				132 = { add_core_of = ROOT }
				338 = { add_core_of = ROOT }
				1041= { add_core_of = ROOT }				
			}
			1076 = { add_core_of = ROOT }
		}
	}
	
	formable_nations_carolingian = {
	
		priority = 843
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_global_flag = ai_disabled 
			}
		}
		
		cost = 0 days_re_enable = 0
		
		visible = {
			#NOT = { has_country_flag = unform_available }
			NOT = { has_global_flag = hide_formable_nations }
			OR = {
				has_global_flag = no_limit
				original_tag = BEL
				original_tag = HOL
				original_tag = LUX
				original_tag = FRA
			}
			NOT = { has_global_flag = modern_country }
			OR = {
				has_cosmetic_tag = AFN_LOT
				has_cosmetic_tag = AFN_BUR
			}
		}

		highlight_states = {
			highlight_state_targets = {
				state = 1
				state = 15
				state = 16
				state = 17
				state = 18
				state = 19
				state = 806
				state = 20
				state = 21
				state = 851
				state = 22
				state = 23
				state = 24
				state = 25
				state = 26
				state = 27
				state = 28
				state = 29
				state = 30
				state = 31
				state = 32
				state = 33
				state = 735
				state = 785
				state = 165
				state = 6
				state = 34
				state = 7
				state = 35
				state = 36
				state = 8
				state = 158
				state = 162
				state = 2
				state = 42
				state = 51
				state = 56
				
				state = 922
				state = 923
				state = 965
				state = 973
				state = 989
				state = 1012
				state = 1053
				state = 1094
				state = 1095
				
				state = 3
				state = 39
				state = 151
				state = 159
				state = 161
				state = 845
				state = 846
				state = 847
				state = 850
				state = 957
				state = 997
				state = 1015
				
				state = 4
				state = 50
				state = 52
				state = 53
				state = 54
				state = 55
				state = 57
				state = 58
				state = 59
				state = 102
				state = 152
				state = 153
				state = 736
				state = 848
				state = 853
				state = 912
				state = 998
				state = 1054
				state = 1086

			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = highlighted_state_tooltip
				OR = {
					AND = {
						1 = { owns_or_subject_of = yes }
				        15 = { owns_or_subject_of = yes }
				        16 = { owns_or_subject_of = yes }
				        17 = { owns_or_subject_of = yes }
				        18 = { owns_or_subject_of = yes }
						19 = { owns_or_subject_of = yes }
				        806 = { owns_or_subject_of = yes }
				        20 = { owns_or_subject_of = yes }
						21 = { owns_or_subject_of = yes }
						851 = { owns_or_subject_of = yes }
						22 = { owns_or_subject_of = yes }
				        23 = { owns_or_subject_of = yes }
				        24 = { owns_or_subject_of = yes }
				        25 = { owns_or_subject_of = yes }
				        26 = { owns_or_subject_of = yes }
				        27 = { owns_or_subject_of = yes }
						28 = { owns_or_subject_of = yes }
				        29 = { owns_or_subject_of = yes }
				        30 = { owns_or_subject_of = yes }
				        31 = { owns_or_subject_of = yes }
				        32 = { owns_or_subject_of = yes }
				        33 = { owns_or_subject_of = yes }
				        735 = { owns_or_subject_of = yes }
				        785 = { owns_or_subject_of = yes }
				        165 = { owns_or_subject_of = yes }
				        6 = { owns_or_subject_of = yes }
				        34 = { owns_or_subject_of = yes }
						7 = { owns_or_subject_of = yes }
				        35 = { owns_or_subject_of = yes }
				        36 = { owns_or_subject_of = yes }
				        8 = { owns_or_subject_of = yes }
				        158 = { owns_or_subject_of = yes }
						162 = { owns_or_subject_of = yes }
				        2 = { owns_or_subject_of = yes }
				        42 = { owns_or_subject_of = yes }
				        51 = { owns_or_subject_of = yes }
				        56 = { owns_or_subject_of = yes }
				
				        922 = { owns_or_subject_of = yes }
				        923 = { owns_or_subject_of = yes }
				        989 = { owns_or_subject_of = yes }
						1012 = { owns_or_subject_of = yes }
					    1053 = { owns_or_subject_of = yes }
				        1094 = { owns_or_subject_of = yes }
				        1095 = { owns_or_subject_of = yes }
						
						3 = { owns_or_subject_of = yes }
                        39 = { owns_or_subject_of = yes }
                        151 = { owns_or_subject_of = yes }
                        159 = { owns_or_subject_of = yes }
                        161 = { owns_or_subject_of = yes }
                        845 = { owns_or_subject_of = yes }
                        846 = { owns_or_subject_of = yes }
                        847 = { owns_or_subject_of = yes }
                        850 = { owns_or_subject_of = yes }
                        957 = { owns_or_subject_of = yes }
                        997 = { owns_or_subject_of = yes }
                        1015 = { owns_or_subject_of = yes }

                        4 = { owns_or_subject_of = yes }
                        50 = { owns_or_subject_of = yes }
                        52 = { owns_or_subject_of = yes }
                        53 = { owns_or_subject_of = yes }
                        54 = { owns_or_subject_of = yes }
                        55 = { owns_or_subject_of = yes }
                        57 = { owns_or_subject_of = yes }
                        58 = { owns_or_subject_of = yes }
                        59 = { owns_or_subject_of = yes }
                        102 = { owns_or_subject_of = yes }
                        152 = { owns_or_subject_of = yes }
                        153 = { owns_or_subject_of = yes }
                        736 = { owns_or_subject_of = yes }
                        848 = { owns_or_subject_of = yes }
                        853 = { owns_or_subject_of = yes }
                        912 = { owns_or_subject_of = yes }
                        998 = { owns_or_subject_of = yes }
                        1054 = { owns_or_subject_of = yes }
                        1086 = { owns_or_subject_of = yes }
						
					}
					AND = {
						has_global_flag = debug_mode
						is_ai = no
					}
				}
			}
			custom_trigger_tooltip = { tooltip = not_already_existing_tt NOT = { any_country = { has_cosmetic_tag = AFN_CAR } } }
			custom_trigger_tooltip  = { tooltip = is_puppet_tooltip OR = { is_subject = no has_global_flag = puppets_allowed } }
		}
		icon = formable_nations_carolingian
		complete_effect = { capital_scope = { set_state_flag = formable_nations_old_capital }
		    set_cosmetic_tag = AFN_CAR
			add_stability = 0.2
			set_capital = { state = 28 }
			custom_effect_tooltip = core_land
			hidden_effect = { sound_effect = complete_focus  set_country_flag = unform_available
				1 = { add_core_of = ROOT }
				15 = { add_core_of = ROOT }
				16 = { add_core_of = ROOT }
				17 = { add_core_of = ROOT }
				18 = { add_core_of = ROOT }
				19 = { add_core_of = ROOT }
				806 = { add_core_of = ROOT }
				20 = { add_core_of = ROOT }
				21 = { add_core_of = ROOT }
				851 = { add_core_of = ROOT }
				22 = { add_core_of = ROOT }
				23 = { add_core_of = ROOT }
				24 = { add_core_of = ROOT }
				25 = { add_core_of = ROOT }
				26 = { add_core_of = ROOT }
				27 = { add_core_of = ROOT }
			    28 = { add_core_of = ROOT }
				29 = { add_core_of = ROOT }
				30 = { add_core_of = ROOT }
				31 = { add_core_of = ROOT }
				32 = { add_core_of = ROOT }
				33 = { add_core_of = ROOT }
				735 = { add_core_of = ROOT }
				785 = { add_core_of = ROOT }
				165 = { add_core_of = ROOT }
				6 = { add_core_of = ROOT }
				34 = { add_core_of = ROOT }
				7 = { add_core_of = ROOT }
				35 = { add_core_of = ROOT }
				36 = { add_core_of = ROOT }
				8 = { add_core_of = ROOT }
				158 = { add_core_of = ROOT }
				162 = { add_core_of = ROOT }
				2 = { add_core_of = ROOT }
				42 = { add_core_of = ROOT }
				51 = { add_core_of = ROOT }
				56 = { add_core_of = ROOT }
				
				922 = { add_core_of = ROOT }
				923 = { add_core_of = ROOT }
				989 = { add_core_of = ROOT }
				1012 = { add_core_of = ROOT }
				1053 = { add_core_of = ROOT }
				1094 = { add_core_of = ROOT }
				1095 = { add_core_of = ROOT }
				
				3   = { add_core_of = ROOT }
				39  = { add_core_of = ROOT }
				151 = { add_core_of = ROOT }
				159 = { add_core_of = ROOT }
				161 = { add_core_of = ROOT }
				845 = { add_core_of = ROOT }
				846 = { add_core_of = ROOT }
				847 = { add_core_of = ROOT }
				850 = { add_core_of = ROOT }
				957 = { add_core_of = ROOT }
				997 = { add_core_of = ROOT }
				1015 = { add_core_of = ROOT }

				4 = { add_core_of = ROOT }
				50 = { add_core_of = ROOT }
				52 = { add_core_of = ROOT }
				53 = { add_core_of = ROOT }
				54 = { add_core_of = ROOT }
				55 = { add_core_of = ROOT }
				57 = { add_core_of = ROOT }
				58 = { add_core_of = ROOT }
				59 = { add_core_of = ROOT }
				102 = { add_core_of = ROOT }
				152 = { add_core_of = ROOT }
				153 = { add_core_of = ROOT }
				736 = { add_core_of = ROOT }
				848 = { add_core_of = ROOT }
				853 = { add_core_of = ROOT }
				912 = { add_core_of = ROOT }
				998 = { add_core_of = ROOT }
				1054 = { add_core_of = ROOT }
				1086 = { add_core_of = ROOT }
				
			}
			14 = { add_core_of = ROOT }
			1076 = { add_core_of = ROOT }
			61 = { add_core_of = ROOT }
			60 = { add_core_of = ROOT }
			64 = { add_core_of = ROOT }
			65 = { add_core_of = ROOT }
			69 = { add_core_of = ROOT }
			9 = { add_core_of = ROOT }
			70 = { add_core_of = ROOT }
			664 = { add_core_of = ROOT }
			75 = { add_core_of = ROOT }
			1078 = { add_core_of = ROOT }
			155 = { add_core_of = ROOT }
			109 = { add_core_of = ROOT }
			956 = { add_core_of = ROOT }
			958 = { add_core_of = ROOT }
		}
	}
}