####################################################################
####################################################################
####################################################################

formable_category = {
	formable_unform_decision = {
		icon = formable_unform
		cost = 0  days_re_enable = 0
		visible = {
			always = no
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			custom_effect_tooltip = FORMABLE_UNFORM_TT
			hidden_effect = {
				sound_effect = complete_focus
				remove_ideas = FORMABLE_COMPLIANCE_SPIRIT
				every_state = {
					limit = { is_claimed_by = ROOT }
					ROOT = { remove_state_claim = PREV }
				}
				drop_cosmetic_tag = yes
				clr_country_flag = display_formable_unform_cflag
			}
		}
	}
}

####################################################################
####################################################################
####################################################################

###

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_abyssinia_show_decision = {
		icon = formable_abyssinia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ETH
				original_tag = ERI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_abyssinia_requirements_cflag
		}
	}
}

formable_abyssinia_category = {
	formable_abyssinia_form_decision = {
		icon = formable_abyssinia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_abyssinia_form_decision_tt
						count_triggers = {
							amount = 11	#12 total states required
							271 = { is_fully_controlled_by = ROOT }
							550 = { is_fully_controlled_by = ROOT }
							835 = { is_fully_controlled_by = ROOT }
							836 = { is_fully_controlled_by = ROOT }
							837 = { is_fully_controlled_by = ROOT }
							838 = { is_fully_controlled_by = ROOT }
							839 = { is_fully_controlled_by = ROOT }
							840 = { is_fully_controlled_by = ROOT }
							841 = { is_fully_controlled_by = ROOT }
							842 = { is_fully_controlled_by = ROOT }
							843 = { is_fully_controlled_by = ROOT }
							908 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ABY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ABY
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 268
			add_state_core = 269
			add_state_core = 559
			add_state_core = 844
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core =  271
				add_state_core =  550
				add_state_core =  835
				add_state_core =  836
				add_state_core =  837
				add_state_core =  838
				add_state_core =  839
				add_state_core =  840
				add_state_core =  841
				add_state_core =  842
				add_state_core =  843
				add_state_core =  908
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_abyssinia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_abyssinia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_abyssinia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_africa_show_decision = {
		icon = formable_africa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LIB
				original_tag = SAF
				original_tag = ETH
				original_tag = AFA
				original_tag = COG
				original_tag = AOI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_africa_requirements_cflag
		}
	}
}

formable_africa_category = {
	formable_africa_form_decision = {
		icon = formable_africa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_africa_form_decision_tt
						count_triggers = {
							amount = 115	#128 total states required
							178 = { is_fully_controlled_by = ROOT }
							268 = { is_fully_controlled_by = ROOT }
							269 = { is_fully_controlled_by = ROOT }
							271 = { is_fully_controlled_by = ROOT }
							272 = { is_fully_controlled_by = ROOT }
							273 = { is_fully_controlled_by = ROOT }
							274 = { is_fully_controlled_by = ROOT }
							275 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							295 = { is_fully_controlled_by = ROOT }
							296 = { is_fully_controlled_by = ROOT }
							297 = { is_fully_controlled_by = ROOT }
							298 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							514 = { is_fully_controlled_by = ROOT }
							515 = { is_fully_controlled_by = ROOT }
							538 = { is_fully_controlled_by = ROOT }
							539 = { is_fully_controlled_by = ROOT }
							540 = { is_fully_controlled_by = ROOT }
							541 = { is_fully_controlled_by = ROOT }
							542 = { is_fully_controlled_by = ROOT }
							543 = { is_fully_controlled_by = ROOT }
							544 = { is_fully_controlled_by = ROOT }
							545 = { is_fully_controlled_by = ROOT }
							546 = { is_fully_controlled_by = ROOT }
							547 = { is_fully_controlled_by = ROOT }
							548 = { is_fully_controlled_by = ROOT }
							549 = { is_fully_controlled_by = ROOT }
							550 = { is_fully_controlled_by = ROOT }
							551 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							558 = { is_fully_controlled_by = ROOT }
							559 = { is_fully_controlled_by = ROOT }
							660 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							700 = { is_fully_controlled_by = ROOT }
							701 = { is_fully_controlled_by = ROOT }
							702 = { is_fully_controlled_by = ROOT }
							703 = { is_fully_controlled_by = ROOT }
							704 = { is_fully_controlled_by = ROOT }
							705 = { is_fully_controlled_by = ROOT }
							706 = { is_fully_controlled_by = ROOT }
							707 = { is_fully_controlled_by = ROOT }
							708 = { is_fully_controlled_by = ROOT }
							709 = { is_fully_controlled_by = ROOT }
							718 = { is_fully_controlled_by = ROOT }
							719 = { is_fully_controlled_by = ROOT }
							767 = { is_fully_controlled_by = ROOT }
							768 = { is_fully_controlled_by = ROOT }
							769 = { is_fully_controlled_by = ROOT }
							770 = { is_fully_controlled_by = ROOT }
							771 = { is_fully_controlled_by = ROOT }
							772 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							778 = { is_fully_controlled_by = ROOT }
							779 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							796 = { is_fully_controlled_by = ROOT }
							835 = { is_fully_controlled_by = ROOT }
							836 = { is_fully_controlled_by = ROOT }
							837 = { is_fully_controlled_by = ROOT }
							838 = { is_fully_controlled_by = ROOT }
							839 = { is_fully_controlled_by = ROOT }
							840 = { is_fully_controlled_by = ROOT }
							841 = { is_fully_controlled_by = ROOT }
							842 = { is_fully_controlled_by = ROOT }
							843 = { is_fully_controlled_by = ROOT }
							844 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							884 = { is_fully_controlled_by = ROOT }
							885 = { is_fully_controlled_by = ROOT }
							886 = { is_fully_controlled_by = ROOT }
							887 = { is_fully_controlled_by = ROOT }
							888 = { is_fully_controlled_by = ROOT }
							889 = { is_fully_controlled_by = ROOT }
							890 = { is_fully_controlled_by = ROOT }
							891 = { is_fully_controlled_by = ROOT }
							892 = { is_fully_controlled_by = ROOT }
							893 = { is_fully_controlled_by = ROOT }
							894 = { is_fully_controlled_by = ROOT }
							895 = { is_fully_controlled_by = ROOT }
							896 = { is_fully_controlled_by = ROOT }
							897 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
							900 = { is_fully_controlled_by = ROOT }
							901 = { is_fully_controlled_by = ROOT }
							902 = { is_fully_controlled_by = ROOT }
							903 = { is_fully_controlled_by = ROOT }
							904 = { is_fully_controlled_by = ROOT }
							905 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							908 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							938 = { is_fully_controlled_by = ROOT }
							939 = { is_fully_controlled_by = ROOT }
							940 = { is_fully_controlled_by = ROOT }
							1055 = { is_fully_controlled_by = ROOT }
							1097 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AFR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AFR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core =  178
				add_state_core =  268
				add_state_core =  269
				add_state_core =  271
				add_state_core =  272
				add_state_core =  273
				add_state_core =  274
				add_state_core =  275
				add_state_core =  290
				add_state_core =  295
				add_state_core =  296
				add_state_core =  297
				add_state_core =  298
				add_state_core =  447
				add_state_core =  448
				add_state_core =  449
				add_state_core =  450
				add_state_core =  451
				add_state_core =  452
				add_state_core =  456
				add_state_core =  457
				add_state_core =  458
				add_state_core =  459
				add_state_core =  460
				add_state_core =  461
				add_state_core =  462
				add_state_core =  513
				add_state_core =  514
				add_state_core =  515
				add_state_core =  538
				add_state_core =  539
				add_state_core =  540
				add_state_core =  541
				add_state_core =  542
				add_state_core =  543
				add_state_core =  544
				add_state_core =  545
				add_state_core =  546
				add_state_core =  547
				add_state_core =  548
				add_state_core =  549
				add_state_core =  550
				add_state_core =  551
				add_state_core =  552
				add_state_core =  556
				add_state_core =  557
				add_state_core =  558
				add_state_core =  559
				add_state_core =  660
				add_state_core =  661
				add_state_core =  662
				add_state_core =  663
				add_state_core =  665
				add_state_core =  681
				add_state_core =  699
				add_state_core =  700
				add_state_core =  701
				add_state_core =  702
				add_state_core =  703
				add_state_core =  704
				add_state_core =  705
				add_state_core =  706
				add_state_core =  707
				add_state_core =  708
				add_state_core =  709
				add_state_core =  718
				add_state_core =  719
				add_state_core =  767
				add_state_core =  768
				add_state_core =  769
				add_state_core =  770
				add_state_core =  771
				add_state_core =  772
				add_state_core =  773
				add_state_core =  774
				add_state_core =  775
				add_state_core =  776
				add_state_core =  777
				add_state_core =  778
				add_state_core =  779
				add_state_core =  780
				add_state_core =  781
				add_state_core =  782
				add_state_core =  783
				add_state_core =  786
				add_state_core =  796
				add_state_core =  835
				add_state_core =  836
				add_state_core =  837
				add_state_core =  838
				add_state_core =  839
				add_state_core =  840
				add_state_core =  841
				add_state_core =  842
				add_state_core =  843
				add_state_core =  844
				add_state_core =  883
				add_state_core =  884
				add_state_core =  885
				add_state_core =  886
				add_state_core =  887
				add_state_core =  888
				add_state_core =  889
				add_state_core =  890
				add_state_core =  891
				add_state_core =  892
				add_state_core =  893
				add_state_core =  894
				add_state_core =  895
				add_state_core =  896
				add_state_core =  897
				add_state_core =  898
				add_state_core =  899
				add_state_core =  900
				add_state_core =  901
				add_state_core =  902
				add_state_core =  903
				add_state_core =  904
				add_state_core =  905
				add_state_core =  907
				add_state_core =  908
				add_state_core =  911
				add_state_core =  933
				add_state_core =  938
				add_state_core =  939
				add_state_core =  940
				add_state_core =  1055
				add_state_core =  1097
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_africa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_africa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_africa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_afro_eurasia_show_decision = {
		icon = formable_afro_eurasia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				always = no
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_afro_eurasia_requirements_cflag
		}
	}
}

formable_afro_eurasia_category = {
	formable_afro_eurasia_form_decision = {
		icon = formable_afro_eurasia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_afro_eurasia_form_decision_tt
						count_triggers = {
							amount = 1	#1 total states required
							1 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AEA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AEA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				1 = { add_core_of = ROOT }
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_afro_eurasia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_afro_eurasia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_afro_eurasia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_akkadian_empire_show_decision = {
		icon = formable_akkadian_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = IRQ
				original_tag = SYR
				original_tag = KUW
				original_tag = LEB
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_akkadian_empire_requirements_cflag
		}
	}
}

formable_akkadian_empire_category = {
	formable_akkadian_empire_form_decision = {
		icon = formable_akkadian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_akkadian_empire_form_decision_tt
						count_triggers = {
							amount = 12	#17 total states required
							291 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AKK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AKK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 291
				add_state_core = 350
				add_state_core = 352
				add_state_core = 413
				add_state_core = 421
				add_state_core = 553
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 981
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_akkadian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_akkadian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_akkadian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_aksum_show_decision = {
		icon = formable_aksum
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ETH
				original_tag = YEM
				original_tag = DJI
				original_tag = ERI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_aksum_requirements_cflag
		}
	}
}

formable_aksum_category = {
	formable_aksum_form_decision = {
		icon = formable_aksum
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_aksum_form_decision_tt
						count_triggers = {
							amount = 12	#15 total states required
							268 = { is_fully_controlled_by = ROOT }
							271 = { is_fully_controlled_by = ROOT }
							293 = { is_fully_controlled_by = ROOT }
							550 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							835 = { is_fully_controlled_by = ROOT }
							836 = { is_fully_controlled_by = ROOT }
							837 = { is_fully_controlled_by = ROOT }
							838 = { is_fully_controlled_by = ROOT }
							839 = { is_fully_controlled_by = ROOT }
							840 = { is_fully_controlled_by = ROOT }
							841 = { is_fully_controlled_by = ROOT }
							842 = { is_fully_controlled_by = ROOT }
							843 = { is_fully_controlled_by = ROOT }
							908 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AKS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AKS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 268
				add_state_core = 271
				add_state_core = 293
				add_state_core = 550
				add_state_core = 659
				add_state_core = 835
				add_state_core = 836
				add_state_core = 837
				add_state_core = 838
				add_state_core = 839
				add_state_core = 840
				add_state_core = 841
				add_state_core = 842
				add_state_core = 843
				add_state_core = 908
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_aksum_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_aksum_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_aksum_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_alexander_show_decision = {
		icon = formable_alexander
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GRE
				original_tag = MAC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_alexander_requirements_cflag
		}
	}
}

formable_alexander_category = {
	formable_alexander_form_decision = {
		icon = formable_alexander
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_alexander_form_decision_tt
						count_triggers = {
							amount = 70	#91 total states required
							47 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							877 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ALX } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ALX
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 47
				add_state_core = 49
				add_state_core = 77
				add_state_core = 106
				add_state_core = 164
				add_state_core = 184
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 356
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 447
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 456
				add_state_core = 457
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 731
				add_state_core = 742
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 830
				add_state_core = 877
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_alexander_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_alexander_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_alexander_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_all_cossack_state_show_decision = {
		icon = formable_all_cossack_state
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ABK
				original_tag = CRI
				original_tag = DON
				original_tag = KAL
				original_tag = KAZ
				original_tag = KBK
				original_tag = NOA
				original_tag = SOV
				original_tag = UKR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_all_cossack_state_requirements_cflag
		}
	}
}
 
formable_all_cossack_state_category = {
	formable_all_cossack_state_form_decision = {
		icon = formable_all_cossack_state
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_all_cossack_state_form_decision_tt
						count_triggers = {
							amount = 18	#25 total states required
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							200 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							217 = { is_fully_controlled_by = ROOT }
							218 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							227 = { is_fully_controlled_by = ROOT }
							228 = { is_fully_controlled_by = ROOT }
							233 = { is_fully_controlled_by = ROOT }
							234 = { is_fully_controlled_by = ROOT }
							235 = { is_fully_controlled_by = ROOT }
							236 = { is_fully_controlled_by = ROOT }
							237 = { is_fully_controlled_by = ROOT }
							238 = { is_fully_controlled_by = ROOT }
							245 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							265 = { is_fully_controlled_by = ROOT }
							827 = { is_fully_controlled_by = ROOT }
							828 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KOS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KOS
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 137
			add_state_core = 220
			add_state_core = 240
			add_state_core = 260
			add_state_core = 586
			add_state_core = 826
			add_state_core = 827
			add_state_core = 828
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 192
				add_state_core = 193
				add_state_core = 196
				add_state_core = 197
				add_state_core = 200
				add_state_core = 202
				add_state_core = 203
				add_state_core = 217
				add_state_core = 218
				add_state_core = 221
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 233
				add_state_core = 234
				add_state_core = 235
				add_state_core = 236
				add_state_core = 237
				add_state_core = 238
				add_state_core = 245
				add_state_core = 259
				add_state_core = 265
				add_state_core = 827
				add_state_core = 828
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_all_cossack_state_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_all_cossack_state_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_all_cossack_state_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_almohad_show_decision = {
		icon = formable_almohad
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
				original_tag = LBA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_almohad_requirements_cflag
		}
	}
}

formable_almohad_category = {
	formable_almohad_form_decision = {
		icon = formable_almohad
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_almohad_form_decision_tt
						count_triggers = {
							amount = 20	#24 total states required
							118 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ALM } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ALM
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 118
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 173
				add_state_core = 175
				add_state_core = 177
				add_state_core = 179
				add_state_core = 290
				add_state_core = 448
				add_state_core = 449
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 513
				add_state_core = 661
				add_state_core = 662
				add_state_core = 665
				add_state_core = 699
				add_state_core = 783
				add_state_core = 789
				add_state_core = 933
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_almohad_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_almohad_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_almohad_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_alpine_federation_show_decision = {
		icon = formable_alpine_federation
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
				original_tag = SWI
				original_tag = LIE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_alpine_federation_requirements_cflag
		}
	}
}

formable_alpine_federation_category = {
	formable_alpine_federation_form_decision = {
		icon = formable_alpine_federation
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_alpine_federation_form_decision_tt
						count_triggers = {
							amount = 11	#14 total states required
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ALP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ALP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 4
				add_state_core = 39
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 850
				add_state_core = 997
				add_state_core = 1054
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_alpine_federation_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_alpine_federation_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_alpine_federation_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_amazon_show_decision = {
		icon = formable_amazon
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BOL
				original_tag = BRA
				original_tag = CAY
				original_tag = COL
				original_tag = ECU
				original_tag = GYA
				original_tag = PRU
				original_tag = SUR
				original_tag = VEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_amazon_requirements_cflag
		}
	}
}
 
formable_amazon_category = {
	formable_amazon_form_decision = {
		icon = formable_amazon
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_amazon_form_decision_tt
						count_triggers = {
							amount = 13	#18 total states required
							280 = { is_fully_controlled_by = ROOT }
							309 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							495 = { is_fully_controlled_by = ROOT }
							497 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							1052 = { is_fully_controlled_by = ROOT }
							1056 = { is_fully_controlled_by = ROOT }
							1058 = { is_fully_controlled_by = ROOT }
							1072 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
							1098 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AMA } } }
					OR = { NOT = { has_global_flag = rt56rp_gr_nideas_gflag }   OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    } }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AMA
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 504
			add_state_core = 505
			add_state_core = 1001
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 280
				add_state_core = 309
				add_state_core = 310
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 490
				add_state_core = 491
				add_state_core = 494
				add_state_core = 495
				add_state_core = 497
				add_state_core = 687
				add_state_core = 1052
				add_state_core = 1056
				add_state_core = 1058
				add_state_core = 1072
				add_state_core = 1073
				add_state_core = 1098
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_amazon_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_amazon_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_amazon_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_americas_show_decision = {
		icon = formable_americas
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				always = no
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_americas_requirements_cflag
		}
	}
}

formable_americas_category = {
	formable_americas_form_decision = {
		icon = formable_americas
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_americas_form_decision_tt
						count_triggers = {
							amount = 1	#1 total states required
							1 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AME } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AME
			
			hidden_effect = {
				sound_effect = complete_focus
				
				1 = { add_core_of = ROOT }
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_americas_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_americas_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_americas_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_andes_show_decision = {
		icon = formable_andes
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = COL
				original_tag = ECU
				original_tag = PRU
				original_tag = BOL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_andes_requirements_cflag
		}
	}
}

formable_andes_category = {
	formable_andes_form_decision = {
		icon = formable_andes
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_andes_form_decision_tt
						count_triggers = {
							amount = 25	#29 total states required
							279 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AND } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AND
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 279
				add_state_core = 302
				add_state_core = 303
				add_state_core = 305
				add_state_core = 306
				add_state_core = 486
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 511
				add_state_core = 512
				add_state_core = 948
				add_state_core = 954
				add_state_core = 1051
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1070
				add_state_core = 1071
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_andes_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_andes_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_andes_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_angevin_empire_show_decision = {
		icon = formable_angevin_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = NIR
				original_tag = BRI
				original_tag = NAV
				original_tag = OCC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_angevin_empire_requirements_cflag
		}
	}
}

formable_angevin_empire_category = {
	formable_angevin_empire_form_decision = {
		icon = formable_angevin_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_angevin_empire_form_decision_tt
						count_triggers = {
							amount = 20	#21 total states required
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ANE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ANE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 14
				add_state_core = 15
				add_state_core = 19
				add_state_core = 23
				add_state_core = 25
				add_state_core = 26
				add_state_core = 30
				add_state_core = 33
				add_state_core = 113
				add_state_core = 119
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 338
				add_state_core = 806
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_angevin_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_angevin_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_angevin_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_anglo_french_union_show_decision = {
		icon = formable_anglo_french_union
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_anglo_french_union_requirements_cflag
		}
	}
}

formable_anglo_french_union_category = {
	formable_anglo_french_union_form_decision = {
		icon = formable_anglo_french_union
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_anglo_french_union_form_decision_tt
						count_triggers = {
							amount = 38	#45 total states required
							1 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AFU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AFU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 136
				add_state_core = 338
				add_state_core = 735
				add_state_core = 785
				add_state_core = 806
				add_state_core = 851
				add_state_core = 970
				add_state_core = 971
				add_state_core = 1012
				add_state_core = 1041
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_anglo_french_union_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_anglo_french_union_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_anglo_french_union_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_anglosphere_show_decision = {
		icon = formable_anglosphere
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = WLS
				original_tag = SCO
				original_tag = NIR
				original_tag = IRE
				original_tag = CAN
				original_tag = USA
				original_tag = ALA
				original_tag = CAL
				original_tag = CAS
				original_tag = LDX
				original_tag = NEG
				original_tag = TXS
				original_tag = AST
				original_tag = NZL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_anglosphere_requirements_cflag
		}
	}
}

formable_anglosphere_category = {
	formable_anglosphere_form_decision = {
		icon = formable_anglosphere
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_anglosphere_form_decision_tt
						count_triggers = {
							amount = 160	#261 total states required
							113 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							261 = { is_fully_controlled_by = ROOT }
							269 = { is_fully_controlled_by = ROOT }
							270 = { is_fully_controlled_by = ROOT }
							274 = { is_fully_controlled_by = ROOT }
							275 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							281 = { is_fully_controlled_by = ROOT }
							284 = { is_fully_controlled_by = ROOT }
							285 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							299 = { is_fully_controlled_by = ROOT }
							308 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							333 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							359 = { is_fully_controlled_by = ROOT }
							360 = { is_fully_controlled_by = ROOT }
							361 = { is_fully_controlled_by = ROOT }
							362 = { is_fully_controlled_by = ROOT }
							363 = { is_fully_controlled_by = ROOT }
							364 = { is_fully_controlled_by = ROOT }
							365 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							368 = { is_fully_controlled_by = ROOT }
							369 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							385 = { is_fully_controlled_by = ROOT }
							386 = { is_fully_controlled_by = ROOT }
							387 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							391 = { is_fully_controlled_by = ROOT }
							392 = { is_fully_controlled_by = ROOT }
							393 = { is_fully_controlled_by = ROOT }
							394 = { is_fully_controlled_by = ROOT }
							395 = { is_fully_controlled_by = ROOT }
							396 = { is_fully_controlled_by = ROOT }
							422 = { is_fully_controlled_by = ROOT }
							423 = { is_fully_controlled_by = ROOT }
							424 = { is_fully_controlled_by = ROOT }
							425 = { is_fully_controlled_by = ROOT }
							426 = { is_fully_controlled_by = ROOT }
							427 = { is_fully_controlled_by = ROOT }
							428 = { is_fully_controlled_by = ROOT }
							429 = { is_fully_controlled_by = ROOT }
							430 = { is_fully_controlled_by = ROOT }
							431 = { is_fully_controlled_by = ROOT }
							432 = { is_fully_controlled_by = ROOT }
							433 = { is_fully_controlled_by = ROOT }
							435 = { is_fully_controlled_by = ROOT }
							436 = { is_fully_controlled_by = ROOT }
							437 = { is_fully_controlled_by = ROOT }
							438 = { is_fully_controlled_by = ROOT }
							439 = { is_fully_controlled_by = ROOT }
							440 = { is_fully_controlled_by = ROOT }
							441 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							517 = { is_fully_controlled_by = ROOT }
							518 = { is_fully_controlled_by = ROOT }
							519 = { is_fully_controlled_by = ROOT }
							520 = { is_fully_controlled_by = ROOT }
							521 = { is_fully_controlled_by = ROOT }
							522 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							541 = { is_fully_controlled_by = ROOT }
							542 = { is_fully_controlled_by = ROOT }
							545 = { is_fully_controlled_by = ROOT }
							546 = { is_fully_controlled_by = ROOT }
							547 = { is_fully_controlled_by = ROOT }
							548 = { is_fully_controlled_by = ROOT }
							549 = { is_fully_controlled_by = ROOT }
							551 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							558 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							629 = { is_fully_controlled_by = ROOT }
							630 = { is_fully_controlled_by = ROOT }
							631 = { is_fully_controlled_by = ROOT }
							632 = { is_fully_controlled_by = ROOT }
							634 = { is_fully_controlled_by = ROOT }
							636 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							639 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							642 = { is_fully_controlled_by = ROOT }
							643 = { is_fully_controlled_by = ROOT }
							650 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							674 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							689 = { is_fully_controlled_by = ROOT }
							690 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							692 = { is_fully_controlled_by = ROOT }
							693 = { is_fully_controlled_by = ROOT }
							696 = { is_fully_controlled_by = ROOT }
							700 = { is_fully_controlled_by = ROOT }
							701 = { is_fully_controlled_by = ROOT }
							703 = { is_fully_controlled_by = ROOT }
							704 = { is_fully_controlled_by = ROOT }
							707 = { is_fully_controlled_by = ROOT }
							709 = { is_fully_controlled_by = ROOT }
							710 = { is_fully_controlled_by = ROOT }
							711 = { is_fully_controlled_by = ROOT }
							712 = { is_fully_controlled_by = ROOT }
							719 = { is_fully_controlled_by = ROOT }
							720 = { is_fully_controlled_by = ROOT }
							723 = { is_fully_controlled_by = ROOT }
							725 = { is_fully_controlled_by = ROOT }
							726 = { is_fully_controlled_by = ROOT }
							727 = { is_fully_controlled_by = ROOT }
							733 = { is_fully_controlled_by = ROOT }
							737 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							767 = { is_fully_controlled_by = ROOT }
							770 = { is_fully_controlled_by = ROOT }
							771 = { is_fully_controlled_by = ROOT }
							787 = { is_fully_controlled_by = ROOT }
							816 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							870 = { is_fully_controlled_by = ROOT }
							871 = { is_fully_controlled_by = ROOT }
							872 = { is_fully_controlled_by = ROOT }
							873 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							884 = { is_fully_controlled_by = ROOT }
							885 = { is_fully_controlled_by = ROOT }
							886 = { is_fully_controlled_by = ROOT }
							887 = { is_fully_controlled_by = ROOT }
							893 = { is_fully_controlled_by = ROOT }
							894 = { is_fully_controlled_by = ROOT }
							895 = { is_fully_controlled_by = ROOT }
							900 = { is_fully_controlled_by = ROOT }
							901 = { is_fully_controlled_by = ROOT }
							902 = { is_fully_controlled_by = ROOT }
							903 = { is_fully_controlled_by = ROOT }
							904 = { is_fully_controlled_by = ROOT }
							905 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							914 = { is_fully_controlled_by = ROOT }
							915 = { is_fully_controlled_by = ROOT }
							916 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							938 = { is_fully_controlled_by = ROOT }
							939 = { is_fully_controlled_by = ROOT }
							940 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							951 = { is_fully_controlled_by = ROOT }
							960 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1013 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1023 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1055 = { is_fully_controlled_by = ROOT }
							1090 = { is_fully_controlled_by = ROOT }
							1092 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
							1096 = { is_fully_controlled_by = ROOT }
							1097 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AGL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AGL
			if = {
				limit = {
					OR = {
						original_tag = CAN
						original_tag = USA
						original_tag = ALA
						original_tag = CAL
						original_tag = CAS
						original_tag = LDX
						original_tag = NEG
						original_tag = TXS
					}
				}
				set_capital = {
					state = 358
				}
				else = {
					set_capital = {
						state = 126
					}
				}
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 113
				add_state_core = 116
				add_state_core = 118
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 183
				add_state_core = 261
				add_state_core = 269
				add_state_core = 270
				add_state_core = 274
				add_state_core = 275
				add_state_core = 276
				add_state_core = 281
				add_state_core = 284
				add_state_core = 285
				add_state_core = 288
				add_state_core = 299
				add_state_core = 308
				add_state_core = 311
				add_state_core = 326
				add_state_core = 327
				add_state_core = 331
				add_state_core = 332
				add_state_core = 333
				add_state_core = 336
				add_state_core = 338
				add_state_core = 357
				add_state_core = 358
				add_state_core = 359
				add_state_core = 360
				add_state_core = 361
				add_state_core = 362
				add_state_core = 363
				add_state_core = 364
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 385
				add_state_core = 386
				add_state_core = 387
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 391
				add_state_core = 392
				add_state_core = 393
				add_state_core = 394
				add_state_core = 395
				add_state_core = 396
				add_state_core = 422
				add_state_core = 423
				add_state_core = 424
				add_state_core = 425
				add_state_core = 426
				add_state_core = 427
				add_state_core = 428
				add_state_core = 429
				add_state_core = 430
				add_state_core = 431
				add_state_core = 432
				add_state_core = 433
				add_state_core = 435
				add_state_core = 436
				add_state_core = 437
				add_state_core = 438
				add_state_core = 439
				add_state_core = 440
				add_state_core = 441
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 447
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 517
				add_state_core = 518
				add_state_core = 519
				add_state_core = 520
				add_state_core = 521
				add_state_core = 522
				add_state_core = 523
				add_state_core = 541
				add_state_core = 542
				add_state_core = 545
				add_state_core = 546
				add_state_core = 547
				add_state_core = 548
				add_state_core = 549
				add_state_core = 551
				add_state_core = 552
				add_state_core = 558
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 629
				add_state_core = 630
				add_state_core = 631
				add_state_core = 632
				add_state_core = 634
				add_state_core = 636
				add_state_core = 638
				add_state_core = 639
				add_state_core = 640
				add_state_core = 642
				add_state_core = 643
				add_state_core = 650
				add_state_core = 656
				add_state_core = 658
				add_state_core = 659
				add_state_core = 674
				add_state_core = 681
				add_state_core = 682
				add_state_core = 683
				add_state_core = 685
				add_state_core = 686
				add_state_core = 687
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 696
				add_state_core = 700
				add_state_core = 701
				add_state_core = 703
				add_state_core = 704
				add_state_core = 707
				add_state_core = 709
				add_state_core = 710
				add_state_core = 711
				add_state_core = 712
				add_state_core = 719
				add_state_core = 720
				add_state_core = 723
				add_state_core = 725
				add_state_core = 726
				add_state_core = 727
				add_state_core = 733
				add_state_core = 737
				add_state_core = 739
				add_state_core = 740
				add_state_core = 765
				add_state_core = 767
				add_state_core = 770
				add_state_core = 771
				add_state_core = 787
				add_state_core = 816
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 870
				add_state_core = 871
				add_state_core = 872
				add_state_core = 873
				add_state_core = 883
				add_state_core = 884
				add_state_core = 885
				add_state_core = 886
				add_state_core = 887
				add_state_core = 893
				add_state_core = 894
				add_state_core = 895
				add_state_core = 900
				add_state_core = 901
				add_state_core = 902
				add_state_core = 903
				add_state_core = 904
				add_state_core = 905
				add_state_core = 907
				add_state_core = 911
				add_state_core = 914
				add_state_core = 915
				add_state_core = 916
				add_state_core = 921
				add_state_core = 938
				add_state_core = 939
				add_state_core = 940
				add_state_core = 949
				add_state_core = 951
				add_state_core = 960
				add_state_core = 966
				add_state_core = 970
				add_state_core = 971
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				add_state_core = 995
				add_state_core = 1007
				add_state_core = 1013
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1023
				add_state_core = 1041
				add_state_core = 1055
				add_state_core = 1090
				add_state_core = 1092
				add_state_core = 1093
				add_state_core = 1096
				add_state_core = 1097
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_anglosphere_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_anglosphere_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_anglosphere_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_antillean_confederation_show_decision = {
		icon = formable_antillean_confederation
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CUB
				original_tag = DOM
				original_tag = PUE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_antillean_confederation_requirements_cflag
		}
	}
}

formable_antillean_confederation_category = {
	formable_antillean_confederation_form_decision = {
		icon = formable_antillean_confederation
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_antillean_confederation_form_decision_tt
						count_triggers = {
							amount = 5	#5 total states required
							315 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ANC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ANC
			add_state_core = 306
			add_state_core = 486
			add_state_core = 493
			add_state_core = 1051
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 686
				add_state_core = 994
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_antillean_confederation_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_antillean_confederation_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_antillean_confederation_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_arabia_show_decision = {
		icon = formable_arabia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SAU
				original_tag = YEM
				original_tag = OMA
				original_tag = IRQ
				original_tag = LEB
				original_tag = SYR
				original_tag = JOR
				original_tag = ISR
				original_tag = PAL
				original_tag = MPL
				original_tag = KUW
				original_tag = UAE
				original_tag = QAT
				original_tag = KUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_arabia_requirements_cflag
		}
	}
}

formable_arabia_category = {
	formable_arabia_form_decision = {
		icon = formable_arabia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_arabia_form_decision_tt
						count_triggers = {
							amount = 25	#38 total states required
							291 = { is_fully_controlled_by = ROOT }
							292 = { is_fully_controlled_by = ROOT }
							293 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							678 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							857 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ARA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ARA
			if = {
				limit = {
					OR = {
						original_tag = ISR
						original_tag = PAL
					}
				}
				set_capital = {
					state = 1016
				}
				else = {
					set_capital = {
						state = 679
					}
				}
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 291
				add_state_core = 292
				add_state_core = 293
				add_state_core = 294
				add_state_core = 454
				add_state_core = 455
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 658
				add_state_core = 659
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 678
				add_state_core = 679
				add_state_core = 680
				add_state_core = 765
				add_state_core = 799
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 949
				add_state_core = 966
				add_state_core = 979
				add_state_core = 1007
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_arabia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_arabia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_arabia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_aragon_show_decision = {
		icon = formable_aragon
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CAT
				original_tag = NAP
				original_tag = ADR
				original_tag = COR
				original_tag = SAD
				original_tag = MLT
				original_tag = SIC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_aragon_requirements_cflag
		}
	}
}

formable_aragon_category = {
	formable_aragon_form_decision = {
		icon = formable_aragon
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_aragon_form_decision_tt
						count_triggers = {
							amount = 12	#14 total states required
							1 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ARG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ARG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 156
				add_state_core = 157
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 177
				add_state_core = 794
				add_state_core = 849
				add_state_core = 973
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_aragon_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_aragon_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_aragon_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_arctic_show_decision = {
		icon = formable_arctic
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FIN
				original_tag = NOR
				original_tag = SWE
				original_tag = ICE
				original_tag = GRL
				original_tag = CAN
				original_tag = KAR
				original_tag = NEN
				original_tag = YAM
				original_tag = TAY
				original_tag = YAK
				original_tag = CKK
				original_tag = OVO
				original_tag = KOM
				original_tag = QBC
				original_tag = SCO
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_arctic_requirements_cflag
		}
	}
}

formable_arctic_category = {
	formable_arctic_form_decision = {
		icon = formable_arctic
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_arctic_form_decision_tt
						count_triggers = {
							amount = 70	#101 total states required
							38 = { is_fully_controlled_by = ROOT }
							100 = { is_fully_controlled_by = ROOT }
							101 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							214 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							262 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							397 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							516 = { is_fully_controlled_by = ROOT }
							562 = { is_fully_controlled_by = ROOT }
							574 = { is_fully_controlled_by = ROOT }
							575 = { is_fully_controlled_by = ROOT }
							576 = { is_fully_controlled_by = ROOT }
							577 = { is_fully_controlled_by = ROOT }
							579 = { is_fully_controlled_by = ROOT }
							580 = { is_fully_controlled_by = ROOT }
							581 = { is_fully_controlled_by = ROOT }
							637 = { is_fully_controlled_by = ROOT }
							644 = { is_fully_controlled_by = ROOT }
							650 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							822 = { is_fully_controlled_by = ROOT }
							824 = { is_fully_controlled_by = ROOT }
							825 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							874 = { is_fully_controlled_by = ROOT }
							875 = { is_fully_controlled_by = ROOT }
							876 = { is_fully_controlled_by = ROOT }
							877 = { is_fully_controlled_by = ROOT }
							878 = { is_fully_controlled_by = ROOT }
							879 = { is_fully_controlled_by = ROOT }
							880 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1043 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ARC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ARC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 38
				add_state_core = 100
				add_state_core = 101
				add_state_core = 110
				add_state_core = 111
				add_state_core = 120
				add_state_core = 121
				add_state_core = 133
				add_state_core = 136
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 195
				add_state_core = 213
				add_state_core = 214
				add_state_core = 215
				add_state_core = 216
				add_state_core = 262
				add_state_core = 276
				add_state_core = 331
				add_state_core = 332
				add_state_core = 337
				add_state_core = 397
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 516
				add_state_core = 562
				add_state_core = 574
				add_state_core = 575
				add_state_core = 576
				add_state_core = 577
				add_state_core = 579
				add_state_core = 580
				add_state_core = 581
				add_state_core = 637
				add_state_core = 644
				add_state_core = 650
				add_state_core = 666
				add_state_core = 682
				add_state_core = 683
				add_state_core = 722
				add_state_core = 739
				add_state_core = 740
				add_state_core = 822
				add_state_core = 824
				add_state_core = 825
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 874
				add_state_core = 875
				add_state_core = 876
				add_state_core = 877
				add_state_core = 878
				add_state_core = 879
				add_state_core = 880
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 970
				add_state_core = 971
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1043
				
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_arctic_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_arctic_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_arctic_requirements_cflag
		}
	}
}

####################################################################
#################################################################### Asia is only allowed through LoN unrestricted formables
####################################################################

formable_category = {
	formable_asia_show_decision = {
		icon = formable_asia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = NEP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_asia_requirements_cflag
		}
	}
}

formable_asia_category = {
	formable_asia_form_decision = {
		icon = formable_asia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_asia_form_decision_tt
						count_triggers = {
							amount = 2	#2 total states required
							1 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ASI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				1 = { add_core_of = ROOT }
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_asia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_asia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_asia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_assyria_show_decision = {
		icon = formable_assyria
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = IRQ
				original_tag = SYR
				original_tag = KUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_assyria_requirements_cflag
		}
	}
}

formable_assyria_category = {
	formable_assyria_form_decision = {
		icon = formable_assyria
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_assyria_form_decision_tt
						count_triggers = {
							amount = 26	#39 total states required
							183 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ASS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 183
				add_state_core = 291
				add_state_core = 344
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 421
				add_state_core = 447
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 799
				add_state_core = 800
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_assyria_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_assyria_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_assyria_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_atlantic_states_america_uk_show_decision = {
		icon = formable_atlantic_states_america_uk
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_atlantic_states_america_uk_requirements_cflag
		}
	}
}

formable_atlantic_states_america_uk_category = {
	formable_atlantic_states_america_uk_form_decision = {
		icon = formable_atlantic_states_america_uk
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_atlantic_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_uk_form_decision_tt
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 35	#44 total states required
								261 = { is_fully_controlled_by = ROOT }
								276 = { is_fully_controlled_by = ROOT }
								331 = { is_fully_controlled_by = ROOT }
								332 = { is_fully_controlled_by = ROOT }
								357 = { is_fully_controlled_by = ROOT }
								358 = { is_fully_controlled_by = ROOT }
								359 = { is_fully_controlled_by = ROOT }
								360 = { is_fully_controlled_by = ROOT }
								361 = { is_fully_controlled_by = ROOT }
								362 = { is_fully_controlled_by = ROOT }
								363 = { is_fully_controlled_by = ROOT }
								364 = { is_fully_controlled_by = ROOT }
								365 = { is_fully_controlled_by = ROOT }
								366 = { is_fully_controlled_by = ROOT }
								367 = { is_fully_controlled_by = ROOT }
								368 = { is_fully_controlled_by = ROOT }
								369 = { is_fully_controlled_by = ROOT }
								370 = { is_fully_controlled_by = ROOT }
								372 = { is_fully_controlled_by = ROOT }
								373 = { is_fully_controlled_by = ROOT }
								391 = { is_fully_controlled_by = ROOT }
								392 = { is_fully_controlled_by = ROOT }
								393 = { is_fully_controlled_by = ROOT }
								394 = { is_fully_controlled_by = ROOT }
								395 = { is_fully_controlled_by = ROOT }
								396 = { is_fully_controlled_by = ROOT }
								464 = { is_fully_controlled_by = ROOT }
								465 = { is_fully_controlled_by = ROOT }
								466 = { is_fully_controlled_by = ROOT }
								468 = { is_fully_controlled_by = ROOT }
								682 = { is_fully_controlled_by = ROOT }
								730 = { is_fully_controlled_by = ROOT }
								816 = { is_fully_controlled_by = ROOT }
								860 = { is_fully_controlled_by = ROOT }
								861 = { is_fully_controlled_by = ROOT }
								862 = { is_fully_controlled_by = ROOT }
								863 = { is_fully_controlled_by = ROOT }
								866 = { is_fully_controlled_by = ROOT }
								921 = { is_fully_controlled_by = ROOT }
								990 = { is_fully_controlled_by = ROOT }
								991 = { is_fully_controlled_by = ROOT }
								992 = { is_fully_controlled_by = ROOT }
								993 = { is_fully_controlled_by = ROOT }
								1023 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 34	#34 total states required
								371 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								377 = { owns_or_subject_of = no }
								378 = { owns_or_subject_of = no }
								379 = { owns_or_subject_of = no }
								380 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								385 = { owns_or_subject_of = no }
								386 = { owns_or_subject_of = no }
								387 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								463 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								471 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								473 = { owns_or_subject_of = no }
								483 = { owns_or_subject_of = no }
								484 = { owns_or_subject_of = no }
								650 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								739 = { owns_or_subject_of = no }
								740 = { owns_or_subject_of = no }
								864 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 34	#34 total states required
							371 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							377 = { owns_or_subject_of = no }
							378 = { owns_or_subject_of = no }
							379 = { owns_or_subject_of = no }
							380 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							385 = { owns_or_subject_of = no }
							386 = { owns_or_subject_of = no }
							387 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							463 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							471 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							473 = { owns_or_subject_of = no }
							483 = { owns_or_subject_of = no }
							484 = { owns_or_subject_of = no }
							650 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							739 = { owns_or_subject_of = no }
							740 = { owns_or_subject_of = no }
							864 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASA_UK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 361 } #Maryland
				set_cosmetic_tag = FORM_ASA_UK
				add_state_core = 308
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 389
				add_state_core = 686
				add_state_core = 690
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 696
				add_state_core = 972
				add_state_core = 994
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 261
					add_state_core = 276
					add_state_core = 331
					add_state_core = 332
					add_state_core = 357
					add_state_core = 358
					add_state_core = 359
					add_state_core = 360
					add_state_core = 361
					add_state_core = 362
					add_state_core = 363
					add_state_core = 364
					add_state_core = 365
					add_state_core = 366
					add_state_core = 367
					add_state_core = 368
					add_state_core = 369
					add_state_core = 370
					add_state_core = 372
					add_state_core = 373
					add_state_core = 391
					add_state_core = 392
					add_state_core = 393
					add_state_core = 394
					add_state_core = 395
					add_state_core = 396
					add_state_core = 464
					add_state_core = 465
					add_state_core = 466
					add_state_core = 468
					add_state_core = 682
					add_state_core = 730
					add_state_core = 816
					add_state_core = 860
					add_state_core = 861
					add_state_core = 862
					add_state_core = 863
					add_state_core = 866
					add_state_core = 921
					add_state_core = 990
					add_state_core = 991
					add_state_core = 992
					add_state_core = 993
					add_state_core = 1023
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_atlantic_states_america_uk_requirements_cflag
			}
		}
	}
	formable_atlantic_states_america_show_midwestern_uk_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_show_pacific_uk_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_uk_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_atlantic_states_america_uk_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_atlantic_states_america_france_show_decision = {
		icon = formable_atlantic_states_america_france
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_atlantic_states_america_france_requirements_cflag
		}
	}
}

formable_atlantic_states_america_france_category = {
	formable_atlantic_states_america_france_form_decision = {
		icon = formable_atlantic_states_america_france
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_atlantic_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_france_form_decision_tt
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 35	#44 total states required
								261 = { is_fully_controlled_by = ROOT }
								276 = { is_fully_controlled_by = ROOT }
								331 = { is_fully_controlled_by = ROOT }
								332 = { is_fully_controlled_by = ROOT }
								357 = { is_fully_controlled_by = ROOT }
								358 = { is_fully_controlled_by = ROOT }
								359 = { is_fully_controlled_by = ROOT }
								360 = { is_fully_controlled_by = ROOT }
								361 = { is_fully_controlled_by = ROOT }
								362 = { is_fully_controlled_by = ROOT }
								363 = { is_fully_controlled_by = ROOT }
								364 = { is_fully_controlled_by = ROOT }
								365 = { is_fully_controlled_by = ROOT }
								366 = { is_fully_controlled_by = ROOT }
								367 = { is_fully_controlled_by = ROOT }
								368 = { is_fully_controlled_by = ROOT }
								369 = { is_fully_controlled_by = ROOT }
								370 = { is_fully_controlled_by = ROOT }
								372 = { is_fully_controlled_by = ROOT }
								373 = { is_fully_controlled_by = ROOT }
								391 = { is_fully_controlled_by = ROOT }
								392 = { is_fully_controlled_by = ROOT }
								393 = { is_fully_controlled_by = ROOT }
								394 = { is_fully_controlled_by = ROOT }
								395 = { is_fully_controlled_by = ROOT }
								396 = { is_fully_controlled_by = ROOT }
								464 = { is_fully_controlled_by = ROOT }
								465 = { is_fully_controlled_by = ROOT }
								466 = { is_fully_controlled_by = ROOT }
								468 = { is_fully_controlled_by = ROOT }
								682 = { is_fully_controlled_by = ROOT }
								730 = { is_fully_controlled_by = ROOT }
								816 = { is_fully_controlled_by = ROOT }
								860 = { is_fully_controlled_by = ROOT }
								861 = { is_fully_controlled_by = ROOT }
								862 = { is_fully_controlled_by = ROOT }
								863 = { is_fully_controlled_by = ROOT }
								866 = { is_fully_controlled_by = ROOT }
								921 = { is_fully_controlled_by = ROOT }
								990 = { is_fully_controlled_by = ROOT }
								991 = { is_fully_controlled_by = ROOT }
								992 = { is_fully_controlled_by = ROOT }
								993 = { is_fully_controlled_by = ROOT }
								1023 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 34	#34 total states required
								371 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								377 = { owns_or_subject_of = no }
								378 = { owns_or_subject_of = no }
								379 = { owns_or_subject_of = no }
								380 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								385 = { owns_or_subject_of = no }
								386 = { owns_or_subject_of = no }
								387 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								463 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								471 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								473 = { owns_or_subject_of = no }
								483 = { owns_or_subject_of = no }
								484 = { owns_or_subject_of = no }
								650 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								739 = { owns_or_subject_of = no }
								740 = { owns_or_subject_of = no }
								864 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 34	#34 total states required
							371 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							377 = { owns_or_subject_of = no }
							378 = { owns_or_subject_of = no }
							379 = { owns_or_subject_of = no }
							380 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							385 = { owns_or_subject_of = no }
							386 = { owns_or_subject_of = no }
							387 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							463 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							471 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							473 = { owns_or_subject_of = no }
							483 = { owns_or_subject_of = no }
							484 = { owns_or_subject_of = no }
							650 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							739 = { owns_or_subject_of = no }
							740 = { owns_or_subject_of = no }
							864 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASA_FRA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 361 } #Maryland
				set_cosmetic_tag = FORM_ASA_FRA
				add_state_core = 308
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 389
				add_state_core = 686
				add_state_core = 690
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 696
				add_state_core = 972
				add_state_core = 994
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 261
					add_state_core = 276
					add_state_core = 331
					add_state_core = 332
					add_state_core = 357
					add_state_core = 358
					add_state_core = 359
					add_state_core = 360
					add_state_core = 361
					add_state_core = 362
					add_state_core = 363
					add_state_core = 364
					add_state_core = 365
					add_state_core = 366
					add_state_core = 367
					add_state_core = 368
					add_state_core = 369
					add_state_core = 370
					add_state_core = 372
					add_state_core = 373
					add_state_core = 391
					add_state_core = 392
					add_state_core = 393
					add_state_core = 394
					add_state_core = 395
					add_state_core = 396
					add_state_core = 464
					add_state_core = 465
					add_state_core = 466
					add_state_core = 468
					add_state_core = 682
					add_state_core = 730
					add_state_core = 816
					add_state_core = 860
					add_state_core = 861
					add_state_core = 862
					add_state_core = 863
					add_state_core = 866
					add_state_core = 921
					add_state_core = 990
					add_state_core = 991
					add_state_core = 992
					add_state_core = 993
					add_state_core = 1023
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_atlantic_states_america_france_requirements_cflag
			}
		}
	}
	formable_atlantic_states_america_show_midwestern_france_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_show_pacific_france_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_france_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_atlantic_states_america_france_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_atlantic_states_america_germany_show_decision = {
		icon = formable_atlantic_states_america_germany
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_atlantic_states_america_germany_requirements_cflag
		}
	}
}

formable_atlantic_states_america_germany_category = {
	formable_atlantic_states_america_germany_form_decision = {
		icon = formable_atlantic_states_america_germany
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_atlantic_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_germany_form_decision_tt
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 35	#44 total states required
								261 = { is_fully_controlled_by = ROOT }
								276 = { is_fully_controlled_by = ROOT }
								331 = { is_fully_controlled_by = ROOT }
								332 = { is_fully_controlled_by = ROOT }
								357 = { is_fully_controlled_by = ROOT }
								358 = { is_fully_controlled_by = ROOT }
								359 = { is_fully_controlled_by = ROOT }
								360 = { is_fully_controlled_by = ROOT }
								361 = { is_fully_controlled_by = ROOT }
								362 = { is_fully_controlled_by = ROOT }
								363 = { is_fully_controlled_by = ROOT }
								364 = { is_fully_controlled_by = ROOT }
								365 = { is_fully_controlled_by = ROOT }
								366 = { is_fully_controlled_by = ROOT }
								367 = { is_fully_controlled_by = ROOT }
								368 = { is_fully_controlled_by = ROOT }
								369 = { is_fully_controlled_by = ROOT }
								370 = { is_fully_controlled_by = ROOT }
								372 = { is_fully_controlled_by = ROOT }
								373 = { is_fully_controlled_by = ROOT }
								391 = { is_fully_controlled_by = ROOT }
								392 = { is_fully_controlled_by = ROOT }
								393 = { is_fully_controlled_by = ROOT }
								394 = { is_fully_controlled_by = ROOT }
								395 = { is_fully_controlled_by = ROOT }
								396 = { is_fully_controlled_by = ROOT }
								464 = { is_fully_controlled_by = ROOT }
								465 = { is_fully_controlled_by = ROOT }
								466 = { is_fully_controlled_by = ROOT }
								468 = { is_fully_controlled_by = ROOT }
								682 = { is_fully_controlled_by = ROOT }
								730 = { is_fully_controlled_by = ROOT }
								816 = { is_fully_controlled_by = ROOT }
								860 = { is_fully_controlled_by = ROOT }
								861 = { is_fully_controlled_by = ROOT }
								862 = { is_fully_controlled_by = ROOT }
								863 = { is_fully_controlled_by = ROOT }
								866 = { is_fully_controlled_by = ROOT }
								921 = { is_fully_controlled_by = ROOT }
								990 = { is_fully_controlled_by = ROOT }
								991 = { is_fully_controlled_by = ROOT }
								992 = { is_fully_controlled_by = ROOT }
								993 = { is_fully_controlled_by = ROOT }
								1023 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 34	#34 total states required
								371 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								377 = { owns_or_subject_of = no }
								378 = { owns_or_subject_of = no }
								379 = { owns_or_subject_of = no }
								380 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								385 = { owns_or_subject_of = no }
								386 = { owns_or_subject_of = no }
								387 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								463 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								471 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								473 = { owns_or_subject_of = no }
								483 = { owns_or_subject_of = no }
								484 = { owns_or_subject_of = no }
								650 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								739 = { owns_or_subject_of = no }
								740 = { owns_or_subject_of = no }
								864 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 34	#34 total states required
							371 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							377 = { owns_or_subject_of = no }
							378 = { owns_or_subject_of = no }
							379 = { owns_or_subject_of = no }
							380 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							385 = { owns_or_subject_of = no }
							386 = { owns_or_subject_of = no }
							387 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							463 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							471 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							473 = { owns_or_subject_of = no }
							483 = { owns_or_subject_of = no }
							484 = { owns_or_subject_of = no }
							650 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							739 = { owns_or_subject_of = no }
							740 = { owns_or_subject_of = no }
							864 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASA_GER } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 361 } #Maryland
				set_cosmetic_tag = FORM_ASA_GER
				add_state_core = 308
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 389
				add_state_core = 686
				add_state_core = 690
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 696
				add_state_core = 972
				add_state_core = 994
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 261
					add_state_core = 276
					add_state_core = 331
					add_state_core = 332
					add_state_core = 357
					add_state_core = 358
					add_state_core = 359
					add_state_core = 360
					add_state_core = 361
					add_state_core = 362
					add_state_core = 363
					add_state_core = 364
					add_state_core = 365
					add_state_core = 366
					add_state_core = 367
					add_state_core = 368
					add_state_core = 369
					add_state_core = 370
					add_state_core = 372
					add_state_core = 373
					add_state_core = 391
					add_state_core = 392
					add_state_core = 393
					add_state_core = 394
					add_state_core = 395
					add_state_core = 396
					add_state_core = 464
					add_state_core = 465
					add_state_core = 466
					add_state_core = 468
					add_state_core = 682
					add_state_core = 730
					add_state_core = 816
					add_state_core = 860
					add_state_core = 861
					add_state_core = 862
					add_state_core = 863
					add_state_core = 866
					add_state_core = 921
					add_state_core = 990
					add_state_core = 991
					add_state_core = 992
					add_state_core = 993
					add_state_core = 1023
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_atlantic_states_america_germany_requirements_cflag
			}
		}
	}
	formable_atlantic_states_america_show_midwestern_germany_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_show_pacific_germany_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_germany_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_atlantic_states_america_germany_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_atlantic_states_america_italy_show_decision = {
		icon = formable_atlantic_states_america_italy
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_atlantic_states_america_italy_requirements_cflag
		}
	}
}

formable_atlantic_states_america_italy_category = {
	formable_atlantic_states_america_italy_form_decision = {
		icon = formable_atlantic_states_america_italy
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_atlantic_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_italy_form_decision_tt
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 35	#44 total states required
								261 = { is_fully_controlled_by = ROOT }
								276 = { is_fully_controlled_by = ROOT }
								331 = { is_fully_controlled_by = ROOT }
								332 = { is_fully_controlled_by = ROOT }
								357 = { is_fully_controlled_by = ROOT }
								358 = { is_fully_controlled_by = ROOT }
								359 = { is_fully_controlled_by = ROOT }
								360 = { is_fully_controlled_by = ROOT }
								361 = { is_fully_controlled_by = ROOT }
								362 = { is_fully_controlled_by = ROOT }
								363 = { is_fully_controlled_by = ROOT }
								364 = { is_fully_controlled_by = ROOT }
								365 = { is_fully_controlled_by = ROOT }
								366 = { is_fully_controlled_by = ROOT }
								367 = { is_fully_controlled_by = ROOT }
								368 = { is_fully_controlled_by = ROOT }
								369 = { is_fully_controlled_by = ROOT }
								370 = { is_fully_controlled_by = ROOT }
								372 = { is_fully_controlled_by = ROOT }
								373 = { is_fully_controlled_by = ROOT }
								391 = { is_fully_controlled_by = ROOT }
								392 = { is_fully_controlled_by = ROOT }
								393 = { is_fully_controlled_by = ROOT }
								394 = { is_fully_controlled_by = ROOT }
								395 = { is_fully_controlled_by = ROOT }
								396 = { is_fully_controlled_by = ROOT }
								464 = { is_fully_controlled_by = ROOT }
								465 = { is_fully_controlled_by = ROOT }
								466 = { is_fully_controlled_by = ROOT }
								468 = { is_fully_controlled_by = ROOT }
								682 = { is_fully_controlled_by = ROOT }
								730 = { is_fully_controlled_by = ROOT }
								816 = { is_fully_controlled_by = ROOT }
								860 = { is_fully_controlled_by = ROOT }
								861 = { is_fully_controlled_by = ROOT }
								862 = { is_fully_controlled_by = ROOT }
								863 = { is_fully_controlled_by = ROOT }
								866 = { is_fully_controlled_by = ROOT }
								921 = { is_fully_controlled_by = ROOT }
								990 = { is_fully_controlled_by = ROOT }
								991 = { is_fully_controlled_by = ROOT }
								992 = { is_fully_controlled_by = ROOT }
								993 = { is_fully_controlled_by = ROOT }
								1023 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_atlantic_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 361 #Maryland
							count_triggers = {
								amount = 34	#34 total states required
								371 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								377 = { owns_or_subject_of = no }
								378 = { owns_or_subject_of = no }
								379 = { owns_or_subject_of = no }
								380 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								385 = { owns_or_subject_of = no }
								386 = { owns_or_subject_of = no }
								387 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								463 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								471 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								473 = { owns_or_subject_of = no }
								483 = { owns_or_subject_of = no }
								484 = { owns_or_subject_of = no }
								650 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								739 = { owns_or_subject_of = no }
								740 = { owns_or_subject_of = no }
								864 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 34	#34 total states required
							371 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							377 = { owns_or_subject_of = no }
							378 = { owns_or_subject_of = no }
							379 = { owns_or_subject_of = no }
							380 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							385 = { owns_or_subject_of = no }
							386 = { owns_or_subject_of = no }
							387 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							463 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							471 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							473 = { owns_or_subject_of = no }
							483 = { owns_or_subject_of = no }
							484 = { owns_or_subject_of = no }
							650 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							739 = { owns_or_subject_of = no }
							740 = { owns_or_subject_of = no }
							864 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ASA_ITA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 361 } #Maryland
				set_cosmetic_tag = FORM_ASA_ITA
				add_state_core = 308
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 389
				add_state_core = 686
				add_state_core = 690
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 696
				add_state_core = 972
				add_state_core = 994
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 261
					add_state_core = 276
					add_state_core = 331
					add_state_core = 332
					add_state_core = 357
					add_state_core = 358
					add_state_core = 359
					add_state_core = 360
					add_state_core = 361
					add_state_core = 362
					add_state_core = 363
					add_state_core = 364
					add_state_core = 365
					add_state_core = 366
					add_state_core = 367
					add_state_core = 368
					add_state_core = 369
					add_state_core = 370
					add_state_core = 372
					add_state_core = 373
					add_state_core = 391
					add_state_core = 392
					add_state_core = 393
					add_state_core = 394
					add_state_core = 395
					add_state_core = 396
					add_state_core = 464
					add_state_core = 465
					add_state_core = 466
					add_state_core = 468
					add_state_core = 682
					add_state_core = 730
					add_state_core = 816
					add_state_core = 860
					add_state_core = 861
					add_state_core = 862
					add_state_core = 863
					add_state_core = 866
					add_state_core = 921
					add_state_core = 990
					add_state_core = 991
					add_state_core = 992
					add_state_core = 993
					add_state_core = 1023
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_atlantic_states_america_italy_requirements_cflag
			}
		}
	}
	formable_atlantic_states_america_show_midwestern_italy_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_show_pacific_italy_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_italy_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_atlantic_states_america_italy_requirements_cflag
		}
	}
}

formable_atlantic_states_america_show_midwestern_category = {
	formable_atlantic_states_america_reset_show_midwestern_uk_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_reset_show_midwestern_france_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_reset_show_midwestern_germany_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
	formable_atlantic_states_america_reset_show_midwestern_italy_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_midwestern_cflag
		}
	}
}
formable_atlantic_states_america_show_pacific_category = {
	formable_atlantic_states_america_reset_show_pacific_uk_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_reset_show_pacific_france_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_reset_show_pacific_germany_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
	formable_atlantic_states_america_reset_show_pacific_italy_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_atlantic_states_america_show_pacific_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_australasia_show_decision = {
		icon = formable_australasia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AST
				original_tag = NZL
				original_tag = PNG
				original_tag = TAH
				original_tag = FIJ
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_australasia_requirements_cflag
		}
	}
}

formable_australasia_category = {
	formable_australasia_form_decision = {
		icon = formable_australasia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_australasia_form_decision_tt
						count_triggers = {
							amount = 20	#25 total states required
							284 = { is_fully_controlled_by = ROOT }
							285 = { is_fully_controlled_by = ROOT }
							517 = { is_fully_controlled_by = ROOT }
							518 = { is_fully_controlled_by = ROOT }
							519 = { is_fully_controlled_by = ROOT }
							520 = { is_fully_controlled_by = ROOT }
							521 = { is_fully_controlled_by = ROOT }
							522 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							634 = { is_fully_controlled_by = ROOT }
							635 = { is_fully_controlled_by = ROOT }
							636 = { is_fully_controlled_by = ROOT }
							669 = { is_fully_controlled_by = ROOT }
							674 = { is_fully_controlled_by = ROOT }
							723 = { is_fully_controlled_by = ROOT }
							734 = { is_fully_controlled_by = ROOT }
							737 = { is_fully_controlled_by = ROOT }
							738 = { is_fully_controlled_by = ROOT }
							870 = { is_fully_controlled_by = ROOT }
							871 = { is_fully_controlled_by = ROOT }
							872 = { is_fully_controlled_by = ROOT }
							873 = { is_fully_controlled_by = ROOT }
							1087 = { is_fully_controlled_by = ROOT }
							1089 = { is_fully_controlled_by = ROOT }
							1096 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AAS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AAS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 284
				add_state_core = 285
				add_state_core = 517
				add_state_core = 518
				add_state_core = 519
				add_state_core = 520
				add_state_core = 521
				add_state_core = 522
				add_state_core = 523
				add_state_core = 634
				add_state_core = 635
				add_state_core = 636
				add_state_core = 669
				add_state_core = 674
				add_state_core = 723
				add_state_core = 734
				add_state_core = 737
				add_state_core = 738
				add_state_core = 870
				add_state_core = 871
				add_state_core = 872
				add_state_core = 873
				add_state_core = 1087
				add_state_core = 1089
				add_state_core = 1096
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_australasia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_australasia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_australasia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_austria_hungary_show_decision = {
		icon = formable_austria_hungary
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
				original_tag = HUN
				original_tag = CZE
				original_tag = POL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_austria_hungary_requirements_cflag
		}
	}
}

formable_austria_hungary_category = {
	formable_austria_hungary_form_decision = {
		icon = formable_austria_hungary
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_austria_hungary_form_decision_tt
						count_triggers = {
							amount = 32	#47 total states required
							4 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_AUH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_AUH
			set_capital = {
				state = 4
			}
			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"}
			set_province_name = { id = 6558 name = "Posen"}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 9
				add_state_core = 39
				add_state_core = 43
				add_state_core = 45
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 80
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 88
				add_state_core = 89
				add_state_core = 91
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 109
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 163
				add_state_core = 664
				add_state_core = 736
				add_state_core = 764
				add_state_core = 804
				add_state_core = 848
				add_state_core = 850
				add_state_core = 852
				add_state_core = 853
				add_state_core = 913
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 996
				add_state_core = 1054
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_austria_hungary_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_austria_hungary_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_austria_hungary_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_bachwezi_empire_show_decision = {
		icon = formable_bachwezi_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = RWA
				original_tag = UGA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_bachwezi_empire_requirements_cflag
		}
	}
}
 
formable_bachwezi_empire_category = {
	formable_bachwezi_empire_form_decision = {
		icon = formable_bachwezi_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_bachwezi_empire_form_decision_tt
						count_triggers = {
							amount = 2	#2 total states required
							548 = { is_fully_controlled_by = ROOT }
							768 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BEK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BEK
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 546
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 548
				add_state_core = 768
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_bachwezi_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_bachwezi_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_bachwezi_empire_requirements_cflag
		}
	}
}
 
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_balkan_show_decision = {
		icon = formable_balkan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_balkan_requirements_cflag
		}
	}
}

formable_balkan_category = {
	formable_balkan_form_decision = {
		icon = formable_balkan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_balkan_form_decision_tt
						count_triggers = {
							amount = 35	#40 total states required
							44 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BAK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BAK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 45
				add_state_core = 47
				add_state_core = 48
				add_state_core = 77
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 163
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 211
				add_state_core = 212
				add_state_core = 341
				add_state_core = 731
				add_state_core = 736
				add_state_core = 764
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 852
				add_state_core = 853
				add_state_core = 910
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_balkan_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_balkan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_balkan_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_baltic_show_decision = {
		icon = formable_baltic
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_baltic_requirements_cflag
		}
	}
}

formable_baltic_category = {
	formable_baltic_form_decision = {
		icon = formable_baltic
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_baltic_form_decision_tt
						count_triggers = {
							amount = 15	#16 total states required
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BAL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BAL
			set_capital = {
				state = 808
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 784
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_baltic_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_baltic_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_baltic_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_baltoscandia_show_decision = {
		icon = formable_baltoscandia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LIT
				original_tag = LAT
				original_tag = EST
				original_tag = FIN
				original_tag = SWE
				original_tag = DEN
				original_tag = NOR
				original_tag = ICE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_baltoscandia_requirements_cflag
		}
	}
}

formable_baltoscandia_category = {
	formable_baltoscandia_form_decision = {
		icon = formable_baltoscandia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_baltoscandia_form_decision_tt
						count_triggers = {
							amount = 50	#63 total states required
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							37 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							100 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1024 = { is_fully_controlled_by = ROOT }
							1025 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1043 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BSC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BSC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 37
				add_state_core = 38
				add_state_core = 99
				add_state_core = 100
				add_state_core = 110
				add_state_core = 111
				add_state_core = 124
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 337
				add_state_core = 666
				add_state_core = 722
				add_state_core = 784
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				add_state_core = 964
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 970
				add_state_core = 998
				add_state_core = 1024
				add_state_core = 1025
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1043
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_baltoscandia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_baltoscandia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_baltoscandia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_benelux_show_decision = {
		icon = formable_benelux
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FLA
				original_tag = WLL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_benelux_requirements_cflag
		}
	}
}

formable_benelux_category = {
	formable_benelux_form_decision = {
		icon = formable_benelux
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_benelux_form_decision_tt
						count_triggers = {
							amount = 9	#9 total states required
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BEN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BEN
			set_capital = {
				state = 7
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 965
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_benelux_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_benelux_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_benelux_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_bengal_empire_show_decision = {
		icon = formable_bengal_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_bengal_empire_requirements_cflag
		}
	}
}

formable_bengal_empire_category = {
	formable_bengal_empire_form_decision = {
		icon = formable_bengal_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_bengal_empire_form_decision_tt
						count_triggers = {
							amount = 4	#4 total states required
							430 = { is_fully_controlled_by = ROOT }
							431 = { is_fully_controlled_by = ROOT }
							432 = { is_fully_controlled_by = ROOT }
							435 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BEE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BEE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 430
				add_state_core = 431
				add_state_core = 432
				add_state_core = 435
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_bengal_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_bengal_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_bengal_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_bourbon_empire_show_decision = {
		icon = formable_bourbon_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CAT
				original_tag = FRA
				original_tag = NAP
				original_tag = SPR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_bourbon_empire_requirements_cflag
		}
	}
}
 
formable_bourbon_empire_category = {
	formable_bourbon_empire_form_decision = {
		icon = formable_bourbon_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_bourbon_empire_form_decision_tt
						count_triggers = {
							amount = 43	#54 total states required
							1 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BBE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BBE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 41
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 156
				add_state_core = 157
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 735
				add_state_core = 785
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 806
				add_state_core = 849
				add_state_core = 851
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_bourbon_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_bourbon_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_bourbon_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_bulgarian_empire_show_decision = {
		icon = formable_bulgarian_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BUL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_bulgarian_empire_requirements_cflag
		}
	}
}

formable_bulgarian_empire_category = {
	formable_bulgarian_empire_form_decision = {
		icon = formable_bulgarian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_bulgarian_empire_form_decision_tt
						count_triggers = {
							amount = 20	#22 total states required
							44 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BUE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BUE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 46
				add_state_core = 48
				add_state_core = 77
				add_state_core = 81
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 184
				add_state_core = 211
				add_state_core = 212
				add_state_core = 731
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 805
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 955
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_bulgarian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_bulgarian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_bulgarian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_burgundy_show_decision = {
		icon = formable_burgundy
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = FLA
				original_tag = WLL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_burgundy_requirements_cflag
		}
	}
}

formable_burgundy_category = {
	formable_burgundy_form_decision = {
		icon = formable_burgundy
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_burgundy_form_decision_tt
						count_triggers = {
							amount = 10	#13 total states required
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BGY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BGY
			add_state_core = 18
			add_state_core = 36
			add_state_core = 42
			add_state_core = 51
			add_state_core = 785
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 17
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 34
				add_state_core = 35
				add_state_core = 965
				add_state_core = 1053
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_burgundy_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_burgundy_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_burgundy_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_byzantium_show_decision = {
		icon = formable_byzantium
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GRE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_byzantium_requirements_cflag
		}
	}
}

formable_byzantium_category = {
	formable_byzantium_form_decision = {
		icon = formable_byzantium
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_byzantium_form_decision_tt
						count_triggers = {
							amount = 40	#47 total states required
							44 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { OR = { has_cosmetic_tag = FORM_BYZ   has_cosmetic_tag = FORM_BYZ_r } } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BYZ
			
			hidden_effect = {
				sound_effect = complete_focus
				
				if = {
					limit = { 44 = { is_fully_controlled_by = ROOT } }
					44 = { set_state_name = "Illyria" }
					set_province_name = { id = 9914 name = "Kastrioti" }
					set_province_name = { id = 11767 name = "Aulon" }
				}
				if = {
					limit = { 48 = { is_fully_controlled_by = ROOT } }
					48 = { set_state_name = "Serdica" }
					set_province_name = { id = 949 name = "Serdica" }
				}
				if = {
					limit = { 49 = { is_fully_controlled_by = ROOT } }
					49 = { set_state_name = "Bukellarion" }
					set_province_name = { id = 11747 name = "Ancyra" }
					set_province_name = { id = 3951 name = "Dorylaion" }
				}
				if = {
					limit = { 77 = { is_fully_controlled_by = ROOT } }
					77 = { set_state_name = "Anchialus" }
					set_province_name = { id = 11597 name = "Mesembria" }
				}
				if = {
					limit = { 104 = { is_fully_controlled_by = ROOT } }
					104 = { set_state_name = "Bosona" }
				}
				if = {
					limit = { 105 = { is_fully_controlled_by = ROOT } }
					105 = { set_state_name = "Dyrrhachion" }
					set_province_name = { id = 9809 name = "Dyrrhachium" }
				}
				if = {
					limit = { 106 = { is_fully_controlled_by = ROOT } }
					106 = { set_state_name = "Boulgarias" }
					set_province_name = { id = 3882 name = "Scupi" }
				}
				if = {
					limit = { 107 = { is_fully_controlled_by = ROOT } }
					107 = { set_state_name = "Sirmium" }
					set_province_name = { id = 11586 name = "Belograd" }
				}
				if = {
					limit = { 108 = { is_fully_controlled_by = ROOT } }
					108 = { set_state_name = "Pizren" }
					set_province_name = { id = 9602 name = "Naissus" }
				}
				if = {
					limit = { 184 = { is_fully_controlled_by = ROOT } }
					184 = { set_state_name = "Strymon" }
				}
				if = {
					limit = { 211 = { is_fully_controlled_by = ROOT } }
					211 = { set_state_name = "Pyrgos" }
					set_province_name = { id = 9902 name = "Poros" }
					set_province_name = { id = 9783 name = "Odessos" }
				}
				if = {
					limit = { 212 = { is_fully_controlled_by = ROOT } }
					212 = { set_state_name = "Philippopolis" }
					set_province_name = { id = 6923 name = "Philippopolis" }
				}
				if = {
					limit = { 339 = { is_fully_controlled_by = ROOT } }				
					339 = { set_state_name = "Smyrni" }
					set_province_name = { id = 4112 name = "Smyrna" }
					set_province_name = { id = 928 name = "Magnesia" }
				}
				if = {
					limit = { 340 = { is_fully_controlled_by = ROOT } }				
					340 = { set_state_name = "Prousa" }
					set_province_name = { id = 947 name = "Prousa" } 
					set_province_name = { id = 9799 name = "Palaeokastron" }
				}
				if = {
					limit = { 341 = { is_fully_controlled_by = ROOT } }
					341 = { set_state_name = "Thrace" }
					set_province_name = { id = 11842 name = "Adrianople" }
				}
				if = {
					limit = { 342 = { is_fully_controlled_by = ROOT } }
					342 = { set_state_name = "Cibyrrhaeot" }
					set_province_name = { id = 1005 name = "Attaleia" }
				}
				if = {
					limit = { 343 = { is_fully_controlled_by = ROOT } }
					343 = { set_state_name = "Thrakesion" }
					set_province_name = { id = 9878 name = "Nicopolis" }
					set_province_name = { id = 10041 name = "Attouda" }
				}
				if = {
					limit = { 344 = { is_fully_controlled_by = ROOT } }
					344 = { set_state_name = "Cilicia" }
					set_province_name = { id = 11746 name = "Tarsus" }
					set_province_name = { id = 9893 name = "Ravanda" }
					set_province_name = { id = 7620 name = "Melitene" }
				}
				if = {
					limit = { 345 = { is_fully_controlled_by = ROOT } }
					345 = { set_state_name = "Seleucia" }
					set_province_name = { id = 10056 name = "Hadrianopolis" }
				}
				if = {
					limit = { 346 = { is_fully_controlled_by = ROOT } }
					346 = { set_state_name = "Anatolikon" }
				}
				if = {
					limit = { 347 = { is_fully_controlled_by = ROOT } }
					347 = { set_state_name = "Optimaton" }
					set_province_name = { id = 11811 name = "Nikomedeia" }
					set_province_name = { id = 904 name = "Pontoheraclea" }
				}
				if = {
					limit = { 348 = { is_fully_controlled_by = ROOT } }
					348 = { set_state_name = "Cappadocia" }
					set_province_name = { id = 3870 name = "Caesarea" }
				}
				if = {
					limit = { 349 = { is_fully_controlled_by = ROOT } }
					349 = { set_state_name = "Koloneia" }
					set_province_name = { id = 9777 name = "Sebasteia" }
				}
				if = {
					limit = { 350 = { is_fully_controlled_by = ROOT } }
					350 = { set_state_name = "Melitene" }
					set_province_name = { id = 9823 name = "Justinopolis" }
					set_province_name = { id = 4512 name = "Amida" }
				}
				if = {
					limit = { 352 = { is_fully_controlled_by = ROOT } }
					352 = { set_state_name = "Hubushkia" }
					set_province_name = { id = 12476 name = "Kondylis" }
				}
				if = {
					limit = { 353 = { is_fully_controlled_by = ROOT } }
					353 = { set_state_name = "Manzikert" }
				}
				if = {
					limit = { 354 = { is_fully_controlled_by = ROOT } }
					354 = { set_state_name = "Chaldia" }
					set_province_name = { id = 9932 name = "Trebizond" }
					set_province_name = { id = 11853 name = "Theodosiopolis" }
				}
				if = {
					limit = { 355 = { is_fully_controlled_by = ROOT } }
					355 = { set_state_name = "Armeniakon" }
					set_province_name = { id = 11881 name = "Amisos" }
				}
				if = {
					limit = { 356 = { is_fully_controlled_by = ROOT } }
					356 = { set_state_name = "Paphlagonia" }
					set_province_name = { id = 6995 name = "Sinope" }
					set_province_name = { id = 6938 name = "Kastamone" }
				}
				if = {
					limit = { 731 = { is_fully_controlled_by = ROOT } }
					731 = { set_state_name = "Thessalonica" }
				}
				if = {
					limit = { 797 = { is_fully_controlled_by = ROOT } }
					797 = { set_state_name = "Constantinople" }
					set_province_name = { id = 9833 name = "Constantinople" }
				}
				if = {
					limit = { 798 = { is_fully_controlled_by = ROOT } }
					798 = { set_state_name = "Carsiano" }
					set_province_name = { id = 919 name = "Amaseia" }
					set_province_name = { id = 3862 name = "Taouion" }
				}
				if = {
					limit = { 799 = { is_fully_controlled_by = ROOT } }
					799 = { set_state_name = "Antioch" }
					set_province_name = { id = 12029 name = "Antiochia" }
				}
				if = {
					limit = { 800 = { is_fully_controlled_by = ROOT } }
					800 = { set_state_name = "Vaspurakan" }
					set_province_name = { id = 6935 name = "Eua" }
				}
				if = {
					limit = { 805 = { is_fully_controlled_by = ROOT } }
					set_province_name = { id = 914 name = "Argyrokastro" }
				}
				add_state_core = 44
				add_state_core = 47
				add_state_core = 48
				add_state_core = 49
				add_state_core = 77
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 137
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 731
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 805
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_byzantium_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_byzantium_switch_name = {
		cost = 0  days_re_enable = 0
		available = {
			custom_trigger_tooltip = {
				tooltip = formable_byzantium_switch_name_tt
				OR = {
					has_cosmetic_tag = FORM_BYZ
					has_cosmetic_tag = FORM_BYZ_r
				}
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			if = {
				limit = {
					has_cosmetic_tag = FORM_BYZ
				}
				set_cosmetic_tag = FORM_BYZ_r
			}
			else = {
				set_cosmetic_tag = FORM_BYZ
			}
			hidden_effect = {
				sound_effect = complete_focus
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_byzantium_requirements_cflag
			}
		}
	}
	formable_byzantium_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_byzantium_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_caribbean_show_decision = {
		icon = formable_caribbean
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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 
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_caribbean_requirements_cflag
		}
	}
}

formable_caribbean_category = {
	formable_caribbean_form_decision = {
		icon = formable_caribbean
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_caribbean_form_decision_tt
						count_triggers = {
							amount = 16	#22 total states required
							308 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							689 = { is_fully_controlled_by = ROOT }
							690 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							692 = { is_fully_controlled_by = ROOT }
							693 = { is_fully_controlled_by = ROOT }
							694 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							972 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							1050 = { is_fully_controlled_by = ROOT }
							1079 = { is_fully_controlled_by = ROOT }
							1080 = { is_fully_controlled_by = ROOT }
							1081 = { is_fully_controlled_by = ROOT }
							1082 = { is_fully_controlled_by = ROOT }
							1083 = { is_fully_controlled_by = ROOT }
							1084 = { is_fully_controlled_by = ROOT }
							1085 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CAB } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CAB
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 308
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 686
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 695
				add_state_core = 972
				add_state_core = 994
				add_state_core = 1050
				add_state_core = 1079
				add_state_core = 1080
				add_state_core = 1081
				add_state_core = 1082
				add_state_core = 1083
				add_state_core = 1084
				add_state_core = 1085
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_caribbean_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_caribbean_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_caribbean_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_carolingian_empire_show_decision = {
		icon = formable_carolingian_empire
		cost = 0  days_re_enable = 0
		visible = {
			always = no
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = GER
				original_tag = AUS
				original_tag = LIE
				original_tag = SWI
				original_tag = MNC
				original_tag = SAR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_carolingian_empire_requirements_cflag
		}
	}
}

formable_carolingian_empire_category = {
	formable_carolingian_empire_form_decision = {
		icon = formable_carolingian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_carolingian_empire_form_decision_tt
						count_triggers = {
							amount = 60	#85 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CRL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CRL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 39
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 102
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 165
				add_state_core = 166
				add_state_core = 172
				add_state_core = 735
				add_state_core = 736
				add_state_core = 785
				add_state_core = 792
				add_state_core = 794
				add_state_core = 806
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 912
				add_state_core = 922
				add_state_core = 923
				add_state_core = 956
				add_state_core = 957
				add_state_core = 965
				add_state_core = 973
				add_state_core = 989
				add_state_core = 997
				add_state_core = 998
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_carolingian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_carolingian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_carolingian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_carpathia_show_decision = {
		icon = formable_carpathia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HUN
				original_tag = SLO
				original_tag = ROM
				original_tag = MOL
				original_tag = UKR
				original_tag = RUT
				original_tag = TRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_carpathia_requirements_cflag
		}
	}
}

formable_carpathia_category = {
	formable_carpathia_form_decision = {
		icon = formable_carpathia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_carpathia_form_decision_tt
						count_triggers = {
							amount = 14	#16 total states required
							43 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CAP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CAP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 43
				add_state_core = 46
				add_state_core = 70
				add_state_core = 71
				add_state_core = 73
				add_state_core = 76
				add_state_core = 79
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 154
				add_state_core = 155
				add_state_core = 664
				add_state_core = 913
				add_state_core = 996
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_carpathia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_carpathia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_carpathia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_carthage_show_decision = {
		icon = formable_carthage
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TUN
				original_tag = ALG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_carthage_requirements_cflag
		}
	}
}

formable_carthage_category = {
	formable_carthage_form_decision = {
		icon = formable_carthage
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_carthage_form_decision_tt
						count_triggers = {
							amount = 20	#21 total states required
							1 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CAR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CAR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 118
				add_state_core = 167
				add_state_core = 168
				add_state_core = 173
				add_state_core = 177
				add_state_core = 290
				add_state_core = 448
				add_state_core = 449
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 513
				add_state_core = 661
				add_state_core = 662
				add_state_core = 665
				add_state_core = 933
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_carthage_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_carthage_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_carthage_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_celtic_union_show_decision = {
		icon = formable_celtic_union
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = IRE
				original_tag = NIR
				original_tag = SCO
				original_tag = WLS
				original_tag = BRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_celtic_union_requirements_cflag
		}
	}
}

formable_celtic_union_category = {
	formable_celtic_union_form_decision = {
		icon = formable_celtic_union
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_celtic_union_form_decision_tt
						count_triggers = {
							amount = 12	#13 total states required
							14 = { is_fully_controlled_by = ROOT }
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CEL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CEL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 14
				add_state_core = 113
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 970
				add_state_core = 971
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_celtic_union_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_celtic_union_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_celtic_union_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_central_america_show_decision = {
		icon = formable_central_america
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GUA
				original_tag = ELS
				original_tag = HON
				original_tag = NIC
				original_tag = COS
				original_tag = BLZ 
				original_tag = PAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_central_america_requirements_cflag
		}
	}
}

formable_central_america_category = {
	formable_central_america_form_decision = {
		icon = formable_central_america
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_central_america_form_decision_tt
						count_triggers = {
							amount = 8	#9 total states required
							304 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CEN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			if = {
				limit = { has_cosmetic_tag = UFC }
				custom_effect_tooltip = FORMABLE_BANANA_REPUBLIC_EXISTS_TT
				set_cosmetic_tag = FORM_CEN_BANANA
			}
			else = { set_cosmetic_tag = FORM_CEN }
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 1051
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 304
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 685
				add_state_core = 937
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_central_america_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_central_america_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_central_america_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_chile_argentina_show_decision = {
		icon = formable_chile_argentina
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHL
				original_tag = ARG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_chile_argentina_requirements_cflag
		}
	}
}

formable_chile_argentina_category = {
	formable_chile_argentina_form_decision = {
		icon = formable_chile_argentina
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_chile_argentina_form_decision_tt
						count_triggers = {
							amount = 20	#20 total states required
							507 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							278 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CHG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CHG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 507
				add_state_core = 279
				add_state_core = 506
				add_state_core = 512
				add_state_core = 511
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 278
				add_state_core = 954
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_chile_argentina_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_chile_argentina_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_chile_argentina_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_china_show_decision = {
		icon = formable_china
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = YUN
				original_tag = GXC
				original_tag = XSM
				original_tag = SHX
				original_tag = PRC
				original_tag = SIK
				original_tag = MAN
				original_tag = MEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_china_requirements_cflag
		}
	}
}

formable_china_category = {
	formable_china_form_decision = {
		icon = formable_china
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_china_form_decision_tt
						count_triggers = {
							amount = 60	#69 total states required
							283 = { is_fully_controlled_by = ROOT }
							287 = { is_fully_controlled_by = ROOT }
							325 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							328 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							600 = { is_fully_controlled_by = ROOT }
							601 = { is_fully_controlled_by = ROOT }
							602 = { is_fully_controlled_by = ROOT }
							603 = { is_fully_controlled_by = ROOT }
							604 = { is_fully_controlled_by = ROOT }
							605 = { is_fully_controlled_by = ROOT }
							606 = { is_fully_controlled_by = ROOT }
							607 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							610 = { is_fully_controlled_by = ROOT }
							611 = { is_fully_controlled_by = ROOT }
							612 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							615 = { is_fully_controlled_by = ROOT }
							616 = { is_fully_controlled_by = ROOT }
							617 = { is_fully_controlled_by = ROOT }
							618 = { is_fully_controlled_by = ROOT }
							619 = { is_fully_controlled_by = ROOT }
							620 = { is_fully_controlled_by = ROOT }
							621 = { is_fully_controlled_by = ROOT }
							622 = { is_fully_controlled_by = ROOT }
							714 = { is_fully_controlled_by = ROOT }
							715 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							744 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							746 = { is_fully_controlled_by = ROOT }
							747 = { is_fully_controlled_by = ROOT }
							748 = { is_fully_controlled_by = ROOT }
							749 = { is_fully_controlled_by = ROOT }
							750 = { is_fully_controlled_by = ROOT }
							751 = { is_fully_controlled_by = ROOT }
							752 = { is_fully_controlled_by = ROOT }
							753 = { is_fully_controlled_by = ROOT }
							754 = { is_fully_controlled_by = ROOT }
							755 = { is_fully_controlled_by = ROOT }
							756 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							760 = { is_fully_controlled_by = ROOT }
							761 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							944 = { is_fully_controlled_by = ROOT }
							945 = { is_fully_controlled_by = ROOT }
							946 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
							1075 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = CHI } } NOT = { country_exists = CHI } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = CHI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 283
				add_state_core = 287
				add_state_core = 325
				add_state_core = 326
				add_state_core = 328
				add_state_core = 524
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 601
				add_state_core = 602
				add_state_core = 603
				add_state_core = 604
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 728
				add_state_core = 729
				add_state_core = 743
				add_state_core = 744
				add_state_core = 745
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 759
				add_state_core = 760
				add_state_core = 761
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				add_state_core = 1075
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_china_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_china_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_china_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_china_proper_show_decision = {
		icon = formable_china_proper
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
				original_tag = YUN
				original_tag = GXC
				original_tag = XSM
				original_tag = SHX
				original_tag = PRC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_china_proper_requirements_cflag
		}
	}
}

formable_china_proper_category = {
	formable_china_proper_form_decision = {
		icon = formable_china_proper
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_china_proper_form_decision_tt
						count_triggers = {
							amount = 40	#45 total states required
							283 = { is_fully_controlled_by = ROOT }
							325 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							600 = { is_fully_controlled_by = ROOT }
							602 = { is_fully_controlled_by = ROOT }
							603 = { is_fully_controlled_by = ROOT }
							604 = { is_fully_controlled_by = ROOT }
							605 = { is_fully_controlled_by = ROOT }
							606 = { is_fully_controlled_by = ROOT }
							607 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							615 = { is_fully_controlled_by = ROOT }
							616 = { is_fully_controlled_by = ROOT }
							620 = { is_fully_controlled_by = ROOT }
							621 = { is_fully_controlled_by = ROOT }
							622 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							744 = { is_fully_controlled_by = ROOT }
							746 = { is_fully_controlled_by = ROOT }
							747 = { is_fully_controlled_by = ROOT }
							748 = { is_fully_controlled_by = ROOT }
							749 = { is_fully_controlled_by = ROOT }
							750 = { is_fully_controlled_by = ROOT }
							751 = { is_fully_controlled_by = ROOT }
							752 = { is_fully_controlled_by = ROOT }
							753 = { is_fully_controlled_by = ROOT }
							754 = { is_fully_controlled_by = ROOT }
							755 = { is_fully_controlled_by = ROOT }
							756 = { is_fully_controlled_by = ROOT }
							1075 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CHP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CHP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 283
				add_state_core = 325
				add_state_core = 326
				add_state_core = 524
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 602
				add_state_core = 603
				add_state_core = 604
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 728
				add_state_core = 729
				add_state_core = 743
				add_state_core = 744
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 1075
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_china_proper_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_china_proper_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_china_proper_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_chinese_empire_show_decision = {
		icon = formable_chinese_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
				original_tag = YUN
				original_tag = GXC
				original_tag = XSM
				original_tag = SHX
				original_tag = CHI
				original_tag = SIK
				original_tag = PRC
				original_tag = TNG
				original_tag = MAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_chinese_empire_requirements_cflag
		}
	}
}

formable_chinese_empire_category = {
	formable_chinese_empire_form_decision = {
		icon = formable_chinese_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_chinese_empire_form_decision_tt
						count_triggers = {
								amount = 75	#82 total states required
								283 = { is_fully_controlled_by = ROOT }
								287 = { is_fully_controlled_by = ROOT }
								322 = { is_fully_controlled_by = ROOT }
								325 = { is_fully_controlled_by = ROOT }
								326 = { is_fully_controlled_by = ROOT }
								328 = { is_fully_controlled_by = ROOT }
								329 = { is_fully_controlled_by = ROOT }
								330 = { is_fully_controlled_by = ROOT }
								434 = { is_fully_controlled_by = ROOT }
								524 = { is_fully_controlled_by = ROOT }
								591 = { is_fully_controlled_by = ROOT }
								592 = { is_fully_controlled_by = ROOT }
								593 = { is_fully_controlled_by = ROOT }
								594 = { is_fully_controlled_by = ROOT }
								595 = { is_fully_controlled_by = ROOT }
								596 = { is_fully_controlled_by = ROOT }
								597 = { is_fully_controlled_by = ROOT }
								598 = { is_fully_controlled_by = ROOT }
								599 = { is_fully_controlled_by = ROOT }
								600 = { is_fully_controlled_by = ROOT }
								601 = { is_fully_controlled_by = ROOT }
								602 = { is_fully_controlled_by = ROOT }
								603 = { is_fully_controlled_by = ROOT }
								604 = { is_fully_controlled_by = ROOT }
								605 = { is_fully_controlled_by = ROOT }
								606 = { is_fully_controlled_by = ROOT }
								607 = { is_fully_controlled_by = ROOT }
								608 = { is_fully_controlled_by = ROOT }
								609 = { is_fully_controlled_by = ROOT }
								610 = { is_fully_controlled_by = ROOT }
								611 = { is_fully_controlled_by = ROOT }
								612 = { is_fully_controlled_by = ROOT }
								613 = { is_fully_controlled_by = ROOT }
								614 = { is_fully_controlled_by = ROOT }
								615 = { is_fully_controlled_by = ROOT }
								616 = { is_fully_controlled_by = ROOT }
								617 = { is_fully_controlled_by = ROOT }
								618 = { is_fully_controlled_by = ROOT }
								619 = { is_fully_controlled_by = ROOT }
								620 = { is_fully_controlled_by = ROOT }
								621 = { is_fully_controlled_by = ROOT }
								622 = { is_fully_controlled_by = ROOT }
								671 = { is_fully_controlled_by = ROOT }
								714 = { is_fully_controlled_by = ROOT }
								715 = { is_fully_controlled_by = ROOT }
								716 = { is_fully_controlled_by = ROOT }
								717 = { is_fully_controlled_by = ROOT }
								728 = { is_fully_controlled_by = ROOT }
								729 = { is_fully_controlled_by = ROOT }
								732 = { is_fully_controlled_by = ROOT }
								742 = { is_fully_controlled_by = ROOT }
								743 = { is_fully_controlled_by = ROOT }
								744 = { is_fully_controlled_by = ROOT }
								745 = { is_fully_controlled_by = ROOT }
								746 = { is_fully_controlled_by = ROOT }
								747 = { is_fully_controlled_by = ROOT }
								748 = { is_fully_controlled_by = ROOT }
								749 = { is_fully_controlled_by = ROOT }
								750 = { is_fully_controlled_by = ROOT }
								751 = { is_fully_controlled_by = ROOT }
								752 = { is_fully_controlled_by = ROOT }
								753 = { is_fully_controlled_by = ROOT }
								754 = { is_fully_controlled_by = ROOT }
								755 = { is_fully_controlled_by = ROOT }
								756 = { is_fully_controlled_by = ROOT }
								757 = { is_fully_controlled_by = ROOT }
								758 = { is_fully_controlled_by = ROOT }
								759 = { is_fully_controlled_by = ROOT }
								760 = { is_fully_controlled_by = ROOT }
								761 = { is_fully_controlled_by = ROOT }
								817 = { is_fully_controlled_by = ROOT }
								818 = { is_fully_controlled_by = ROOT }
								819 = { is_fully_controlled_by = ROOT }
								820 = { is_fully_controlled_by = ROOT }
								941 = { is_fully_controlled_by = ROOT }
								942 = { is_fully_controlled_by = ROOT }
								943 = { is_fully_controlled_by = ROOT }
								944 = { is_fully_controlled_by = ROOT }
								945 = { is_fully_controlled_by = ROOT }
								946 = { is_fully_controlled_by = ROOT }
								947 = { is_fully_controlled_by = ROOT }
								1075 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_QIN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_QIN
			set_capital = {
				state = 608
			}
			add_state_core = 525
			add_state_core = 527
			add_state_core = 917
			add_state_core = 918
			add_state_core = 919
			add_state_core = 920
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 283
				add_state_core = 287
				add_state_core = 322
				add_state_core = 325
				add_state_core = 326
				add_state_core = 328
				add_state_core = 329
				add_state_core = 330
				add_state_core = 434
				add_state_core = 524
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 601
				add_state_core = 602
				add_state_core = 603
				add_state_core = 604
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 671
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 728
				add_state_core = 729
				add_state_core = 732
				add_state_core = 742
				add_state_core = 743
				add_state_core = 744
				add_state_core = 745
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 757
				add_state_core = 758
				add_state_core = 759
				add_state_core = 760
				add_state_core = 761
				add_state_core = 817
				add_state_core = 818
				add_state_core = 819
				add_state_core = 820
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				add_state_core = 1075
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_chinese_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_chinese_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_chinese_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_commonwealth_show_decision = {
		icon = formable_commonwealth
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = POL
				original_tag = LIT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_commonwealth_requirements_cflag
		}
	}
}

formable_commonwealth_category = {
	formable_commonwealth_form_decision = {
		icon = formable_commonwealth
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_commonwealth_form_decision_tt
						count_triggers = {
							amount = 52	#58 total states required
							5 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							210 = { is_fully_controlled_by = ROOT }
							220 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							224 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							240 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							242 = { is_fully_controlled_by = ROOT }
							243 = { is_fully_controlled_by = ROOT }
							246 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_COM } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_COM
			set_capital = {
				state = 10
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5	
				add_state_core = 10	
				add_state_core = 11	
				add_state_core = 12	
				add_state_core = 13	
				add_state_core = 80	
				add_state_core = 85	
				add_state_core = 86	
				add_state_core = 87	
				add_state_core = 88	
				add_state_core = 89	
				add_state_core = 90	
				add_state_core = 91	
				add_state_core = 92	
				add_state_core = 93	
				add_state_core = 94	
				add_state_core = 95	
				add_state_core = 96	
				add_state_core = 97	
				add_state_core = 98	
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 193
				add_state_core = 194
				add_state_core = 198
				add_state_core = 199
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 206
				add_state_core = 207
				add_state_core = 210
				add_state_core = 220
				add_state_core = 221
				add_state_core = 224
				add_state_core = 225
				add_state_core = 226
				add_state_core = 240
				add_state_core = 241
				add_state_core = 242
				add_state_core = 243
				add_state_core = 246
				add_state_core = 259
				add_state_core = 762
				add_state_core = 763
				add_state_core = 784
				add_state_core = 807
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 814
				add_state_core = 815
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_commonwealth_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_commonwealth_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_commonwealth_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_dacia_show_decision = {
		icon = formable_dacia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ROM
				original_tag = MOL
				original_tag = TRA
				original_tag = RUT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_dacia_requirements_cflag
		}
	}
}

formable_dacia_category = {
	formable_dacia_form_decision = {
		icon = formable_dacia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_dacia_form_decision_tt
						count_triggers = {
							amount = 18	#21 total states required
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_DAC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_DAC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 43
				add_state_core = 45
				add_state_core = 46
				add_state_core = 73
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 154
				add_state_core = 211
				add_state_core = 764
				add_state_core = 766
				add_state_core = 801
				add_state_core = 913
				add_state_core = 955
				add_state_core = 996
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_dacia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_dacia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_dacia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_danelaw_show_decision = {
		icon = formable_danelaw
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_danelaw_requirements_cflag
		}
	}
}

formable_danelaw_category = {
	formable_danelaw_form_decision = {
		icon = formable_danelaw
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_danelaw_form_decision_tt
						count_triggers = {
							amount = 10	#13 total states required
							37 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1024 = { is_fully_controlled_by = ROOT }
							1025 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_DLW } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_DLW
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 37
				add_state_core = 99
				add_state_core = 125
				add_state_core = 126
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 142
				add_state_core = 964
				add_state_core = 967
				add_state_core = 998
				add_state_core = 1024
				add_state_core = 1025
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_danelaw_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_danelaw_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_danelaw_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_devlet_i_rum_show_decision = {
		icon = formable_devlet_i_rum
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_devlet_i_rum_requirements_cflag
		}
	}
}
 
formable_devlet_i_rum_category = {
	formable_devlet_i_rum_form_decision = {
		icon = formable_devlet_i_rum
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_devlet_i_rum_form_decision_tt
						count_triggers = {
							amount = 38	#48 total states required
							2 = { is_fully_controlled_by = ROOT }
							44 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_DIR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_DIR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 2
				add_state_core = 44
				add_state_core = 46
				add_state_core = 47
				add_state_core = 48
				add_state_core = 49
				add_state_core = 77
				add_state_core = 81
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 731
				add_state_core = 797
				add_state_core = 798
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 955
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_devlet_i_rum_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_devlet_i_rum_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_devlet_i_rum_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_dominion_of_china_show_decision = {
		icon = formable_dominion_of_china
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_dominion_of_china_requirements_cflag
		}
	}
}

formable_dominion_of_china_category = {
	formable_dominion_of_china_form_decision = {
		icon = formable_dominion_of_china
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_dominion_of_china_form_decision_tt2
						ROOT = {
							OR = {
								has_government = democratic
								has_government = neutrality
							}
						}
					}
					custom_trigger_tooltip = { tooltip = formable_dominion_of_china_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_dominion_of_china_form_decision_tt
						any_subject_country = {
							owns_state = 326 #Hong Kong
							count_triggers = {
								amount = 20	#32 total states required
								325 = { is_fully_controlled_by = ROOT }
								326 = { is_fully_controlled_by = ROOT }
								524 = { is_fully_controlled_by = ROOT }
								591 = { is_fully_controlled_by = ROOT }
								592 = { is_fully_controlled_by = ROOT }
								593 = { is_fully_controlled_by = ROOT }
								594 = { is_fully_controlled_by = ROOT }
								595 = { is_fully_controlled_by = ROOT }
								596 = { is_fully_controlled_by = ROOT }
								597 = { is_fully_controlled_by = ROOT }
								598 = { is_fully_controlled_by = ROOT }
								599 = { is_fully_controlled_by = ROOT }
								600 = { is_fully_controlled_by = ROOT }
								602 = { is_fully_controlled_by = ROOT }
								603 = { is_fully_controlled_by = ROOT }
								605 = { is_fully_controlled_by = ROOT }
								606 = { is_fully_controlled_by = ROOT }
								607 = { is_fully_controlled_by = ROOT }
								608 = { is_fully_controlled_by = ROOT }
								609 = { is_fully_controlled_by = ROOT }
								613 = { is_fully_controlled_by = ROOT }
								614 = { is_fully_controlled_by = ROOT }
								620 = { is_fully_controlled_by = ROOT }
								728 = { is_fully_controlled_by = ROOT }
								729 = { is_fully_controlled_by = ROOT }
								743 = { is_fully_controlled_by = ROOT }
								744 = { is_fully_controlled_by = ROOT }
								747 = { is_fully_controlled_by = ROOT }
								748 = { is_fully_controlled_by = ROOT }
								749 = { is_fully_controlled_by = ROOT }
								750 = { is_fully_controlled_by = ROOT }
								751 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BRC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 326 } #Hong Kong
				set_cosmetic_tag = FORM_BRC
				set_capital = {
					state = 326
				}
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					overlord = {
						set_autonomy = {
							target = PREV
							autonomy_state = autonomy_dominion
							end_wars = no
							end_civil_wars = no
						}
						if = {
							limit = { has_government = democratic }
							PREV = {
								set_politics = {
									ruling_party = democratic
									elections_allowed = yes
									election_frequency = 48
								}
							}
						}
						else_if = {
							limit = { has_government = neutrality }
							PREV = {
								set_politics = {
									ruling_party = neutrality
									elections_allowed = no
								}
							}
						}
					}
					
					add_state_core = 325
					add_state_core = 326
					add_state_core = 524
					add_state_core = 591
					add_state_core = 592
					add_state_core = 593
					add_state_core = 594
					add_state_core = 595
					add_state_core = 596
					add_state_core = 597
					add_state_core = 598
					add_state_core = 599
					add_state_core = 600
					add_state_core = 602
					add_state_core = 603
					add_state_core = 605
					add_state_core = 606
					add_state_core = 607
					add_state_core = 608
					add_state_core = 609
					add_state_core = 613
					add_state_core = 614
					add_state_core = 620
					add_state_core = 728
					add_state_core = 729
					add_state_core = 743
					add_state_core = 744
					add_state_core = 747
					add_state_core = 748
					add_state_core = 749
					add_state_core = 750
					add_state_core = 751
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_dominion_of_china_requirements_cflag
			}
		}
	}
	formable_dominion_of_china_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_dominion_of_china_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_dutch_colonial_empire_show_decision = {
		icon = formable_dutch_colonial_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_dutch_colonial_empire_requirements_cflag
		}
	}
}

formable_dutch_colonial_empire_category = {
	formable_dutch_colonial_empire_form_decision = {
		icon = formable_dutch_colonial_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_dutch_colonial_empire_form_decision_tt
						count_triggers = {
							amount = 50	#73 total states required
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							274 = { is_fully_controlled_by = ROOT }
							275 = { is_fully_controlled_by = ROOT }
							284 = { is_fully_controlled_by = ROOT }
							309 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							320 = { is_fully_controlled_by = ROOT }
							321 = { is_fully_controlled_by = ROOT }
							333 = { is_fully_controlled_by = ROOT }
							334 = { is_fully_controlled_by = ROOT }
							335 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							359 = { is_fully_controlled_by = ROOT }
							360 = { is_fully_controlled_by = ROOT }
							422 = { is_fully_controlled_by = ROOT }
							423 = { is_fully_controlled_by = ROOT }
							425 = { is_fully_controlled_by = ROOT }
							446 = { is_fully_controlled_by = ROOT }
							496 = { is_fully_controlled_by = ROOT }
							497 = { is_fully_controlled_by = ROOT }
							498 = { is_fully_controlled_by = ROOT }
							499 = { is_fully_controlled_by = ROOT }
							500 = { is_fully_controlled_by = ROOT }
							505 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							668 = { is_fully_controlled_by = ROOT }
							669 = { is_fully_controlled_by = ROOT }
							672 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							719 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							723 = { is_fully_controlled_by = ROOT }
							738 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							909 = { is_fully_controlled_by = ROOT }
							916 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							938 = { is_fully_controlled_by = ROOT }
							939 = { is_fully_controlled_by = ROOT }
							940 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							974 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							976 = { is_fully_controlled_by = ROOT }
							977 = { is_fully_controlled_by = ROOT }
							978 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
							999 = { is_fully_controlled_by = ROOT }
							1000 = { is_fully_controlled_by = ROOT }
							1001 = { is_fully_controlled_by = ROOT }
							1003 = { is_fully_controlled_by = ROOT }
							1004 = { is_fully_controlled_by = ROOT }
							1005 = { is_fully_controlled_by = ROOT }
							1006 = { is_fully_controlled_by = ROOT }
							1056 = { is_fully_controlled_by = ROOT }
							1057 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
							1096 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_DEC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_DCE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 274
				add_state_core = 275
				add_state_core = 284
				add_state_core = 309
				add_state_core = 310
				add_state_core = 320
				add_state_core = 321
				add_state_core = 333
				add_state_core = 334
				add_state_core = 335
				add_state_core = 357
				add_state_core = 358
				add_state_core = 359
				add_state_core = 360
				add_state_core = 422
				add_state_core = 423
				add_state_core = 425
				add_state_core = 446
				add_state_core = 496
				add_state_core = 497
				add_state_core = 498
				add_state_core = 499
				add_state_core = 500
				add_state_core = 505
				add_state_core = 523
				add_state_core = 524
				add_state_core = 667
				add_state_core = 668
				add_state_core = 669
				add_state_core = 672
				add_state_core = 673
				add_state_core = 681
				add_state_core = 687
				add_state_core = 695
				add_state_core = 719
				add_state_core = 721
				add_state_core = 723
				add_state_core = 738
				add_state_core = 777
				add_state_core = 909
				add_state_core = 916
				add_state_core = 921
				add_state_core = 938
				add_state_core = 939
				add_state_core = 940
				add_state_core = 965
				add_state_core = 974
				add_state_core = 975
				add_state_core = 976
				add_state_core = 977
				add_state_core = 978
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				add_state_core = 999
				add_state_core = 1000
				add_state_core = 1001
				add_state_core = 1003
				add_state_core = 1004
				add_state_core = 1005
				add_state_core = 1006
				add_state_core = 1056
				add_state_core = 1057
				add_state_core = 1094
				add_state_core = 1095
				add_state_core = 1096
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_dutch_colonial_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_dutch_colonial_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_dutch_colonial_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_dutch_west_india_company_show_decision = {
		icon = formable_dutch_west_india_company
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BAS
				original_tag = CAY
				original_tag = CRC
				original_tag = GDL
				original_tag = GYA
				original_tag = SAF
				original_tag = SUR
				original_tag = TRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_dutch_west_india_company_requirements_cflag
		}
	}
}
 
formable_dutch_west_india_company_category = {
	formable_dutch_west_india_company_form_decision = {
		icon = formable_dutch_west_india_company
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					is_subject_of = HOL
					custom_trigger_tooltip = {
						tooltip = formable_dutch_west_india_company_form_decision_tt
						count_triggers = {
							amount = 25	#35 total states required
							274 = { is_fully_controlled_by = ROOT }
							298 = { is_fully_controlled_by = ROOT }
							309 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							359 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							689 = { is_fully_controlled_by = ROOT }
							690 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							692 = { is_fully_controlled_by = ROOT }
							693 = { is_fully_controlled_by = ROOT }
							694 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							698 = { is_fully_controlled_by = ROOT }
							700 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							779 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							972 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							1079 = { is_fully_controlled_by = ROOT }
							1080 = { is_fully_controlled_by = ROOT }
							1081 = { is_fully_controlled_by = ROOT }
							1082 = { is_fully_controlled_by = ROOT }
							1083 = { is_fully_controlled_by = ROOT }
							1084 = { is_fully_controlled_by = ROOT }
							1085 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_DWI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_DWI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 274
				add_state_core = 298
				add_state_core = 309
				add_state_core = 310
				add_state_core = 311
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 358
				add_state_core = 359
				add_state_core = 681
				add_state_core = 686
				add_state_core = 687
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 695
				add_state_core = 698
				add_state_core = 700
				add_state_core = 776
				add_state_core = 777
				add_state_core = 779
				add_state_core = 780
				add_state_core = 972
				add_state_core = 994
				add_state_core = 1079
				add_state_core = 1080
				add_state_core = 1081
				add_state_core = 1082
				add_state_core = 1083
				add_state_core = 1084
				add_state_core = 1085
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_dutch_west_india_company_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_dutch_west_india_company_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_dutch_west_india_company_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_east_africa_show_decision = {
		icon = formable_east_africa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TZN
				original_tag = KEN
				original_tag = UGA
				original_tag = RWA
				original_tag = BRD
				original_tag = AOI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_east_africa_requirements_cflag
		}
	}
}

formable_east_africa_category = {
	formable_east_africa_form_decision = {
		icon = formable_east_africa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_east_africa_form_decision_tt
						count_triggers = {
							amount = 10	#14 total states required
							295 = { is_fully_controlled_by = ROOT }
							538 = { is_fully_controlled_by = ROOT }
							546 = { is_fully_controlled_by = ROOT }
							547 = { is_fully_controlled_by = ROOT }
							548 = { is_fully_controlled_by = ROOT }
							718 = { is_fully_controlled_by = ROOT }
							768 = { is_fully_controlled_by = ROOT }
							769 = { is_fully_controlled_by = ROOT }
							888 = { is_fully_controlled_by = ROOT }
							889 = { is_fully_controlled_by = ROOT }
							890 = { is_fully_controlled_by = ROOT }
							903 = { is_fully_controlled_by = ROOT }
							904 = { is_fully_controlled_by = ROOT }
							905 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_EAF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_EAF
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 844
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 295
				add_state_core = 538
				add_state_core = 546
				add_state_core = 547
				add_state_core = 548
				add_state_core = 718
				add_state_core = 768
				add_state_core = 769
				add_state_core = 888
				add_state_core = 889
				add_state_core = 890
				add_state_core = 903
				add_state_core = 904
				add_state_core = 905
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_east_africa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_east_africa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_east_africa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_eesti_suomi_show_decision = {
		icon = formable_eesti_suomi
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EST
				original_tag = FIN
				original_tag = AHV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_eesti_suomi_requirements_cflag
		}
	}
}

formable_eesti_suomi_category = {
	formable_eesti_suomi_form_decision = {
		icon = formable_eesti_suomi
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_eesti_suomi_form_decision_tt
						count_triggers = {
							amount = 29	#36 total states required
							13 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							244 = { is_fully_controlled_by = ROOT }
							263 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ESU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ESU
			
			add_state_core = 12
			add_state_core = 43
			add_state_core = 110
			add_state_core = 140
			add_state_core = 141
			add_state_core = 142
			add_state_core = 154
			add_state_core = 155
			add_state_core = 214
			add_state_core = 264
			add_state_core = 351
			add_state_core = 397
			add_state_core = 808
			add_state_core = 810
			add_state_core = 825
			add_state_core = 879
			add_state_core = 880
			add_state_core = 913
			add_state_core = 969
			add_state_core = 1026
			add_state_core = 1028
			add_state_core = 1030
			add_state_core = 1031
			add_state_core = 1032
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 13
				add_state_core = 38
				add_state_core = 111
				add_state_core = 124
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 191
				add_state_core = 195
				add_state_core = 208
				add_state_core = 209
				add_state_core = 213
				add_state_core = 215
				add_state_core = 216
				add_state_core = 244
				add_state_core = 263
				add_state_core = 666
				add_state_core = 722
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 968
				add_state_core = 1029
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_eesti_suomi_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_eesti_suomi_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_eesti_suomi_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_empire_rising_sun_show_decision = {
		icon = formable_empire_rising_sun
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
			always = no
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_empire_rising_sun_requirements_cflag
		}
	}
}

formable_empire_rising_sun_category = {
	formable_empire_rising_sun_form_decision = {
		icon = formable_empire_rising_sun
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_empire_rising_sun_form_decision_tt
						count_triggers = {
							amount = 100	#119 total states required
							282 = { is_fully_controlled_by = ROOT }
							286 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							328 = { is_fully_controlled_by = ROOT }
							333 = { is_fully_controlled_by = ROOT }
							334 = { is_fully_controlled_by = ROOT }
							335 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							446 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							525 = { is_fully_controlled_by = ROOT }
							526 = { is_fully_controlled_by = ROOT }
							527 = { is_fully_controlled_by = ROOT }
							528 = { is_fully_controlled_by = ROOT }
							529 = { is_fully_controlled_by = ROOT }
							530 = { is_fully_controlled_by = ROOT }
							531 = { is_fully_controlled_by = ROOT }
							532 = { is_fully_controlled_by = ROOT }
							533 = { is_fully_controlled_by = ROOT }
							534 = { is_fully_controlled_by = ROOT }
							535 = { is_fully_controlled_by = ROOT }
							536 = { is_fully_controlled_by = ROOT }
							537 = { is_fully_controlled_by = ROOT }
							555 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							600 = { is_fully_controlled_by = ROOT }
							606 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							610 = { is_fully_controlled_by = ROOT }
							611 = { is_fully_controlled_by = ROOT }
							612 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							632 = { is_fully_controlled_by = ROOT }
							633 = { is_fully_controlled_by = ROOT }
							634 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							639 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							645 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							647 = { is_fully_controlled_by = ROOT }
							648 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							668 = { is_fully_controlled_by = ROOT }
							669 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							672 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
							714 = { is_fully_controlled_by = ROOT }
							715 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							725 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							733 = { is_fully_controlled_by = ROOT }
							737 = { is_fully_controlled_by = ROOT }
							738 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							749 = { is_fully_controlled_by = ROOT }
							761 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							914 = { is_fully_controlled_by = ROOT }
							915 = { is_fully_controlled_by = ROOT }
							916 = { is_fully_controlled_by = ROOT }
							917 = { is_fully_controlled_by = ROOT }
							918 = { is_fully_controlled_by = ROOT }
							919 = { is_fully_controlled_by = ROOT }
							920 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							944 = { is_fully_controlled_by = ROOT }
							945 = { is_fully_controlled_by = ROOT }
							946 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
							951 = { is_fully_controlled_by = ROOT }
							960 = { is_fully_controlled_by = ROOT }
							974 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							976 = { is_fully_controlled_by = ROOT }
							977 = { is_fully_controlled_by = ROOT }
							978 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
							1096 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ERS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ERS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 282
				add_state_core = 286
				add_state_core = 288
				add_state_core = 289
				add_state_core = 326
				add_state_core = 327
				add_state_core = 328
				add_state_core = 333
				add_state_core = 334
				add_state_core = 335
				add_state_core = 336
				add_state_core = 446
				add_state_core = 523
				add_state_core = 524
				add_state_core = 525
				add_state_core = 526
				add_state_core = 527
				add_state_core = 528
				add_state_core = 529
				add_state_core = 530
				add_state_core = 531
				add_state_core = 532
				add_state_core = 533
				add_state_core = 534
				add_state_core = 535
				add_state_core = 536
				add_state_core = 537
				add_state_core = 555
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 606
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 632
				add_state_core = 633
				add_state_core = 634
				add_state_core = 638
				add_state_core = 639
				add_state_core = 640
				add_state_core = 645
				add_state_core = 646
				add_state_core = 647
				add_state_core = 648
				add_state_core = 667
				add_state_core = 668
				add_state_core = 669
				add_state_core = 670
				add_state_core = 671
				add_state_core = 672
				add_state_core = 673
				add_state_core = 684
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 721
				add_state_core = 724
				add_state_core = 725
				add_state_core = 728
				add_state_core = 729
				add_state_core = 733
				add_state_core = 737
				add_state_core = 738
				add_state_core = 741
				add_state_core = 743
				add_state_core = 745
				add_state_core = 749
				add_state_core = 761
				add_state_core = 868
				add_state_core = 869
				add_state_core = 914
				add_state_core = 915
				add_state_core = 916
				add_state_core = 917
				add_state_core = 918
				add_state_core = 919
				add_state_core = 920
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				add_state_core = 951
				add_state_core = 960
				add_state_core = 974
				add_state_core = 975
				add_state_core = 976
				add_state_core = 977
				add_state_core = 978
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				add_state_core = 1096
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_empire_rising_sun_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_empire_rising_sun_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_empire_rising_sun_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_england_show_decision = {
		icon = formable_england
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = WAL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_england_requirements_cflag
		}
	}
}

formable_england_category = {
	formable_england_form_decision = {
		icon = formable_england
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_england_form_decision_tt
						count_triggers = {
							amount = 10	#13 total states required
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1042 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_england_form_decision_tt2
						count_triggers = {
							amount = 7	#7 total states required
							119 = { owns_or_subject_of = no }
							120 = { owns_or_subject_of = no }
							121 = { owns_or_subject_of = no }
							133 = { owns_or_subject_of = no }
							136 = { owns_or_subject_of = no }
							970 = { owns_or_subject_of = no }
							971 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_EGL } } }
					#OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_EGL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 338
				add_state_core = 1041
				add_state_core = 1042
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_england_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_england_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_england_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_eurasia_show_decision = {
		icon = formable_eurasia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				always = no
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_eurasia_requirements_cflag
		}
	}
}

formable_eurasia_category = {
	formable_eurasia_form_decision = {
		icon = formable_eurasia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_eurasia_form_decision_tt
						count_triggers = {
							amount = 1	#1 total states required
							1 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_EUA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_EUA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				1 = { add_core_of = ROOT }
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_eurasia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_eurasia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_eurasia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_europe_show_decision = {
		icon = formable_europe
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ADR
				original_tag = ALB
				original_tag = AUS
				original_tag = BEL
				original_tag = BOS
				original_tag = BRI
				original_tag = BUL
				original_tag = CAT
				original_tag = COR
				original_tag = CRO
				original_tag = CZE
				original_tag = DEN
				original_tag = DNZ
				original_tag = ENG
				original_tag = EST
				original_tag = FLE
				original_tag = FRA
				original_tag = GER
				original_tag = GLC
				original_tag = GRE
				original_tag = HOL
				original_tag = HRZ
				original_tag = HUN
				original_tag = IRE
				original_tag = ITA
				original_tag = KOS
				original_tag = KSH
				original_tag = LAT
				original_tag = LIT
				original_tag = LUX
				original_tag = MAC
				original_tag = MLT
				original_tag = MNT
				original_tag = NAP
				original_tag = NAV
				original_tag = NIR
				original_tag = NOR
				original_tag = POR
				original_tag = PRS
				original_tag = RUT
				original_tag = SAD
				original_tag = SCO
				original_tag = SER
				original_tag = SIL
				original_tag = SLO
				original_tag = SLV
				original_tag = SWI
				original_tag = TRA
				original_tag = VNZ
				original_tag = WAL
				original_tag = WLL
				original_tag = SAR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_europe_requirements_cflag
		}
	}
}

formable_europe_category = {
	formable_europe_form_decision = {
		icon = formable_europe
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_europe_form_decision_tt
						count_triggers = {
							amount = 250	#376 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							5 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							37 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							44 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							100 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							113 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							200 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							205 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							210 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							214 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							217 = { is_fully_controlled_by = ROOT }
							218 = { is_fully_controlled_by = ROOT }
							219 = { is_fully_controlled_by = ROOT }
							220 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							222 = { is_fully_controlled_by = ROOT }
							223 = { is_fully_controlled_by = ROOT }
							224 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							227 = { is_fully_controlled_by = ROOT }
							228 = { is_fully_controlled_by = ROOT }
							236 = { is_fully_controlled_by = ROOT }
							237 = { is_fully_controlled_by = ROOT }
							238 = { is_fully_controlled_by = ROOT }
							239 = { is_fully_controlled_by = ROOT }
							240 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							242 = { is_fully_controlled_by = ROOT }
							243 = { is_fully_controlled_by = ROOT }
							244 = { is_fully_controlled_by = ROOT }
							245 = { is_fully_controlled_by = ROOT }
							246 = { is_fully_controlled_by = ROOT }
							247 = { is_fully_controlled_by = ROOT }
							248 = { is_fully_controlled_by = ROOT }
							249 = { is_fully_controlled_by = ROOT }
							250 = { is_fully_controlled_by = ROOT }
							251 = { is_fully_controlled_by = ROOT }
							252 = { is_fully_controlled_by = ROOT }
							253 = { is_fully_controlled_by = ROOT }
							254 = { is_fully_controlled_by = ROOT }
							255 = { is_fully_controlled_by = ROOT }
							256 = { is_fully_controlled_by = ROOT }
							257 = { is_fully_controlled_by = ROOT }
							258 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							260 = { is_fully_controlled_by = ROOT }
							262 = { is_fully_controlled_by = ROOT }
							263 = { is_fully_controlled_by = ROOT }
							264 = { is_fully_controlled_by = ROOT }
							265 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							351 = { is_fully_controlled_by = ROOT }
							397 = { is_fully_controlled_by = ROOT }
							398 = { is_fully_controlled_by = ROOT }
							399 = { is_fully_controlled_by = ROOT }
							400 = { is_fully_controlled_by = ROOT }
							401 = { is_fully_controlled_by = ROOT }
							406 = { is_fully_controlled_by = ROOT }
							407 = { is_fully_controlled_by = ROOT }
							581 = { is_fully_controlled_by = ROOT }
							651 = { is_fully_controlled_by = ROOT }
							652 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							697 = { is_fully_controlled_by = ROOT }
							698 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							825 = { is_fully_controlled_by = ROOT }
							829 = { is_fully_controlled_by = ROOT }
							833 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							879 = { is_fully_controlled_by = ROOT }
							880 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1024 = { is_fully_controlled_by = ROOT }
							1025 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1043 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_EUR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_EUR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 5
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 9
				add_state_core = 10
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 37
				add_state_core = 38
				add_state_core = 39
				add_state_core = 41
				add_state_core = 42
				add_state_core = 43
				add_state_core = 44
				add_state_core = 45
				add_state_core = 46
				add_state_core = 47
				add_state_core = 48
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 98
				add_state_core = 99
				add_state_core = 100
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 110
				add_state_core = 111
				add_state_core = 112
				add_state_core = 113
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 124
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 137
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 163
				add_state_core = 164
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 195
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 200
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 205
				add_state_core = 206
				add_state_core = 207
				add_state_core = 208
				add_state_core = 209
				add_state_core = 210
				add_state_core = 211
				add_state_core = 212
				add_state_core = 213
				add_state_core = 214
				add_state_core = 215
				add_state_core = 216
				add_state_core = 217
				add_state_core = 218
				add_state_core = 219
				add_state_core = 220
				add_state_core = 221
				add_state_core = 222
				add_state_core = 223
				add_state_core = 224
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 236
				add_state_core = 237
				add_state_core = 238
				add_state_core = 239
				add_state_core = 240
				add_state_core = 241
				add_state_core = 242
				add_state_core = 243
				add_state_core = 244
				add_state_core = 245
				add_state_core = 246
				add_state_core = 247
				add_state_core = 248
				add_state_core = 249
				add_state_core = 250
				add_state_core = 251
				add_state_core = 252
				add_state_core = 253
				add_state_core = 254
				add_state_core = 255
				add_state_core = 256
				add_state_core = 257
				add_state_core = 258
				add_state_core = 259
				add_state_core = 260
				add_state_core = 262
				add_state_core = 263
				add_state_core = 264
				add_state_core = 265
				add_state_core = 337
				add_state_core = 338
				add_state_core = 341
				add_state_core = 351
				add_state_core = 397
				add_state_core = 398
				add_state_core = 399
				add_state_core = 400
				add_state_core = 401
				add_state_core = 406
				add_state_core = 407
				add_state_core = 581
				add_state_core = 651
				add_state_core = 652
				add_state_core = 664
				add_state_core = 666
				add_state_core = 697
				add_state_core = 698
				add_state_core = 722
				add_state_core = 731
				add_state_core = 735
				add_state_core = 736
				add_state_core = 762
				add_state_core = 763
				add_state_core = 764
				add_state_core = 766
				add_state_core = 784
				add_state_core = 785
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 806
				add_state_core = 807
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				add_state_core = 825
				add_state_core = 829
				add_state_core = 833
				add_state_core = 834
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 879
				add_state_core = 880
				add_state_core = 910
				add_state_core = 912
				add_state_core = 913
				add_state_core = 922
				add_state_core = 923
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 955
				add_state_core = 956
				add_state_core = 957
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				add_state_core = 964
				add_state_core = 965
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 970
				add_state_core = 971
				add_state_core = 973
				add_state_core = 989
				add_state_core = 996
				add_state_core = 997
				add_state_core = 998
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1024
				add_state_core = 1025
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1041
				add_state_core = 1043
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_europe_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_europe_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_europe_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_eu_west_show_decision = {
		icon = formable_eu_west
		cost = 0  days_re_enable = 0
		visible = {
			always = no
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = BEL
				original_tag = FRA
				original_tag = GER
				original_tag = ITA
				original_tag = LUX
				original_tag = SAR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_eu_west_requirements_cflag
		}
	}
}

formable_eu_west_category = {
	formable_eu_west_form_decision = {
		icon = formable_eu_west
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_eu_west_form_decision_tt
						count_triggers = {
							amount = 45	#66 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_EUW } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_EUW
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 39
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 735
				add_state_core = 785
				add_state_core = 806
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 912
				add_state_core = 922
				add_state_core = 923
				add_state_core = 957
				add_state_core = 965
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_eu_west_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_eu_west_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_eu_west_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_finno_ugra_show_decision = {
		icon = formable_finno_ugra
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FIN
				original_tag = HUN
				original_tag = KAR
				original_tag = EST
				original_tag = NEN
				original_tag = KOM
				original_tag = YAM
				original_tag = OVO
				original_tag = MEL
				original_tag = BSK
				original_tag = TRA
				original_tag = TAY
				original_tag = SWE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_finno_ugra_requirements_cflag
		}
	}
}

formable_finno_ugra_category = {
	formable_finno_ugra_form_decision = {
		icon = formable_finno_ugra
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_finno_ugra_form_decision_tt
						count_triggers = {
							amount = 50	#69 total states required
							13 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							214 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							247 = { is_fully_controlled_by = ROOT }
							248 = { is_fully_controlled_by = ROOT }
							262 = { is_fully_controlled_by = ROOT }
							264 = { is_fully_controlled_by = ROOT }
							351 = { is_fully_controlled_by = ROOT }
							397 = { is_fully_controlled_by = ROOT }
							398 = { is_fully_controlled_by = ROOT }
							399 = { is_fully_controlled_by = ROOT }
							400 = { is_fully_controlled_by = ROOT }
							403 = { is_fully_controlled_by = ROOT }
							516 = { is_fully_controlled_by = ROOT }
							572 = { is_fully_controlled_by = ROOT }
							573 = { is_fully_controlled_by = ROOT }
							576 = { is_fully_controlled_by = ROOT }
							577 = { is_fully_controlled_by = ROOT }
							578 = { is_fully_controlled_by = ROOT }
							579 = { is_fully_controlled_by = ROOT }
							580 = { is_fully_controlled_by = ROOT }
							581 = { is_fully_controlled_by = ROOT }
							651 = { is_fully_controlled_by = ROOT }
							653 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							824 = { is_fully_controlled_by = ROOT }
							825 = { is_fully_controlled_by = ROOT }
							833 = { is_fully_controlled_by = ROOT }
							879 = { is_fully_controlled_by = ROOT }
							880 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_FUG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_FUG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 13
				add_state_core = 38
				add_state_core = 43
				add_state_core = 45
				add_state_core = 76
				add_state_core = 83
				add_state_core = 111
				add_state_core = 141
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 154
				add_state_core = 155
				add_state_core = 191
				add_state_core = 208
				add_state_core = 209
				add_state_core = 213
				add_state_core = 214
				add_state_core = 215
				add_state_core = 216
				add_state_core = 247
				add_state_core = 248
				add_state_core = 262
				add_state_core = 264
				add_state_core = 351
				add_state_core = 397
				add_state_core = 398
				add_state_core = 399
				add_state_core = 400
				add_state_core = 403
				add_state_core = 516
				add_state_core = 572
				add_state_core = 573
				add_state_core = 576
				add_state_core = 577
				add_state_core = 578
				add_state_core = 579
				add_state_core = 580
				add_state_core = 581
				add_state_core = 651
				add_state_core = 653
				add_state_core = 666
				add_state_core = 722
				add_state_core = 764
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 824
				add_state_core = 825
				add_state_core = 833
				add_state_core = 879
				add_state_core = 880
				add_state_core = 913
				add_state_core = 968
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_finno_ugra_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_finno_ugra_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_finno_ugra_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_frankish_empire_show_decision = {
		icon = formable_frankish_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = BAY
				original_tag = WUR
				original_tag = WLL
				original_tag = FLA
				original_tag = OCC
				original_tag = NAV
				original_tag = ADR
				original_tag = SWI
				original_tag = BEL
				original_tag = SAR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_frankish_empire_requirements_cflag
		}
	}
}

formable_frankish_empire_category = {
	formable_frankish_empire_form_decision = {
		icon = formable_frankish_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_frankish_empire_form_decision_tt
						count_triggers = {
							amount = 38	#51 total states required
							3 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_FRE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_FRE
			set_capital = {
				state = 16
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 151
				add_state_core = 735
				add_state_core = 785
				add_state_core = 806
				add_state_core = 845
				add_state_core = 847
				add_state_core = 848
				add_state_core = 851
				add_state_core = 922
				add_state_core = 923
				add_state_core = 965
				add_state_core = 973
				add_state_core = 989
				add_state_core = 997
				add_state_core = 1012
				add_state_core = 1053
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_frankish_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_frankish_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_frankish_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_french_colonial_empire_show_decision = {
		icon = formable_french_colonial_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = OCC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_french_colonial_empire_requirements_cflag
		}
	}
}

formable_french_colonial_empire_category = {
	formable_french_colonial_empire_form_decision = {
		icon = formable_french_colonial_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_french_colonial_empire_form_decision_tt
						count_triggers = {
							amount = 110	#131 total states required
							1 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							261 = { is_fully_controlled_by = ROOT }
							268 = { is_fully_controlled_by = ROOT }
							272 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							286 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							320 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							368 = { is_fully_controlled_by = ROOT }
							369 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							391 = { is_fully_controlled_by = ROOT }
							392 = { is_fully_controlled_by = ROOT }
							393 = { is_fully_controlled_by = ROOT }
							394 = { is_fully_controlled_by = ROOT }
							395 = { is_fully_controlled_by = ROOT }
							396 = { is_fully_controlled_by = ROOT }
							423 = { is_fully_controlled_by = ROOT }
							424 = { is_fully_controlled_by = ROOT }
							426 = { is_fully_controlled_by = ROOT }
							427 = { is_fully_controlled_by = ROOT }
							436 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							514 = { is_fully_controlled_by = ROOT }
							515 = { is_fully_controlled_by = ROOT }
							539 = { is_fully_controlled_by = ROOT }
							543 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							635 = { is_fully_controlled_by = ROOT }
							641 = { is_fully_controlled_by = ROOT }
							660 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							668 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							694 = { is_fully_controlled_by = ROOT }
							706 = { is_fully_controlled_by = ROOT }
							708 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							730 = { is_fully_controlled_by = ROOT }
							734 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							772 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							778 = { is_fully_controlled_by = ROOT }
							779 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1080 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_FCE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_FCE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 261
				add_state_core = 268
				add_state_core = 272
				add_state_core = 276
				add_state_core = 286
				add_state_core = 304
				add_state_core = 310
				add_state_core = 320
				add_state_core = 331
				add_state_core = 332
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 381
				add_state_core = 383
				add_state_core = 384
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 391
				add_state_core = 392
				add_state_core = 393
				add_state_core = 394
				add_state_core = 395
				add_state_core = 396
				add_state_core = 423
				add_state_core = 424
				add_state_core = 426
				add_state_core = 427
				add_state_core = 436
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 513
				add_state_core = 514
				add_state_core = 515
				add_state_core = 539
				add_state_core = 543
				add_state_core = 553
				add_state_core = 554
				add_state_core = 556
				add_state_core = 557
				add_state_core = 635
				add_state_core = 641
				add_state_core = 660
				add_state_core = 665
				add_state_core = 667
				add_state_core = 668
				add_state_core = 670
				add_state_core = 671
				add_state_core = 673
				add_state_core = 677
				add_state_core = 680
				add_state_core = 681
				add_state_core = 682
				add_state_core = 683
				add_state_core = 685
				add_state_core = 694
				add_state_core = 706
				add_state_core = 708
				add_state_core = 728
				add_state_core = 730
				add_state_core = 734
				add_state_core = 735
				add_state_core = 741
				add_state_core = 772
				add_state_core = 773
				add_state_core = 774
				add_state_core = 775
				add_state_core = 776
				add_state_core = 777
				add_state_core = 778
				add_state_core = 779
				add_state_core = 780
				add_state_core = 781
				add_state_core = 782
				add_state_core = 785
				add_state_core = 786
				add_state_core = 799
				add_state_core = 806
				add_state_core = 851
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 866
				add_state_core = 867
				add_state_core = 898
				add_state_core = 899
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 933
				add_state_core = 975
				add_state_core = 1012
				add_state_core = 1080
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_french_colonial_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_french_colonial_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_french_colonial_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_german_colonial_empire_show_decision = {
		icon = formable_german_colonial_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GER
				original_tag = BAY
				original_tag = TOG
				original_tag = CMR
				original_tag = TZN
				original_tag = NMB
				original_tag = PNG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_german_colonial_empire_requirements_cflag
		}
	}
}

formable_german_colonial_empire_category = {
	formable_german_colonial_empire_form_decision = {
		icon = formable_german_colonial_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_german_colonial_empire_form_decision_tt
						count_triggers = {
							amount = 40	#52 total states required
							5 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							541 = { is_fully_controlled_by = ROOT }
							546 = { is_fully_controlled_by = ROOT }
							634 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
							726 = { is_fully_controlled_by = ROOT }
							737 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							893 = { is_fully_controlled_by = ROOT }
							894 = { is_fully_controlled_by = ROOT }
							895 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1055 = { is_fully_controlled_by = ROOT }
							1096 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GCE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GCE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 28
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 85
				add_state_core = 86
				add_state_core = 188
				add_state_core = 523
				add_state_core = 541
				add_state_core = 546
				add_state_core = 634
				add_state_core = 638
				add_state_core = 646
				add_state_core = 684
				add_state_core = 726
				add_state_core = 737
				add_state_core = 743
				add_state_core = 762
				add_state_core = 763
				add_state_core = 773
				add_state_core = 777
				add_state_core = 807
				add_state_core = 893
				add_state_core = 894
				add_state_core = 895
				add_state_core = 922
				add_state_core = 923
				add_state_core = 964
				add_state_core = 965
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				add_state_core = 1055
				add_state_core = 1096
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_german_colonial_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_german_colonial_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_german_colonial_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_germany_show_decision = {
		icon = formable_germany
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PRE
				original_tag = HAN
				original_tag = MEK
				original_tag = SAX
				original_tag = SHL
				original_tag = AUS
				original_tag = BAY
				original_tag = WUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_germany_requirements_cflag
		}
	}
}

formable_germany_category = {
	formable_germany_form_decision = {
		icon = formable_germany
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_germany_form_decision_tt
						count_triggers = {
							amount = 25	#33 total states required
							5 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = GER } } NOT = { country_exists = GER } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = GER
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 85
				add_state_core = 86
				add_state_core = 188
				add_state_core = 762
				add_state_core = 763
				add_state_core = 807
				add_state_core = 922
				add_state_core = 923
				add_state_core = 965
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_germany_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_germany_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_germany_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_germany_austria_show_decision = {
		icon = formable_germany_austria
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
				original_tag = GER
				original_tag = BAV
				original_tag = SAX
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_germany_austria_requirements_cflag
		}
	}
}

formable_germany_austria_category = {
	formable_germany_austria_form_decision = {
		icon = formable_germany_austria
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_germany_austria_form_decision_tt
						count_triggers = {
							amount = 33	#36 total states required
							4 = { is_fully_controlled_by = ROOT }
							5 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GEA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GEA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 5
				add_state_core = 39
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 74
				add_state_core = 152
				add_state_core = 153
				add_state_core = 763
				add_state_core = 848
				add_state_core = 922
				add_state_core = 923
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_germany_austria_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_germany_austria_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_germany_austria_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_golden_circle_show_decision = {
		icon = formable_golden_circle
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = LDX
				original_tag = TXS
				original_tag = MEX
				original_tag = CSA
				original_tag = CUB
				original_tag = JAM
				original_tag = HAI
				original_tag = DOM
				original_tag = GUA
				original_tag = BLZ
				original_tag = HON
				original_tag = ELS
				original_tag = NIC
				original_tag = COS
				original_tag = PAN
				original_tag = COL
				original_tag = VEN
				original_tag = BAS
				original_tag = PUE
				original_tag = GDL
				original_tag = TRI
				original_tag = CRC
				original_tag = BAH
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_golden_circle_requirements_cflag
		}
	}
}

formable_golden_circle_category = {
	formable_golden_circle_form_decision = {
		icon = formable_golden_circle
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_golden_circle_form_decision_tt
						count_triggers = {
							amount = 50	#71 total states required
							277 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							308 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							361 = { is_fully_controlled_by = ROOT }
							362 = { is_fully_controlled_by = ROOT }
							363 = { is_fully_controlled_by = ROOT }
							364 = { is_fully_controlled_by = ROOT }
							365 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							368 = { is_fully_controlled_by = ROOT }
							369 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							689 = { is_fully_controlled_by = ROOT }
							690 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							692 = { is_fully_controlled_by = ROOT }
							693 = { is_fully_controlled_by = ROOT }
							694 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							972 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							1050 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1079 = { is_fully_controlled_by = ROOT }
							1080 = { is_fully_controlled_by = ROOT }
							1081 = { is_fully_controlled_by = ROOT }
							1082 = { is_fully_controlled_by = ROOT }
							1083 = { is_fully_controlled_by = ROOT }
							1084 = { is_fully_controlled_by = ROOT }
							1085 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GOL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GOL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 277
				add_state_core = 304
				add_state_core = 307
				add_state_core = 308
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 318
				add_state_core = 319
				add_state_core = 361
				add_state_core = 362
				add_state_core = 363
				add_state_core = 364
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 383
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 489
				add_state_core = 493
				add_state_core = 685
				add_state_core = 686
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 695
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 937
				add_state_core = 948
				add_state_core = 972
				add_state_core = 994
				add_state_core = 1050
				add_state_core = 1051
				add_state_core = 1079
				add_state_core = 1080
				add_state_core = 1081
				add_state_core = 1082
				add_state_core = 1083
				add_state_core = 1084
				add_state_core = 1085
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_golden_circle_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_golden_circle_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_golden_circle_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_gran_colombia_show_decision = {
		icon = formable_gran_colombia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = COL
				original_tag = VEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_gran_colombia_requirements_cflag
		}
	}
}

formable_gran_colombia_category = {
	formable_gran_colombia_form_decision = {
		icon = formable_gran_colombia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_gran_colombia_form_decision_tt
						count_triggers = {
							amount = 12	#17 total states required
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							649 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GCO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GCO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 486
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 493
				add_state_core = 649
				add_state_core = 685
				add_state_core = 691
				add_state_core = 695
				add_state_core = 948
				add_state_core = 1051
				add_state_core = 1073
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_gran_colombia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_gran_colombia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_gran_colombia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_great_britain_show_decision = {
		icon = formable_great_britain
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = SCO
				original_tag = WAL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_great_britain_requirements_cflag
		}
	}
}

formable_great_britain_category = {
	formable_great_britain_form_decision = {
		icon = formable_great_britain
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_great_britain_form_decision_tt
						count_triggers = {
							amount = 20	
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_BRI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_BRI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 113
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 338
				add_state_core = 970
				add_state_core = 971
				add_state_core = 1041
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_great_britain_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_great_britain_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_great_britain_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_great_moravia_show_decision = {
		icon = formable_great_moravia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CZE
				original_tag = SLO
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_great_moravia_requirements_cflag
		}
	}
}

formable_great_moravia_category = {
	formable_great_moravia_form_decision = {
		icon = formable_great_moravia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_great_moravia_form_decision_tt
						count_triggers = {
							amount = 22	#26 total states required
							4 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GMO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GMO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 9
				add_state_core = 43
				add_state_core = 45
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 82
				add_state_core = 83
				add_state_core = 88
				add_state_core = 154
				add_state_core = 155
				add_state_core = 664
				add_state_core = 762
				add_state_core = 764
				add_state_core = 913
				add_state_core = 996
				add_state_core = 1078
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_great_moravia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_great_moravia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_great_moravia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_albania_show_decision = {
		icon = formable_greater_albania
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ALB
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_albania_requirements_cflag
		}
	}
}

formable_greater_albania_category = {
	formable_greater_albania_form_decision = {
		icon = formable_greater_albania
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_albania_form_decision_tt
						count_triggers = {
							amount = 8	#11 total states required
							44 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GAL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GAL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 105
				add_state_core = 106
				add_state_core = 185
				add_state_core = 802
				add_state_core = 803
				add_state_core = 805
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_albania_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_albania_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_albania_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_austria_show_decision = {
		icon = formable_greater_austria
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_austria_requirements_cflag
		}
	}
}

formable_greater_austria_category = {
	formable_greater_austria_form_decision = {
		icon = formable_greater_austria
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_austria_form_decision_tt
						count_triggers = {
							amount = 32	#44 total states required
							4 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GAU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GAU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 9
				add_state_core = 39
				add_state_core = 43
				add_state_core = 45
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 80
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 88
				add_state_core = 89
				add_state_core = 91
				add_state_core = 102
				add_state_core = 103
				add_state_core = 109
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 163
				add_state_core = 664
				add_state_core = 736
				add_state_core = 764
				add_state_core = 848
				add_state_core = 850
				add_state_core = 852
				add_state_core = 853
				add_state_core = 913
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 996
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_austria_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_austria_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_austria_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_canada_show_decision = {
		icon = formable_greater_canada
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CAN
				original_tag = QBC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_canada_requirements_cflag
		}
	}
}

formable_greater_canada_category = {
	formable_greater_canada_form_decision = {
		icon = formable_greater_canada
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_canada_form_decision_tt
						count_triggers = {
							amount = 26	#38 total states required
							101 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							391 = { is_fully_controlled_by = ROOT }
							393 = { is_fully_controlled_by = ROOT }
							394 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							730 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GCA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GCA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 101
				add_state_core = 276
				add_state_core = 331
				add_state_core = 357
				add_state_core = 358
				add_state_core = 391
				add_state_core = 393
				add_state_core = 394
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 682
				add_state_core = 683
				add_state_core = 730
				add_state_core = 739
				add_state_core = 740
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 921
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_canada_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_canada_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_canada_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_croatia_show_decision = {
		icon = formable_greater_croatia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CRO
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_croatia_requirements_cflag
		}
	}
}

formable_greater_croatia_category = {
	formable_greater_croatia_form_decision = {
		icon = formable_greater_croatia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_croatia_form_decision_tt
						count_triggers = {
							amount = 10	#16 total states required
							45 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GCR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GCR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 45
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 109
				add_state_core = 163
				add_state_core = 736
				add_state_core = 804
				add_state_core = 852
				add_state_core = 853
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_croatia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_croatia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_croatia_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_denmark_show_decision = {
		icon = formable_greater_denmark
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_denmark_requirements_cflag
		}
	}
}

formable_greater_denmark_category = {
	formable_greater_denmark_form_decision = {
		icon = formable_greater_denmark
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_denmark_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							37 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1024 = { is_fully_controlled_by = ROOT }
							1025 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GDE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GDE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 37
				add_state_core = 58
				add_state_core = 61
				add_state_core = 62
				add_state_core = 99
				add_state_core = 138
				add_state_core = 964
				add_state_core = 998
				add_state_core = 1024
				add_state_core = 1025
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_denmark_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_denmark_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_denmark_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_egypt_show_decision = {
		icon = formable_greater_egypt
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EGY
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_egypt_requirements_cflag
		}
	}
}

formable_greater_egypt_category = {
	formable_greater_egypt_form_decision = {
		icon = formable_greater_egypt
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_egypt_form_decision_tt
						count_triggers = {
							amount = 22	#33 total states required
							447 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							549 = { is_fully_controlled_by = ROOT }
							551 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							767 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							884 = { is_fully_controlled_by = ROOT }
							885 = { is_fully_controlled_by = ROOT }
							886 = { is_fully_controlled_by = ROOT }
							887 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GEG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GEG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 447
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 549
				add_state_core = 551
				add_state_core = 552
				add_state_core = 553
				add_state_core = 554
				add_state_core = 663
				add_state_core = 677
				add_state_core = 680
				add_state_core = 767
				add_state_core = 799
				add_state_core = 883
				add_state_core = 884
				add_state_core = 885
				add_state_core = 886
				add_state_core = 887
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 995
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_egypt_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_egypt_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_egypt_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_estonia_show_decision = {
		icon = formable_greater_estonia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EST
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_estonia_requirements_cflag
		}
	}
}

formable_greater_estonia_category = {
	formable_greater_estonia_form_decision = {
		icon = formable_greater_estonia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_estonia_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GES } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GES
			add_state_core = 195
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 12
				add_state_core = 13
				add_state_core = 191
				add_state_core = 208
				add_state_core = 209
				add_state_core = 808
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_estonia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_estonia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_estonia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_finland_show_decision = {
		icon = formable_greater_finland
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FIN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_finland_requirements_cflag
		}
	}
}

formable_greater_finland_category = {
	formable_greater_finland_form_decision = {
		icon = formable_greater_finland
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_finland_form_decision_tt
						count_triggers = {
							amount = 30	#36 total states required
							13 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GFI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GFI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 13
				add_state_core = 38
				add_state_core = 111
				add_state_core = 124
				add_state_core = 141
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 191
				add_state_core = 195
				add_state_core = 208
				add_state_core = 209
				add_state_core = 213
				add_state_core = 215
				add_state_core = 216
				add_state_core = 666
				add_state_core = 722
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 968
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_finland_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_finland_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_finland_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_greece_show_decision = {
		icon = formable_greater_greece
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_greece_requirements_cflag
		}
	}
}

formable_greater_greece_category = {
	formable_greater_greece_form_decision = {
		icon = formable_greater_greece
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_greece_form_decision_tt
						count_triggers = {
							amount = 10	#15 total states required
							47 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GGR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GGR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				if = {
					limit = { 340 = { is_fully_controlled_by = ROOT } }				
					340 = { set_state_name = "Prousa" }
					set_province_name = { id = 947 name = "Prousa" } 
					set_province_name = { id = 9799 name = "Palaeokastron" }
				}
				if = {
					limit = { 339 = { is_fully_controlled_by = ROOT } }				
					339 = { set_state_name = "Smyrni" }
					set_province_name = { id = 4112 name = "Smyrna" }
					set_province_name = { id = 928 name = "Magnesia" }
				}
				if = {
					limit = { 341 = { is_fully_controlled_by = ROOT } }
					341 = { set_state_name = "Thrace" }
					set_province_name = { id = 11842 name = "Adrianople" }
				}
				if = {
					limit = { 342 = { is_fully_controlled_by = ROOT } }
					347 = { set_state_name = "Nikomedeia" }
					set_province_name = { id = 11811 name = "Nikomedeia" }
					set_province_name = { id = 904 name = "Kieros" }
				}
				if = {
					limit = { 797 = { is_fully_controlled_by = ROOT } }
					797 = { set_state_name = "Constantinople" }
					set_province_name = { id = 9833 name = "Constantinople" }
				}
				add_state_core = 47
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 347
				add_state_core = 731
				add_state_core = 797
				add_state_core = 805
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_greece_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_greece_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_greece_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_guangxi_show_decision = {
		icon = formable_greater_guangxi
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GXC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_guangxi_requirements_cflag
		}
	}
}

formable_greater_guangxi_category = {
	formable_greater_guangxi_form_decision = {
		icon = formable_greater_guangxi
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_guangxi_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							326 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GGX } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GGX
			
			hidden_effect = {
				sound_effect = complete_focus
				
					add_state_core = 326
					add_state_core = 524
					add_state_core = 591
					add_state_core = 592
					add_state_core = 593
					add_state_core = 594
					add_state_core = 595
					add_state_core = 599
					add_state_core = 728
					add_state_core = 729
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_guangxi_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_guangxi_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_guangxi_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_iberia_show_decision = {
		icon = formable_greater_iberia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ADR 
				original_tag = CAT
				original_tag = GLC
				original_tag = NAV
				original_tag = OCC
				original_tag = POR 
				original_tag = SAD
				original_tag = SIC
				original_tag = SPR 
				original_tag = TTS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_iberia_requirements_cflag
		}
	}
}

formable_greater_iberia_category = {
	formable_greater_iberia_form_decision = {
		icon = formable_greater_iberia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_iberia_form_decision_tt
						count_triggers = {
							amount = 35	#45 total states required
							1 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GIB } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GIB
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 19
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 25
				add_state_core = 26
				add_state_core = 31
				add_state_core = 33
				add_state_core = 41
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 118
				add_state_core = 156
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 290
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 806
				add_state_core = 849
				add_state_core = 851
				add_state_core = 973
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_iberia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_iberia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_iberia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_india_show_decision = {
		icon = formable_greater_india
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = RAJ
				original_tag = BRM
				original_tag = BAN
				original_tag = PAK
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_india_requirements_cflag
		}
	}
}

formable_greater_india_category = {
	formable_greater_india_form_decision = {
		icon = formable_greater_india
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_india_form_decision_tt
						count_triggers = {
							amount = 40	#57 total states required
							267 = { is_fully_controlled_by = ROOT }
							281 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							320 = { is_fully_controlled_by = ROOT }
							321 = { is_fully_controlled_by = ROOT }
							323 = { is_fully_controlled_by = ROOT }
							324 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							422 = { is_fully_controlled_by = ROOT }
							423 = { is_fully_controlled_by = ROOT }
							424 = { is_fully_controlled_by = ROOT }
							425 = { is_fully_controlled_by = ROOT }
							426 = { is_fully_controlled_by = ROOT }
							427 = { is_fully_controlled_by = ROOT }
							428 = { is_fully_controlled_by = ROOT }
							429 = { is_fully_controlled_by = ROOT }
							430 = { is_fully_controlled_by = ROOT }
							431 = { is_fully_controlled_by = ROOT }
							432 = { is_fully_controlled_by = ROOT }
							433 = { is_fully_controlled_by = ROOT }
							434 = { is_fully_controlled_by = ROOT }
							435 = { is_fully_controlled_by = ROOT }
							436 = { is_fully_controlled_by = ROOT }
							437 = { is_fully_controlled_by = ROOT }
							438 = { is_fully_controlled_by = ROOT }
							439 = { is_fully_controlled_by = ROOT }
							440 = { is_fully_controlled_by = ROOT }
							441 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							733 = { is_fully_controlled_by = ROOT }
							787 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							909 = { is_fully_controlled_by = ROOT }
							914 = { is_fully_controlled_by = ROOT }
							915 = { is_fully_controlled_by = ROOT }
							951 = { is_fully_controlled_by = ROOT }
							960 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1013 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
							1090 = { is_fully_controlled_by = ROOT }
							1091 = { is_fully_controlled_by = ROOT }
							1092 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GIN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GIN
			add_state_core = 286
			add_state_core = 322
			add_state_core = 325
			add_state_core = 601
			add_state_core = 670
			add_state_core = 671
			add_state_core = 672
			add_state_core = 709
			add_state_core = 710
			add_state_core = 711
			add_state_core = 712
			add_state_core = 741
			add_state_core = 747
			add_state_core = 751
			add_state_core = 752
			add_state_core = 757
			add_state_core = 758
			add_state_core = 906
			add_state_core = 924
			add_state_core = 925
			add_state_core = 926
			add_state_core = 927
			add_state_core = 928
			add_state_core = 974
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 267
				add_state_core = 281
				add_state_core = 288
				add_state_core = 289
				add_state_core = 320
				add_state_core = 321
				add_state_core = 323
				add_state_core = 324
				add_state_core = 336
				add_state_core = 415
				add_state_core = 422
				add_state_core = 423
				add_state_core = 424
				add_state_core = 425
				add_state_core = 426
				add_state_core = 427
				add_state_core = 428
				add_state_core = 429
				add_state_core = 430
				add_state_core = 431
				add_state_core = 432
				add_state_core = 433
				add_state_core = 434
				add_state_core = 435
				add_state_core = 436
				add_state_core = 437
				add_state_core = 438
				add_state_core = 439
				add_state_core = 440
				add_state_core = 441
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 640
				add_state_core = 724
				add_state_core = 733
				add_state_core = 787
				add_state_core = 868
				add_state_core = 869
				add_state_core = 909
				add_state_core = 914
				add_state_core = 915
				add_state_core = 951
				add_state_core = 960
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1013
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				add_state_core = 1090
				add_state_core = 1091
				add_state_core = 1092
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_india_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_india_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_india_requirements_cflag
		}
	}
}

####################################################################
####################################################################
#################################################################### (greater indochina)

formable_category = {
	formable_greater_indochina_show_decision = {
		icon = formable_greater_indochina
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SIA
				original_tag = LAO
				original_tag = VIN
				original_tag = CAM
				original_tag = BRM
				original_tag = FRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_indochina_requirements_cflag
		}
	}
}

formable_greater_indochina_category = {
	formable_greater_indochina_form_decision = {
		icon = formable_greater_indochina
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_indochina_form_decision_tt
						count_triggers = {
							amount = 14	#18 total states required
							286 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ICH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ICH
			set_capital = {
				state = 289
			}
			add_state_core = 336
			add_state_core = 909
			add_state_core = 914
			add_state_core = 915
			add_state_core = 951
			add_state_core = 960
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 286
				add_state_core = 288
				add_state_core = 289
				add_state_core = 640
				add_state_core = 670
				add_state_core = 671
				add_state_core = 724
				add_state_core = 741
				add_state_core = 868
				add_state_core = 869
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_indochina_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_indochina_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_indochina_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_israel_show_decision = {
		icon = formable_greater_israel
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ISR
				original_tag = PAL
				original_tag = MPL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_israel_requirements_cflag
		}
	}
}

formable_greater_israel_category = {
	formable_greater_israel_form_decision = {
		icon = formable_greater_israel
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_israel_form_decision_tt
						count_triggers = {
							amount = 20	#26 total states required
							447 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GIS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GIS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 447
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 799
				add_state_core = 854
				add_state_core = 855
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 995
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1047
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_israel_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_israel_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_israel_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_japan_show_decision = {
		icon = formable_greater_japan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_japan_requirements_cflag
		}
	}
}

formable_greater_japan_category = {
	formable_greater_japan_form_decision = {
		icon = formable_greater_japan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_japan_form_decision_tt
						count_triggers = {
							amount = 59	#80 total states required
							282 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							328 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							525 = { is_fully_controlled_by = ROOT }
							526 = { is_fully_controlled_by = ROOT }
							527 = { is_fully_controlled_by = ROOT }
							528 = { is_fully_controlled_by = ROOT }
							529 = { is_fully_controlled_by = ROOT }
							530 = { is_fully_controlled_by = ROOT }
							531 = { is_fully_controlled_by = ROOT }
							532 = { is_fully_controlled_by = ROOT }
							533 = { is_fully_controlled_by = ROOT }
							534 = { is_fully_controlled_by = ROOT }
							535 = { is_fully_controlled_by = ROOT }
							536 = { is_fully_controlled_by = ROOT }
							537 = { is_fully_controlled_by = ROOT }
							555 = { is_fully_controlled_by = ROOT }
							560 = { is_fully_controlled_by = ROOT }
							562 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							610 = { is_fully_controlled_by = ROOT }
							611 = { is_fully_controlled_by = ROOT }
							612 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							631 = { is_fully_controlled_by = ROOT }
							632 = { is_fully_controlled_by = ROOT }
							633 = { is_fully_controlled_by = ROOT }
							637 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							645 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							647 = { is_fully_controlled_by = ROOT }
							648 = { is_fully_controlled_by = ROOT }
							650 = { is_fully_controlled_by = ROOT }
							655 = { is_fully_controlled_by = ROOT }
							657 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
							714 = { is_fully_controlled_by = ROOT }
							715 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							761 = { is_fully_controlled_by = ROOT }
							822 = { is_fully_controlled_by = ROOT }
							874 = { is_fully_controlled_by = ROOT }
							875 = { is_fully_controlled_by = ROOT }
							917 = { is_fully_controlled_by = ROOT }
							918 = { is_fully_controlled_by = ROOT }
							919 = { is_fully_controlled_by = ROOT }
							920 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							944 = { is_fully_controlled_by = ROOT }
							945 = { is_fully_controlled_by = ROOT }
							946 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GJA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GJA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 282
				add_state_core = 326
				add_state_core = 327
				add_state_core = 328
				add_state_core = 408
				add_state_core = 409
				add_state_core = 524
				add_state_core = 525
				add_state_core = 526
				add_state_core = 527
				add_state_core = 528
				add_state_core = 529
				add_state_core = 530
				add_state_core = 531
				add_state_core = 532
				add_state_core = 533
				add_state_core = 534
				add_state_core = 535
				add_state_core = 536
				add_state_core = 537
				add_state_core = 555
				add_state_core = 560
				add_state_core = 562
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 631
				add_state_core = 632
				add_state_core = 633
				add_state_core = 637
				add_state_core = 638
				add_state_core = 645
				add_state_core = 646
				add_state_core = 647
				add_state_core = 648
				add_state_core = 650
				add_state_core = 655
				add_state_core = 657
				add_state_core = 684
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 728
				add_state_core = 729
				add_state_core = 743
				add_state_core = 745
				add_state_core = 761
				add_state_core = 822
				add_state_core = 874
				add_state_core = 875
				add_state_core = 917
				add_state_core = 918
				add_state_core = 919
				add_state_core = 920
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_japan_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_japan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_japan_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_korea_show_decision = {
		icon = formable_greater_korea
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
                original_tag = KOR
                original_tag = NKR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_korea_requirements_cflag
		}
	}
}

formable_greater_korea_category = {
	formable_greater_korea_form_decision = {
		icon = formable_greater_korea
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_korea_form_decision_tt
						count_triggers = {
							amount = 10	#16 total states required
							328 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							525 = { is_fully_controlled_by = ROOT }
							527 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							917 = { is_fully_controlled_by = ROOT }
							918 = { is_fully_controlled_by = ROOT }
							919 = { is_fully_controlled_by = ROOT }
							920 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GKO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GKO
			add_state_core = 282
			add_state_core = 528
			add_state_core = 529
			add_state_core = 530
			add_state_core = 531
			add_state_core = 532
			add_state_core = 533
			add_state_core = 534
			add_state_core = 535
			add_state_core = 536
			add_state_core = 537
			add_state_core = 655
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 328
				add_state_core = 408
				add_state_core = 409
				add_state_core = 525
				add_state_core = 527
				add_state_core = 716
				add_state_core = 717
				add_state_core = 745
				add_state_core = 917
				add_state_core = 918
				add_state_core = 919
				add_state_core = 920
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 947
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_korea_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_korea_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_korea_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_latin_union_show_decision = {
		icon = formable_greater_latin_union
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = ITA
				original_tag = SPR
				original_tag = POR
				original_tag = ROM
				original_tag = MOL
				original_tag = GLC
				original_tag = CAT
				original_tag = OCC
				original_tag = COR
				original_tag = ADR
				original_tag = BRA
				original_tag = COL
				original_tag = VEN
				original_tag = MEX
				original_tag = PAN
				original_tag = COS
				original_tag = NIC
				original_tag = HON
				original_tag = ELS
				original_tag = GUA
				original_tag = CUB
				original_tag = HAI
				original_tag = DOM
				original_tag = PRU
				original_tag = PAR
				original_tag = URG
				original_tag = BOL
				original_tag = ARG
				original_tag = CHL
				original_tag = ECU
				original_tag = CAY
				original_tag = ANG
				original_tag = MZB
				original_tag = RCG
				original_tag = GAB
				original_tag = EQG
				original_tag = CMR
				original_tag = CAR
				original_tag = CHA
				original_tag = NGR
				original_tag = DAH
				original_tag = TOG
				original_tag = IVO
				original_tag = GNA
				original_tag = GNB
				original_tag = SEN
				original_tag = MRT
				original_tag = MLI
				original_tag = ALG
				original_tag = TUN
				original_tag = MOR
				original_tag = WES
				original_tag = DJI
				original_tag = TML
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_latin_union_requirements_cflag
		}
	}
}

formable_greater_latin_union_category = {
	formable_greater_latin_union_form_decision = {
		icon = formable_greater_latin_union
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_latin_union_form_decision_tt
						count_triggers = {
							amount = 200 #286 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							178 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							272 = { is_fully_controlled_by = ROOT }
							273 = { is_fully_controlled_by = ROOT }
							277 = { is_fully_controlled_by = ROOT }
							278 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							280 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							295 = { is_fully_controlled_by = ROOT }
							296 = { is_fully_controlled_by = ROOT }
							297 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							495 = { is_fully_controlled_by = ROOT }
							496 = { is_fully_controlled_by = ROOT }
							497 = { is_fully_controlled_by = ROOT }
							498 = { is_fully_controlled_by = ROOT }
							499 = { is_fully_controlled_by = ROOT }
							500 = { is_fully_controlled_by = ROOT }
							501 = { is_fully_controlled_by = ROOT }
							502 = { is_fully_controlled_by = ROOT }
							503 = { is_fully_controlled_by = ROOT }
							504 = { is_fully_controlled_by = ROOT }
							505 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							514 = { is_fully_controlled_by = ROOT }
							515 = { is_fully_controlled_by = ROOT }
							538 = { is_fully_controlled_by = ROOT }
							539 = { is_fully_controlled_by = ROOT }
							540 = { is_fully_controlled_by = ROOT }
							543 = { is_fully_controlled_by = ROOT }
							544 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							649 = { is_fully_controlled_by = ROOT }
							660 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							697 = { is_fully_controlled_by = ROOT }
							698 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							702 = { is_fully_controlled_by = ROOT }
							705 = { is_fully_controlled_by = ROOT }
							718 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							772 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							778 = { is_fully_controlled_by = ROOT }
							779 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							796 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							888 = { is_fully_controlled_by = ROOT }
							889 = { is_fully_controlled_by = ROOT }
							890 = { is_fully_controlled_by = ROOT }
							891 = { is_fully_controlled_by = ROOT }
							892 = { is_fully_controlled_by = ROOT }
							896 = { is_fully_controlled_by = ROOT }
							897 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							999 = { is_fully_controlled_by = ROOT }
							1000 = { is_fully_controlled_by = ROOT }
							1001 = { is_fully_controlled_by = ROOT }
							1002 = { is_fully_controlled_by = ROOT }
							1003 = { is_fully_controlled_by = ROOT }
							1004 = { is_fully_controlled_by = ROOT }
							1005 = { is_fully_controlled_by = ROOT }
							1006 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1023 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1052 = { is_fully_controlled_by = ROOT }
							1056 = { is_fully_controlled_by = ROOT }
							1057 = { is_fully_controlled_by = ROOT }
							1058 = { is_fully_controlled_by = ROOT }
							1059 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1072 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
							1074 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
							1098 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GLU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GLU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 6
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 39
				add_state_core = 41
				add_state_core = 46
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 118
				add_state_core = 151
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 178
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 272
				add_state_core = 273
				add_state_core = 277
				add_state_core = 278
				add_state_core = 279
				add_state_core = 280
				add_state_core = 290
				add_state_core = 295
				add_state_core = 296
				add_state_core = 297
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 310
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 318
				add_state_core = 319
				add_state_core = 327
				add_state_core = 366
				add_state_core = 367
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 382
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 495
				add_state_core = 496
				add_state_core = 497
				add_state_core = 498
				add_state_core = 499
				add_state_core = 500
				add_state_core = 501
				add_state_core = 502
				add_state_core = 503
				add_state_core = 504
				add_state_core = 505
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 513
				add_state_core = 514
				add_state_core = 515
				add_state_core = 538
				add_state_core = 539
				add_state_core = 540
				add_state_core = 543
				add_state_core = 544
				add_state_core = 553
				add_state_core = 554
				add_state_core = 556
				add_state_core = 557
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 649
				add_state_core = 660
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 665
				add_state_core = 677
				add_state_core = 680
				add_state_core = 685
				add_state_core = 686
				add_state_core = 688
				add_state_core = 697
				add_state_core = 698
				add_state_core = 699
				add_state_core = 702
				add_state_core = 705
				add_state_core = 718
				add_state_core = 721
				add_state_core = 735
				add_state_core = 736
				add_state_core = 766
				add_state_core = 772
				add_state_core = 773
				add_state_core = 774
				add_state_core = 775
				add_state_core = 776
				add_state_core = 777
				add_state_core = 778
				add_state_core = 779
				add_state_core = 780
				add_state_core = 781
				add_state_core = 782
				add_state_core = 783
				add_state_core = 785
				add_state_core = 786
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 796
				add_state_core = 799
				add_state_core = 806
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 888
				add_state_core = 889
				add_state_core = 890
				add_state_core = 891
				add_state_core = 892
				add_state_core = 896
				add_state_core = 897
				add_state_core = 898
				add_state_core = 899
				add_state_core = 912
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 933
				add_state_core = 937
				add_state_core = 948
				add_state_core = 954
				add_state_core = 955
				add_state_core = 957
				add_state_core = 973
				add_state_core = 994
				add_state_core = 999
				add_state_core = 1000
				add_state_core = 1001
				add_state_core = 1002
				add_state_core = 1003
				add_state_core = 1004
				add_state_core = 1005
				add_state_core = 1006
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1023
				add_state_core = 1051
				add_state_core = 1052
				add_state_core = 1056
				add_state_core = 1057
				add_state_core = 1058
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1072
				add_state_core = 1073
				add_state_core = 1074
				add_state_core = 1077
				add_state_core = 1094
				add_state_core = 1095
				add_state_core = 1098
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_latin_union_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_latin_union_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_latin_union_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_lithuania_show_decision = {
		icon = formable_greater_lithuania
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LIT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_lithuania_requirements_cflag
		}
	}
}

formable_greater_lithuania_category = {
	formable_greater_lithuania_form_decision = {
		icon = formable_greater_lithuania
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_lithuania_form_decision_tt
						count_triggers = {
							amount = 15	#18 total states required
							11 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GLI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GLI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 11
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 188
				add_state_core = 189
				add_state_core = 194
				add_state_core = 204
				add_state_core = 206
				add_state_core = 207
				add_state_core = 241
				add_state_core = 784
				add_state_core = 814
				add_state_core = 815
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_lithuania_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_lithuania_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_lithuania_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_morocco_show_decision = {
		icon = formable_greater_morocco
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MOR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_morocco_requirements_cflag
		}
	}
}

formable_greater_morocco_category = {
	formable_greater_morocco_form_decision = {
		icon = formable_greater_morocco
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_morocco_form_decision_tt
						count_triggers = {
							amount = 7	#7 total states required
							290 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GMC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GMC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 290
				add_state_core = 459
				add_state_core = 461
				add_state_core = 462
				add_state_core = 513
				add_state_core = 699
				add_state_core = 783
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_morocco_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_morocco_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_morocco_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_netherlands_show_decision = {
		icon = formable_greater_netherlands
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = FLA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_netherlands_requirements_cflag
		}
	}
}

formable_greater_netherlands_category = {
	formable_greater_netherlands_form_decision = {
		icon = formable_greater_netherlands
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_netherlands_form_decision_tt
						count_triggers = {
							amount = 5	#5 total states required
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GNL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GNL
			add_state_core = 8
			add_state_core = 29
			add_state_core = 34
			add_state_core = 51
			add_state_core = 56
			add_state_core = 57
			add_state_core = 965
			add_state_core = 989
			add_state_core = 1095
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 6
				add_state_core = 7
				add_state_core = 35
				add_state_core = 36
				add_state_core = 1094
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_netherlands_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_netherlands_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_netherlands_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_norway_show_decision = {
		icon = formable_greater_norway
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = NOR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_norway_requirements_cflag
		}
	}
}

formable_greater_norway_category = {
	formable_greater_norway_form_decision = {
		icon = formable_greater_norway
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_norway_form_decision_tt
						count_triggers = {
							amount = 22	#26 total states required
							100 = { is_fully_controlled_by = ROOT }
							101 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							730 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1043 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GKN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GKN
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 100
				add_state_core = 101
				add_state_core = 110
				add_state_core = 140
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 331
				add_state_core = 332
				add_state_core = 337
				add_state_core = 464
				add_state_core = 730
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 970
				add_state_core = 971
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1043
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_norway_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_norway_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_norway_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_greater_poland_show_decision = {
		icon = formable_greater_poland
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = POL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_poland_requirements_cflag
		}
	}
}
 
formable_greater_poland_category = {
	formable_greater_poland_form_decision = {
		icon = formable_greater_poland
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_poland_form_decision_tt
						count_triggers = {
							amount = 31	#39 total states required
							5 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							11 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GPO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GPO
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 9
			add_state_core = 69
			add_state_core = 74
			add_state_core = 75
			add_state_core = 190
			add_state_core = 809
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 10
				add_state_core = 11
				add_state_core = 63
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 80
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 98
				add_state_core = 188
				add_state_core = 189
				add_state_core = 664
				add_state_core = 762
				add_state_core = 763
				add_state_core = 784
				add_state_core = 807
				add_state_core = 814
				add_state_core = 815
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				add_state_core = 996
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_poland_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_poland_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_poland_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_romania_show_decision = {
		icon = formable_greater_romania
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ROM
				original_tag = MCD
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_romania_requirements_cflag
		}
	}
}

formable_greater_romania_category = {
	formable_greater_romania_form_decision = {
		icon = formable_greater_romania
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_romania_form_decision_tt
						count_triggers = {
							amount = 16	#29 total states required
							44 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GRM } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GRM
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 46
				add_state_core = 48
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 154
				add_state_core = 185
				add_state_core = 764
				add_state_core = 766
				add_state_core = 802
				add_state_core = 803
				add_state_core = 805
				add_state_core = 834
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 955
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_romania_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_romania_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_romania_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_russia_show_decision = {
		icon = formable_greater_russia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
				original_tag = UKR
				original_tag = BLR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_russia_requirements_cflag
		}
	}
}

formable_greater_russia_category = {
	formable_greater_russia_form_decision = {
		icon = formable_greater_russia
		cost = 0  days_re_enable = 0
		available = {
			10 = { is_fully_controlled_by = ROOT }
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_russia_form_decision_tt
						count_triggers = {
							amount = 195	#217 total states required
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							40 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							200 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							205 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							210 = { is_fully_controlled_by = ROOT }
							213 = { is_fully_controlled_by = ROOT }
							214 = { is_fully_controlled_by = ROOT }
							215 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							217 = { is_fully_controlled_by = ROOT }
							218 = { is_fully_controlled_by = ROOT }
							219 = { is_fully_controlled_by = ROOT }
							220 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							222 = { is_fully_controlled_by = ROOT }
							223 = { is_fully_controlled_by = ROOT }
							224 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							227 = { is_fully_controlled_by = ROOT }
							228 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							232 = { is_fully_controlled_by = ROOT }
							233 = { is_fully_controlled_by = ROOT }
							234 = { is_fully_controlled_by = ROOT }
							235 = { is_fully_controlled_by = ROOT }
							236 = { is_fully_controlled_by = ROOT }
							237 = { is_fully_controlled_by = ROOT }
							238 = { is_fully_controlled_by = ROOT }
							239 = { is_fully_controlled_by = ROOT }
							240 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							242 = { is_fully_controlled_by = ROOT }
							243 = { is_fully_controlled_by = ROOT }
							244 = { is_fully_controlled_by = ROOT }
							245 = { is_fully_controlled_by = ROOT }
							246 = { is_fully_controlled_by = ROOT }
							247 = { is_fully_controlled_by = ROOT }
							248 = { is_fully_controlled_by = ROOT }
							249 = { is_fully_controlled_by = ROOT }
							250 = { is_fully_controlled_by = ROOT }
							251 = { is_fully_controlled_by = ROOT }
							252 = { is_fully_controlled_by = ROOT }
							253 = { is_fully_controlled_by = ROOT }
							254 = { is_fully_controlled_by = ROOT }
							255 = { is_fully_controlled_by = ROOT }
							256 = { is_fully_controlled_by = ROOT }
							257 = { is_fully_controlled_by = ROOT }
							258 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							260 = { is_fully_controlled_by = ROOT }
							262 = { is_fully_controlled_by = ROOT }
							263 = { is_fully_controlled_by = ROOT }
							264 = { is_fully_controlled_by = ROOT }
							265 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							329 = { is_fully_controlled_by = ROOT }
							330 = { is_fully_controlled_by = ROOT }
							351 = { is_fully_controlled_by = ROOT }
							397 = { is_fully_controlled_by = ROOT }
							398 = { is_fully_controlled_by = ROOT }
							399 = { is_fully_controlled_by = ROOT }
							400 = { is_fully_controlled_by = ROOT }
							401 = { is_fully_controlled_by = ROOT }
							402 = { is_fully_controlled_by = ROOT }
							403 = { is_fully_controlled_by = ROOT }
							404 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							406 = { is_fully_controlled_by = ROOT }
							407 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							516 = { is_fully_controlled_by = ROOT }
							537 = { is_fully_controlled_by = ROOT }
							555 = { is_fully_controlled_by = ROOT }
							560 = { is_fully_controlled_by = ROOT }
							561 = { is_fully_controlled_by = ROOT }
							562 = { is_fully_controlled_by = ROOT }
							563 = { is_fully_controlled_by = ROOT }
							564 = { is_fully_controlled_by = ROOT }
							565 = { is_fully_controlled_by = ROOT }
							566 = { is_fully_controlled_by = ROOT }
							567 = { is_fully_controlled_by = ROOT }
							568 = { is_fully_controlled_by = ROOT }
							569 = { is_fully_controlled_by = ROOT }
							570 = { is_fully_controlled_by = ROOT }
							571 = { is_fully_controlled_by = ROOT }
							572 = { is_fully_controlled_by = ROOT }
							573 = { is_fully_controlled_by = ROOT }
							574 = { is_fully_controlled_by = ROOT }
							575 = { is_fully_controlled_by = ROOT }
							576 = { is_fully_controlled_by = ROOT }
							577 = { is_fully_controlled_by = ROOT }
							578 = { is_fully_controlled_by = ROOT }
							579 = { is_fully_controlled_by = ROOT }
							580 = { is_fully_controlled_by = ROOT }
							581 = { is_fully_controlled_by = ROOT }
							582 = { is_fully_controlled_by = ROOT }
							583 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							586 = { is_fully_controlled_by = ROOT }
							587 = { is_fully_controlled_by = ROOT }
							588 = { is_fully_controlled_by = ROOT }
							589 = { is_fully_controlled_by = ROOT }
							590 = { is_fully_controlled_by = ROOT }
							637 = { is_fully_controlled_by = ROOT }
							644 = { is_fully_controlled_by = ROOT }
							651 = { is_fully_controlled_by = ROOT }
							652 = { is_fully_controlled_by = ROOT }
							653 = { is_fully_controlled_by = ROOT }
							654 = { is_fully_controlled_by = ROOT }
							655 = { is_fully_controlled_by = ROOT }
							657 = { is_fully_controlled_by = ROOT }
							722 = { is_fully_controlled_by = ROOT }
							732 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							817 = { is_fully_controlled_by = ROOT }
							818 = { is_fully_controlled_by = ROOT }
							819 = { is_fully_controlled_by = ROOT }
							820 = { is_fully_controlled_by = ROOT }
							821 = { is_fully_controlled_by = ROOT }
							822 = { is_fully_controlled_by = ROOT }
							823 = { is_fully_controlled_by = ROOT }
							824 = { is_fully_controlled_by = ROOT }
							825 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							827 = { is_fully_controlled_by = ROOT }
							828 = { is_fully_controlled_by = ROOT }
							829 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							833 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							874 = { is_fully_controlled_by = ROOT }
							875 = { is_fully_controlled_by = ROOT }
							876 = { is_fully_controlled_by = ROOT }
							877 = { is_fully_controlled_by = ROOT }
							878 = { is_fully_controlled_by = ROOT }
							879 = { is_fully_controlled_by = ROOT }
							880 = { is_fully_controlled_by = ROOT }
							881 = { is_fully_controlled_by = ROOT }
							882 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_RUE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_RUE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 40
				add_state_core = 78
				add_state_core = 80
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 111
				add_state_core = 137
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 195
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 200
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 205
				add_state_core = 206
				add_state_core = 207
				add_state_core = 208
				add_state_core = 209
				add_state_core = 210
				add_state_core = 213
				add_state_core = 214
				add_state_core = 215
				add_state_core = 216
				add_state_core = 217
				add_state_core = 218
				add_state_core = 219
				add_state_core = 220
				add_state_core = 221
				add_state_core = 222
				add_state_core = 223
				add_state_core = 224
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 232
				add_state_core = 233
				add_state_core = 234
				add_state_core = 235
				add_state_core = 236
				add_state_core = 237
				add_state_core = 238
				add_state_core = 239
				add_state_core = 240
				add_state_core = 241
				add_state_core = 242
				add_state_core = 243
				add_state_core = 244
				add_state_core = 245
				add_state_core = 246
				add_state_core = 247
				add_state_core = 248
				add_state_core = 249
				add_state_core = 250
				add_state_core = 251
				add_state_core = 252
				add_state_core = 253
				add_state_core = 254
				add_state_core = 255
				add_state_core = 256
				add_state_core = 257
				add_state_core = 258
				add_state_core = 259
				add_state_core = 260
				add_state_core = 262
				add_state_core = 263
				add_state_core = 264
				add_state_core = 265
				add_state_core = 266
				add_state_core = 329
				add_state_core = 330
				add_state_core = 351
				add_state_core = 397
				add_state_core = 398
				add_state_core = 399
				add_state_core = 400
				add_state_core = 401
				add_state_core = 402
				add_state_core = 403
				add_state_core = 404
				add_state_core = 405
				add_state_core = 406
				add_state_core = 407
				add_state_core = 408
				add_state_core = 409
				add_state_core = 415
				add_state_core = 416
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 463
				add_state_core = 516
				add_state_core = 537
				add_state_core = 555
				add_state_core = 560
				add_state_core = 561
				add_state_core = 562
				add_state_core = 563
				add_state_core = 564
				add_state_core = 565
				add_state_core = 566
				add_state_core = 567
				add_state_core = 568
				add_state_core = 569
				add_state_core = 570
				add_state_core = 571
				add_state_core = 572
				add_state_core = 573
				add_state_core = 574
				add_state_core = 575
				add_state_core = 576
				add_state_core = 577
				add_state_core = 578
				add_state_core = 579
				add_state_core = 580
				add_state_core = 581
				add_state_core = 582
				add_state_core = 583
				add_state_core = 584
				add_state_core = 585
				add_state_core = 586
				add_state_core = 587
				add_state_core = 588
				add_state_core = 589
				add_state_core = 590
				add_state_core = 637
				add_state_core = 644
				add_state_core = 651
				add_state_core = 652
				add_state_core = 653
				add_state_core = 654
				add_state_core = 655
				add_state_core = 657
				add_state_core = 722
				add_state_core = 732
				add_state_core = 742
				add_state_core = 763
				add_state_core = 766
				add_state_core = 784
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				add_state_core = 817
				add_state_core = 818
				add_state_core = 819
				add_state_core = 820
				add_state_core = 821
				add_state_core = 822
				add_state_core = 823
				add_state_core = 824
				add_state_core = 825
				add_state_core = 826
				add_state_core = 827
				add_state_core = 828
				add_state_core = 829
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 833
				add_state_core = 834
				add_state_core = 874
				add_state_core = 875
				add_state_core = 876
				add_state_core = 877
				add_state_core = 878
				add_state_core = 879
				add_state_core = 880
				add_state_core = 881
				add_state_core = 882
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 1008
				add_state_core = 1011
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1044
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_russia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_russia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_russia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_serbia_show_decision = {
		icon = formable_greater_serbia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SER
				original_tag = KOS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_serbia_requirements_cflag
		}
	}
}

formable_greater_serbia_category = {
	formable_greater_serbia_form_decision = {
		icon = formable_greater_serbia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_serbia_form_decision_tt
						count_triggers = {
							amount = 13	#18 total states required
							44 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GSE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GSE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 45
				add_state_core = 82
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 764
				add_state_core = 802
				add_state_core = 803
				add_state_core = 910
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 959
				add_state_core = 962
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_serbia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_serbia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_serbia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_singapore_show_decision = {
		icon = formable_greater_singapore
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SGP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_singapore_requirements_cflag
		}
	}
}

formable_greater_singapore_category = {
	formable_greater_singapore_form_decision = {
		icon = formable_greater_singapore
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_singapore_form_decision_tt
						count_triggers = {
							amount = 30	#42 total states required
							286 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							333 = { is_fully_controlled_by = ROOT }
							334 = { is_fully_controlled_by = ROOT }
							335 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							422 = { is_fully_controlled_by = ROOT }
							446 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							672 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							711 = { is_fully_controlled_by = ROOT }
							712 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							733 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							909 = { is_fully_controlled_by = ROOT }
							914 = { is_fully_controlled_by = ROOT }
							915 = { is_fully_controlled_by = ROOT }
							916 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
							951 = { is_fully_controlled_by = ROOT }
							960 = { is_fully_controlled_by = ROOT }
							974 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							976 = { is_fully_controlled_by = ROOT }
							977 = { is_fully_controlled_by = ROOT }
							978 = { is_fully_controlled_by = ROOT }
							1014 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GSP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GSP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 286
				add_state_core = 288
				add_state_core = 289
				add_state_core = 333
				add_state_core = 334
				add_state_core = 335
				add_state_core = 336
				add_state_core = 422
				add_state_core = 446
				add_state_core = 626
				add_state_core = 640
				add_state_core = 667
				add_state_core = 670
				add_state_core = 672
				add_state_core = 673
				add_state_core = 711
				add_state_core = 712
				add_state_core = 721
				add_state_core = 724
				add_state_core = 733
				add_state_core = 741
				add_state_core = 868
				add_state_core = 869
				add_state_core = 909
				add_state_core = 914
				add_state_core = 915
				add_state_core = 916
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 951
				add_state_core = 960
				add_state_core = 974
				add_state_core = 975
				add_state_core = 976
				add_state_core = 977
				add_state_core = 978
				add_state_core = 1014
				add_state_core = 1018
				add_state_core = 1020
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_singapore_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_singapore_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_singapore_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_tibet_show_decision = {
		icon = formable_greater_tibet
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TIB
				original_tag = BHU
				original_tag = NEP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_tibet_requirements_cflag
		}
	}
}

formable_greater_tibet_category = {
	formable_greater_tibet_form_decision = {
		icon = formable_greater_tibet
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_tibet_form_decision_tt
						count_triggers = {
							amount = 13	#17 total states required
							322 = { is_fully_controlled_by = ROOT }
							323 = { is_fully_controlled_by = ROOT }
							324 = { is_fully_controlled_by = ROOT }
							434 = { is_fully_controlled_by = ROOT }
							601 = { is_fully_controlled_by = ROOT }
							604 = { is_fully_controlled_by = ROOT }
							751 = { is_fully_controlled_by = ROOT }
							752 = { is_fully_controlled_by = ROOT }
							753 = { is_fully_controlled_by = ROOT }
							754 = { is_fully_controlled_by = ROOT }
							755 = { is_fully_controlled_by = ROOT }
							757 = { is_fully_controlled_by = ROOT }
							758 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							1013 = { is_fully_controlled_by = ROOT }
							1075 = { is_fully_controlled_by = ROOT }
							1091 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GTI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GTI
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 322
				add_state_core = 323
				add_state_core = 324
				add_state_core = 434
				add_state_core = 601
				add_state_core = 604
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 757
				add_state_core = 758
				add_state_core = 759
				add_state_core = 1013
				add_state_core = 1075
				add_state_core = 1091
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_tibet_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_tibet_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_tibet_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_turkestan_show_decision = {
		icon = formable_greater_turkestan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ 
				original_tag = KAZ 
				original_tag = UZB 
				original_tag = KYR
				original_tag = TAJ 
				original_tag = TMS 
				original_tag = TNG 
				original_tag = SIK 
				original_tag = BUK 
				original_tag = KHI 
				original_tag = KKP 
				original_tag = TUR 
				original_tag = AZR 
				original_tag = KUR
				original_tag = ALT
				original_tag = TAN
				original_tag = KAL
				original_tag = DAG
				original_tag = CIN
				original_tag = NOA
				original_tag = KBK
				original_tag = ABK
				original_tag = GEO
				original_tag = ARM
				
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_turkestan_requirements_cflag
		}
	}
}

formable_greater_turkestan_category = {
	formable_greater_turkestan_form_decision = {
		icon = formable_greater_turkestan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_turkestan_form_decision_tt
						count_triggers = {
							amount = 55	#63 total states required
							49 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							232 = { is_fully_controlled_by = ROOT }
							233 = { is_fully_controlled_by = ROOT }
							235 = { is_fully_controlled_by = ROOT }
							236 = { is_fully_controlled_by = ROOT }
							237 = { is_fully_controlled_by = ROOT }
							287 = { is_fully_controlled_by = ROOT }
							329 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							402 = { is_fully_controlled_by = ROOT }
							404 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							406 = { is_fully_controlled_by = ROOT }
							407 = { is_fully_controlled_by = ROOT }
							583 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							586 = { is_fully_controlled_by = ROOT }
							587 = { is_fully_controlled_by = ROOT }
							588 = { is_fully_controlled_by = ROOT }
							589 = { is_fully_controlled_by = ROOT }
							590 = { is_fully_controlled_by = ROOT }
							617 = { is_fully_controlled_by = ROOT }
							618 = { is_fully_controlled_by = ROOT }
							619 = { is_fully_controlled_by = ROOT }
							654 = { is_fully_controlled_by = ROOT }
							732 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							760 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							818 = { is_fully_controlled_by = ROOT }
							821 = { is_fully_controlled_by = ROOT }
							823 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							827 = { is_fully_controlled_by = ROOT }
							828 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							881 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GTK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GTK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 49
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 232
				add_state_core = 233
				add_state_core = 235
				add_state_core = 236
				add_state_core = 237
				add_state_core = 287
				add_state_core = 329
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 402
				add_state_core = 404
				add_state_core = 405
				add_state_core = 406
				add_state_core = 407
				add_state_core = 583
				add_state_core = 584
				add_state_core = 585
				add_state_core = 586
				add_state_core = 587
				add_state_core = 588
				add_state_core = 589
				add_state_core = 590
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 654
				add_state_core = 732
				add_state_core = 742
				add_state_core = 759
				add_state_core = 760
				add_state_core = 797
				add_state_core = 798
				add_state_core = 800
				add_state_core = 818
				add_state_core = 821
				add_state_core = 823
				add_state_core = 826
				add_state_core = 827
				add_state_core = 828
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 881
				add_state_core = 935
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_turkestan_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_turkestan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_turkestan_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_ukraine_show_decision = {
		icon = formable_greater_ukraine
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = UKR 
				original_tag = RUT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_ukraine_requirements_cflag
		}
	}
}

formable_greater_ukraine_category = {
	formable_greater_ukraine_form_decision = {
		icon = formable_greater_ukraine
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_ukraine_form_decision_tt
						count_triggers = {
							amount = 30	#41 total states required
							73 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							200 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							217 = { is_fully_controlled_by = ROOT }
							218 = { is_fully_controlled_by = ROOT }
							220 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							227 = { is_fully_controlled_by = ROOT }
							228 = { is_fully_controlled_by = ROOT }
							232 = { is_fully_controlled_by = ROOT }
							234 = { is_fully_controlled_by = ROOT }
							235 = { is_fully_controlled_by = ROOT }
							237 = { is_fully_controlled_by = ROOT }
							238 = { is_fully_controlled_by = ROOT }
							240 = { is_fully_controlled_by = ROOT }
							245 = { is_fully_controlled_by = ROOT }
							257 = { is_fully_controlled_by = ROOT }
							258 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							260 = { is_fully_controlled_by = ROOT }
							265 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GUK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GUK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 73
				add_state_core = 80
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 94
				add_state_core = 137
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 200
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 217
				add_state_core = 218
				add_state_core = 220
				add_state_core = 221
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 232
				add_state_core = 234
				add_state_core = 235
				add_state_core = 237
				add_state_core = 238
				add_state_core = 240
				add_state_core = 245
				add_state_core = 257
				add_state_core = 258
				add_state_core = 259
				add_state_core = 260
				add_state_core = 265
				add_state_core = 766
				add_state_core = 834
				add_state_core = 996
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_ukraine_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_ukraine_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_ukraine_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_greater_yugoslavia_show_decision = {
		icon = formable_greater_yugoslavia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greater_yugoslavia_requirements_cflag
		}
	}
}

formable_greater_yugoslavia_category = {
	formable_greater_yugoslavia_form_decision = {
		icon = formable_greater_yugoslavia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greater_yugoslavia_form_decision_tt
						count_triggers = {
							amount = 32	#36 total states required
							44 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_YUG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_YUG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 45
				add_state_core = 48
				add_state_core = 77
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 163
				add_state_core = 184
				add_state_core = 211
				add_state_core = 212
				add_state_core = 731
				add_state_core = 736
				add_state_core = 764
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 852
				add_state_core = 853
				add_state_core = 910
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greater_yugoslavia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greater_yugoslavia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greater_yugoslavia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_greece_turkey_show_decision = {
		icon = formable_greece_turkey
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CYP
				original_tag = GRE
				original_tag = TUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_greece_turkey_requirements_cflag
		}
	}
}
 
formable_greece_turkey_category = {
	formable_greece_turkey_form_decision = {
		icon = formable_greece_turkey
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_greece_turkey_form_decision_tt
						count_triggers = {
							amount = 24	#32 total states required
							47 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GTY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GTY
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 47
				add_state_core = 49
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 731
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 805
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_greece_turkey_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_greece_turkey_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_greece_turkey_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_grossdeutschland_show_decision = {
		icon = formable_grossdeutschland
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_grossdeutschland_requirements_cflag
		}
	}
}

formable_grossdeutschland_category = {
	formable_grossdeutschland_form_decision = {
		icon = formable_grossdeutschland
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_grossdeutschland_form_decision_tt
						count_triggers = {
							amount = 48	#58 total states required
							4 = { is_fully_controlled_by = ROOT }
							5 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GRO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = GER_greater_german_reich
			set_province_name = { id = 6521 name = "Germania" }
			set_province_name = { id = 6558 name = "Posen" }
			set_province_name = { id = 9503 name = "Straßburg" }
			set_province_name = { id = 678 name = "Mülhausen" }
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 5
				add_state_core = 8
				add_state_core = 9
				add_state_core = 10
				add_state_core = 28
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 72
				add_state_core = 74
				add_state_core = 75
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 97
				add_state_core = 98
				add_state_core = 152
				add_state_core = 153
				add_state_core = 188
				add_state_core = 762
				add_state_core = 763
				add_state_core = 807
				add_state_core = 848
				add_state_core = 922
				add_state_core = 923
				add_state_core = 934
				add_state_core = 964
				add_state_core = 965
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_grossdeutschland_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_grossdeutschland_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_grossdeutschland_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_grossdeutsche_losung_show_decision = {
		icon = formable_grossdeutsche_losung
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_grossdeutsche_losung_requirements_cflag
		}
	}
}

formable_grossdeutsche_losung_category = {
	formable_grossdeutsche_losung_form_decision = {
		icon = formable_grossdeutsche_losung
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_grossdeutsche_losung_form_decision_tt
						count_triggers = {
							amount = 65	#79 total states required
							4 = { is_fully_controlled_by = ROOT }
							5 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GGS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GGS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 5
				add_state_core = 8
				add_state_core = 9
				add_state_core = 39
				add_state_core = 42
				add_state_core = 43
				add_state_core = 45
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 80
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 85
				add_state_core = 86
				add_state_core = 88
				add_state_core = 89
				add_state_core = 91
				add_state_core = 102
				add_state_core = 103
				add_state_core = 109
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 163
				add_state_core = 188
				add_state_core = 664
				add_state_core = 736
				add_state_core = 762
				add_state_core = 763
				add_state_core = 764
				add_state_core = 807
				add_state_core = 848
				add_state_core = 850
				add_state_core = 852
				add_state_core = 853
				add_state_core = 913
				add_state_core = 922
				add_state_core = 923
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 964
				add_state_core = 965
				add_state_core = 989
				add_state_core = 996
				add_state_core = 998
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_grossdeutsche_losung_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_grossdeutsche_losung_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_grossdeutsche_losung_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_guyanas_show_decision = {
		icon = formable_guyanas
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GYA
				original_tag = SUR
				original_tag = CAY
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_guyanas_requirements_cflag
		}
	}
}

formable_guyanas_category = {
	formable_guyanas_form_decision = {
		icon = formable_guyanas
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_guyanas_form_decision_tt
						count_triggers = {
							amount = 4	#5 total states required
							309 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							1098 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GUY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GUY
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 309
				add_state_core = 310
				add_state_core = 488
				add_state_core = 687
				add_state_core = 1098
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_guyanas_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_guyanas_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_guyanas_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_habsburg_empire_show_decision = {
		icon = formable_habsburg_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
				original_tag = SPR
				original_tag = SIC
				original_tag = ITA
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = CZE
				original_tag = SAD
				original_tag = SLO
				original_tag = SLV
				original_tag = SIL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_habsburg_empire_requirements_cflag
		}
	}
}

formable_habsburg_empire_category = {
	formable_habsburg_empire_form_decision = {
		icon = formable_habsburg_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_habsburg_empire_form_decision_tt
						count_triggers = {
							amount = 58	#70 total states required
							4 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HBE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HBE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 9
				add_state_core = 29
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 39
				add_state_core = 41
				add_state_core = 43
				add_state_core = 67
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 74
				add_state_core = 75
				add_state_core = 88
				add_state_core = 102
				add_state_core = 109
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 118
				add_state_core = 152
				add_state_core = 153
				add_state_core = 155
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 664
				add_state_core = 736
				add_state_core = 762
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 848
				add_state_core = 849
				add_state_core = 850
				add_state_core = 852
				add_state_core = 853
				add_state_core = 912
				add_state_core = 956
				add_state_core = 965
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_habsburg_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_habsburg_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_habsburg_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_hispanic_america_show_decision = {
		icon = formable_hispanic_america
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ARG
				original_tag = BOL
				original_tag = CHL
				original_tag = COL
				original_tag = COS
				original_tag = CUB
				original_tag = DOM
				original_tag = ECU
				original_tag = ELS
				original_tag = GUA
				original_tag = HON
				original_tag = MEX
				original_tag = NIC
				original_tag = PAN
				original_tag = PAR
				original_tag = PRU
				original_tag = PUE
				original_tag = URG
				original_tag = VEN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_hispanic_america_requirements_cflag
		}
	}
}
 
formable_hispanic_america_category = {
	formable_hispanic_america_form_decision = {
		icon = formable_hispanic_america
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_hispanic_america_form_decision_tt
						count_triggers = {
							amount = 60	#75 total states required
							277 = { is_fully_controlled_by = ROOT }
							278 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							649 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							972 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1059 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_UHA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_UHA
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 299
			add_state_core = 687
			add_state_core = 720
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 277
				add_state_core = 278
				add_state_core = 279
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 319
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 649
				add_state_core = 685
				add_state_core = 686
				add_state_core = 688
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 937
				add_state_core = 948
				add_state_core = 954
				add_state_core = 972
				add_state_core = 994
				add_state_core = 1051
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1073
				add_state_core = 1077
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_hispanic_america_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_hispanic_america_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_hispanic_america_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_hispaniola_show_decision = {
		icon = formable_hispaniola
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DOM
				original_tag = HAI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_hispaniola_requirements_cflag
		}
	}
}

formable_hispaniola_category = {
	formable_hispaniola_form_decision = {
		icon = formable_hispaniola
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_hispaniola_form_decision_tt
						count_triggers = {
							amount = 2	#2 total states required
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HIS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HIS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 318
				add_state_core = 319
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_hispaniola_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_hispaniola_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_hispaniola_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_hre_show_decision = {
		icon = formable_hre
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				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 = CZE
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = SWI
				original_tag = ITA
				original_tag = HUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_hre_requirements_cflag
		}
	}
}

formable_hre_category = {
	formable_hre_form_decision = {
		icon = formable_hre
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_hre_form_decision_tt
						count_triggers = {
							amount = 50	#85 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							5 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HRE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HRE
			set_capital = {
				state = 52
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 5
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 9
				add_state_core = 17
				add_state_core = 20
				add_state_core = 21
				add_state_core = 28
				add_state_core = 32
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 39
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 72
				add_state_core = 74
				add_state_core = 75
				add_state_core = 85
				add_state_core = 86
				add_state_core = 102
				add_state_core = 114
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 735
				add_state_core = 736
				add_state_core = 762
				add_state_core = 763
				add_state_core = 807
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 912
				add_state_core = 922
				add_state_core = 923
				add_state_core = 956
				add_state_core = 957
				add_state_core = 964
				add_state_core = 965
				add_state_core = 989
				add_state_core = 997
				add_state_core = 998
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_hre_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_hre_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_hre_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_horn_arabia_show_decision = {
		icon = formable_horn_arabia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = YEM
				original_tag = OMA
				original_tag = UAE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_horn_arabia_requirements_cflag
		}
	}
}

formable_horn_arabia_category = {
	formable_horn_arabia_form_decision = {
		icon = formable_horn_arabia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_horn_arabia_form_decision_tt
						count_triggers = {
							amount = 9	#9 total states required
							293 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							678 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HOA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HOA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 293
				add_state_core = 294
				add_state_core = 658
				add_state_core = 659
				add_state_core = 678
				add_state_core = 765
				add_state_core = 858
				add_state_core = 979
				add_state_core = 1007
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_horn_arabia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_horn_arabia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_horn_arabia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_hungarian_kingdom_show_decision = {
		icon = formable_hungarian_kingdom
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_hungarian_kingdom_requirements_cflag
		}
	}
}

formable_hungarian_kingdom_category = {
	formable_hungarian_kingdom_form_decision = {
		icon = formable_hungarian_kingdom
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_hungarian_kingdom_form_decision_tt
						count_triggers = {
							amount = 13	#15 total states required
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HUK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HUK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 43
				add_state_core = 45
				add_state_core = 70
				add_state_core = 71
				add_state_core = 73
				add_state_core = 76
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 154
				add_state_core = 155
				add_state_core = 664
				add_state_core = 764
				add_state_core = 996
				add_state_core = 913
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_hungarian_kingdom_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_hungarian_kingdom_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_hungarian_kingdom_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_hungary_romania_show_decision = {
		icon = formable_hungary_romania
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HUN
				original_tag = ROM
				original_tag = TRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_hungary_romania_requirements_cflag
		}
	}
}

formable_hungary_romania_category = {
	formable_hungary_romania_form_decision = {
		icon = formable_hungary_romania
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_hungary_romania_form_decision_tt
						count_triggers = {
							amount = 14	#17 total states required
							43 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_HRO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_HRO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 43
				add_state_core = 46
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 154
				add_state_core = 155
				add_state_core = 664
				add_state_core = 766
				add_state_core = 913
				add_state_core = 955
				add_state_core = 996
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_hungary_romania_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_hungary_romania_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_hungary_romania_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_iberia_show_decision = {
		icon = formable_iberia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SPR
				original_tag = POR
				original_tag = GLC
				original_tag = NAV
				original_tag = CAT
				original_tag = ADR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_iberia_requirements_cflag
		}
	}
}

formable_iberia_category = {
	formable_iberia_form_decision = {
		icon = formable_iberia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_iberia_form_decision_tt
						count_triggers = {
							amount = 28	#31 total states required
							41 = { is_fully_controlled_by = ROOT } #Madrid
							112	= { is_fully_controlled_by = ROOT } #Lisbon
							118	= { is_fully_controlled_by = ROOT } #Gibraltar
							165	= { is_fully_controlled_by = ROOT } #Cataluna
							166	= { is_fully_controlled_by = ROOT } #Western Aragon
							167	= { is_fully_controlled_by = ROOT } #Valencia
							168	= { is_fully_controlled_by = ROOT } #Murcia
							169	= { is_fully_controlled_by = ROOT } #Sevilla
							170	= { is_fully_controlled_by = ROOT } #Extremadura
							171	= { is_fully_controlled_by = ROOT } #Galicia
							172	= { is_fully_controlled_by = ROOT } #Navarra
							173	= { is_fully_controlled_by = ROOT } #Granada
							174	= { is_fully_controlled_by = ROOT } #Leon
							175	= { is_fully_controlled_by = ROOT } #Ciudad Real
							176	= { is_fully_controlled_by = ROOT } #Burgos
							177	= { is_fully_controlled_by = ROOT } #Islas Baleares
							178	= { is_fully_controlled_by = ROOT } #Islas Canarias
							179	= { is_fully_controlled_by = ROOT } #Beja
							180	= { is_fully_controlled_by = ROOT } #Porto
							181	= { is_fully_controlled_by = ROOT } #Guarda
							697	= { is_fully_controlled_by = ROOT } #Madeira
							698	= { is_fully_controlled_by = ROOT } #Azores
							788	= { is_fully_controlled_by = ROOT } #Salamanca
							789	= { is_fully_controlled_by = ROOT } #Cordoba
							790	= { is_fully_controlled_by = ROOT } #Asturias
							791	= { is_fully_controlled_by = ROOT } #Valladolid
							792	= { is_fully_controlled_by = ROOT } #Pais Vasco
							793	= { is_fully_controlled_by = ROOT } #Guadalajara
							794	= { is_fully_controlled_by = ROOT } #Eastern Aragon
							795	= { is_fully_controlled_by = ROOT } #Santarem
							973	= { is_fully_controlled_by = ROOT } #Andorra
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_IBE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_IBE
			set_capital = {
				state = 41
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 41 #Madrid
				add_state_core = 112 #Lisbon
				add_state_core = 118 #Gibraltar
				add_state_core = 165 #Cataluna
				add_state_core = 166 #Western Aragon
				add_state_core = 167 #Valencia
				add_state_core = 168 #Murcia
				add_state_core = 169 #Sevilla
				add_state_core = 170 #Extremadura
				add_state_core = 171 #Galicia
				add_state_core = 172 #Navarra
				add_state_core = 173 #Granada
				add_state_core = 174 #Leon
				add_state_core = 175 #Ciudad Real
				add_state_core = 176 #Burgos
				add_state_core = 177 #Islas Baleares
				add_state_core = 178 #Islas Canarias
				add_state_core = 179 #Beja
				add_state_core = 180 #Porto
				add_state_core = 181 #Guarda
				add_state_core = 697 #Madeira
				add_state_core = 698 #Azores
				add_state_core = 788 #Salamanca
				add_state_core = 789 #Cordoba
				add_state_core = 790 #Asturias
				add_state_core = 791 #Valladolid
				add_state_core = 792 #Pais Vasco
				add_state_core = 793 #Guadalajara
				add_state_core = 794 #Eastern Aragon
				add_state_core = 795 #Santarem
				add_state_core = 973 #Andorra
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_iberia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_iberia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_iberia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_idel_ural_show_decision = {
		icon = formable_idel_ural
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MEL
				original_tag = CHU
				original_tag = TAT
				original_tag = UDM
				original_tag = BSK
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_idel_ural_requirements_cflag
		}
	}
}

formable_idel_ural_category = {
	formable_idel_ural_form_decision = {
		icon = formable_idel_ural
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_idel_ural_form_decision_tt
						count_triggers = {
							amount = 5	#5 total states required
							249 = { is_fully_controlled_by = ROOT }
							256 = { is_fully_controlled_by = ROOT }
							399 = { is_fully_controlled_by = ROOT }
							651 = { is_fully_controlled_by = ROOT }
							833 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_IDU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_IDU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 249
				add_state_core = 256
				add_state_core = 399
				add_state_core = 651
				add_state_core = 833
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_idel_ural_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_idel_ural_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_idel_ural_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_ilkhanate_show_decision = {
		icon = formable_ilkhanate
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TUR
				original_tag = KUR
				original_tag = IRQ
				original_tag = ARM
				original_tag = AZR
				original_tag = PER
				original_tag = TMS
				original_tag = AFG
				original_tag = SYR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_ilkhanate_requirements_cflag
		}
	}
}

formable_ilkhanate_category = {
	formable_ilkhanate_form_decision = {
		icon = formable_ilkhanate
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_ilkhanate_form_decision_tt
						count_triggers = {
							amount = 38	#53 total states required
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ILK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ILK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 229
				add_state_core = 230
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 444
				add_state_core = 445
				add_state_core = 584
				add_state_core = 676
				add_state_core = 680
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1044
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_ilkhanate_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_ilkhanate_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_ilkhanate_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_inca_empire_show_decision = {
		icon = formable_inca_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PRU
				original_tag = ECU
				original_tag = BOL
				original_tag = CHL
				original_tag = ARG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_inca_empire_requirements_cflag
		}
	}
}

formable_inca_empire_category = {
	formable_inca_empire_form_decision = {
		icon = formable_inca_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_inca_empire_form_decision_tt
						count_triggers = {
							amount = 11	#13 total states required
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_INC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_INC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 302
				add_state_core = 303
				add_state_core = 305
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 494
				add_state_core = 506
				add_state_core = 508
				add_state_core = 954
				add_state_core = 1061
				add_state_core = 1064
				add_state_core = 1071
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_inca_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_inca_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_inca_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_indochina_show_decision = {
		icon = formable_indochina
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LAO
				original_tag = CAM
				original_tag = VIN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_indochina_requirements_cflag
		}
	}
}

formable_indochina_category = {
	formable_indochina_form_decision = {
		icon = formable_indochina
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_indochina_form_decision_tt
						count_triggers = {
							amount = 8	#9 total states required
							286 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_IDO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_IDO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 286
				add_state_core = 670
				add_state_core = 671
				add_state_core = 741
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_indochina_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_indochina_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_indochina_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_intermarium_show_decision = {
		icon = formable_intermarium
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EST
				original_tag = LAT
				original_tag = LIT
				original_tag = POL
				original_tag = BLR
				original_tag = UKR
				original_tag = CZE
				original_tag = SLO
				original_tag = HUN
				original_tag = ROM
				original_tag = MOL
				original_tag = TRA
				original_tag = YUG
				original_tag = SLV
				original_tag = BOS
				original_tag = HER
				original_tag = SER
				original_tag = MAC
				original_tag = MNT
				original_tag = KOS
				original_tag = CRO
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_intermarium_requirements_cflag
		}
	}
}

formable_intermarium_category = {
	formable_intermarium_form_decision = {
		icon = formable_intermarium
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_intermarium_form_decision_tt
						count_triggers = {
							amount = 90	#109 total states required
							9 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							11 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							189 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							200 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							227 = { is_fully_controlled_by = ROOT }
							228 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							784 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							814 = { is_fully_controlled_by = ROOT }
							815 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_INM } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_INM
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 9
				add_state_core = 10
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 43
				add_state_core = 45
				add_state_core = 46
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 98
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 137
				add_state_core = 154
				add_state_core = 155
				add_state_core = 163
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 200
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 206
				add_state_core = 207
				add_state_core = 221
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 241
				add_state_core = 259
				add_state_core = 664
				add_state_core = 762
				add_state_core = 764
				add_state_core = 766
				add_state_core = 784
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 807
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				add_state_core = 834
				add_state_core = 853
				add_state_core = 913
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 955
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				add_state_core = 996
				add_state_core = 1078
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_intermarium_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_intermarium_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_intermarium_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_irish_empire_show_decision = {
		icon = formable_irish_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = IRE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_irish_empire_requirements_cflag
		}
	}
}

formable_irish_empire_category = {
	formable_irish_empire_form_decision = {
		icon = formable_irish_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_irish_empire_form_decision_tt
						count_triggers = {
							amount = 11	#14 total states required
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_IRE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_IRE
			add_state_core = 276
			add_state_core = 331
			add_state_core = 332
			add_state_core = 359
			add_state_core = 360
			add_state_core = 466
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 113
				add_state_core = 119
				add_state_core = 134
				add_state_core = 135
				add_state_core = 357
				add_state_core = 358
				add_state_core = 464
				add_state_core = 465
				add_state_core = 468
				add_state_core = 921
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_irish_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_irish_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_irish_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_italy_show_decision = {
		icon = formable_italy
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SAD
				original_tag = COR
				original_tag = NAP
				original_tag = SIC
				original_tag = VNZ
				original_tag = MLT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_italy_requirements_cflag
		}
	}
}

formable_italy_category = {
	formable_italy_form_decision = {
		icon = formable_italy
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_italy_form_decision_tt
						count_triggers = {
							amount = 15	#18 total states required
							2 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = ITA } } NOT = { country_exists = ITA } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = ITA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 2
				add_state_core = 39
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 736
				add_state_core = 849
				add_state_core = 850
				add_state_core = 852
				add_state_core = 912
				add_state_core = 957
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_italy_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_italy_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_italy_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_kanem_bornu_show_decision = {
		icon = formable_kanem_bornu
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHA
				original_tag = CMR
				original_tag = NGR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_kanem_bornu_requirements_cflag
		}
	}
}
 
formable_kanem_bornu_category = {
	formable_kanem_bornu_form_decision = {
		icon = formable_kanem_bornu
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_kanem_bornu_form_decision_tt
						count_triggers = {
							amount = 4	#5 total states required
							515 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							901 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KBO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KBO
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 273
			add_state_core = 660
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 515
				add_state_core = 773
				add_state_core = 774
				add_state_core = 775
				add_state_core = 901
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_kanem_bornu_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_kanem_bornu_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_kanem_bornu_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_khmer_empire_show_decision = {
		icon = formable_khmer_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SIA
				original_tag = LAO
				original_tag = CAM
				original_tag = FRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_khmer_empire_requirements_cflag
		}
	}
}

formable_khmer_empire_category = {
	formable_khmer_empire_form_decision = {
		icon = formable_khmer_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_khmer_empire_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							286 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KHM } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KHM
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 286
				add_state_core = 289
				add_state_core = 670
				add_state_core = 724
				add_state_core = 741
				add_state_core = 868
				add_state_core = 869
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_khmer_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_khmer_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_khmer_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_kievan_rus_show_decision = {
		icon = formable_kievan_rus
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BLR
				original_tag = UKR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_kievan_rus_requirements_cflag
		}
	}
}

formable_kievan_rus_category = {
	formable_kievan_rus_form_decision = {
		icon = formable_kievan_rus
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_kievan_rus_form_decision_tt
						count_triggers = {
							amount = 50	#63 total states required
							73 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							93 = { is_fully_controlled_by = ROOT }
							94 = { is_fully_controlled_by = ROOT }
							95 = { is_fully_controlled_by = ROOT }
							96 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							192 = { is_fully_controlled_by = ROOT }
							193 = { is_fully_controlled_by = ROOT }
							194 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							197 = { is_fully_controlled_by = ROOT }
							198 = { is_fully_controlled_by = ROOT }
							199 = { is_fully_controlled_by = ROOT }
							201 = { is_fully_controlled_by = ROOT }
							202 = { is_fully_controlled_by = ROOT }
							203 = { is_fully_controlled_by = ROOT }
							204 = { is_fully_controlled_by = ROOT }
							205 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							207 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							209 = { is_fully_controlled_by = ROOT }
							210 = { is_fully_controlled_by = ROOT }
							216 = { is_fully_controlled_by = ROOT }
							219 = { is_fully_controlled_by = ROOT }
							220 = { is_fully_controlled_by = ROOT }
							221 = { is_fully_controlled_by = ROOT }
							222 = { is_fully_controlled_by = ROOT }
							223 = { is_fully_controlled_by = ROOT }
							224 = { is_fully_controlled_by = ROOT }
							225 = { is_fully_controlled_by = ROOT }
							226 = { is_fully_controlled_by = ROOT }
							234 = { is_fully_controlled_by = ROOT }
							240 = { is_fully_controlled_by = ROOT }
							241 = { is_fully_controlled_by = ROOT }
							242 = { is_fully_controlled_by = ROOT }
							243 = { is_fully_controlled_by = ROOT }
							244 = { is_fully_controlled_by = ROOT }
							246 = { is_fully_controlled_by = ROOT }
							247 = { is_fully_controlled_by = ROOT }
							248 = { is_fully_controlled_by = ROOT }
							253 = { is_fully_controlled_by = ROOT }
							254 = { is_fully_controlled_by = ROOT }
							258 = { is_fully_controlled_by = ROOT }
							259 = { is_fully_controlled_by = ROOT }
							263 = { is_fully_controlled_by = ROOT }
							264 = { is_fully_controlled_by = ROOT }
							351 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							834 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							935 = { is_fully_controlled_by = ROOT }
							936 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KIE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KIE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 73
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 89
				add_state_core = 91
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 137
				add_state_core = 146
				add_state_core = 191
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 195
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 205
				add_state_core = 206
				add_state_core = 207
				add_state_core = 208
				add_state_core = 209
				add_state_core = 210
				add_state_core = 216
				add_state_core = 219
				add_state_core = 220
				add_state_core = 221
				add_state_core = 222
				add_state_core = 223
				add_state_core = 224
				add_state_core = 225
				add_state_core = 226
				add_state_core = 234
				add_state_core = 240
				add_state_core = 241
				add_state_core = 242
				add_state_core = 243
				add_state_core = 244
				add_state_core = 246
				add_state_core = 247
				add_state_core = 248
				add_state_core = 253
				add_state_core = 254
				add_state_core = 258
				add_state_core = 259
				add_state_core = 263
				add_state_core = 264
				add_state_core = 351
				add_state_core = 766
				add_state_core = 813
				add_state_core = 834
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_kievan_rus_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_kievan_rus_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_kievan_rus_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_god_kingdom_show_decision = {
		icon = formable_god_kingdom
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
				original_tag = NAP
				original_tag = SAD
				original_tag = VNZ
				original_tag = SIC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_god_kingdom_requirements_cflag
		}
	}
}

formable_god_kingdom_category = {
	formable_god_kingdom_form_decision = {
		icon = formable_god_kingdom
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_god_kingdom_form_decision_tt
						count_triggers = {
							amount = 22	#29 total states required
							2 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GOD } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GOD
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 2
				add_state_core = 39
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 553
				add_state_core = 554
				add_state_core = 736
				add_state_core = 849
				add_state_core = 850
				add_state_core = 852
				add_state_core = 912
				add_state_core = 949
				add_state_core = 957
				add_state_core = 966
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_god_kingdom_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_god_kingdom_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_god_kingdom_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_kingdom_of_heaven_show_decision = {
		icon = formable_kingdom_of_heaven
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CYP
				original_tag = EGY
				original_tag = FRA
				original_tag = GRE
				original_tag = ISR
				original_tag = MPL
				original_tag = ITA
				original_tag = JOR
				original_tag = LEB
				original_tag = MLT
				original_tag = NAP
				original_tag = PAL
				original_tag = SAU
				original_tag = SYR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_kingdom_of_heaven_requirements_cflag
		}
	}
}

formable_kingdom_of_heaven_category = {
	formable_kingdom_of_heaven_form_decision = {
		icon = formable_kingdom_of_heaven
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_kingdom_of_heaven_form_decision_tt
						count_triggers = {
							amount = 28	#42 total states required
							183 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							292 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							857 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KHV } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KHV
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 183
				add_state_core = 291
				add_state_core = 292
				add_state_core = 344
				add_state_core = 350
				add_state_core = 352
				add_state_core = 447
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 679
				add_state_core = 680
				add_state_core = 765
				add_state_core = 799
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 995
				add_state_core = 1007
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_kingdom_of_heaven_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_kingdom_of_heaven_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_kingdom_of_heaven_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_kongo_show_decision = {
		icon = formable_kongo
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = COG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_kongo_requirements_cflag
		}
	}
}

formable_kongo_category = {
	formable_kongo_form_decision = {
		icon = formable_kongo
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_kongo_form_decision_tt
						count_triggers = {
							amount = 10	#13 total states required
							295 = { is_fully_controlled_by = ROOT }
							538 = { is_fully_controlled_by = ROOT }
							539 = { is_fully_controlled_by = ROOT }
							540 = { is_fully_controlled_by = ROOT }
							660 = { is_fully_controlled_by = ROOT }
							718 = { is_fully_controlled_by = ROOT }
							768 = { is_fully_controlled_by = ROOT }
							769 = { is_fully_controlled_by = ROOT }
							772 = { is_fully_controlled_by = ROOT }
							796 = { is_fully_controlled_by = ROOT }
							888 = { is_fully_controlled_by = ROOT }
							889 = { is_fully_controlled_by = ROOT }
							890 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_KON } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_KON
			
			add_state_core = 297
			add_state_core = 546
			add_state_core = 547
			add_state_core = 548
			add_state_core = 549
			add_state_core = 705
			add_state_core = 708
			add_state_core = 770
			add_state_core = 771
			add_state_core = 773
			add_state_core = 774
			add_state_core = 844
			add_state_core = 884
			add_state_core = 885
			add_state_core = 886
			add_state_core = 887
			add_state_core = 891
			add_state_core = 892
			add_state_core = 897
			add_state_core = 903
			add_state_core = 904
			add_state_core = 905
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 295
				add_state_core = 538
				add_state_core = 539
				add_state_core = 540
				add_state_core = 660
				add_state_core = 718
				add_state_core = 768
				add_state_core = 769
				add_state_core = 772
				add_state_core = 796
				add_state_core = 888
				add_state_core = 889
				add_state_core = 890
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_kongo_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_kongo_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_kongo_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_la_plata_show_decision = {
		icon = formable_la_plata
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BOL
				original_tag = ARG
				original_tag = URG
				original_tag = PAR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_la_plata_requirements_cflag
		}
	}
}

formable_la_plata_category = {
	formable_la_plata_form_decision = {
		icon = formable_la_plata
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_la_plata_form_decision_tt
						count_triggers = {
							amount = 20	#24 total states required
							278 = { is_fully_controlled_by = ROOT }
							299 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							1059 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PLA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_PLA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 278
				add_state_core = 299
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 487
				add_state_core = 506
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 688
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1077
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_la_plata_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_la_plata_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_la_plata_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_latin_union_show_decision = {
		icon = formable_latin_union
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = ITA
				original_tag = SPR
				original_tag = POR
				original_tag = ROM
				original_tag = MOL
				original_tag = GLC
				original_tag = CAT
				original_tag = OCC
				original_tag = COR
				original_tag = ADR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_latin_union_requirements_cflag
		}
	}
}

formable_latin_union_category = {
	formable_latin_union_form_decision = {
		icon = formable_latin_union
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_latin_union_form_decision_tt
						count_triggers = {
							amount = 70	#86 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							178 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							697 = { is_fully_controlled_by = ROOT }
							698 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LAU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LAU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 39
				add_state_core = 41
				add_state_core = 46
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 118
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 178
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 697
				add_state_core = 698
				add_state_core = 735
				add_state_core = 736
				add_state_core = 766
				add_state_core = 785
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 806
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 912
				add_state_core = 955
				add_state_core = 957
				add_state_core = 973
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_latin_union_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_latin_union_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_latin_union_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_lepidus_rome_show_decision = {
		icon = formable_lepidus_rome
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
				original_tag = LBA
				original_tag = MOR
				original_tag = POR
				original_tag = SPR
				original_tag = SPA
				original_tag = SPB
				original_tag = SPC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_lepidus_rome_requirements_cflag
		}
	}
}
 
formable_lepidus_rome_category = {
	formable_lepidus_rome_form_decision = {
		icon = formable_lepidus_rome
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_lepidus_rome_form_decision_tt
						count_triggers = {
							amount = 25	#31 total states required
							41 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LRM } } }
					
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LRM
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 41
				add_state_core = 112
				add_state_core = 118
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 290
				add_state_core = 448
				add_state_core = 449
				add_state_core = 461
				add_state_core = 462
				add_state_core = 661
				add_state_core = 662
				add_state_core = 788
				add_state_core = 789
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_lepidus_rome_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_lepidus_rome_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_lepidus_rome_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_lesser_yugoslavia_show_decision = {
		icon = formable_lesser_yugoslavia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CRO
				original_tag = SLV
				original_tag = BOS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_lesser_yugoslavia_requirements_cflag
		}
	}
}

formable_lesser_yugoslavia_category = {
	formable_lesser_yugoslavia_form_decision = {
		icon = formable_lesser_yugoslavia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_lesser_yugoslavia_form_decision_tt
						count_triggers = {
							amount = 12	#15 total states required
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SKS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SKS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 109
				add_state_core = 163
				add_state_core = 736
				add_state_core = 804
				add_state_core = 852
				add_state_core = 853
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_lesser_yugoslavia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_lesser_yugoslavia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_lesser_yugoslavia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_levant_show_decision = {
		icon = formable_levant
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SYR
				original_tag = LEB
				original_tag = PAL
				original_tag = JOR
				original_tag = ISR
				original_tag = MPL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_levant_requirements_cflag
		}
	}
}

formable_levant_category = {
	formable_levant_form_decision = {
		icon = formable_levant
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_levant_form_decision_tt
						count_triggers = {
							amount = 12	#13 total states required
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LEV } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LEV
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 454
				add_state_core = 455
				add_state_core = 553
				add_state_core = 554
				add_state_core = 677
				add_state_core = 680
				add_state_core = 799
				add_state_core = 949
				add_state_core = 966
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_levant_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_levant_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_levant_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_livonia_show_decision = {
		icon = formable_livonia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EST
				original_tag = LAT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_livonia_requirements_cflag
		}
	}
}

formable_livonia_category = {
	formable_livonia_form_decision = {
		icon = formable_livonia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_livonia_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LIV } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LIV
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 12
				add_state_core = 13
				add_state_core = 190
				add_state_core = 191
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_livonia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_livonia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_livonia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_lotharingia_show_decision = {
		icon = formable_lotharingia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = LUX
				original_tag = BEL
				original_tag = SWI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_lotharingia_requirements_cflag
		}
	}
}

formable_lotharingia_category = {
	formable_lotharingia_form_decision = {
		icon = formable_lotharingia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_lotharingia_form_decision_tt
						count_triggers = {
							amount = 12 #16 total states required
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LOT } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LOT
			add_state_core = 20
			add_state_core = 21
			add_state_core = 32
			add_state_core = 55
			add_state_core = 57
			add_state_core = 735
			add_state_core = 845
			add_state_core = 851
			add_state_core = 922
			add_state_core = 923
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 17
				add_state_core = 28
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 42
				add_state_core = 51
				add_state_core = 56
				add_state_core = 965
				add_state_core = 989
				add_state_core = 1053
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_lotharingia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_lotharingia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_lotharingia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_lusotropical_empire_show_decision = {
		icon = formable_lusotropical_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BRA
				original_tag = POR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_lusotropical_empire_requirements_cflag
		}
	}
}

formable_lusotropical_empire_category = {
	formable_lusotropical_empire_form_decision = {
		icon = formable_lusotropical_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_lusotropical_empire_form_decision_tt
						count_triggers = {
							amount = 150	#216 total states required
							3 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							178 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							274 = { is_fully_controlled_by = ROOT }
							277 = { is_fully_controlled_by = ROOT }
							278 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							296 = { is_fully_controlled_by = ROOT }
							297 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							308 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							318 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							320 = { is_fully_controlled_by = ROOT }
							321 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							335 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							365 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							422 = { is_fully_controlled_by = ROOT }
							423 = { is_fully_controlled_by = ROOT }
							424 = { is_fully_controlled_by = ROOT }
							425 = { is_fully_controlled_by = ROOT }
							428 = { is_fully_controlled_by = ROOT }
							429 = { is_fully_controlled_by = ROOT }
							430 = { is_fully_controlled_by = ROOT }
							446 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							496 = { is_fully_controlled_by = ROOT }
							498 = { is_fully_controlled_by = ROOT }
							499 = { is_fully_controlled_by = ROOT }
							500 = { is_fully_controlled_by = ROOT }
							501 = { is_fully_controlled_by = ROOT }
							502 = { is_fully_controlled_by = ROOT }
							503 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							540 = { is_fully_controlled_by = ROOT }
							544 = { is_fully_controlled_by = ROOT }
							558 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							633 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							647 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							668 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							689 = { is_fully_controlled_by = ROOT }
							690 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							692 = { is_fully_controlled_by = ROOT }
							693 = { is_fully_controlled_by = ROOT }
							694 = { is_fully_controlled_by = ROOT }
							695 = { is_fully_controlled_by = ROOT }
							697 = { is_fully_controlled_by = ROOT }
							698 = { is_fully_controlled_by = ROOT }
							700 = { is_fully_controlled_by = ROOT }
							702 = { is_fully_controlled_by = ROOT }
							705 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							725 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							796 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							891 = { is_fully_controlled_by = ROOT }
							892 = { is_fully_controlled_by = ROOT }
							896 = { is_fully_controlled_by = ROOT }
							897 = { is_fully_controlled_by = ROOT }
							900 = { is_fully_controlled_by = ROOT }
							901 = { is_fully_controlled_by = ROOT }
							902 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							972 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							976 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							999 = { is_fully_controlled_by = ROOT }
							1000 = { is_fully_controlled_by = ROOT }
							1001 = { is_fully_controlled_by = ROOT }
							1002 = { is_fully_controlled_by = ROOT }
							1003 = { is_fully_controlled_by = ROOT }
							1004 = { is_fully_controlled_by = ROOT }
							1005 = { is_fully_controlled_by = ROOT }
							1006 = { is_fully_controlled_by = ROOT }
							1023 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1059 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
							1079 = { is_fully_controlled_by = ROOT }
							1080 = { is_fully_controlled_by = ROOT }
							1081 = { is_fully_controlled_by = ROOT }
							1082 = { is_fully_controlled_by = ROOT }
							1083 = { is_fully_controlled_by = ROOT }
							1084 = { is_fully_controlled_by = ROOT }
							1085 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_LUS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_LUS
			if = {
				limit = { tag = POR }
				set_party_name = { 
					ideology = communism
					long_name = "Partido Comunista de Portugal"
					name = "PCP" 
				}
				set_party_name = { 
					ideology = democratic
					long_name = "Liga de Defesa da República"
					name = "LDR" 
				}
				set_party_name = { 
					ideology = fascism
					long_name = "Movimento Nacional-Sindicalista"
					name = "MNS" 
				}
				set_party_name = { 
					ideology = neutrality
					long_name = "União Ultramarina"
					name = "UUM" 
				}
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 41
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 117
				add_state_core = 118
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 178
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 274
				add_state_core = 277
				add_state_core = 278
				add_state_core = 288
				add_state_core = 290
				add_state_core = 294
				add_state_core = 296
				add_state_core = 297
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 308
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 318
				add_state_core = 319
				add_state_core = 320
				add_state_core = 321
				add_state_core = 327
				add_state_core = 335
				add_state_core = 336
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 422
				add_state_core = 423
				add_state_core = 424
				add_state_core = 425
				add_state_core = 428
				add_state_core = 429
				add_state_core = 430
				add_state_core = 446
				add_state_core = 461
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 496
				add_state_core = 498
				add_state_core = 499
				add_state_core = 500
				add_state_core = 501
				add_state_core = 502
				add_state_core = 503
				add_state_core = 506
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 524
				add_state_core = 540
				add_state_core = 544
				add_state_core = 558
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 633
				add_state_core = 646
				add_state_core = 647
				add_state_core = 658
				add_state_core = 667
				add_state_core = 668
				add_state_core = 673
				add_state_core = 684
				add_state_core = 685
				add_state_core = 686
				add_state_core = 688
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 695
				add_state_core = 697
				add_state_core = 698
				add_state_core = 700
				add_state_core = 702
				add_state_core = 705
				add_state_core = 721
				add_state_core = 725
				add_state_core = 729
				add_state_core = 735
				add_state_core = 765
				add_state_core = 776
				add_state_core = 777
				add_state_core = 780
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 796
				add_state_core = 845
				add_state_core = 847
				add_state_core = 849
				add_state_core = 891
				add_state_core = 892
				add_state_core = 896
				add_state_core = 897
				add_state_core = 900
				add_state_core = 901
				add_state_core = 902
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 937
				add_state_core = 948
				add_state_core = 954
				add_state_core = 965
				add_state_core = 972
				add_state_core = 973
				add_state_core = 975
				add_state_core = 976
				add_state_core = 979
				add_state_core = 994
				add_state_core = 999
				add_state_core = 1000
				add_state_core = 1001
				add_state_core = 1002
				add_state_core = 1003
				add_state_core = 1004
				add_state_core = 1005
				add_state_core = 1006
				add_state_core = 1023
				add_state_core = 1051
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1064
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1077
				add_state_core = 1079
				add_state_core = 1080
				add_state_core = 1081
				add_state_core = 1082
				add_state_core = 1083
				add_state_core = 1084
				add_state_core = 1085
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_lusotropical_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_lusotropical_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_lusotropical_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_macedonian_empire_show_decision = {
		icon = formable_macedonian_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GRE
				original_tag = MAC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_macedonian_empire_requirements_cflag
		}
	}
}

formable_macedonian_empire_category = {
	formable_macedonian_empire_form_decision = {
		icon = formable_macedonian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_macedonian_empire_form_decision_tt
						count_triggers = {
							amount = 20	#24 total states required
							47 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MAC } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MAC
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 47
				add_state_core = 77
				add_state_core = 106
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 347
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 731
				add_state_core = 782
				add_state_core = 797
				add_state_core = 801
				add_state_core = 805
				add_state_core = 955
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_macedonian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_macedonian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_macedonian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_maghreb_show_decision = {
		icon = formable_maghreb
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LBA
				original_tag = WES
				original_tag = MOR
				original_tag = ALG
				original_tag = TUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_maghreb_requirements_cflag
		}
	}
}

formable_maghreb_category = {
	formable_maghreb_form_decision = {
		icon = formable_maghreb
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_maghreb_form_decision_tt
						count_triggers = {
							amount = 20	#22 total states required
							273 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							514 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MAG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MAG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 273
				add_state_core = 290
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 513
				add_state_core = 514
				add_state_core = 557
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 665
				add_state_core = 699
				add_state_core = 783
				add_state_core = 786
				add_state_core = 933
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_maghreb_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_maghreb_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_maghreb_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_majapahit_show_decision = {
		icon = formable_majapahit
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MAL
				original_tag = INS
				original_tag = SGP
				original_tag = SWK
				original_tag = TML
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_majapahit_requirements_cflag
		}
	}
}

formable_majapahit_category = {
	formable_majapahit_form_decision = {
		icon = formable_majapahit
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_majapahit_form_decision_tt
						count_triggers = {
							amount = 17	#23 total states required
							333 = { is_fully_controlled_by = ROOT }
							334 = { is_fully_controlled_by = ROOT }
							335 = { is_fully_controlled_by = ROOT }
							336 = { is_fully_controlled_by = ROOT }
							446 = { is_fully_controlled_by = ROOT }
							667 = { is_fully_controlled_by = ROOT }
							668 = { is_fully_controlled_by = ROOT }
							669 = { is_fully_controlled_by = ROOT }
							672 = { is_fully_controlled_by = ROOT }
							673 = { is_fully_controlled_by = ROOT }
							721 = { is_fully_controlled_by = ROOT }
							909 = { is_fully_controlled_by = ROOT }
							914 = { is_fully_controlled_by = ROOT }
							915 = { is_fully_controlled_by = ROOT }
							916 = { is_fully_controlled_by = ROOT }
							951 = { is_fully_controlled_by = ROOT }
							960 = { is_fully_controlled_by = ROOT }
							974 = { is_fully_controlled_by = ROOT }
							975 = { is_fully_controlled_by = ROOT }
							976 = { is_fully_controlled_by = ROOT }
							977 = { is_fully_controlled_by = ROOT }
							978 = { is_fully_controlled_by = ROOT }
							1014 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MJP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MJP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 333
				add_state_core = 334
				add_state_core = 335
				add_state_core = 336
				add_state_core = 446
				add_state_core = 667
				add_state_core = 668
				add_state_core = 669
				add_state_core = 672
				add_state_core = 673
				add_state_core = 721
				add_state_core = 909
				add_state_core = 914
				add_state_core = 915
				add_state_core = 916
				add_state_core = 951
				add_state_core = 960
				add_state_core = 974
				add_state_core = 975
				add_state_core = 976
				add_state_core = 977
				add_state_core = 978
				add_state_core = 1014
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_majapahit_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_majapahit_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_majapahit_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mali_empire_show_decision = {
		icon = formable_mali_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MLI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mali_empire_requirements_cflag
		}
	}
}

formable_mali_empire_category = {
	formable_mali_empire_form_decision = {
		icon = formable_mali_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mali_empire_form_decision_tt
						count_triggers = {
							amount = 8	#10 total states required
							272 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							701 = { is_fully_controlled_by = ROOT }
							778 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MAE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MAE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 272
				add_state_core = 556
				add_state_core = 557
				add_state_core = 701
				add_state_core = 778
				add_state_core = 781
				add_state_core = 782
				add_state_core = 786
				add_state_core = 898
				add_state_core = 899
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mali_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mali_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mali_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_mayan_empire_show_decision = {
		icon = formable_mayan_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ELS
				original_tag = GUA
				original_tag = HON
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mayan_empire_requirements_cflag
		}
	}
}
 
formable_mayan_empire_category = {
	formable_mayan_empire_form_decision = {
		icon = formable_mayan_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mayan_empire_form_decision_tt
						count_triggers = {
							amount = 4	#6 total states required
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MAY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MAY
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 474
				add_state_core = 475
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mayan_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mayan_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mayan_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_megali_greece_show_decision = {
		icon = formable_megali_greece
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = GRE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_megali_greece_requirements_cflag
		}
	}
}

formable_megali_greece_category = {
	formable_megali_greece_form_decision = {
		icon = formable_megali_greece
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_megali_greece_form_decision_tt
						count_triggers = {
							amount = 15	#17 total states required
							44 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MGR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MGR
			IF = {
				limit = { 797 = { is_fully_controlled_by = GRE } }
				set_province_name = { id = 9833 name = "Constantinople" }
				set_capital = { state = 797 remember_old_capital = no }
			}
			add_state_core = 48
			add_state_core = 49
			add_state_core = 211
			add_state_core = 212
			add_state_core = 343
			add_state_core = 344
			add_state_core = 345
			add_state_core = 346
			add_state_core = 347
			add_state_core = 348
			add_state_core = 349
			add_state_core = 355
			add_state_core = 356
			add_state_core = 798
			add_state_core = 801
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 47
				add_state_core = 106
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 731
				add_state_core = 797
				add_state_core = 805
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_megali_greece_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_megali_greece_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_megali_greece_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_merchant_show_decision = {
		icon = formable_merchant
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = VNZ
				original_tag = COR
				original_tag = SAD
				original_tag = MLT
				original_tag = ALB
				original_tag = CYP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_merchant_requirements_cflag
		}
	}
}

formable_merchant_category = {
	formable_merchant_form_decision = {
		icon = formable_merchant
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_merchant_form_decision_tt
						count_triggers = {
							amount = 10	#17 total states required
							1 = { is_fully_controlled_by = ROOT }
							44 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MHT } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MHT
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 44
				add_state_core = 103
				add_state_core = 114
				add_state_core = 116
				add_state_core = 160
				add_state_core = 163
				add_state_core = 164
				add_state_core = 177
				add_state_core = 182
				add_state_core = 183
				add_state_core = 187
				add_state_core = 736
				add_state_core = 805
				add_state_core = 852
				add_state_core = 910
				add_state_core = 912
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_merchant_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_merchant_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_merchant_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mexican_empire_show_decision = {
		icon = formable_mexican_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MEX
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mexican_empire_requirements_cflag
		}
	}
}

formable_mexican_empire_category = {
	formable_mexican_empire_form_decision = {
		icon = formable_mexican_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mexican_empire_form_decision_tt
						count_triggers = {
							amount = 22	#29 total states required
							277 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MEE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MEE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 277
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mexican_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mexican_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mexican_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_middle_east_show_decision = {
		icon = formable_middle_east
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TUR
				original_tag = SAU
				original_tag = SYR
				original_tag = KUR
				original_tag = PAL
				original_tag = JOR
				original_tag = ISR
				original_tag = MPL
				original_tag = KUW
				original_tag = QAT
				original_tag = YEM
				original_tag = OMA
				original_tag = IRQ
				original_tag = PER
				original_tag = LEB
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_middle_east_requirements_cflag
		}
	}
}

formable_middle_east_category = {
	formable_middle_east_form_decision = {
		icon = formable_middle_east
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_middle_east_form_decision_tt
						count_triggers = {
							amount = 60	#88 total states required
							49 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							292 = { is_fully_controlled_by = ROOT }
							293 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							678 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							857 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MID } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MID
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 49
				add_state_core = 183
				add_state_core = 266
				add_state_core = 291
				add_state_core = 292
				add_state_core = 293
				add_state_core = 294
				add_state_core = 339
				add_state_core = 340
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 447
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 552
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 658
				add_state_core = 659
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 678
				add_state_core = 679
				add_state_core = 680
				add_state_core = 765
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1007
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_middle_east_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_middle_east_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_middle_east_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_midwestern_states_america_show_decision = {
		icon = formable_midwestern_states_america
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = TXS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_midwestern_states_america_requirements_cflag
		}
	}
}

formable_midwestern_states_america_category = {
	formable_midwestern_states_america_form_decision = {
		icon = formable_midwestern_states_america
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_midwestern_states_america_form_decision_tt
						count_triggers = {
							amount = 15	#18 total states required
							371 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = {
								tooltip = formable_midwestern_states_america_form_decision_tt2
								count_triggers = {
									amount = 60	#60 total states required
									261 = { owns_or_subject_of = no }
									276 = { owns_or_subject_of = no }
									331 = { owns_or_subject_of = no }
									332 = { owns_or_subject_of = no }
									357 = { owns_or_subject_of = no }
									358 = { owns_or_subject_of = no }
									359 = { owns_or_subject_of = no }
									360 = { owns_or_subject_of = no }
									361 = { owns_or_subject_of = no }
									362 = { owns_or_subject_of = no }
									363 = { owns_or_subject_of = no }
									364 = { owns_or_subject_of = no }
									365 = { owns_or_subject_of = no }
									366 = { owns_or_subject_of = no }
									367 = { owns_or_subject_of = no }
									368 = { owns_or_subject_of = no }
									369 = { owns_or_subject_of = no }
									370 = { owns_or_subject_of = no }
									372 = { owns_or_subject_of = no }
									373 = { owns_or_subject_of = no }
									377 = { owns_or_subject_of = no }
									378 = { owns_or_subject_of = no }
									379 = { owns_or_subject_of = no }
									380 = { owns_or_subject_of = no }
									385 = { owns_or_subject_of = no }
									386 = { owns_or_subject_of = no }
									387 = { owns_or_subject_of = no }
									391 = { owns_or_subject_of = no }
									392 = { owns_or_subject_of = no }
									393 = { owns_or_subject_of = no }
									394 = { owns_or_subject_of = no }
									395 = { owns_or_subject_of = no }
									396 = { owns_or_subject_of = no }
									463 = { owns_or_subject_of = no }
									464 = { owns_or_subject_of = no }
									465 = { owns_or_subject_of = no }
									466 = { owns_or_subject_of = no }
									468 = { owns_or_subject_of = no }
									471 = { owns_or_subject_of = no }
									473 = { owns_or_subject_of = no }
									483 = { owns_or_subject_of = no }
									484 = { owns_or_subject_of = no }
									650 = { owns_or_subject_of = no }
									682 = { owns_or_subject_of = no }
									730 = { owns_or_subject_of = no }
									739 = { owns_or_subject_of = no }
									740 = { owns_or_subject_of = no }
									816 = { owns_or_subject_of = no }
									860 = { owns_or_subject_of = no }
									861 = { owns_or_subject_of = no }
									862 = { owns_or_subject_of = no }
									863 = { owns_or_subject_of = no }
									864 = { owns_or_subject_of = no }
									866 = { owns_or_subject_of = no }
									921 = { owns_or_subject_of = no }
									990 = { owns_or_subject_of = no }
									991 = { owns_or_subject_of = no }
									992 = { owns_or_subject_of = no }
									993 = { owns_or_subject_of = no }
									1023 = { owns_or_subject_of = no }
						}
					}
					USA = { is_subject = no }
					TXS = { is_subject = no }
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MSA } } }
					#OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MSA
			add_state_core = 311
			add_state_core = 474
			add_state_core = 477
			add_state_core = 479
			add_state_core = 480
			add_state_core = 482
			add_state_core = 929
			add_state_core = 930
			add_state_core = 931
			add_state_core = 932
			custom_effect_tooltip = FORMABLE_CORED_TT
			#custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 371
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 467
				add_state_core = 469
				add_state_core = 470
				add_state_core = 472
				add_state_core = 683
				add_state_core = 865
				add_state_core = 867
				#if = {
				#	limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
				#	add_ideas = generic_recent_political_unification
				#	add_ideas = generic_recent_army_unification
				#	add_ideas = generic_recent_economic_unification
				#}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_midwestern_states_america_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_midwestern_states_america_show_atlantic_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = TXS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_midwestern_states_america_show_atlantic_cflag
		}
	}
	formable_midwestern_states_america_show_pacific_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = TXS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_midwestern_states_america_show_pacific_cflag
		}
	}
	formable_midwestern_states_america_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_midwestern_states_america_requirements_cflag
		}
	}
}

formable_midwestern_states_america_show_atlantic_category = {
	formable_midwestern_states_america_reset_show_atlantic_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = TXS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_midwestern_states_america_show_atlantic_cflag
		}
	}
}
formable_midwestern_states_america_show_pacific_category = {
	formable_midwestern_states_america_reset_show_pacific_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = TXS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_midwestern_states_america_show_pacific_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_ming_show_decision = {
		icon = formable_ming
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
				original_tag = GXC
				original_tag = YUN
				original_tag = XSM
				original_tag = SHX
				original_tag = PRC
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_ming_requirements_cflag
		}
	}
}

formable_ming_category = {
	formable_ming_form_decision = {
		icon = formable_ming
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_ming_form_decision_tt
						count_triggers = {
							amount = 45	#58 total states required
							283 = { is_fully_controlled_by = ROOT }
							325 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							328 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							600 = { is_fully_controlled_by = ROOT }
							602 = { is_fully_controlled_by = ROOT }
							603 = { is_fully_controlled_by = ROOT }
							605 = { is_fully_controlled_by = ROOT }
							606 = { is_fully_controlled_by = ROOT }
							607 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							610 = { is_fully_controlled_by = ROOT }
							611 = { is_fully_controlled_by = ROOT }
							612 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							615 = { is_fully_controlled_by = ROOT }
							616 = { is_fully_controlled_by = ROOT }
							620 = { is_fully_controlled_by = ROOT }
							621 = { is_fully_controlled_by = ROOT }
							622 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							715 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							744 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							746 = { is_fully_controlled_by = ROOT }
							747 = { is_fully_controlled_by = ROOT }
							748 = { is_fully_controlled_by = ROOT }
							749 = { is_fully_controlled_by = ROOT }
							750 = { is_fully_controlled_by = ROOT }
							751 = { is_fully_controlled_by = ROOT }
							753 = { is_fully_controlled_by = ROOT }
							754 = { is_fully_controlled_by = ROOT }
							755 = { is_fully_controlled_by = ROOT }
							756 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							946 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
							1075 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MIN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MIN
			set_capital = { state = 608 remember_old_capital = no }
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 283
				add_state_core = 325
				add_state_core = 326
				add_state_core = 328
				add_state_core = 408
				add_state_core = 409
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 602
				add_state_core = 603
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 671
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 728
				add_state_core = 729
				add_state_core = 743
				add_state_core = 744
				add_state_core = 745
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 946
				add_state_core = 947
				add_state_core = 1075
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_ming_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_ming_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_ming_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mongol_empire_show_decision = {
		icon = formable_mongol_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MON
				original_tag = TAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mongol_empire_requirements_cflag
		}
	}
}

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

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_monkey_show_decision = {
		icon = formable_monkey
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MON
				original_tag = TUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_monkey_requirements_cflag
		}
	}
}

formable_monkey_category = {
	formable_monkey_form_decision = {
		icon = formable_monkey
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_monkey_form_decision_tt
						count_triggers = {
							amount = 73	#122 total states required
							40 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							137 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							232 = { is_fully_controlled_by = ROOT }
							239 = { is_fully_controlled_by = ROOT }
							249 = { is_fully_controlled_by = ROOT }
							250 = { is_fully_controlled_by = ROOT }
							251 = { is_fully_controlled_by = ROOT }
							252 = { is_fully_controlled_by = ROOT }
							255 = { is_fully_controlled_by = ROOT }
							256 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							287 = { is_fully_controlled_by = ROOT }
							329 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							399 = { is_fully_controlled_by = ROOT }
							401 = { is_fully_controlled_by = ROOT }
							402 = { is_fully_controlled_by = ROOT }
							403 = { is_fully_controlled_by = ROOT }
							404 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							406 = { is_fully_controlled_by = ROOT }
							407 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							516 = { is_fully_controlled_by = ROOT }
							564 = { is_fully_controlled_by = ROOT }
							566 = { is_fully_controlled_by = ROOT }
							567 = { is_fully_controlled_by = ROOT }
							568 = { is_fully_controlled_by = ROOT }
							569 = { is_fully_controlled_by = ROOT }
							570 = { is_fully_controlled_by = ROOT }
							571 = { is_fully_controlled_by = ROOT }
							572 = { is_fully_controlled_by = ROOT }
							575 = { is_fully_controlled_by = ROOT }
							576 = { is_fully_controlled_by = ROOT }
							577 = { is_fully_controlled_by = ROOT }
							578 = { is_fully_controlled_by = ROOT }
							582 = { is_fully_controlled_by = ROOT }
							583 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							586 = { is_fully_controlled_by = ROOT }
							587 = { is_fully_controlled_by = ROOT }
							588 = { is_fully_controlled_by = ROOT }
							589 = { is_fully_controlled_by = ROOT }
							590 = { is_fully_controlled_by = ROOT }
							617 = { is_fully_controlled_by = ROOT }
							618 = { is_fully_controlled_by = ROOT }
							619 = { is_fully_controlled_by = ROOT }
							644 = { is_fully_controlled_by = ROOT }
							651 = { is_fully_controlled_by = ROOT }
							652 = { is_fully_controlled_by = ROOT }
							654 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							732 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							760 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							818 = { is_fully_controlled_by = ROOT }
							820 = { is_fully_controlled_by = ROOT }
							821 = { is_fully_controlled_by = ROOT }
							823 = { is_fully_controlled_by = ROOT }
							824 = { is_fully_controlled_by = ROOT }
							827 = { is_fully_controlled_by = ROOT }
							828 = { is_fully_controlled_by = ROOT }
							829 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							833 = { is_fully_controlled_by = ROOT }
							878 = { is_fully_controlled_by = ROOT }
							881 = { is_fully_controlled_by = ROOT }
							882 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MKY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MKY
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 40
				add_state_core = 49
				add_state_core = 77
				add_state_core = 137
				add_state_core = 183
				add_state_core = 184
				add_state_core = 211
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 232
				add_state_core = 239
				add_state_core = 249
				add_state_core = 250
				add_state_core = 251
				add_state_core = 252
				add_state_core = 255
				add_state_core = 256
				add_state_core = 266
				add_state_core = 267
				add_state_core = 287
				add_state_core = 329
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 399
				add_state_core = 401
				add_state_core = 402
				add_state_core = 403
				add_state_core = 404
				add_state_core = 405
				add_state_core = 406
				add_state_core = 407
				add_state_core = 411
				add_state_core = 413
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 516
				add_state_core = 564
				add_state_core = 566
				add_state_core = 567
				add_state_core = 568
				add_state_core = 569
				add_state_core = 570
				add_state_core = 571
				add_state_core = 572
				add_state_core = 575
				add_state_core = 576
				add_state_core = 577
				add_state_core = 578
				add_state_core = 582
				add_state_core = 583
				add_state_core = 584
				add_state_core = 585
				add_state_core = 586
				add_state_core = 587
				add_state_core = 588
				add_state_core = 589
				add_state_core = 590
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 644
				add_state_core = 651
				add_state_core = 652
				add_state_core = 654
				add_state_core = 676
				add_state_core = 732
				add_state_core = 742
				add_state_core = 759
				add_state_core = 760
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 818
				add_state_core = 820
				add_state_core = 821
				add_state_core = 823
				add_state_core = 824
				add_state_core = 827
				add_state_core = 828
				add_state_core = 829
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 833
				add_state_core = 878
				add_state_core = 881
				add_state_core = 882
				add_state_core = 955
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1011
				add_state_core = 1044
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_monkey_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_monkey_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_monkey_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mountainous_republic_show_decision = {
		icon = formable_mountainous_republic
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DAG
				original_tag = CIN
				original_tag = NOA
				original_tag = KBK
				original_tag = ABK
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mountainous_republic_requirements_cflag
		}
	}
}

formable_mountainous_republic_category = {
	formable_mountainous_republic_form_decision = {
		icon = formable_mountainous_republic
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mountainous_republic_form_decision_tt
						count_triggers = {
							amount = 5	#5 total states required
							232 = { is_fully_controlled_by = ROOT }
							821 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							827 = { is_fully_controlled_by = ROOT }
							828 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MTR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MTR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 232
				add_state_core = 821
				add_state_core = 826
				add_state_core = 827
				add_state_core = 828
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mountainous_republic_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mountainous_republic_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mountainous_republic_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mughals_show_decision = {
		icon = formable_mughals
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AFG
				original_tag = PAK
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mughals_requirements_cflag
		}
	}
}

formable_mughals_category = {
	formable_mughals_form_decision = {
		icon = formable_mughals
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mughals_form_decision_tt
						count_triggers = {
							amount = 24	#30 total states required
							267 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							424 = { is_fully_controlled_by = ROOT }
							425 = { is_fully_controlled_by = ROOT }
							426 = { is_fully_controlled_by = ROOT }
							427 = { is_fully_controlled_by = ROOT }
							428 = { is_fully_controlled_by = ROOT }
							429 = { is_fully_controlled_by = ROOT }
							430 = { is_fully_controlled_by = ROOT }
							431 = { is_fully_controlled_by = ROOT }
							433 = { is_fully_controlled_by = ROOT }
							435 = { is_fully_controlled_by = ROOT }
							436 = { is_fully_controlled_by = ROOT }
							437 = { is_fully_controlled_by = ROOT }
							438 = { is_fully_controlled_by = ROOT }
							439 = { is_fully_controlled_by = ROOT }
							440 = { is_fully_controlled_by = ROOT }
							441 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							787 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1090 = { is_fully_controlled_by = ROOT }
							1092 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MUG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MUG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 267
				add_state_core = 415
				add_state_core = 424
				add_state_core = 425
				add_state_core = 426
				add_state_core = 427
				add_state_core = 428
				add_state_core = 429
				add_state_core = 430
				add_state_core = 431
				add_state_core = 433
				add_state_core = 435
				add_state_core = 436
				add_state_core = 437
				add_state_core = 438
				add_state_core = 439
				add_state_core = 440
				add_state_core = 441
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 787
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1090
				add_state_core = 1092
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mughals_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mughals_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mughals_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_mutapa_show_decision = {
		icon = formable_mutapa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SAF
				original_tag = BOT
				original_tag = ZIM
				original_tag = MZB
				original_tag = LES
				original_tag = SWA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_mutapa_requirements_cflag
		}
	}
}

formable_mutapa_category = {
	formable_mutapa_form_decision = {
		icon = formable_mutapa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_mutapa_form_decision_tt
						count_triggers = {
							amount = 10	#14 total states required
							275 = { is_fully_controlled_by = ROOT }
							541 = { is_fully_controlled_by = ROOT }
							542 = { is_fully_controlled_by = ROOT }
							544 = { is_fully_controlled_by = ROOT }
							545 = { is_fully_controlled_by = ROOT }
							681 = { is_fully_controlled_by = ROOT }
							719 = { is_fully_controlled_by = ROOT }
							893 = { is_fully_controlled_by = ROOT }
							894 = { is_fully_controlled_by = ROOT }
							895 = { is_fully_controlled_by = ROOT }
							896 = { is_fully_controlled_by = ROOT }
							938 = { is_fully_controlled_by = ROOT }
							939 = { is_fully_controlled_by = ROOT }
							940 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_MUT } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_MUT
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 275
				add_state_core = 541
				add_state_core = 542
				add_state_core = 544
				add_state_core = 545
				add_state_core = 681
				add_state_core = 719
				add_state_core = 893
				add_state_core = 894
				add_state_core = 895
				add_state_core = 896
				add_state_core = 938
				add_state_core = 939
				add_state_core = 940
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_mutapa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_mutapa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_mutapa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_nile_federation_show_decision = {
		icon = formable_nile_federation
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = EGY
				original_tag = SSU
				original_tag = ETH
				original_tag = KEN
				original_tag = UGA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_nile_federation_requirements_cflag
		}
	}
}

formable_nile_federation_category = {
	formable_nile_federation_form_decision = {
		icon = formable_nile_federation
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_nile_federation_form_decision_tt
						count_triggers = {
							amount = 20	#27 total states required
							447 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							548 = { is_fully_controlled_by = ROOT }
							549 = { is_fully_controlled_by = ROOT }
							550 = { is_fully_controlled_by = ROOT }
							551 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							767 = { is_fully_controlled_by = ROOT }
							838 = { is_fully_controlled_by = ROOT }
							839 = { is_fully_controlled_by = ROOT }
							840 = { is_fully_controlled_by = ROOT }
							841 = { is_fully_controlled_by = ROOT }
							842 = { is_fully_controlled_by = ROOT }
							843 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							884 = { is_fully_controlled_by = ROOT }
							885 = { is_fully_controlled_by = ROOT }
							886 = { is_fully_controlled_by = ROOT }
							887 = { is_fully_controlled_by = ROOT }
							904 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							908 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_NIF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_NIF
			add_state_core = 546
			add_state_core = 547
			add_state_core = 550
			add_state_core = 718
			add_state_core = 768
			add_state_core = 769
			add_state_core = 837
			add_state_core = 844
			add_state_core = 890
			add_state_core = 905
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 447
				add_state_core = 452
				add_state_core = 453
				add_state_core = 456
				add_state_core = 457
				add_state_core = 548
				add_state_core = 549
				add_state_core = 550
				add_state_core = 551
				add_state_core = 552
				add_state_core = 767
				add_state_core = 838
				add_state_core = 839
				add_state_core = 840
				add_state_core = 841
				add_state_core = 842
				add_state_core = 843
				add_state_core = 883
				add_state_core = 884
				add_state_core = 885
				add_state_core = 886
				add_state_core = 887
				add_state_core = 904
				add_state_core = 907
				add_state_core = 908
				add_state_core = 911
				add_state_core = 995
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_nile_federation_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_nile_federation_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_nile_federation_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_north_africa_show_decision = {
		icon = formable_north_africa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ALG
				original_tag = EGY
				original_tag = LBA
				original_tag = MOR
				original_tag = TUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_north_africa_requirements_cflag
		}
	}
}

formable_north_africa_category = {
	formable_north_africa_form_decision = {
		icon = formable_north_africa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_north_africa_form_decision_tt
						count_triggers = {
							amount = 20	#27 total states required
							273 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							514 = { is_fully_controlled_by = ROOT }
							552 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_NAF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_NAF
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 273
				add_state_core = 290
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 456
				add_state_core = 457
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 513
				add_state_core = 514
				add_state_core = 552
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 665
				add_state_core = 783
				add_state_core = 907
				add_state_core = 911
				add_state_core = 933
				add_state_core = 995
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_north_africa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_north_africa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_north_africa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_north_america_show_decision = {
		icon = formable_north_america
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = USA
				original_tag = ALA
				original_tag = CAL
				original_tag = CAS
				original_tag = LDX
				original_tag = NEG
				original_tag = TXS
				original_tag = CSA
				original_tag = CAN
				original_tag = QBC
				original_tag = MEX
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_north_america_requirements_cflag
		}
	}
}

formable_north_america_category = {
	formable_north_america_form_decision = {
		icon = formable_north_america
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_north_america_form_decision_tt
						count_triggers = {
							amount = 70	#93 total states required
							101 = { is_fully_controlled_by = ROOT }
							261 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							277 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							359 = { is_fully_controlled_by = ROOT }
							360 = { is_fully_controlled_by = ROOT }
							361 = { is_fully_controlled_by = ROOT }
							362 = { is_fully_controlled_by = ROOT }
							363 = { is_fully_controlled_by = ROOT }
							364 = { is_fully_controlled_by = ROOT }
							365 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							368 = { is_fully_controlled_by = ROOT }
							369 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							385 = { is_fully_controlled_by = ROOT }
							386 = { is_fully_controlled_by = ROOT }
							387 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							391 = { is_fully_controlled_by = ROOT }
							392 = { is_fully_controlled_by = ROOT }
							393 = { is_fully_controlled_by = ROOT }
							394 = { is_fully_controlled_by = ROOT }
							395 = { is_fully_controlled_by = ROOT }
							396 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							696 = { is_fully_controlled_by = ROOT }
							730 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							816 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_NOA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_NOA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 101
				add_state_core = 261
				add_state_core = 276
				add_state_core = 277
				add_state_core = 331
				add_state_core = 332
				add_state_core = 357
				add_state_core = 358
				add_state_core = 359
				add_state_core = 360
				add_state_core = 361
				add_state_core = 362
				add_state_core = 363
				add_state_core = 364
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 385
				add_state_core = 386
				add_state_core = 387
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 391
				add_state_core = 392
				add_state_core = 393
				add_state_core = 394
				add_state_core = 395
				add_state_core = 396
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 682
				add_state_core = 683
				add_state_core = 696
				add_state_core = 730
				add_state_core = 739
				add_state_core = 740
				add_state_core = 816
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 921
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_north_america_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_north_america_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_north_america_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_north_german_federation_show_decision = {
		icon = formable_north_german_federation
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PRE
				original_tag = HAN
				original_tag = MEK
				original_tag = SAX
				original_tag = SHL
				original_tag = KSH
				original_tag = DNZ
				original_tag = SIL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_north_german_federation_requirements_cflag
		}
	}
}

formable_north_german_federation_category = {
	formable_north_german_federation_form_decision = {
		icon = formable_north_german_federation
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_north_german_federation_form_decision_tt
						count_triggers = {
							amount = 20	#28 total states required
							5 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							60 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							65 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_NGF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_NGF
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 42
				add_state_core = 51
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 85
				add_state_core = 86
				add_state_core = 762
				add_state_core = 763
				add_state_core = 807
				add_state_core = 922
				add_state_core = 964
				add_state_core = 965
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_north_german_federation_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_north_german_federation_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_north_german_federation_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_north_sea_empire_show_decision = {
		icon = formable_north_sea_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DEN
				original_tag = NOR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_north_sea_empire_requirements_cflag
		}
	}
}

formable_north_sea_empire_category = {
	formable_north_sea_empire_form_decision = {
		icon = formable_north_sea_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_north_sea_empire_form_decision_tt
						count_triggers = {
							amount = 15	#24 total states required
							7 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_NSE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_NSE
			add_state_core = 6
			add_state_core = 29
			add_state_core = 37
			add_state_core = 110
			add_state_core = 127
			add_state_core = 138
			add_state_core = 140
			add_state_core = 143
			add_state_core = 144
			add_state_core = 969
			add_state_core = 1025
			add_state_core = 1032
			
			hidden_effect = {
				sound_effect = complete_focus
				
				IF = {
					limit = {
						OR = {
							ROOT = { tag = DEN }
							ROOT = { tag = NOR }
						}
					}
					set_province_name = { id = 6103 name = "Lunden" }
				}
				add_state_core = 7
				add_state_core = 35
				add_state_core = 36
				add_state_core = 56
				add_state_core = 58
				add_state_core = 59
				add_state_core = 99
				add_state_core = 120
				add_state_core = 121
				add_state_core = 125
				add_state_core = 126
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 133
				add_state_core = 136
				add_state_core = 142
				add_state_core = 332
				add_state_core = 337
				add_state_core = 964
				add_state_core = 967
				add_state_core = 970
				add_state_core = 971
				add_state_core = 998
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_north_sea_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_north_sea_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_north_sea_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_oceania_show_decision = {
		icon = formable_oceania
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AST
				original_tag = NZL
				original_tag = PNG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_oceania_requirements_cflag
		}
	}
}
 
formable_oceania_category = {
	formable_oceania_form_decision = {
		icon = formable_oceania
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_oceania_form_decision_tt
						count_triggers = {
							amount = 30	#44 total states required
							270 = { is_fully_controlled_by = ROOT }
							284 = { is_fully_controlled_by = ROOT }
							285 = { is_fully_controlled_by = ROOT }
							517 = { is_fully_controlled_by = ROOT }
							518 = { is_fully_controlled_by = ROOT }
							519 = { is_fully_controlled_by = ROOT }
							520 = { is_fully_controlled_by = ROOT }
							521 = { is_fully_controlled_by = ROOT }
							522 = { is_fully_controlled_by = ROOT }
							523 = { is_fully_controlled_by = ROOT }
							629 = { is_fully_controlled_by = ROOT }
							630 = { is_fully_controlled_by = ROOT }
							631 = { is_fully_controlled_by = ROOT }
							632 = { is_fully_controlled_by = ROOT }
							633 = { is_fully_controlled_by = ROOT }
							634 = { is_fully_controlled_by = ROOT }
							636 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							639 = { is_fully_controlled_by = ROOT }
							641 = { is_fully_controlled_by = ROOT }
							642 = { is_fully_controlled_by = ROOT }
							643 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							647 = { is_fully_controlled_by = ROOT }
							648 = { is_fully_controlled_by = ROOT }
							669 = { is_fully_controlled_by = ROOT }
							674 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
							723 = { is_fully_controlled_by = ROOT }
							725 = { is_fully_controlled_by = ROOT }
							726 = { is_fully_controlled_by = ROOT }
							727 = { is_fully_controlled_by = ROOT }
							734 = { is_fully_controlled_by = ROOT }
							635 = { is_fully_controlled_by = ROOT }
							873 = { is_fully_controlled_by = ROOT }
							737 = { is_fully_controlled_by = ROOT }
							738 = { is_fully_controlled_by = ROOT }
							870 = { is_fully_controlled_by = ROOT }
							871 = { is_fully_controlled_by = ROOT }
							872 = { is_fully_controlled_by = ROOT }
							1087 = { is_fully_controlled_by = ROOT }
							1088 = { is_fully_controlled_by = ROOT }
							1089 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_OCN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_OCN
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 270
				add_state_core = 284
				add_state_core = 285
				add_state_core = 517
				add_state_core = 518
				add_state_core = 519
				add_state_core = 520
				add_state_core = 521
				add_state_core = 522
				add_state_core = 523
				add_state_core = 629
				add_state_core = 630
				add_state_core = 631
				add_state_core = 632
				add_state_core = 633
				add_state_core = 634
				add_state_core = 635
				add_state_core = 636
				add_state_core = 638
				add_state_core = 639
				add_state_core = 641
				add_state_core = 642
				add_state_core = 643
				add_state_core = 646
				add_state_core = 647
				add_state_core = 648
				add_state_core = 669
				add_state_core = 674
				add_state_core = 684
				add_state_core = 723
				add_state_core = 725
				add_state_core = 726
				add_state_core = 727
				add_state_core = 734
				add_state_core = 737
				add_state_core = 738
				add_state_core = 870
				add_state_core = 871
				add_state_core = 872
				add_state_core = 873
				add_state_core = 1087
				add_state_core = 1088
				add_state_core = 1089
				add_state_core = 1096
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_oceania_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_oceania_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_oceania_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_ottomans_show_decision = {
		icon = formable_ottomans
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TUR
				original_tag = KUR
				original_tag = SYR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_ottomans_requirements_cflag
		}
	}
}

formable_ottomans_category = {
	formable_ottomans_form_decision = {
		icon = formable_ottomans
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_ottomans_form_decision_tt
						count_triggers = {
							amount = 60	#81 total states required
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							550 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_OTT } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_OTT
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 47
				add_state_core = 48
				add_state_core = 49
				add_state_core = 106
				add_state_core = 108
				add_state_core = 164
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 291
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 457
				add_state_core = 550
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 679
				add_state_core = 680
				add_state_core = 731
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 855
				add_state_core = 856
				add_state_core = 883
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 950
				add_state_core = 953
				add_state_core = 966
				add_state_core = 995
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_ottomans_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_ottomans_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_ottomans_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_pacific_chile_show_decision = {
		icon = formable_pacific_chile
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_pacific_chile_requirements_cflag
		}
	}
}

formable_pacific_chile_category = {
	formable_pacific_chile_form_decision = {
		icon = formable_pacific_chile
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_pacific_chile_form_decision_tt
						count_triggers = {
							amount = 50	#62 total states required
							277 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							385 = { is_fully_controlled_by = ROOT }
							386 = { is_fully_controlled_by = ROOT }
							387 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PCH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_PCH
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 277
				add_state_core = 279
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 385
				add_state_core = 386
				add_state_core = 387
				add_state_core = 463
				add_state_core = 471
				add_state_core = 473
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 511
				add_state_core = 512
				add_state_core = 685
				add_state_core = 739
				add_state_core = 740
				add_state_core = 864
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 937
				add_state_core = 954
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_pacific_chile_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_pacific_chile_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_pacific_chile_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_pacific_states_america_china_show_decision = {
		icon = formable_pacific_states_america_china
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_pacific_states_america_china_requirements_cflag
		}
	}
}

formable_pacific_states_america_china_category = {
	formable_pacific_states_america_china_form_decision = {
		icon = formable_pacific_states_america_china
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_pacific_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_china_form_decision_tt
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 14	#16 total states required
								377 = { is_fully_controlled_by = ROOT }
								378 = { is_fully_controlled_by = ROOT }
								379 = { is_fully_controlled_by = ROOT }
								380 = { is_fully_controlled_by = ROOT }
								385 = { is_fully_controlled_by = ROOT }
								386 = { is_fully_controlled_by = ROOT }
								387 = { is_fully_controlled_by = ROOT }
								463 = { is_fully_controlled_by = ROOT }
								471 = { is_fully_controlled_by = ROOT }
								473 = { is_fully_controlled_by = ROOT }
								483 = { is_fully_controlled_by = ROOT }
								484 = { is_fully_controlled_by = ROOT }
								650 = { is_fully_controlled_by = ROOT }
								739 = { is_fully_controlled_by = ROOT }
								740 = { is_fully_controlled_by = ROOT }
								864 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 62	#62 total states required
								261 = { owns_or_subject_of = no }
								276 = { owns_or_subject_of = no }
								331 = { owns_or_subject_of = no }
								332 = { owns_or_subject_of = no }
								357 = { owns_or_subject_of = no }
								358 = { owns_or_subject_of = no }
								359 = { owns_or_subject_of = no }
								360 = { owns_or_subject_of = no }
								361 = { owns_or_subject_of = no }
								362 = { owns_or_subject_of = no }
								363 = { owns_or_subject_of = no }
								364 = { owns_or_subject_of = no }
								365 = { owns_or_subject_of = no }
								366 = { owns_or_subject_of = no }
								367 = { owns_or_subject_of = no }
								368 = { owns_or_subject_of = no }
								369 = { owns_or_subject_of = no }
								370 = { owns_or_subject_of = no }
								371 = { owns_or_subject_of = no }
								372 = { owns_or_subject_of = no }
								373 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								391 = { owns_or_subject_of = no }
								392 = { owns_or_subject_of = no }
								393 = { owns_or_subject_of = no }
								394 = { owns_or_subject_of = no }
								395 = { owns_or_subject_of = no }
								396 = { owns_or_subject_of = no }
								464 = { owns_or_subject_of = no }
								465 = { owns_or_subject_of = no }
								466 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								468 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								682 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								730 = { owns_or_subject_of = no }
								816 = { owns_or_subject_of = no }
								860 = { owns_or_subject_of = no }
								861 = { owns_or_subject_of = no }
								862 = { owns_or_subject_of = no }
								863 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								866 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
								921 = { owns_or_subject_of = no }
								990 = { owns_or_subject_of = no }
								991 = { owns_or_subject_of = no }
								992 = { owns_or_subject_of = no }
								993 = { owns_or_subject_of = no }
								1023 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 62	#62 total states required
							261 = { owns_or_subject_of = no }
							276 = { owns_or_subject_of = no }
							331 = { owns_or_subject_of = no }
							332 = { owns_or_subject_of = no }
							357 = { owns_or_subject_of = no }
							358 = { owns_or_subject_of = no }
							359 = { owns_or_subject_of = no }
							360 = { owns_or_subject_of = no }
							361 = { owns_or_subject_of = no }
							362 = { owns_or_subject_of = no }
							363 = { owns_or_subject_of = no }
							364 = { owns_or_subject_of = no }
							365 = { owns_or_subject_of = no }
							366 = { owns_or_subject_of = no }
							367 = { owns_or_subject_of = no }
							368 = { owns_or_subject_of = no }
							369 = { owns_or_subject_of = no }
							370 = { owns_or_subject_of = no }
							371 = { owns_or_subject_of = no }
							372 = { owns_or_subject_of = no }
							373 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							391 = { owns_or_subject_of = no }
							392 = { owns_or_subject_of = no }
							393 = { owns_or_subject_of = no }
							394 = { owns_or_subject_of = no }
							395 = { owns_or_subject_of = no }
							396 = { owns_or_subject_of = no }
							464 = { owns_or_subject_of = no }
							465 = { owns_or_subject_of = no }
							466 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							468 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							682 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							730 = { owns_or_subject_of = no }
							816 = { owns_or_subject_of = no }
							860 = { owns_or_subject_of = no }
							861 = { owns_or_subject_of = no }
							862 = { owns_or_subject_of = no }
							863 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							866 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
							921 = { owns_or_subject_of = no }
							990 = { owns_or_subject_of = no }
							991 = { owns_or_subject_of = no }
							992 = { owns_or_subject_of = no }
							993 = { owns_or_subject_of = no }
							1023 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PSA_CHI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 378 } #California
				set_cosmetic_tag = FORM_PSA_CHI
				add_state_core = 277
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 475
				add_state_core = 476
				add_state_core = 478
				add_state_core = 481
				add_state_core = 485
				add_state_core = 685
				add_state_core = 937
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 377
					add_state_core = 378
					add_state_core = 379
					add_state_core = 380
					add_state_core = 385
					add_state_core = 386
					add_state_core = 387
					add_state_core = 463
					add_state_core = 471
					add_state_core = 473
					add_state_core = 483
					add_state_core = 484
					add_state_core = 650
					add_state_core = 739
					add_state_core = 740
					add_state_core = 864
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_pacific_states_america_china_requirements_cflag
			}
		}
	}
	formable_pacific_states_america_show_atlantic_china_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
	formable_pacific_states_america_show_midwestern_china_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
	formable_pacific_states_america_china_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_pacific_states_america_china_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_pacific_states_america_japan_show_decision = {
		icon = formable_pacific_states_america_japan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_pacific_states_america_japan_requirements_cflag
		}
	}
}

formable_pacific_states_america_japan_category = {
	formable_pacific_states_america_japan_form_decision = {
		icon = formable_pacific_states_america_japan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_pacific_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_japan_form_decision_tt
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 14	#16 total states required
								377 = { is_fully_controlled_by = ROOT }
								378 = { is_fully_controlled_by = ROOT }
								379 = { is_fully_controlled_by = ROOT }
								380 = { is_fully_controlled_by = ROOT }
								385 = { is_fully_controlled_by = ROOT }
								386 = { is_fully_controlled_by = ROOT }
								387 = { is_fully_controlled_by = ROOT }
								463 = { is_fully_controlled_by = ROOT }
								471 = { is_fully_controlled_by = ROOT }
								473 = { is_fully_controlled_by = ROOT }
								483 = { is_fully_controlled_by = ROOT }
								484 = { is_fully_controlled_by = ROOT }
								650 = { is_fully_controlled_by = ROOT }
								739 = { is_fully_controlled_by = ROOT }
								740 = { is_fully_controlled_by = ROOT }
								864 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 62	#62 total states required
								261 = { owns_or_subject_of = no }
								276 = { owns_or_subject_of = no }
								331 = { owns_or_subject_of = no }
								332 = { owns_or_subject_of = no }
								357 = { owns_or_subject_of = no }
								358 = { owns_or_subject_of = no }
								359 = { owns_or_subject_of = no }
								360 = { owns_or_subject_of = no }
								361 = { owns_or_subject_of = no }
								362 = { owns_or_subject_of = no }
								363 = { owns_or_subject_of = no }
								364 = { owns_or_subject_of = no }
								365 = { owns_or_subject_of = no }
								366 = { owns_or_subject_of = no }
								367 = { owns_or_subject_of = no }
								368 = { owns_or_subject_of = no }
								369 = { owns_or_subject_of = no }
								370 = { owns_or_subject_of = no }
								371 = { owns_or_subject_of = no }
								372 = { owns_or_subject_of = no }
								373 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								391 = { owns_or_subject_of = no }
								392 = { owns_or_subject_of = no }
								393 = { owns_or_subject_of = no }
								394 = { owns_or_subject_of = no }
								395 = { owns_or_subject_of = no }
								396 = { owns_or_subject_of = no }
								464 = { owns_or_subject_of = no }
								465 = { owns_or_subject_of = no }
								466 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								468 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								682 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								730 = { owns_or_subject_of = no }
								816 = { owns_or_subject_of = no }
								860 = { owns_or_subject_of = no }
								861 = { owns_or_subject_of = no }
								862 = { owns_or_subject_of = no }
								863 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								866 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
								921 = { owns_or_subject_of = no }
								990 = { owns_or_subject_of = no }
								991 = { owns_or_subject_of = no }
								992 = { owns_or_subject_of = no }
								993 = { owns_or_subject_of = no }
								1023 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 62	#62 total states required
							261 = { owns_or_subject_of = no }
							276 = { owns_or_subject_of = no }
							331 = { owns_or_subject_of = no }
							332 = { owns_or_subject_of = no }
							357 = { owns_or_subject_of = no }
							358 = { owns_or_subject_of = no }
							359 = { owns_or_subject_of = no }
							360 = { owns_or_subject_of = no }
							361 = { owns_or_subject_of = no }
							362 = { owns_or_subject_of = no }
							363 = { owns_or_subject_of = no }
							364 = { owns_or_subject_of = no }
							365 = { owns_or_subject_of = no }
							366 = { owns_or_subject_of = no }
							367 = { owns_or_subject_of = no }
							368 = { owns_or_subject_of = no }
							369 = { owns_or_subject_of = no }
							370 = { owns_or_subject_of = no }
							371 = { owns_or_subject_of = no }
							372 = { owns_or_subject_of = no }
							373 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							391 = { owns_or_subject_of = no }
							392 = { owns_or_subject_of = no }
							393 = { owns_or_subject_of = no }
							394 = { owns_or_subject_of = no }
							395 = { owns_or_subject_of = no }
							396 = { owns_or_subject_of = no }
							464 = { owns_or_subject_of = no }
							465 = { owns_or_subject_of = no }
							466 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							468 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							682 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							730 = { owns_or_subject_of = no }
							816 = { owns_or_subject_of = no }
							860 = { owns_or_subject_of = no }
							861 = { owns_or_subject_of = no }
							862 = { owns_or_subject_of = no }
							863 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							866 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
							921 = { owns_or_subject_of = no }
							990 = { owns_or_subject_of = no }
							991 = { owns_or_subject_of = no }
							992 = { owns_or_subject_of = no }
							993 = { owns_or_subject_of = no }
							1023 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PSA_JAP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 378 } #California
				set_cosmetic_tag = FORM_PSA_JAP
				add_state_core = 277
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 475
				add_state_core = 476
				add_state_core = 478
				add_state_core = 481
				add_state_core = 485
				add_state_core = 685
				add_state_core = 937
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 377
					add_state_core = 378
					add_state_core = 379
					add_state_core = 380
					add_state_core = 385
					add_state_core = 386
					add_state_core = 387
					add_state_core = 463
					add_state_core = 471
					add_state_core = 473
					add_state_core = 483
					add_state_core = 484
					add_state_core = 650
					add_state_core = 739
					add_state_core = 740
					add_state_core = 864
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_pacific_states_america_japan_requirements_cflag
			}
		}
	}
	formable_pacific_states_america_show_atlantic_japan_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
	formable_pacific_states_america_show_midwestern_japan_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
	formable_pacific_states_america_japan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_pacific_states_america_japan_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_pacific_states_america_russia_show_decision = {
		icon = formable_pacific_states_america_russia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_pacific_states_america_russia_requirements_cflag
		}
	}
}

formable_pacific_states_america_russia_category = {
	formable_pacific_states_america_russia_form_decision = {
		icon = formable_pacific_states_america_russia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = { tooltip = formable_pacific_states_america_form_decision_tt3 }
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_russia_form_decision_tt
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 14	#16 total states required
								377 = { is_fully_controlled_by = ROOT }
								378 = { is_fully_controlled_by = ROOT }
								379 = { is_fully_controlled_by = ROOT }
								380 = { is_fully_controlled_by = ROOT }
								385 = { is_fully_controlled_by = ROOT }
								386 = { is_fully_controlled_by = ROOT }
								387 = { is_fully_controlled_by = ROOT }
								463 = { is_fully_controlled_by = ROOT }
								471 = { is_fully_controlled_by = ROOT }
								473 = { is_fully_controlled_by = ROOT }
								483 = { is_fully_controlled_by = ROOT }
								484 = { is_fully_controlled_by = ROOT }
								650 = { is_fully_controlled_by = ROOT }
								739 = { is_fully_controlled_by = ROOT }
								740 = { is_fully_controlled_by = ROOT }
								864 = { is_fully_controlled_by = ROOT }
							}
						}
					}
					custom_trigger_tooltip = {
						tooltip = formable_pacific_states_america_form_decision_tt2
						any_subject_country = {
							owns_state = 378 #California
							count_triggers = {
								amount = 62	#62 total states required
								261 = { owns_or_subject_of = no }
								276 = { owns_or_subject_of = no }
								331 = { owns_or_subject_of = no }
								332 = { owns_or_subject_of = no }
								357 = { owns_or_subject_of = no }
								358 = { owns_or_subject_of = no }
								359 = { owns_or_subject_of = no }
								360 = { owns_or_subject_of = no }
								361 = { owns_or_subject_of = no }
								362 = { owns_or_subject_of = no }
								363 = { owns_or_subject_of = no }
								364 = { owns_or_subject_of = no }
								365 = { owns_or_subject_of = no }
								366 = { owns_or_subject_of = no }
								367 = { owns_or_subject_of = no }
								368 = { owns_or_subject_of = no }
								369 = { owns_or_subject_of = no }
								370 = { owns_or_subject_of = no }
								371 = { owns_or_subject_of = no }
								372 = { owns_or_subject_of = no }
								373 = { owns_or_subject_of = no }
								374 = { owns_or_subject_of = no }
								375 = { owns_or_subject_of = no }
								376 = { owns_or_subject_of = no }
								381 = { owns_or_subject_of = no }
								382 = { owns_or_subject_of = no }
								383 = { owns_or_subject_of = no }
								384 = { owns_or_subject_of = no }
								388 = { owns_or_subject_of = no }
								389 = { owns_or_subject_of = no }
								390 = { owns_or_subject_of = no }
								391 = { owns_or_subject_of = no }
								392 = { owns_or_subject_of = no }
								393 = { owns_or_subject_of = no }
								394 = { owns_or_subject_of = no }
								395 = { owns_or_subject_of = no }
								396 = { owns_or_subject_of = no }
								464 = { owns_or_subject_of = no }
								465 = { owns_or_subject_of = no }
								466 = { owns_or_subject_of = no }
								467 = { owns_or_subject_of = no }
								468 = { owns_or_subject_of = no }
								469 = { owns_or_subject_of = no }
								470 = { owns_or_subject_of = no }
								472 = { owns_or_subject_of = no }
								682 = { owns_or_subject_of = no }
								683 = { owns_or_subject_of = no }
								730 = { owns_or_subject_of = no }
								816 = { owns_or_subject_of = no }
								860 = { owns_or_subject_of = no }
								861 = { owns_or_subject_of = no }
								862 = { owns_or_subject_of = no }
								863 = { owns_or_subject_of = no }
								865 = { owns_or_subject_of = no }
								866 = { owns_or_subject_of = no }
								867 = { owns_or_subject_of = no }
								921 = { owns_or_subject_of = no }
								990 = { owns_or_subject_of = no }
								991 = { owns_or_subject_of = no }
								992 = { owns_or_subject_of = no }
								993 = { owns_or_subject_of = no }
								1023 = { owns_or_subject_of = no }
							}
						}
						count_triggers = {
							amount = 62	#62 total states required
							261 = { owns_or_subject_of = no }
							276 = { owns_or_subject_of = no }
							331 = { owns_or_subject_of = no }
							332 = { owns_or_subject_of = no }
							357 = { owns_or_subject_of = no }
							358 = { owns_or_subject_of = no }
							359 = { owns_or_subject_of = no }
							360 = { owns_or_subject_of = no }
							361 = { owns_or_subject_of = no }
							362 = { owns_or_subject_of = no }
							363 = { owns_or_subject_of = no }
							364 = { owns_or_subject_of = no }
							365 = { owns_or_subject_of = no }
							366 = { owns_or_subject_of = no }
							367 = { owns_or_subject_of = no }
							368 = { owns_or_subject_of = no }
							369 = { owns_or_subject_of = no }
							370 = { owns_or_subject_of = no }
							371 = { owns_or_subject_of = no }
							372 = { owns_or_subject_of = no }
							373 = { owns_or_subject_of = no }
							374 = { owns_or_subject_of = no }
							375 = { owns_or_subject_of = no }
							376 = { owns_or_subject_of = no }
							381 = { owns_or_subject_of = no }
							382 = { owns_or_subject_of = no }
							383 = { owns_or_subject_of = no }
							384 = { owns_or_subject_of = no }
							388 = { owns_or_subject_of = no }
							389 = { owns_or_subject_of = no }
							390 = { owns_or_subject_of = no }
							391 = { owns_or_subject_of = no }
							392 = { owns_or_subject_of = no }
							393 = { owns_or_subject_of = no }
							394 = { owns_or_subject_of = no }
							395 = { owns_or_subject_of = no }
							396 = { owns_or_subject_of = no }
							464 = { owns_or_subject_of = no }
							465 = { owns_or_subject_of = no }
							466 = { owns_or_subject_of = no }
							467 = { owns_or_subject_of = no }
							468 = { owns_or_subject_of = no }
							469 = { owns_or_subject_of = no }
							470 = { owns_or_subject_of = no }
							472 = { owns_or_subject_of = no }
							682 = { owns_or_subject_of = no }
							683 = { owns_or_subject_of = no }
							730 = { owns_or_subject_of = no }
							816 = { owns_or_subject_of = no }
							860 = { owns_or_subject_of = no }
							861 = { owns_or_subject_of = no }
							862 = { owns_or_subject_of = no }
							863 = { owns_or_subject_of = no }
							865 = { owns_or_subject_of = no }
							866 = { owns_or_subject_of = no }
							867 = { owns_or_subject_of = no }
							921 = { owns_or_subject_of = no }
							990 = { owns_or_subject_of = no }
							991 = { owns_or_subject_of = no }
							992 = { owns_or_subject_of = no }
							993 = { owns_or_subject_of = no }
							1023 = { owns_or_subject_of = no }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PSA_SOV } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			every_subject_country = {
				limit = { owns_state = 378 } #California
				set_cosmetic_tag = FORM_PSA_SOV
				add_state_core = 277
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 316
				add_state_core = 317
				add_state_core = 475
				add_state_core = 476
				add_state_core = 478
				add_state_core = 481
				add_state_core = 485
				add_state_core = 685
				add_state_core = 937
				custom_effect_tooltip = FORMABLE_CLAIMED_TT
				custom_effect_tooltip = FORMABLE_DEBUFFS_TT
				hidden_effect = {
					sound_effect = complete_focus
					
					add_state_core = 377
					add_state_core = 378
					add_state_core = 379
					add_state_core = 380
					add_state_core = 385
					add_state_core = 386
					add_state_core = 387
					add_state_core = 463
					add_state_core = 471
					add_state_core = 473
					add_state_core = 483
					add_state_core = 484
					add_state_core = 650
					add_state_core = 739
					add_state_core = 740
					add_state_core = 864
					if = {
						limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
						add_ideas = generic_recent_political_unification
						add_ideas = generic_recent_army_unification
						add_ideas = generic_recent_economic_unification
					}
					set_country_flag = display_formable_unform_cflag
				}
			}
			hidden_effect = {
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_pacific_states_america_russia_requirements_cflag
			}
		}
	}
	formable_pacific_states_america_show_atlantic_russia_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
	formable_pacific_states_america_show_midwestern_russia_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
	formable_pacific_states_america_russia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_pacific_states_america_russia_requirements_cflag
		}
	}
}

formable_pacific_states_america_show_atlantic_category = {
	formable_pacific_states_america_reset_show_atlantic_china_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
	formable_pacific_states_america_reset_show_atlantic_japan_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
	formable_pacific_states_america_reset_show_atlantic_russia_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_atlantic_cflag
		}
	}
}
formable_pacific_states_america_show_midwestern_category = {
	formable_pacific_states_america_reset_show_midwestern_china_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
	formable_pacific_states_america_reset_show_midwestern_japan_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = JAP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
	formable_pacific_states_america_reset_show_midwestern_russia_decision = {
		icon = formable_show_exclusions
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SOV
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_pacific_states_america_show_midwestern_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_persian_empire_show_decision = {
		icon = formable_persian_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PER
				original_tag = TAJ
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_persian_empire_requirements_cflag
		}
	}
}

formable_persian_empire_category = {
	formable_persian_empire_form_decision = {
		icon = formable_persian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_persian_empire_form_decision_tt
						count_triggers = {
							amount = 75	#107 total states required
							49 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							787 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							823 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PEE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_PEE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 49
				add_state_core = 77
				add_state_core = 164
				add_state_core = 183
				add_state_core = 184
				add_state_core = 187
				add_state_core = 211
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 405
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 447
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 553
				add_state_core = 554
				add_state_core = 584
				add_state_core = 585
				add_state_core = 656
				add_state_core = 663
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 731
				add_state_core = 742
				add_state_core = 787
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 823
				add_state_core = 826
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1044
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_persian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_persian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_persian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_peru_bolivia_show_decision = {
		icon = formable_peru_bolivia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PRU
				original_tag = BOL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_peru_bolivia_requirements_cflag
		}
	}
}

formable_peru_bolivia_category = {
	formable_peru_bolivia_form_decision = {
		icon = formable_peru_bolivia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_peru_bolivia_form_decision_tt
						count_triggers = {
							amount = 8	#8 total states required
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PRB } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_PRB
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 302
				add_state_core = 303
				add_state_core = 487
				add_state_core = 491
				add_state_core = 492
				add_state_core = 494
				add_state_core = 1061
				add_state_core = 1077
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_peru_bolivia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_peru_bolivia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_peru_bolivia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_poland_hungary_show_decision = {
		icon = formable_poland_hungary
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = POL
				original_tag = HUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_poland_hungary_requirements_cflag
		}
	}
}

formable_poland_hungary_category = {
	formable_poland_hungary_form_decision = {
		icon = formable_poland_hungary
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_poland_hungary_form_decision_tt
						count_triggers = {
							amount = 30	#38 total states required
							10 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							89 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							91 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_POH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_POH
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 10
				add_state_core = 12
				add_state_core = 13
				add_state_core = 43
				add_state_core = 45
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 76
				add_state_core = 80
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 98
				add_state_core = 103
				add_state_core = 109
				add_state_core = 154
				add_state_core = 155
				add_state_core = 191
				add_state_core = 664
				add_state_core = 762
				add_state_core = 764
				add_state_core = 804
				add_state_core = 807
				add_state_core = 913
				add_state_core = 952
				add_state_core = 956
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 996
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_poland_hungary_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_poland_hungary_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_poland_hungary_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_polynesia_show_decision = {
		icon = formable_polynesia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = NZL
				original_tag = SAM
				original_tag = HAW
				original_tag = FIJ
				original_tag = TAH
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_polynesia_requirements_cflag
		}
	}
}

formable_polynesia_category = {
	formable_polynesia_form_decision = {
		icon = formable_polynesia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_polynesia_form_decision_tt
						count_triggers = {
							amount = 10	#15 total states required
							270 = { is_fully_controlled_by = ROOT }
							284 = { is_fully_controlled_by = ROOT }
							629 = { is_fully_controlled_by = ROOT }
							630 = { is_fully_controlled_by = ROOT }
							636 = { is_fully_controlled_by = ROOT }
							641 = { is_fully_controlled_by = ROOT }
							642 = { is_fully_controlled_by = ROOT }
							643 = { is_fully_controlled_by = ROOT }
							723 = { is_fully_controlled_by = ROOT }
							726 = { is_fully_controlled_by = ROOT }
							727 = { is_fully_controlled_by = ROOT }
							734 = { is_fully_controlled_by = ROOT }
							1087 = { is_fully_controlled_by = ROOT }
							1088 = { is_fully_controlled_by = ROOT }
							1089 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_PLY } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_PLY
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 270
				add_state_core = 284
				add_state_core = 629
				add_state_core = 630
				add_state_core = 636
				add_state_core = 641
				add_state_core = 642
				add_state_core = 643
				add_state_core = 723
				add_state_core = 726
				add_state_core = 727
				add_state_core = 734
				add_state_core = 1087
				add_state_core = 1088
				add_state_core = 1089
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_polynesia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_polynesia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_polynesia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_prussia_show_decision = {
		icon = formable_prussia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DNZ
				original_tag = KSH
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_prussia_requirements_cflag
		}
	}
}

formable_prussia_category = {
	formable_prussia_form_decision = {
		icon = formable_prussia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_prussia_form_decision_tt
						count_triggers = {
							amount = 20	#25 total states required
							5 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							55 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							58 = { is_fully_controlled_by = ROOT }
							59 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							64 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							998 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = PRS } } NOT = { country_exists = PRS } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = PRS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 42
				add_state_core = 51
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 85
				add_state_core = 86
				add_state_core = 188
				add_state_core = 762
				add_state_core = 763
				add_state_core = 807
				add_state_core = 922
				add_state_core = 989
				add_state_core = 998
				add_state_core = 1053
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_prussia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_prussia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_prussia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_prussia_bulgaria_show_decision = {
		icon = formable_prussia_bulgaria
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BUL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_prussia_bulgaria_requirements_cflag
		}
	}
}

formable_prussia_bulgaria_category = {
	formable_prussia_bulgaria_form_decision = {
		icon = formable_prussia_bulgaria
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_prussia_bulgaria_form_decision_tt
						count_triggers = {
							amount = 10	#15 total states required
							48 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_GBG } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_GBG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 48
				add_state_core = 77
				add_state_core = 106
				add_state_core = 108
				add_state_core = 184
				add_state_core = 211
				add_state_core = 212
				add_state_core = 341
				add_state_core = 731
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 950
				add_state_core = 953
				add_state_core = 955
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_prussia_bulgaria_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_prussia_bulgaria_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_prussia_bulgaria_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_rashidun_show_decision = {
		icon = formable_rashidun
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ISR
				original_tag = PAL
				original_tag = MPL
				original_tag = SYR
				original_tag = IRQ
				original_tag = PER
				original_tag = ARM
				original_tag = AZR
				original_tag = JOR
				original_tag = EGY
				original_tag = LBA
				original_tag = KUW
				original_tag = LEB
				original_tag = KUR
				original_tag = SAU
				original_tag = OMA
				original_tag = YEM
				original_tag = QAT
				original_tag = UAE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_rashidun_requirements_cflag
		}
	}
}

formable_rashidun_category = {
	formable_rashidun_form_decision = {
		icon = formable_rashidun
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_rashidun_form_decision_tt
						count_triggers = {
							amount = 55	#80 total states required
							183 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							292 = { is_fully_controlled_by = ROOT }
							293 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							678 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							857 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_RSH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_RSH
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 183
				add_state_core = 229
				add_state_core = 230
				add_state_core = 266
				add_state_core = 291
				add_state_core = 292
				add_state_core = 293
				add_state_core = 294
				add_state_core = 350
				add_state_core = 352
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 444
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 658
				add_state_core = 659
				add_state_core = 662
				add_state_core = 663
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 678
				add_state_core = 679
				add_state_core = 680
				add_state_core = 765
				add_state_core = 799
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 907
				add_state_core = 911
				add_state_core = 949
				add_state_core = 966
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1007
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1044
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_rashidun_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_rashidun_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_rashidun_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_rattanakosin_show_decision = {
		icon = formable_rattanakosin
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SIA
				original_tag = LAO
				original_tag = CAM
				original_tag = FRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_rattanakosin_requirements_cflag
		}
	}
}

formable_rattanakosin_category = {
	formable_rattanakosin_form_decision = {
		icon = formable_rattanakosin
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_rattanakosin_form_decision_tt
						count_triggers = {
							amount = 7	#9 total states required
							289 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_RAT } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_RAT
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 289
				add_state_core = 670
				add_state_core = 724
				add_state_core = 741
				add_state_core = 868
				add_state_core = 869
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_rattanakosin_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_rattanakosin_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_rattanakosin_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_rhineland_show_decision = {
		icon = formable_rhineland
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = HOL
				original_tag = BEL
				original_tag = LUX
				original_tag = SWI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_rhineland_requirements_cflag
		}
	}
}

formable_rhineland_category = {
	formable_rhineland_form_decision = {
		icon = formable_rhineland
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_rhineland_form_decision_tt
						count_triggers = {
							amount = 16	#21 total states required
							3 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							989 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_RHI } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_RHI
			set_capital = {
				state = 51
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 7
				add_state_core = 8
				add_state_core = 28
				add_state_core = 35
				add_state_core = 36
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 151
				add_state_core = 845
				add_state_core = 847
				add_state_core = 848
				add_state_core = 921
				add_state_core = 922
				add_state_core = 923
				add_state_core = 965
				add_state_core = 989
				add_state_core = 997
				add_state_core = 1053
				add_state_core = 1094
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_rhineland_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_rhineland_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_rhineland_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_roman_empire_show_decision = {
		icon = formable_roman_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
				original_tag = GRE
				original_tag = SPR
				original_tag = POR
				original_tag = FRA
				original_tag = BRI
				original_tag = GLC
				original_tag = CAT
				original_tag = NAV
				original_tag = ENG
				original_tag = ADR
				original_tag = CRO
				original_tag = SAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_roman_empire_requirements_cflag
		}
	}
}

formable_roman_empire_category = {
	formable_roman_empire_form_decision = {
		icon = formable_roman_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_roman_empire_form_decision_tt
						count_triggers = {
							amount = 150	#231 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							44 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							46 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							49 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							164 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							182 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							347 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							797 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							952 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1076 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ROE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ROE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 6
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 39
				add_state_core = 41
				add_state_core = 42
				add_state_core = 44
				add_state_core = 45
				add_state_core = 46
				add_state_core = 47
				add_state_core = 48
				add_state_core = 49
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 77
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 155
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 163
				add_state_core = 164
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 290
				add_state_core = 291
				add_state_core = 338
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 513
				add_state_core = 553
				add_state_core = 554
				add_state_core = 656
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 665
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 731
				add_state_core = 735
				add_state_core = 736
				add_state_core = 764
				add_state_core = 785
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 806
				add_state_core = 826
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 907
				add_state_core = 910
				add_state_core = 911
				add_state_core = 912
				add_state_core = 913
				add_state_core = 923
				add_state_core = 933
				add_state_core = 949
				add_state_core = 950
				add_state_core = 952
				add_state_core = 953
				add_state_core = 955
				add_state_core = 956
				add_state_core = 957
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				add_state_core = 965
				add_state_core = 966
				add_state_core = 973
				add_state_core = 995
				add_state_core = 997
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1041
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1076
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_roman_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_roman_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_roman_empire_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_roman_republic_show_decision = {
		icon = formable_roman_republic
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ITA
				original_tag = SAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_roman_republic_requirements_cflag
		}
	}
}

formable_roman_republic_category = {
	formable_roman_republic_form_decision = {
		icon = formable_roman_republic
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_roman_republic_form_decision_tt
						count_triggers = {
							amount = 26	#31 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_RMR } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_RMR
			
			add_state_core = 21
			add_state_core = 22
			add_state_core = 31
			add_state_core = 41
			add_state_core = 44
			add_state_core = 47
			add_state_core = 103
			add_state_core = 105
			add_state_core = 112
			add_state_core = 163
			add_state_core = 165
			add_state_core = 166
			add_state_core = 170
			add_state_core = 175
			add_state_core = 179
			add_state_core = 181
			add_state_core = 185
			add_state_core = 186
			add_state_core = 449
			add_state_core = 459
			add_state_core = 460
			add_state_core = 735
			add_state_core = 788
			add_state_core = 793
			add_state_core = 794
			add_state_core = 795
			add_state_core = 805
			add_state_core = 851
			add_state_core = 910
			add_state_core = 958
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 39
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 173
				add_state_core = 177
				add_state_core = 448
				add_state_core = 458
				add_state_core = 665
				add_state_core = 736
				add_state_core = 789
				add_state_core = 849
				add_state_core = 850
				add_state_core = 852
				add_state_core = 912
				add_state_core = 957
				add_state_core = 1015
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_roman_republic_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_roman_republic_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_roman_republic_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_romania_bulgaria_show_decision = {
		icon = formable_romania_bulgaria
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ROM
				original_tag = BUL
				original_tag = MOL
				original_tag = TRA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_romania_bulgaria_requirements_cflag
		}
	}
}

formable_romania_bulgaria_category = {
	formable_romania_bulgaria_form_decision = {
		icon = formable_romania_bulgaria
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_romania_bulgaria_form_decision_tt
						count_triggers = {
							amount = 14	#18 total states required
							46 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							78 = { is_fully_controlled_by = ROOT }
							79 = { is_fully_controlled_by = ROOT }
							80 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							766 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ROB } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ROB
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 46
				add_state_core = 48
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 106
				add_state_core = 211
				add_state_core = 212
				add_state_core = 766
				add_state_core = 801
				add_state_core = 803
				add_state_core = 955
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_romania_bulgaria_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_romania_bulgaria_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_romania_bulgaria_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_safavid_show_decision = {
		icon = formable_safavid
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AZR
				original_tag = ARM
				original_tag = DAG
				original_tag = AFG
				original_tag = IRQ
				original_tag = KUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_safavid_requirements_cflag
		}
	}
}

formable_safavid_category = {
	formable_safavid_form_decision = {
		icon = formable_safavid
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_safavid_form_decision_tt
						count_triggers = {
							amount = 32	#44 total states required
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							232 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SVD } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SVD
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 229
				add_state_core = 230
				add_state_core = 232
				add_state_core = 266
				add_state_core = 291
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 444
				add_state_core = 656
				add_state_core = 658
				add_state_core = 676
				add_state_core = 765
				add_state_core = 800
				add_state_core = 858
				add_state_core = 859
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 1007
				add_state_core = 1044
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1048
				add_state_core = 1048
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_safavid_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_safavid_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_safavid_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_sahel_show_decision = {
		icon = formable_sahel
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = MRT
				original_tag = MLI
				original_tag = NGR
				original_tag = CHA
				original_tag = SUD
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_sahel_requirements_cflag
		}
	}
}

formable_sahel_category = {
	formable_sahel_form_decision = {
		icon = formable_sahel
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_sahel_form_decision_tt
						count_triggers = {
							amount = 10	#15 total states required
							515 = { is_fully_controlled_by = ROOT }
							549 = { is_fully_controlled_by = ROOT }
							551 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							767 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							883 = { is_fully_controlled_by = ROOT }
							886 = { is_fully_controlled_by = ROOT }
							887 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SAH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SAH
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 515
				add_state_core = 549
				add_state_core = 551
				add_state_core = 557
				add_state_core = 767
				add_state_core = 774
				add_state_core = 775
				add_state_core = 781
				add_state_core = 782
				add_state_core = 786
				add_state_core = 883
				add_state_core = 886
				add_state_core = 887
				add_state_core = 898
				add_state_core = 899
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_sahel_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_sahel_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_sahel_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_sassanid_show_decision = {
		icon = formable_sassanid
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PER
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_sassanid_requirements_cflag
		}
	}
}

formable_sassanid_category = {
	formable_sassanid_form_decision = {
		icon = formable_sassanid
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_sassanid_form_decision_tt
						count_triggers = {
							amount = 40	#54 total states required
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SAS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SAS
			
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 294
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 584
				add_state_core = 656
				add_state_core = 658
				add_state_core = 675
				add_state_core = 676
				add_state_core = 680
				add_state_core = 765
				add_state_core = 800
				add_state_core = 858
				add_state_core = 859
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 1007
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_sassanid_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_sassanid_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_sassanid_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_sardinia_piedmont_show_decision = {
		icon = formable_sardinia_piedmont
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SAD
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_sardinia_piedmont_requirements_cflag
		}
	}
}

formable_sardinia_piedmont_category = {
	formable_sardinia_piedmont_form_decision = {
		icon = formable_sardinia_piedmont
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_sardinia_piedmont_form_decision_tt
						count_triggers = {
							amount = 4	#4 total states required
							114 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SPD } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SPD
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 114
				add_state_core = 158
				add_state_core = 735
				add_state_core = 1012
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_sardinia_piedmont_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_sardinia_piedmont_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_sardinia_piedmont_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_scandinavia_show_decision = {
		icon = formable_scandinavia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DEN
				original_tag = SWE
				original_tag = NOR
				original_tag = ICE
				original_tag = FIN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_scandinavia_requirements_cflag
		}
	}
}

formable_scandinavia_category = {
	formable_scandinavia_form_decision = {
		icon = formable_scandinavia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_scandinavia_form_decision_tt
						count_triggers = {
							amount = 30	#42 total states required
							37 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							99 = { is_fully_controlled_by = ROOT }
							100 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							337 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							964 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							1024 = { is_fully_controlled_by = ROOT }
							1025 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
							1043 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SCA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SCA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 37
				add_state_core = 38
				add_state_core = 99
				add_state_core = 100
				add_state_core = 110
				add_state_core = 111
				add_state_core = 124
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 337
				add_state_core = 666
				add_state_core = 964
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 1024
				add_state_core = 1025
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1043
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_scandinavia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_scandinavia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_scandinavia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_second_french_empire_show_decision = {
		icon = formable_second_french_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = FRA
				original_tag = BRI
				original_tag = OCC
				original_tag = COR
				original_tag = MNC
				original_tag = ADR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_second_french_empire_requirements_cflag
		}
	}
}

formable_second_french_empire_category = {
	formable_second_french_empire_form_decision = {
		icon = formable_second_french_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_second_french_empire_form_decision_tt
						count_triggers = {
							amount = 38	#52 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							7 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							36 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							56 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SFE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SFE
			if = {
				limit = { NOT = { original_tag = FRA } }
				set_capital = { state = 16 }
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 42
				add_state_core = 51
				add_state_core = 56
				add_state_core = 103
				add_state_core = 158
				add_state_core = 162
				add_state_core = 163
				add_state_core = 165
				add_state_core = 735
				add_state_core = 736
				add_state_core = 785
				add_state_core = 806
				add_state_core = 845
				add_state_core = 847
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 958
				add_state_core = 965
				add_state_core = 973
				add_state_core = 1012
				add_state_core = 1053
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_second_french_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_second_french_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_second_french_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_seleucid_empire_show_decision = {
		icon = formable_seleucid_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CYP
				original_tag = GRE
				original_tag = IRQ
				original_tag = ISR
				original_tag = LEB
				original_tag = MPL
				original_tag = PAL
				original_tag = PER
				original_tag = SYR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_seleucid_empire_requirements_cflag
		}
	}
}
 
formable_seleucid_empire_category = {
	formable_seleucid_empire_form_decision = {
		icon = formable_seleucid_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_seleucid_empire_form_decision_tt
						count_triggers = {
							amount = 45	#59 total states required
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							339 = { is_fully_controlled_by = ROOT }
							340 = { is_fully_controlled_by = ROOT }
							342 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							345 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SEL } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SEL
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 339
				add_state_core = 340
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 348
				add_state_core = 350
				add_state_core = 352
				add_state_core = 405
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 421
				add_state_core = 442
				add_state_core = 444
				add_state_core = 445
				add_state_core = 454
				add_state_core = 455
				add_state_core = 553
				add_state_core = 554
				add_state_core = 584
				add_state_core = 656
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 742
				add_state_core = 799
				add_state_core = 830
				add_state_core = 966
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1016
				add_state_core = 1021
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_seleucid_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_seleucid_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_seleucid_empire_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_seljuk_empire_show_decision = {
		icon = formable_seljuk_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AFG
				original_tag = ARM
				original_tag = AZR
				original_tag = BUK
				original_tag = GEO
				original_tag = IRQ
				original_tag = ISR
				original_tag = KHI
				original_tag = KKP
				original_tag = KUR
				original_tag = LEB
				original_tag = MPL
				original_tag = PAL
				original_tag = PER
				original_tag = SYR
				original_tag = TAJ
				original_tag = TMS
				original_tag = TUR
				original_tag = UAE
				original_tag = UZB
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_seljuk_empire_requirements_cflag
		}
	}
}
 
formable_seljuk_empire_category = {
	formable_seljuk_empire_form_decision = {
		icon = formable_seljuk_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_seljuk_empire_form_decision_tt
						count_triggers = {
							amount = 50	#66 total states required
							49 = { is_fully_controlled_by = ROOT }
							57 = { is_fully_controlled_by = ROOT }
							206 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							343 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							346 = { is_fully_controlled_by = ROOT }
							348 = { is_fully_controlled_by = ROOT }
							349 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							353 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							798 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							800 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SLJ } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SLJ
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 49
				add_state_core = 57
				add_state_core = 206
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 266
				add_state_core = 267
				add_state_core = 291
				add_state_core = 343
				add_state_core = 344
				add_state_core = 346
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 454
				add_state_core = 553
				add_state_core = 554
				add_state_core = 584
				add_state_core = 585
				add_state_core = 658
				add_state_core = 676
				add_state_core = 677
				add_state_core = 680
				add_state_core = 742
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 949
				add_state_core = 966
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1044
				add_state_core = 1048
				add_state_core = 1049
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_seljuk_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_seljuk_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_seljuk_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_serbian_empire_show_decision = {
		icon = formable_serbian_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SRB
				original_tag = YUG
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_serbian_empire_requirements_cflag
		}
	}
}

formable_serbian_empire_category = {
	formable_serbian_empire_form_decision = {
		icon = formable_serbian_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_serbian_empire_form_decision_tt
						count_triggers = {
							amount = 18	#29 total states required
							44 = { is_fully_controlled_by = ROOT }
							47 = { is_fully_controlled_by = ROOT }
							48 = { is_fully_controlled_by = ROOT }
							77 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							105 = { is_fully_controlled_by = ROOT }
							106 = { is_fully_controlled_by = ROOT }
							107 = { is_fully_controlled_by = ROOT }
							108 = { is_fully_controlled_by = ROOT }
							184 = { is_fully_controlled_by = ROOT }
							185 = { is_fully_controlled_by = ROOT }
							186 = { is_fully_controlled_by = ROOT }
							187 = { is_fully_controlled_by = ROOT }
							211 = { is_fully_controlled_by = ROOT }
							212 = { is_fully_controlled_by = ROOT }
							341 = { is_fully_controlled_by = ROOT }
							731 = { is_fully_controlled_by = ROOT }
							801 = { is_fully_controlled_by = ROOT }
							802 = { is_fully_controlled_by = ROOT }
							803 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							805 = { is_fully_controlled_by = ROOT }
							910 = { is_fully_controlled_by = ROOT }
							950 = { is_fully_controlled_by = ROOT }
							953 = { is_fully_controlled_by = ROOT }
							955 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							963 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SRE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SRE
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 44
				add_state_core = 47
				add_state_core = 48
				add_state_core = 77
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 211
				add_state_core = 212
				add_state_core = 341
				add_state_core = 731
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 910
				add_state_core = 950
				add_state_core = 953
				add_state_core = 955
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_serbian_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_serbian_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_serbian_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_siberia_show_decision = {
		icon = formable_siberia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = TAN
				original_tag = OVO
				original_tag = YAM
				original_tag = TAY
				original_tag = VLA
				original_tag = GUK
				original_tag = FER
				original_tag = CKK
				original_tag = YAK
				original_tag = BYA
				original_tag = ALT
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_siberia_requirements_cflag
		}
	}
}

formable_siberia_category = {
	formable_siberia_form_decision = {
		icon = formable_siberia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_siberia_form_decision_tt
						count_triggers = {
							amount = 30	#43 total states required
							40 = { is_fully_controlled_by = ROOT }
							329 = { is_fully_controlled_by = ROOT }
							403 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							516 = { is_fully_controlled_by = ROOT }
							537 = { is_fully_controlled_by = ROOT }
							555 = { is_fully_controlled_by = ROOT }
							560 = { is_fully_controlled_by = ROOT }
							561 = { is_fully_controlled_by = ROOT }
							562 = { is_fully_controlled_by = ROOT }
							563 = { is_fully_controlled_by = ROOT }
							564 = { is_fully_controlled_by = ROOT }
							565 = { is_fully_controlled_by = ROOT }
							566 = { is_fully_controlled_by = ROOT }
							567 = { is_fully_controlled_by = ROOT }
							568 = { is_fully_controlled_by = ROOT }
							569 = { is_fully_controlled_by = ROOT }
							570 = { is_fully_controlled_by = ROOT }
							571 = { is_fully_controlled_by = ROOT }
							572 = { is_fully_controlled_by = ROOT }
							574 = { is_fully_controlled_by = ROOT }
							575 = { is_fully_controlled_by = ROOT }
							576 = { is_fully_controlled_by = ROOT }
							577 = { is_fully_controlled_by = ROOT }
							578 = { is_fully_controlled_by = ROOT }
							579 = { is_fully_controlled_by = ROOT }
							580 = { is_fully_controlled_by = ROOT }
							588 = { is_fully_controlled_by = ROOT }
							637 = { is_fully_controlled_by = ROOT }
							644 = { is_fully_controlled_by = ROOT }
							653 = { is_fully_controlled_by = ROOT }
							654 = { is_fully_controlled_by = ROOT }
							655 = { is_fully_controlled_by = ROOT }
							657 = { is_fully_controlled_by = ROOT }
							822 = { is_fully_controlled_by = ROOT }
							824 = { is_fully_controlled_by = ROOT }
							874 = { is_fully_controlled_by = ROOT }
							875 = { is_fully_controlled_by = ROOT }
							876 = { is_fully_controlled_by = ROOT }
							877 = { is_fully_controlled_by = ROOT }
							878 = { is_fully_controlled_by = ROOT }
							882 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SIB } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SIB
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 40
				add_state_core = 329
				add_state_core = 403
				add_state_core = 408
				add_state_core = 409
				add_state_core = 516
				add_state_core = 537
				add_state_core = 555
				add_state_core = 560
				add_state_core = 561
				add_state_core = 562
				add_state_core = 563
				add_state_core = 564
				add_state_core = 565
				add_state_core = 566
				add_state_core = 567
				add_state_core = 568
				add_state_core = 569
				add_state_core = 570
				add_state_core = 571
				add_state_core = 572
				add_state_core = 574
				add_state_core = 575
				add_state_core = 576
				add_state_core = 577
				add_state_core = 578
				add_state_core = 579
				add_state_core = 580
				add_state_core = 588
				add_state_core = 637
				add_state_core = 644
				add_state_core = 653
				add_state_core = 654
				add_state_core = 655
				add_state_core = 657
				add_state_core = 822
				add_state_core = 824
				add_state_core = 874
				add_state_core = 875
				add_state_core = 876
				add_state_core = 877
				add_state_core = 878
				add_state_core = 882
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_siberia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_siberia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_siberia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_songhai_show_decision = {
		icon = formable_songhai
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DAH
				original_tag = GAM
				original_tag = GNA
				original_tag = GNB
				original_tag = MLI
				original_tag = MRT
				original_tag = NGA
				original_tag = NGR
				original_tag = SEN
				original_tag = VOL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_songhai_requirements_cflag
		}
	}
}
 
formable_songhai_category = {
	formable_songhai_form_decision = {
		icon = formable_songhai
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_songhai_form_decision_tt
						count_triggers = {
							amount = 7	#9 total states required
							272 = { is_fully_controlled_by = ROOT }
							515 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							701 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
							902 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SON } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SON
			custom_effect_tooltip = FORMABLE_CLAIMED_TT
			add_state_core = 296
			add_state_core = 558
			add_state_core = 776
			add_state_core = 778
			add_state_core = 780
			add_state_core = 786
			custom_effect_tooltip = FORMABLE_DEBUFFS_TT
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 272
				add_state_core = 515
				add_state_core = 556
				add_state_core = 701
				add_state_core = 781
				add_state_core = 782
				add_state_core = 898
				add_state_core = 899
				add_state_core = 902
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_songhai_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_songhai_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_songhai_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_south_america_show_decision = {
		icon = formable_south_america
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = COL
				original_tag = VEN
				original_tag = ECU
				original_tag = BRA
				original_tag = PRU
				original_tag = BOL
				original_tag = PAR
				original_tag = URG
				original_tag = ARG
				original_tag = CHL
				original_tag = GYA
				original_tag = SUR
				original_tag = CAY
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_south_america_requirements_cflag
		}
	}
}

formable_south_america_category = {
	formable_south_america_form_decision = {
		icon = formable_south_america
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_south_america_form_decision_tt
						count_triggers = {
							amount = 65	#78 total states required
							278 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							280 = { is_fully_controlled_by = ROOT }
							299 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							309 = { is_fully_controlled_by = ROOT }
							310 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							495 = { is_fully_controlled_by = ROOT }
							496 = { is_fully_controlled_by = ROOT }
							497 = { is_fully_controlled_by = ROOT }
							498 = { is_fully_controlled_by = ROOT }
							499 = { is_fully_controlled_by = ROOT }
							500 = { is_fully_controlled_by = ROOT }
							501 = { is_fully_controlled_by = ROOT }
							502 = { is_fully_controlled_by = ROOT }
							503 = { is_fully_controlled_by = ROOT }
							504 = { is_fully_controlled_by = ROOT }
							505 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							649 = { is_fully_controlled_by = ROOT }
							687 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							720 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							999 = { is_fully_controlled_by = ROOT }
							1000 = { is_fully_controlled_by = ROOT }
							1001 = { is_fully_controlled_by = ROOT }
							1002 = { is_fully_controlled_by = ROOT }
							1003 = { is_fully_controlled_by = ROOT }
							1004 = { is_fully_controlled_by = ROOT }
							1005 = { is_fully_controlled_by = ROOT }
							1006 = { is_fully_controlled_by = ROOT }
							1023 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1052 = { is_fully_controlled_by = ROOT }
							1056 = { is_fully_controlled_by = ROOT }
							1057 = { is_fully_controlled_by = ROOT }
							1058 = { is_fully_controlled_by = ROOT }
							1059 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1067 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1072 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
							1074 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
							1098 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SOU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SOU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 278
				add_state_core = 279
				add_state_core = 280
				add_state_core = 299
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 309
				add_state_core = 310
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 495
				add_state_core = 496
				add_state_core = 497
				add_state_core = 498
				add_state_core = 499
				add_state_core = 500
				add_state_core = 501
				add_state_core = 502
				add_state_core = 503
				add_state_core = 504
				add_state_core = 505
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 649
				add_state_core = 687
				add_state_core = 688
				add_state_core = 720
				add_state_core = 948
				add_state_core = 954
				add_state_core = 999
				add_state_core = 1000
				add_state_core = 1001
				add_state_core = 1002
				add_state_core = 1003
				add_state_core = 1004
				add_state_core = 1005
				add_state_core = 1006
				add_state_core = 1023
				add_state_core = 1051
				add_state_core = 1052
				add_state_core = 1056
				add_state_core = 1057
				add_state_core = 1058
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1072
				add_state_core = 1073
				add_state_core = 1074
				add_state_core = 1077
				add_state_core = 1098
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_south_america_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_south_america_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_south_america_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_south_german_federation_show_decision = {
		icon = formable_south_german_federation
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = AUS
				original_tag = BAY
				original_tag = WUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_south_german_federation_requirements_cflag
		}
	}
}

formable_south_german_federation_category = {
	formable_south_german_federation_form_decision = {
		icon = formable_south_german_federation
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_south_german_federation_form_decision_tt
						count_triggers = {
							amount = 13	#17 total states required
							4 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SGF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SGF
			set_capital = {
				state = 52
			}
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 4
				add_state_core = 39
				add_state_core = 42
				add_state_core = 50
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 69
				add_state_core = 152
				add_state_core = 153
				add_state_core = 848
				add_state_core = 922
				add_state_core = 923
				add_state_core = 1053
				add_state_core = 1054
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_south_german_federation_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_south_german_federation_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_south_german_federation_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_spanish_colonial_empire_show_decision = {
		icon = formable_spanish_colonial_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SPR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_spanish_colonial_empire_requirements_cflag
		}
	}
}

formable_spanish_colonial_empire_category = {
	formable_spanish_colonial_empire_form_decision = {
		icon = formable_spanish_colonial_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_spanish_colonial_empire_form_decision_tt
						count_triggers = {
							amount = 100	#132 total states required
							41 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							178 = { is_fully_controlled_by = ROOT }
							277 = { is_fully_controlled_by = ROOT }
							278 = { is_fully_controlled_by = ROOT }
							279 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							297 = { is_fully_controlled_by = ROOT }
							299 = { is_fully_controlled_by = ROOT }
							300 = { is_fully_controlled_by = ROOT }
							301 = { is_fully_controlled_by = ROOT }
							302 = { is_fully_controlled_by = ROOT }
							303 = { is_fully_controlled_by = ROOT }
							304 = { is_fully_controlled_by = ROOT }
							305 = { is_fully_controlled_by = ROOT }
							306 = { is_fully_controlled_by = ROOT }
							307 = { is_fully_controlled_by = ROOT }
							311 = { is_fully_controlled_by = ROOT }
							312 = { is_fully_controlled_by = ROOT }
							313 = { is_fully_controlled_by = ROOT }
							314 = { is_fully_controlled_by = ROOT }
							315 = { is_fully_controlled_by = ROOT }
							316 = { is_fully_controlled_by = ROOT }
							317 = { is_fully_controlled_by = ROOT }
							319 = { is_fully_controlled_by = ROOT }
							327 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							392 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							474 = { is_fully_controlled_by = ROOT }
							475 = { is_fully_controlled_by = ROOT }
							476 = { is_fully_controlled_by = ROOT }
							477 = { is_fully_controlled_by = ROOT }
							478 = { is_fully_controlled_by = ROOT }
							479 = { is_fully_controlled_by = ROOT }
							480 = { is_fully_controlled_by = ROOT }
							481 = { is_fully_controlled_by = ROOT }
							482 = { is_fully_controlled_by = ROOT }
							483 = { is_fully_controlled_by = ROOT }
							484 = { is_fully_controlled_by = ROOT }
							485 = { is_fully_controlled_by = ROOT }
							486 = { is_fully_controlled_by = ROOT }
							487 = { is_fully_controlled_by = ROOT }
							488 = { is_fully_controlled_by = ROOT }
							489 = { is_fully_controlled_by = ROOT }
							490 = { is_fully_controlled_by = ROOT }
							491 = { is_fully_controlled_by = ROOT }
							492 = { is_fully_controlled_by = ROOT }
							493 = { is_fully_controlled_by = ROOT }
							494 = { is_fully_controlled_by = ROOT }
							506 = { is_fully_controlled_by = ROOT }
							507 = { is_fully_controlled_by = ROOT }
							508 = { is_fully_controlled_by = ROOT }
							509 = { is_fully_controlled_by = ROOT }
							510 = { is_fully_controlled_by = ROOT }
							511 = { is_fully_controlled_by = ROOT }
							512 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							685 = { is_fully_controlled_by = ROOT }
							686 = { is_fully_controlled_by = ROOT }
							688 = { is_fully_controlled_by = ROOT }
							691 = { is_fully_controlled_by = ROOT }
							699 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							929 = { is_fully_controlled_by = ROOT }
							930 = { is_fully_controlled_by = ROOT }
							931 = { is_fully_controlled_by = ROOT }
							932 = { is_fully_controlled_by = ROOT }
							937 = { is_fully_controlled_by = ROOT }
							948 = { is_fully_controlled_by = ROOT }
							954 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							994 = { is_fully_controlled_by = ROOT }
							1051 = { is_fully_controlled_by = ROOT }
							1060 = { is_fully_controlled_by = ROOT }
							1061 = { is_fully_controlled_by = ROOT }
							1062 = { is_fully_controlled_by = ROOT }
							1063 = { is_fully_controlled_by = ROOT }
							1064 = { is_fully_controlled_by = ROOT }
							1065 = { is_fully_controlled_by = ROOT }
							1066 = { is_fully_controlled_by = ROOT }
							1068 = { is_fully_controlled_by = ROOT }
							1069 = { is_fully_controlled_by = ROOT }
							1070 = { is_fully_controlled_by = ROOT }
							1071 = { is_fully_controlled_by = ROOT }
							1073 = { is_fully_controlled_by = ROOT }
							1077 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SCE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SCE
			add_state_core = 270
			add_state_core = 649
			add_state_core = 387
			add_state_core = 385
			add_state_core = 386
			add_state_core = 473
			add_state_core = 740
			add_state_core = 741
			add_state_core = 739
			add_state_core = 647
			add_state_core = 684
			add_state_core = 638
			add_state_core = 646
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 41
				add_state_core = 118
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 178
				add_state_core = 277
				add_state_core = 278
				add_state_core = 279
				add_state_core = 290
				add_state_core = 297
				add_state_core = 299
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 319
				add_state_core = 327
				add_state_core = 366
				add_state_core = 367
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 392
				add_state_core = 461
				add_state_core = 462
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 685
				add_state_core = 686
				add_state_core = 688
				add_state_core = 691
				add_state_core = 699
				add_state_core = 783
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 937
				add_state_core = 948
				add_state_core = 954
				add_state_core = 973
				add_state_core = 994
				add_state_core = 1051
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1073
				add_state_core = 1077
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_spanish_colonial_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_spanish_colonial_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_spanish_colonial_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_swedish_empire_show_decision = {
		icon = formable_swedish_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SWE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_swedish_empire_requirements_cflag
		}
	}
}

formable_swedish_empire_category = {
	formable_swedish_empire_form_decision = {
		icon = formable_swedish_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_swedish_empire_form_decision_tt
						count_triggers = {
							amount = 30	#42 total states required
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							38 = { is_fully_controlled_by = ROOT }
							61 = { is_fully_controlled_by = ROOT }
							62 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							111 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							145 = { is_fully_controlled_by = ROOT }
							146 = { is_fully_controlled_by = ROOT }
							147 = { is_fully_controlled_by = ROOT }
							148 = { is_fully_controlled_by = ROOT }
							149 = { is_fully_controlled_by = ROOT }
							150 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							195 = { is_fully_controlled_by = ROOT }
							208 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
							1036 = { is_fully_controlled_by = ROOT }
							1037 = { is_fully_controlled_by = ROOT }
							1038 = { is_fully_controlled_by = ROOT }
							1039 = { is_fully_controlled_by = ROOT }
							1040 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SEP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SEP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 12
				add_state_core = 13
				add_state_core = 38
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 111
				add_state_core = 124
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 191
				add_state_core = 195
				add_state_core = 208
				add_state_core = 666
				add_state_core = 808
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 968
				add_state_core = 969
				add_state_core = 1026
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_swedish_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_swedish_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_swedish_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_sweden_norway_show_decision = {
		icon = formable_sweden_norway
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SWE
				original_tag = NOR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_sweden_norway_requirements_cflag
		}
	}
}

formable_sweden_norway_category = {
	formable_sweden_norway_form_decision = {
		icon = formable_sweden_norway
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_sweden_norway_form_decision_tt
						count_triggers = {
							amount = 18	#24 total states required
							38 = { is_fully_controlled_by = ROOT }
							110 = { is_fully_controlled_by = ROOT }
							124 = { is_fully_controlled_by = ROOT }
							138 = { is_fully_controlled_by = ROOT }
							139 = { is_fully_controlled_by = ROOT }
							140 = { is_fully_controlled_by = ROOT }
							141 = { is_fully_controlled_by = ROOT }
							142 = { is_fully_controlled_by = ROOT }
							143 = { is_fully_controlled_by = ROOT }
							144 = { is_fully_controlled_by = ROOT }
							666 = { is_fully_controlled_by = ROOT }
							967 = { is_fully_controlled_by = ROOT }
							968 = { is_fully_controlled_by = ROOT }
							969 = { is_fully_controlled_by = ROOT }
							1026 = { is_fully_controlled_by = ROOT }
							1027 = { is_fully_controlled_by = ROOT }
							1028 = { is_fully_controlled_by = ROOT }
							1029 = { is_fully_controlled_by = ROOT }
							1030 = { is_fully_controlled_by = ROOT }
							1031 = { is_fully_controlled_by = ROOT }
							1032 = { is_fully_controlled_by = ROOT }
							1033 = { is_fully_controlled_by = ROOT }
							1034 = { is_fully_controlled_by = ROOT }
							1035 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_SWN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_SWN
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 38
				add_state_core = 110
				add_state_core = 124
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 666
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_sweden_norway_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_sweden_norway_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_sweden_norway_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_teutonic_show_decision = {
		icon = formable_teutonic
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = LAT
				original_tag = EST
				original_tag = DNZ
				original_tag = PRE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_teutonic_requirements_cflag
		}
	}
}

formable_teutonic_category = {
	formable_teutonic_form_decision = {
		icon = formable_teutonic
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_teutonic_form_decision_tt
						count_triggers = {
							amount = 12	#15 total states required
							5 = { is_fully_controlled_by = ROOT }
							12 = { is_fully_controlled_by = ROOT }
							13 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							188 = { is_fully_controlled_by = ROOT }
							190 = { is_fully_controlled_by = ROOT }
							191 = { is_fully_controlled_by = ROOT }
							763 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							808 = { is_fully_controlled_by = ROOT }
							809 = { is_fully_controlled_by = ROOT }
							810 = { is_fully_controlled_by = ROOT }
							811 = { is_fully_controlled_by = ROOT }
							812 = { is_fully_controlled_by = ROOT }
							813 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_TEU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_TEU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 12
				add_state_core = 13
				add_state_core = 85
				add_state_core = 188
				add_state_core = 190
				add_state_core = 191
				add_state_core = 763
				add_state_core = 807
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_teutonic_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_teutonic_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_teutonic_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_thunder_dragon_empire_show_decision = {
		icon = formable_thunder_dragon_empire
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BHU
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_thunder_dragon_empire_requirements_cflag
		}
	}
}

formable_thunder_dragon_empire_category = {
	formable_thunder_dragon_empire_form_decision = {
		icon = formable_thunder_dragon_empire
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_thunder_dragon_empire_form_decision_tt
						count_triggers = {
							amount = 25	#41 total states required
							286 = { is_fully_controlled_by = ROOT }
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							322 = { is_fully_controlled_by = ROOT }
							323 = { is_fully_controlled_by = ROOT }
							324 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							426 = { is_fully_controlled_by = ROOT }
							430 = { is_fully_controlled_by = ROOT }
							431 = { is_fully_controlled_by = ROOT }
							432 = { is_fully_controlled_by = ROOT }
							434 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							601 = { is_fully_controlled_by = ROOT }
							604 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							671 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							733 = { is_fully_controlled_by = ROOT }
							741 = { is_fully_controlled_by = ROOT }
							757 = { is_fully_controlled_by = ROOT }
							758 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							927 = { is_fully_controlled_by = ROOT }
							928 = { is_fully_controlled_by = ROOT }
							1013 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
							1091 = { is_fully_controlled_by = ROOT }
							1092 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_TDE } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_TDE
			add_state_core = 336
			add_state_core = 524
			add_state_core = 672
			add_state_core = 724
			add_state_core = 905
			add_state_core = 914
			add_state_core = 915
			add_state_core = 951
			add_state_core = 960
			add_state_core = 974
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 286
				add_state_core = 288
				add_state_core = 289
				add_state_core = 322
				add_state_core = 323
				add_state_core = 324
				add_state_core = 326
				add_state_core = 426
				add_state_core = 430
				add_state_core = 431
				add_state_core = 432
				add_state_core = 434
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 599
				add_state_core = 601
				add_state_core = 604
				add_state_core = 640
				add_state_core = 670
				add_state_core = 671
				add_state_core = 728
				add_state_core = 729
				add_state_core = 733
				add_state_core = 741
				add_state_core = 757
				add_state_core = 758
				add_state_core = 868
				add_state_core = 869
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 1013
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				add_state_core = 1091
				add_state_core = 1092
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_thunder_dragon_empire_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_thunder_dragon_empire_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_thunder_dragon_empire_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_toungoo_show_decision = {
		icon = formable_toungoo
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SIA
				original_tag = LAO
				original_tag = BRM
				original_tag = FRI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_toungoo_requirements_cflag
		}
	}
}

formable_toungoo_category = {
	formable_toungoo_form_decision = {
		icon = formable_toungoo
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_toungoo_form_decision_tt
						count_triggers = {
							amount = 12	#15 total states required
							288 = { is_fully_controlled_by = ROOT }
							289 = { is_fully_controlled_by = ROOT }
							432 = { is_fully_controlled_by = ROOT }
							434 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							670 = { is_fully_controlled_by = ROOT }
							724 = { is_fully_controlled_by = ROOT }
							868 = { is_fully_controlled_by = ROOT }
							869 = { is_fully_controlled_by = ROOT }
							924 = { is_fully_controlled_by = ROOT }
							925 = { is_fully_controlled_by = ROOT }
							926 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1019 = { is_fully_controlled_by = ROOT }
							1020 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_TGO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_TGO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 288
				add_state_core = 289
				add_state_core = 432
				add_state_core = 434
				add_state_core = 640
				add_state_core = 670
				add_state_core = 724
				add_state_core = 868
				add_state_core = 869
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_toungoo_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_toungoo_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_toungoo_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_transcaucasia_show_decision = {
		icon = formable_transcaucasia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ARM
				original_tag = GEO
				original_tag = AZR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_transcaucasia_requirements_cflag
		}
	}
}

formable_transcaucasia_category = {
	formable_transcaucasia_form_decision = {
		icon = formable_transcaucasia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_transcaucasia_form_decision_tt
						count_triggers = {
							amount = 5	#5 total states required
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_CAU } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_CAU
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 826
				add_state_core = 1044
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_transcaucasia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_transcaucasia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_transcaucasia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_turkestan_show_decision = {
		icon = formable_turkestan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = KAZ
				original_tag = UZB
				original_tag = KYR
				original_tag = TMS
				original_tag = TNG
				original_tag = SIK
				original_tag = BUK
				original_tag = KHI
				original_tag = KKP
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_turkestan_requirements_cflag
		}
	}
}

formable_turkestan_category = {
	formable_turkestan_form_decision = {
		icon = formable_turkestan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_turkestan_form_decision_tt
						count_triggers = {
							amount = 20	#25 total states required
							287 = { is_fully_controlled_by = ROOT }
							402 = { is_fully_controlled_by = ROOT }
							404 = { is_fully_controlled_by = ROOT }
							405 = { is_fully_controlled_by = ROOT }
							406 = { is_fully_controlled_by = ROOT }
							407 = { is_fully_controlled_by = ROOT }
							583 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							585 = { is_fully_controlled_by = ROOT }
							586 = { is_fully_controlled_by = ROOT }
							587 = { is_fully_controlled_by = ROOT }
							588 = { is_fully_controlled_by = ROOT }
							589 = { is_fully_controlled_by = ROOT }
							590 = { is_fully_controlled_by = ROOT }
							617 = { is_fully_controlled_by = ROOT }
							618 = { is_fully_controlled_by = ROOT }
							619 = { is_fully_controlled_by = ROOT }
							732 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							760 = { is_fully_controlled_by = ROOT }
							823 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							881 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_TKS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_TKS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 287
				add_state_core = 402
				add_state_core = 404
				add_state_core = 405
				add_state_core = 406
				add_state_core = 407
				add_state_core = 583
				add_state_core = 584
				add_state_core = 585
				add_state_core = 586
				add_state_core = 587
				add_state_core = 588
				add_state_core = 589
				add_state_core = 590
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 732
				add_state_core = 759
				add_state_core = 760
				add_state_core = 823
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 881
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_turkestan_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_turkestan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_turkestan_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_uk_show_decision = {
		icon = formable_uk
		cost = 0  days_re_enable = 0
		visible = {
			always = no
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = SCO
				original_tag = WAL
				original_tag = NIR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_uk_requirements_cflag
		}
	}
}

formable_uk_category = {
	formable_uk_form_decision = {
		icon = formable_uk
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_uk_form_decision_tt
						count_triggers = {
							amount = 18	#20 total states required
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1042 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = {
						tooltip = FORMABLE_NOT_FORMED_TT
						NOT = { AND = { original_tag = ENG   has_cosmetic_tag = FORM_EGL } }
						NOT = { OR = { country_exists = ENG   any_country = { has_cosmetic_tag = ENG } } }
					}
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = ENG
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 136
				add_state_core = 338
				add_state_core = 970
				add_state_core = 971
				add_state_core = 1041
				add_state_core = 1042
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_uk_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_uk_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_uk_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_umayyad_show_decision = {
		icon = formable_umayyad
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ISR
				original_tag = PAL
				original_tag = MPL
				original_tag = SYR
				original_tag = IRQ
				original_tag = PER
				original_tag = ARM
				original_tag = AZR
				original_tag = JOR
				original_tag = EGY
				original_tag = LBA
				original_tag = KUW
				original_tag = LEB
				original_tag = KUR
				original_tag = SAU
				original_tag = OMA
				original_tag = YEM
				original_tag = QAT
				original_tag = UAE
				original_tag = TAJ
				original_tag = KHI
				original_tag = KYR
				original_tag = TMS
				original_tag = CYP
				original_tag = TUN
				original_tag = ALG
				original_tag = MOR
				original_tag = PAK
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_umayyad_requirements_cflag
		}
	}
}

formable_umayyad_category = {
	formable_umayyad_form_decision = {
		icon = formable_umayyad
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_umayyad_form_decision_tt
						count_triggers = {
							amount = 100	#136 total states required
							22 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							183 = { is_fully_controlled_by = ROOT }
							229 = { is_fully_controlled_by = ROOT }
							230 = { is_fully_controlled_by = ROOT }
							266 = { is_fully_controlled_by = ROOT }
							267 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							291 = { is_fully_controlled_by = ROOT }
							292 = { is_fully_controlled_by = ROOT }
							293 = { is_fully_controlled_by = ROOT }
							294 = { is_fully_controlled_by = ROOT }
							344 = { is_fully_controlled_by = ROOT }
							350 = { is_fully_controlled_by = ROOT }
							352 = { is_fully_controlled_by = ROOT }
							410 = { is_fully_controlled_by = ROOT }
							411 = { is_fully_controlled_by = ROOT }
							412 = { is_fully_controlled_by = ROOT }
							413 = { is_fully_controlled_by = ROOT }
							414 = { is_fully_controlled_by = ROOT }
							415 = { is_fully_controlled_by = ROOT }
							416 = { is_fully_controlled_by = ROOT }
							417 = { is_fully_controlled_by = ROOT }
							418 = { is_fully_controlled_by = ROOT }
							419 = { is_fully_controlled_by = ROOT }
							420 = { is_fully_controlled_by = ROOT }
							421 = { is_fully_controlled_by = ROOT }
							442 = { is_fully_controlled_by = ROOT }
							443 = { is_fully_controlled_by = ROOT }
							444 = { is_fully_controlled_by = ROOT }
							445 = { is_fully_controlled_by = ROOT }
							447 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							449 = { is_fully_controlled_by = ROOT }
							450 = { is_fully_controlled_by = ROOT }
							451 = { is_fully_controlled_by = ROOT }
							452 = { is_fully_controlled_by = ROOT }
							453 = { is_fully_controlled_by = ROOT }
							454 = { is_fully_controlled_by = ROOT }
							455 = { is_fully_controlled_by = ROOT }
							456 = { is_fully_controlled_by = ROOT }
							457 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							462 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							553 = { is_fully_controlled_by = ROOT }
							554 = { is_fully_controlled_by = ROOT }
							584 = { is_fully_controlled_by = ROOT }
							656 = { is_fully_controlled_by = ROOT }
							658 = { is_fully_controlled_by = ROOT }
							659 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							662 = { is_fully_controlled_by = ROOT }
							663 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							675 = { is_fully_controlled_by = ROOT }
							676 = { is_fully_controlled_by = ROOT }
							677 = { is_fully_controlled_by = ROOT }
							678 = { is_fully_controlled_by = ROOT }
							679 = { is_fully_controlled_by = ROOT }
							680 = { is_fully_controlled_by = ROOT }
							732 = { is_fully_controlled_by = ROOT }
							742 = { is_fully_controlled_by = ROOT }
							765 = { is_fully_controlled_by = ROOT }
							783 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							799 = { is_fully_controlled_by = ROOT }
							830 = { is_fully_controlled_by = ROOT }
							831 = { is_fully_controlled_by = ROOT }
							832 = { is_fully_controlled_by = ROOT }
							854 = { is_fully_controlled_by = ROOT }
							855 = { is_fully_controlled_by = ROOT }
							856 = { is_fully_controlled_by = ROOT }
							857 = { is_fully_controlled_by = ROOT }
							858 = { is_fully_controlled_by = ROOT }
							859 = { is_fully_controlled_by = ROOT }
							907 = { is_fully_controlled_by = ROOT }
							911 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							949 = { is_fully_controlled_by = ROOT }
							966 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							979 = { is_fully_controlled_by = ROOT }
							980 = { is_fully_controlled_by = ROOT }
							981 = { is_fully_controlled_by = ROOT }
							982 = { is_fully_controlled_by = ROOT }
							983 = { is_fully_controlled_by = ROOT }
							984 = { is_fully_controlled_by = ROOT }
							985 = { is_fully_controlled_by = ROOT }
							986 = { is_fully_controlled_by = ROOT }
							987 = { is_fully_controlled_by = ROOT }
							988 = { is_fully_controlled_by = ROOT }
							995 = { is_fully_controlled_by = ROOT }
							1007 = { is_fully_controlled_by = ROOT }
							1008 = { is_fully_controlled_by = ROOT }
							1009 = { is_fully_controlled_by = ROOT }
							1010 = { is_fully_controlled_by = ROOT }
							1011 = { is_fully_controlled_by = ROOT }
							1016 = { is_fully_controlled_by = ROOT }
							1017 = { is_fully_controlled_by = ROOT }
							1021 = { is_fully_controlled_by = ROOT }
							1022 = { is_fully_controlled_by = ROOT }
							1044 = { is_fully_controlled_by = ROOT }
							1045 = { is_fully_controlled_by = ROOT }
							1046 = { is_fully_controlled_by = ROOT }
							1047 = { is_fully_controlled_by = ROOT }
							1048 = { is_fully_controlled_by = ROOT }
							1049 = { is_fully_controlled_by = ROOT }
							1093 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_UMA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_UMA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 22
				add_state_core = 31
				add_state_core = 41
				add_state_core = 112
				add_state_core = 118
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 183
				add_state_core = 229
				add_state_core = 230
				add_state_core = 266
				add_state_core = 267
				add_state_core = 290
				add_state_core = 291
				add_state_core = 292
				add_state_core = 293
				add_state_core = 294
				add_state_core = 344
				add_state_core = 350
				add_state_core = 352
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 513
				add_state_core = 553
				add_state_core = 554
				add_state_core = 584
				add_state_core = 656
				add_state_core = 658
				add_state_core = 659
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 665
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 678
				add_state_core = 679
				add_state_core = 680
				add_state_core = 732
				add_state_core = 742
				add_state_core = 765
				add_state_core = 783
				add_state_core = 788
				add_state_core = 789
				add_state_core = 791
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 799
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 907
				add_state_core = 911
				add_state_core = 933
				add_state_core = 949
				add_state_core = 966
				add_state_core = 973
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 995
				add_state_core = 1007
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1044
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1093
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_umayyad_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_umayyad_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_umayyad_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_united_atlantic_states_show_decision = {
		icon = formable_united_atlantic_states
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ENG
				original_tag = SCO
				original_tag = WAL
				original_tag = NIR
				original_tag = USA
				original_tag = ALA
				original_tag = CAL
				original_tag = CAS
				original_tag = LDX
				original_tag = NEG
				original_tag = TXS
				original_tag = CAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_united_atlantic_states_requirements_cflag
		}
	}
}

formable_united_atlantic_states_category = {
	formable_united_atlantic_states_form_decision = {
		icon = formable_united_atlantic_states
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_united_atlantic_states_form_decision_tt
						count_triggers = {
							amount = 90	#97 total states required
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							261 = { is_fully_controlled_by = ROOT }
							276 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							357 = { is_fully_controlled_by = ROOT }
							358 = { is_fully_controlled_by = ROOT }
							359 = { is_fully_controlled_by = ROOT }
							360 = { is_fully_controlled_by = ROOT }
							361 = { is_fully_controlled_by = ROOT }
							362 = { is_fully_controlled_by = ROOT }
							363 = { is_fully_controlled_by = ROOT }
							364 = { is_fully_controlled_by = ROOT }
							365 = { is_fully_controlled_by = ROOT }
							366 = { is_fully_controlled_by = ROOT }
							367 = { is_fully_controlled_by = ROOT }
							368 = { is_fully_controlled_by = ROOT }
							369 = { is_fully_controlled_by = ROOT }
							370 = { is_fully_controlled_by = ROOT }
							371 = { is_fully_controlled_by = ROOT }
							372 = { is_fully_controlled_by = ROOT }
							373 = { is_fully_controlled_by = ROOT }
							374 = { is_fully_controlled_by = ROOT }
							375 = { is_fully_controlled_by = ROOT }
							376 = { is_fully_controlled_by = ROOT }
							377 = { is_fully_controlled_by = ROOT }
							378 = { is_fully_controlled_by = ROOT }
							379 = { is_fully_controlled_by = ROOT }
							380 = { is_fully_controlled_by = ROOT }
							381 = { is_fully_controlled_by = ROOT }
							382 = { is_fully_controlled_by = ROOT }
							383 = { is_fully_controlled_by = ROOT }
							384 = { is_fully_controlled_by = ROOT }
							385 = { is_fully_controlled_by = ROOT }
							386 = { is_fully_controlled_by = ROOT }
							387 = { is_fully_controlled_by = ROOT }
							388 = { is_fully_controlled_by = ROOT }
							389 = { is_fully_controlled_by = ROOT }
							390 = { is_fully_controlled_by = ROOT }
							391 = { is_fully_controlled_by = ROOT }
							392 = { is_fully_controlled_by = ROOT }
							393 = { is_fully_controlled_by = ROOT }
							394 = { is_fully_controlled_by = ROOT }
							395 = { is_fully_controlled_by = ROOT }
							396 = { is_fully_controlled_by = ROOT }
							463 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							465 = { is_fully_controlled_by = ROOT }
							466 = { is_fully_controlled_by = ROOT }
							467 = { is_fully_controlled_by = ROOT }
							468 = { is_fully_controlled_by = ROOT }
							469 = { is_fully_controlled_by = ROOT }
							470 = { is_fully_controlled_by = ROOT }
							471 = { is_fully_controlled_by = ROOT }
							472 = { is_fully_controlled_by = ROOT }
							473 = { is_fully_controlled_by = ROOT }
							629 = { is_fully_controlled_by = ROOT }
							682 = { is_fully_controlled_by = ROOT }
							683 = { is_fully_controlled_by = ROOT }
							739 = { is_fully_controlled_by = ROOT }
							740 = { is_fully_controlled_by = ROOT }
							816 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							862 = { is_fully_controlled_by = ROOT }
							863 = { is_fully_controlled_by = ROOT }
							864 = { is_fully_controlled_by = ROOT }
							865 = { is_fully_controlled_by = ROOT }
							866 = { is_fully_controlled_by = ROOT }
							867 = { is_fully_controlled_by = ROOT }
							921 = { is_fully_controlled_by = ROOT }
							970 = { is_fully_controlled_by = ROOT }
							971 = { is_fully_controlled_by = ROOT }
							990 = { is_fully_controlled_by = ROOT }
							991 = { is_fully_controlled_by = ROOT }
							992 = { is_fully_controlled_by = ROOT }
							993 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1042 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_UAS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_UAS
			add_state_core = 100
			add_state_core = 101
			add_state_core = 337
			add_state_core = 696
			add_state_core = 730
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 113
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 261
				add_state_core = 276
				add_state_core = 331
				add_state_core = 332
				add_state_core = 338
				add_state_core = 357
				add_state_core = 358
				add_state_core = 359
				add_state_core = 360
				add_state_core = 361
				add_state_core = 362
				add_state_core = 363
				add_state_core = 364
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 385
				add_state_core = 386
				add_state_core = 387
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 391
				add_state_core = 392
				add_state_core = 393
				add_state_core = 394
				add_state_core = 395
				add_state_core = 396
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 629
				add_state_core = 682
				add_state_core = 683
				add_state_core = 739
				add_state_core = 740
				add_state_core = 816
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 921
				add_state_core = 970
				add_state_core = 971
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				add_state_core = 1041
				add_state_core = 1042
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_united_atlantic_states_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_united_atlantic_states_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_united_atlantic_states_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_united_celtia_show_decision = {
		icon = formable_united_celtia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BAY
				original_tag = BEL
				original_tag = BRI
				original_tag = CZE
				original_tag = GAL
				original_tag = HUN
				original_tag = IRE
				original_tag = LUX
				original_tag = OCC
				original_tag = POR
				original_tag = ROM
				original_tag = SCO
				original_tag = SLO
				original_tag = SLV
				original_tag = SWI
				original_tag = TRA
				original_tag = WLS
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_united_celtia_requirements_cflag
		}
	}
}

formable_united_celtia_category = {
	formable_united_celtia_form_decision = {
		icon = formable_united_celtia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_united_celtia_form_decision_tt
						count_triggers = {
							amount = 85	#122 total states required
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							45 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							53 = { is_fully_controlled_by = ROOT }
							54 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							76 = { is_fully_controlled_by = ROOT }
							81 = { is_fully_controlled_by = ROOT }
							82 = { is_fully_controlled_by = ROOT }
							83 = { is_fully_controlled_by = ROOT }
							84 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							113 = { is_fully_controlled_by = ROOT }
							119 = { is_fully_controlled_by = ROOT }
							120 = { is_fully_controlled_by = ROOT }
							121 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							133 = { is_fully_controlled_by = ROOT }
							134 = { is_fully_controlled_by = ROOT }
							135 = { is_fully_controlled_by = ROOT }
							136 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							764 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1042 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_UCA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_UCA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 3
				add_state_core = 4
				add_state_core = 6
				add_state_core = 8
				add_state_core = 9
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 39
				add_state_core = 41
				add_state_core = 42
				add_state_core = 43
				add_state_core = 45
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 102
				add_state_core = 109
				add_state_core = 112
				add_state_core = 113
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 338
				add_state_core = 664
				add_state_core = 735
				add_state_core = 764
				add_state_core = 785
				add_state_core = 788
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 795
				add_state_core = 806
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 850
				add_state_core = 851
				add_state_core = 912
				add_state_core = 913
				add_state_core = 922
				add_state_core = 923
				add_state_core = 956
				add_state_core = 965
				add_state_core = 996
				add_state_core = 997
				add_state_core = 1041
				add_state_core = 1042
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1078
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_united_celtia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_united_celtia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_united_celtia_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_united_pontus_show_decision = {
		icon = formable_united_pontus
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = ABK
				original_tag = CRI
				original_tag = CYP
				original_tag = GEO
				original_tag = GRE
				original_tag = TUR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_united_pontus_requirements_cflag
		}
	}
}
 
formable_united_pontus_category = {
	formable_united_pontus_form_decision = {
		icon = formable_united_pontus
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_united_pontus_form_decision_tt
						count_triggers = {
							amount = 7	#9 total states required
							137 = { is_fully_controlled_by = ROOT }
							196 = { is_fully_controlled_by = ROOT }
							231 = { is_fully_controlled_by = ROOT }
							233 = { is_fully_controlled_by = ROOT }
							234 = { is_fully_controlled_by = ROOT }
							354 = { is_fully_controlled_by = ROOT }
							355 = { is_fully_controlled_by = ROOT }
							356 = { is_fully_controlled_by = ROOT }
							826 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_UPO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_UPO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 137
				add_state_core = 196
				add_state_core = 231
				add_state_core = 233
				add_state_core = 234
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 826
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_united_pontus_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_united_pontus_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_united_pontus_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_united_states_latin_africa_show_decision = {
		icon = formable_united_states_latin_africa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = RWA
				original_tag = BRD
				original_tag = COG
				original_tag = RCG
				original_tag = GAB
				original_tag = EQG
				original_tag = CMR
				original_tag = CAR
				original_tag = CHA
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_united_states_latin_africa_requirements_cflag
		}
	}
}

formable_united_states_latin_africa_category = {
	formable_united_states_latin_africa_form_decision = {
		icon = formable_united_states_latin_africa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_united_states_latin_africa_form_decision_tt
						count_triggers = {
							amount = 14	#19 total states required
							295 = { is_fully_controlled_by = ROOT }
							297 = { is_fully_controlled_by = ROOT }
							538 = { is_fully_controlled_by = ROOT }
							539 = { is_fully_controlled_by = ROOT }
							540 = { is_fully_controlled_by = ROOT }
							660 = { is_fully_controlled_by = ROOT }
							718 = { is_fully_controlled_by = ROOT }
							768 = { is_fully_controlled_by = ROOT }
							769 = { is_fully_controlled_by = ROOT }
							772 = { is_fully_controlled_by = ROOT }
							773 = { is_fully_controlled_by = ROOT }
							774 = { is_fully_controlled_by = ROOT }
							775 = { is_fully_controlled_by = ROOT }
							796 = { is_fully_controlled_by = ROOT }
							888 = { is_fully_controlled_by = ROOT }
							889 = { is_fully_controlled_by = ROOT }
							890 = { is_fully_controlled_by = ROOT }
							891 = { is_fully_controlled_by = ROOT }
							892 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ULA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ULA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				
				add_state_core = 295
				add_state_core = 297
				add_state_core = 538
				add_state_core = 539
				add_state_core = 540
				add_state_core = 660
				add_state_core = 718
				add_state_core = 768
				add_state_core = 769
				add_state_core = 772
				add_state_core = 773
				add_state_core = 774
				add_state_core = 775
				add_state_core = 796
				add_state_core = 888
				add_state_core = 889
				add_state_core = 890
				add_state_core = 891
				add_state_core = 892
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_united_states_latin_africa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_united_states_latin_africa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_united_states_latin_africa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################
 
formable_category = {
	formable_vandal_kingdom_show_decision = {
		icon = formable_vandal_kingdom
		cost = 0  days_re_enable = 0
		visible = {
			always = no
			OR = {
				original_tag = LHQ
				original_tag = ALG
				original_tag = BAY
				original_tag = GER
				original_tag = LBA
				original_tag = MLT
				original_tag = PRE
				original_tag = SIC
				original_tag = TUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_vandal_kingdom_requirements_cflag
		}
	}
}
 
formable_vandal_kingdom_category = {
	formable_vandal_kingdom_form_decision = {
		icon = formable_vandal_kingdom
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					if = {
						limit = { original_tag = GER }
						is_subject = yes
					}
					custom_trigger_tooltip = {
						tooltip = formable_vandal_kingdom_form_decision_tt
						count_triggers = {
							amount = 10	#13 total states required
							1 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							448 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							661 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_VAK } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_VAK
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 177
				add_state_core = 448
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 513
				add_state_core = 661
				add_state_core = 665
				add_state_core = 933
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_vandal_kingdom_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_vandal_kingdom_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_vandal_kingdom_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_viceroyalty_philippines_show_decision = {
		icon = formable_viceroyalty_philippines
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = PHI
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_viceroyalty_philippines_requirements_cflag
		}
	}
}

formable_viceroyalty_philippines_category = {
	formable_viceroyalty_philippines_form_decision = {
		icon = formable_viceroyalty_philippines
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_viceroyalty_philippines_form_decision_tt
						count_triggers = {
							amount = 12	#14 total states required
							327 = { is_fully_controlled_by = ROOT }
							524 = { is_fully_controlled_by = ROOT }
							623 = { is_fully_controlled_by = ROOT }
							624 = { is_fully_controlled_by = ROOT }
							625 = { is_fully_controlled_by = ROOT }
							626 = { is_fully_controlled_by = ROOT }
							627 = { is_fully_controlled_by = ROOT }
							628 = { is_fully_controlled_by = ROOT }
							633 = { is_fully_controlled_by = ROOT }
							636 = { is_fully_controlled_by = ROOT }
							638 = { is_fully_controlled_by = ROOT }
							646 = { is_fully_controlled_by = ROOT }
							647 = { is_fully_controlled_by = ROOT }
							684 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_VPH } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_VPH
			add_state_core = 668
			add_state_core = 673
			add_state_core = 975
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 327
				add_state_core = 524
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 633
				add_state_core = 636
				add_state_core = 638
				add_state_core = 646
				add_state_core = 647
				add_state_core = 684
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_viceroyalty_philippines_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_viceroyalty_philippines_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_viceroyalty_philippines_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_vinland_show_decision = {
		icon = formable_vinland
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = DEN
				original_tag = ICE
				original_tag = NFL
				original_tag = NOR
				original_tag = SWE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_vinland_requirements_cflag
		}
	}
}

formable_vinland_category = {
	formable_vinland_form_decision = {
		icon = formable_vinland
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_vinland_form_decision_tt
						count_triggers = {
							amount = 6	#6 total states required
							101 = { is_fully_controlled_by = ROOT }
							331 = { is_fully_controlled_by = ROOT }
							332 = { is_fully_controlled_by = ROOT }
							464 = { is_fully_controlled_by = ROOT }
							730 = { is_fully_controlled_by = ROOT }
							860 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_VIN } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_VIN
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 101
				add_state_core = 331
				add_state_core = 332
				add_state_core = 464
				add_state_core = 730
				add_state_core = 860
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_vinland_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_vinland_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_vinland_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_visegrad_show_decision = {
		icon = formable_visegrad
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = POL
				original_tag = CZE
				original_tag = SLO
				original_tag = HUN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_visegrad_requirements_cflag
		}
	}
}

formable_visegrad_category = {
	formable_visegrad_form_decision = {
		icon = formable_visegrad
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_visegrad_form_decision_tt
						count_triggers = {
							amount = 25	#32 total states required
							5 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							43 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							154 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							913 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_VIS } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_VIS
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 9
				add_state_core = 10
				add_state_core = 43
				add_state_core = 63
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 74
				add_state_core = 75
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 90
				add_state_core = 92
				add_state_core = 97
				add_state_core = 98
				add_state_core = 154
				add_state_core = 155
				add_state_core = 664
				add_state_core = 762
				add_state_core = 807
				add_state_core = 913
				add_state_core = 934
				add_state_core = 996
				add_state_core = 1078
				add_state_core = 1086
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_visegrad_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_visegrad_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_visegrad_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_west_africa_show_decision = {
		icon = formable_west_africa
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = SEN
				original_tag = NGA
				original_tag = NGR
				original_tag = DAH
				original_tag = TOG
				original_tag = GHA
				original_tag = IVO
				original_tag = LIB
				original_tag = SIE
				original_tag = GNA
				original_tag = GNB
				original_tag = MLI
				original_tag = VOL
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_west_africa_requirements_cflag
		}
	}
}

formable_west_africa_category = {
	formable_west_africa_form_decision = {
		icon = formable_west_africa
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_west_africa_form_decision_tt
						count_triggers = {
							amount = 17	#23 total states required
							272 = { is_fully_controlled_by = ROOT }
							274 = { is_fully_controlled_by = ROOT }
							296 = { is_fully_controlled_by = ROOT }
							298 = { is_fully_controlled_by = ROOT }
							515 = { is_fully_controlled_by = ROOT }
							556 = { is_fully_controlled_by = ROOT }
							557 = { is_fully_controlled_by = ROOT }
							558 = { is_fully_controlled_by = ROOT }
							700 = { is_fully_controlled_by = ROOT }
							701 = { is_fully_controlled_by = ROOT }
							776 = { is_fully_controlled_by = ROOT }
							777 = { is_fully_controlled_by = ROOT }
							778 = { is_fully_controlled_by = ROOT }
							779 = { is_fully_controlled_by = ROOT }
							780 = { is_fully_controlled_by = ROOT }
							781 = { is_fully_controlled_by = ROOT }
							782 = { is_fully_controlled_by = ROOT }
							786 = { is_fully_controlled_by = ROOT }
							898 = { is_fully_controlled_by = ROOT }
							899 = { is_fully_controlled_by = ROOT }
							900 = { is_fully_controlled_by = ROOT }
							901 = { is_fully_controlled_by = ROOT }
							902 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_WAF } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_WEF
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 272
				add_state_core = 274
				add_state_core = 296
				add_state_core = 298
				add_state_core = 515
				add_state_core = 556
				add_state_core = 557
				add_state_core = 558
				add_state_core = 700
				add_state_core = 701
				add_state_core = 776
				add_state_core = 777
				add_state_core = 778
				add_state_core = 779
				add_state_core = 780
				add_state_core = 781
				add_state_core = 782
				add_state_core = 786
				add_state_core = 898
				add_state_core = 899
				add_state_core = 900
				add_state_core = 901
				add_state_core = 902
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_west_africa_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_west_africa_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_west_africa_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_west_rome_show_decision = {
		icon = formable_west_rome
		cost = 0  days_re_enable = 0
		visible = {
			always = no
			OR = {
				original_tag = LHQ
				original_tag = ITA
				original_tag = SPR
				original_tag = POR
				original_tag = FRA
				original_tag = BRI
				original_tag = GLC
				original_tag = CAT
				original_tag = NAV
				original_tag = ENG
				original_tag = ADR
				original_tag = CRO
				original_tag = SAN
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_west_rome_requirements_cflag
		}
	}
}

formable_west_rome_category = {
	formable_west_rome_form_decision = {
		icon = formable_west_rome
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_west_rome_form_decision_tt
						count_triggers = {
							amount = 90	#134 total states required
							1 = { is_fully_controlled_by = ROOT }
							2 = { is_fully_controlled_by = ROOT }
							3 = { is_fully_controlled_by = ROOT }
							4 = { is_fully_controlled_by = ROOT }
							6 = { is_fully_controlled_by = ROOT }
							8 = { is_fully_controlled_by = ROOT }
							14 = { is_fully_controlled_by = ROOT }
							15 = { is_fully_controlled_by = ROOT }
							16 = { is_fully_controlled_by = ROOT }
							17 = { is_fully_controlled_by = ROOT }
							18 = { is_fully_controlled_by = ROOT }
							19 = { is_fully_controlled_by = ROOT }
							20 = { is_fully_controlled_by = ROOT }
							21 = { is_fully_controlled_by = ROOT }
							22 = { is_fully_controlled_by = ROOT }
							23 = { is_fully_controlled_by = ROOT }
							24 = { is_fully_controlled_by = ROOT }
							25 = { is_fully_controlled_by = ROOT }
							26 = { is_fully_controlled_by = ROOT }
							27 = { is_fully_controlled_by = ROOT }
							28 = { is_fully_controlled_by = ROOT }
							29 = { is_fully_controlled_by = ROOT }
							30 = { is_fully_controlled_by = ROOT }
							31 = { is_fully_controlled_by = ROOT }
							32 = { is_fully_controlled_by = ROOT }
							33 = { is_fully_controlled_by = ROOT }
							34 = { is_fully_controlled_by = ROOT }
							35 = { is_fully_controlled_by = ROOT }
							39 = { is_fully_controlled_by = ROOT }
							41 = { is_fully_controlled_by = ROOT }
							42 = { is_fully_controlled_by = ROOT }
							50 = { is_fully_controlled_by = ROOT }
							51 = { is_fully_controlled_by = ROOT }
							52 = { is_fully_controlled_by = ROOT }
							102 = { is_fully_controlled_by = ROOT }
							103 = { is_fully_controlled_by = ROOT }
							104 = { is_fully_controlled_by = ROOT }
							109 = { is_fully_controlled_by = ROOT }
							112 = { is_fully_controlled_by = ROOT }
							114 = { is_fully_controlled_by = ROOT }
							115 = { is_fully_controlled_by = ROOT }
							116 = { is_fully_controlled_by = ROOT }
							117 = { is_fully_controlled_by = ROOT }
							118 = { is_fully_controlled_by = ROOT }
							122 = { is_fully_controlled_by = ROOT }
							123 = { is_fully_controlled_by = ROOT }
							125 = { is_fully_controlled_by = ROOT }
							126 = { is_fully_controlled_by = ROOT }
							127 = { is_fully_controlled_by = ROOT }
							128 = { is_fully_controlled_by = ROOT }
							129 = { is_fully_controlled_by = ROOT }
							130 = { is_fully_controlled_by = ROOT }
							131 = { is_fully_controlled_by = ROOT }
							132 = { is_fully_controlled_by = ROOT }
							151 = { is_fully_controlled_by = ROOT }
							152 = { is_fully_controlled_by = ROOT }
							153 = { is_fully_controlled_by = ROOT }
							155 = { is_fully_controlled_by = ROOT }
							156 = { is_fully_controlled_by = ROOT }
							157 = { is_fully_controlled_by = ROOT }
							158 = { is_fully_controlled_by = ROOT }
							159 = { is_fully_controlled_by = ROOT }
							160 = { is_fully_controlled_by = ROOT }
							161 = { is_fully_controlled_by = ROOT }
							162 = { is_fully_controlled_by = ROOT }
							163 = { is_fully_controlled_by = ROOT }
							165 = { is_fully_controlled_by = ROOT }
							166 = { is_fully_controlled_by = ROOT }
							167 = { is_fully_controlled_by = ROOT }
							168 = { is_fully_controlled_by = ROOT }
							169 = { is_fully_controlled_by = ROOT }
							170 = { is_fully_controlled_by = ROOT }
							171 = { is_fully_controlled_by = ROOT }
							172 = { is_fully_controlled_by = ROOT }
							173 = { is_fully_controlled_by = ROOT }
							174 = { is_fully_controlled_by = ROOT }
							175 = { is_fully_controlled_by = ROOT }
							176 = { is_fully_controlled_by = ROOT }
							177 = { is_fully_controlled_by = ROOT }
							179 = { is_fully_controlled_by = ROOT }
							180 = { is_fully_controlled_by = ROOT }
							181 = { is_fully_controlled_by = ROOT }
							290 = { is_fully_controlled_by = ROOT }
							338 = { is_fully_controlled_by = ROOT }
							458 = { is_fully_controlled_by = ROOT }
							459 = { is_fully_controlled_by = ROOT }
							460 = { is_fully_controlled_by = ROOT }
							461 = { is_fully_controlled_by = ROOT }
							513 = { is_fully_controlled_by = ROOT }
							665 = { is_fully_controlled_by = ROOT }
							735 = { is_fully_controlled_by = ROOT }
							736 = { is_fully_controlled_by = ROOT }
							785 = { is_fully_controlled_by = ROOT }
							788 = { is_fully_controlled_by = ROOT }
							789 = { is_fully_controlled_by = ROOT }
							790 = { is_fully_controlled_by = ROOT }
							791 = { is_fully_controlled_by = ROOT }
							792 = { is_fully_controlled_by = ROOT }
							793 = { is_fully_controlled_by = ROOT }
							794 = { is_fully_controlled_by = ROOT }
							795 = { is_fully_controlled_by = ROOT }
							804 = { is_fully_controlled_by = ROOT }
							806 = { is_fully_controlled_by = ROOT }
							845 = { is_fully_controlled_by = ROOT }
							846 = { is_fully_controlled_by = ROOT }
							847 = { is_fully_controlled_by = ROOT }
							848 = { is_fully_controlled_by = ROOT }
							849 = { is_fully_controlled_by = ROOT }
							850 = { is_fully_controlled_by = ROOT }
							851 = { is_fully_controlled_by = ROOT }
							852 = { is_fully_controlled_by = ROOT }
							853 = { is_fully_controlled_by = ROOT }
							912 = { is_fully_controlled_by = ROOT }
							922 = { is_fully_controlled_by = ROOT }
							923 = { is_fully_controlled_by = ROOT }
							933 = { is_fully_controlled_by = ROOT }
							956 = { is_fully_controlled_by = ROOT }
							957 = { is_fully_controlled_by = ROOT }
							958 = { is_fully_controlled_by = ROOT }
							959 = { is_fully_controlled_by = ROOT }
							961 = { is_fully_controlled_by = ROOT }
							962 = { is_fully_controlled_by = ROOT }
							965 = { is_fully_controlled_by = ROOT }
							973 = { is_fully_controlled_by = ROOT }
							997 = { is_fully_controlled_by = ROOT }
							1012 = { is_fully_controlled_by = ROOT }
							1015 = { is_fully_controlled_by = ROOT }
							1041 = { is_fully_controlled_by = ROOT }
							1053 = { is_fully_controlled_by = ROOT }
							1054 = { is_fully_controlled_by = ROOT }
							1076 = { is_fully_controlled_by = ROOT }
							1086 = { is_fully_controlled_by = ROOT }
							1094 = { is_fully_controlled_by = ROOT }
							1095 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_WRO } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_WRO
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 6
				add_state_core = 8
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 39
				add_state_core = 41
				add_state_core = 42
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 109
				add_state_core = 112
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 122
				add_state_core = 123
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 155
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 163
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 290
				add_state_core = 338
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 513
				add_state_core = 665
				add_state_core = 735
				add_state_core = 736
				add_state_core = 785
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 804
				add_state_core = 806
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 912
				add_state_core = 922
				add_state_core = 923
				add_state_core = 933
				add_state_core = 956
				add_state_core = 957
				add_state_core = 958
				add_state_core = 959
				add_state_core = 961
				add_state_core = 962
				add_state_core = 965
				add_state_core = 973
				add_state_core = 997
				add_state_core = 1012
				add_state_core = 1015
				add_state_core = 1041
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1076
				add_state_core = 1086
				add_state_core = 1094
				add_state_core = 1095
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_west_rome_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_west_rome_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_west_rome_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_world_show_decision = {
		icon = formable_world
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = BHR
				original_tag = BRN
				original_tag = LCH
				original_tag = MAU
				original_tag = MNC
				original_tag = SGP
				original_tag = SKM
				original_tag = SAN
				original_tag = ADR
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_world_requirements_cflag
		}
	}
}

formable_world_category = {
	formable_world_form_decision = {
		icon = formable_world
		cost = 0  days_re_enable = 0
		available = {
			AND = {
				custom_trigger_tooltip = {
					tooltip = formable_world_form_decision_tt
					count_triggers = {
						amount = 1098 #1098 total states required
						1 = { is_fully_controlled_by = ROOT }
						2 = { is_fully_controlled_by = ROOT }
						3 = { is_fully_controlled_by = ROOT }
						4 = { is_fully_controlled_by = ROOT }
						5 = { is_fully_controlled_by = ROOT }
						6 = { is_fully_controlled_by = ROOT }
						7 = { is_fully_controlled_by = ROOT }
						8 = { is_fully_controlled_by = ROOT }
						9 = { is_fully_controlled_by = ROOT }
						10 = { is_fully_controlled_by = ROOT }
						11 = { is_fully_controlled_by = ROOT }
						12 = { is_fully_controlled_by = ROOT }
						13 = { is_fully_controlled_by = ROOT }
						14 = { is_fully_controlled_by = ROOT }
						15 = { is_fully_controlled_by = ROOT }
						16 = { is_fully_controlled_by = ROOT }
						17 = { is_fully_controlled_by = ROOT }
						18 = { is_fully_controlled_by = ROOT }
						19 = { is_fully_controlled_by = ROOT }
						20 = { is_fully_controlled_by = ROOT }
						21 = { is_fully_controlled_by = ROOT }
						22 = { is_fully_controlled_by = ROOT }
						23 = { is_fully_controlled_by = ROOT }
						24 = { is_fully_controlled_by = ROOT }
						25 = { is_fully_controlled_by = ROOT }
						26 = { is_fully_controlled_by = ROOT }
						27 = { is_fully_controlled_by = ROOT }
						28 = { is_fully_controlled_by = ROOT }
						29 = { is_fully_controlled_by = ROOT }
						30 = { is_fully_controlled_by = ROOT }
						31 = { is_fully_controlled_by = ROOT }
						32 = { is_fully_controlled_by = ROOT }
						33 = { is_fully_controlled_by = ROOT }
						34 = { is_fully_controlled_by = ROOT }
						35 = { is_fully_controlled_by = ROOT }
						36 = { is_fully_controlled_by = ROOT }
						37 = { is_fully_controlled_by = ROOT }
						38 = { is_fully_controlled_by = ROOT }
						39 = { is_fully_controlled_by = ROOT }
						40 = { is_fully_controlled_by = ROOT }
						41 = { is_fully_controlled_by = ROOT }
						42 = { is_fully_controlled_by = ROOT }
						43 = { is_fully_controlled_by = ROOT }
						44 = { is_fully_controlled_by = ROOT }
						45 = { is_fully_controlled_by = ROOT }
						46 = { is_fully_controlled_by = ROOT }
						47 = { is_fully_controlled_by = ROOT }
						48 = { is_fully_controlled_by = ROOT }
						49 = { is_fully_controlled_by = ROOT }
						50 = { is_fully_controlled_by = ROOT }
						51 = { is_fully_controlled_by = ROOT }
						52 = { is_fully_controlled_by = ROOT }
						53 = { is_fully_controlled_by = ROOT }
						54 = { is_fully_controlled_by = ROOT }
						55 = { is_fully_controlled_by = ROOT }
						56 = { is_fully_controlled_by = ROOT }
						57 = { is_fully_controlled_by = ROOT }
						58 = { is_fully_controlled_by = ROOT }
						59 = { is_fully_controlled_by = ROOT }
						60 = { is_fully_controlled_by = ROOT }
						61 = { is_fully_controlled_by = ROOT }
						62 = { is_fully_controlled_by = ROOT }
						63 = { is_fully_controlled_by = ROOT }
						64 = { is_fully_controlled_by = ROOT }
						65 = { is_fully_controlled_by = ROOT }
						66 = { is_fully_controlled_by = ROOT }
						67 = { is_fully_controlled_by = ROOT }
						68 = { is_fully_controlled_by = ROOT }
						69 = { is_fully_controlled_by = ROOT }
						70 = { is_fully_controlled_by = ROOT }
						71 = { is_fully_controlled_by = ROOT }
						72 = { is_fully_controlled_by = ROOT }
						73 = { is_fully_controlled_by = ROOT }
						74 = { is_fully_controlled_by = ROOT }
						75 = { is_fully_controlled_by = ROOT }
						76 = { is_fully_controlled_by = ROOT }
						77 = { is_fully_controlled_by = ROOT }
						78 = { is_fully_controlled_by = ROOT }
						79 = { is_fully_controlled_by = ROOT }
						80 = { is_fully_controlled_by = ROOT }
						81 = { is_fully_controlled_by = ROOT }
						82 = { is_fully_controlled_by = ROOT }
						83 = { is_fully_controlled_by = ROOT }
						84 = { is_fully_controlled_by = ROOT }
						85 = { is_fully_controlled_by = ROOT }
						86 = { is_fully_controlled_by = ROOT }
						87 = { is_fully_controlled_by = ROOT }
						88 = { is_fully_controlled_by = ROOT }
						89 = { is_fully_controlled_by = ROOT }
						90 = { is_fully_controlled_by = ROOT }
						91 = { is_fully_controlled_by = ROOT }
						92 = { is_fully_controlled_by = ROOT }
						93 = { is_fully_controlled_by = ROOT }
						94 = { is_fully_controlled_by = ROOT }
						95 = { is_fully_controlled_by = ROOT }
						96 = { is_fully_controlled_by = ROOT }
						97 = { is_fully_controlled_by = ROOT }
						98 = { is_fully_controlled_by = ROOT }
						99 = { is_fully_controlled_by = ROOT }
						100 = { is_fully_controlled_by = ROOT }
						101 = { is_fully_controlled_by = ROOT }
						102 = { is_fully_controlled_by = ROOT }
						103 = { is_fully_controlled_by = ROOT }
						104 = { is_fully_controlled_by = ROOT }
						105 = { is_fully_controlled_by = ROOT }
						106 = { is_fully_controlled_by = ROOT }
						107 = { is_fully_controlled_by = ROOT }
						108 = { is_fully_controlled_by = ROOT }
						109 = { is_fully_controlled_by = ROOT }
						110 = { is_fully_controlled_by = ROOT }
						111 = { is_fully_controlled_by = ROOT }
						112 = { is_fully_controlled_by = ROOT }
						113 = { is_fully_controlled_by = ROOT }
						114 = { is_fully_controlled_by = ROOT }
						115 = { is_fully_controlled_by = ROOT }
						116 = { is_fully_controlled_by = ROOT }
						117 = { is_fully_controlled_by = ROOT }
						118 = { is_fully_controlled_by = ROOT }
						119 = { is_fully_controlled_by = ROOT }
						120 = { is_fully_controlled_by = ROOT }
						121 = { is_fully_controlled_by = ROOT }
						122 = { is_fully_controlled_by = ROOT }
						123 = { is_fully_controlled_by = ROOT }
						124 = { is_fully_controlled_by = ROOT }
						125 = { is_fully_controlled_by = ROOT }
						126 = { is_fully_controlled_by = ROOT }
						127 = { is_fully_controlled_by = ROOT }
						128 = { is_fully_controlled_by = ROOT }
						129 = { is_fully_controlled_by = ROOT }
						130 = { is_fully_controlled_by = ROOT }
						131 = { is_fully_controlled_by = ROOT }
						132 = { is_fully_controlled_by = ROOT }
						133 = { is_fully_controlled_by = ROOT }
						134 = { is_fully_controlled_by = ROOT }
						135 = { is_fully_controlled_by = ROOT }
						136 = { is_fully_controlled_by = ROOT }
						137 = { is_fully_controlled_by = ROOT }
						138 = { is_fully_controlled_by = ROOT }
						139 = { is_fully_controlled_by = ROOT }
						140 = { is_fully_controlled_by = ROOT }
						141 = { is_fully_controlled_by = ROOT }
						142 = { is_fully_controlled_by = ROOT }
						143 = { is_fully_controlled_by = ROOT }
						144 = { is_fully_controlled_by = ROOT }
						145 = { is_fully_controlled_by = ROOT }
						146 = { is_fully_controlled_by = ROOT }
						147 = { is_fully_controlled_by = ROOT }
						148 = { is_fully_controlled_by = ROOT }
						149 = { is_fully_controlled_by = ROOT }
						150 = { is_fully_controlled_by = ROOT }
						151 = { is_fully_controlled_by = ROOT }
						152 = { is_fully_controlled_by = ROOT }
						153 = { is_fully_controlled_by = ROOT }
						154 = { is_fully_controlled_by = ROOT }
						155 = { is_fully_controlled_by = ROOT }
						156 = { is_fully_controlled_by = ROOT }
						157 = { is_fully_controlled_by = ROOT }
						158 = { is_fully_controlled_by = ROOT }
						159 = { is_fully_controlled_by = ROOT }
						160 = { is_fully_controlled_by = ROOT }
						161 = { is_fully_controlled_by = ROOT }
						162 = { is_fully_controlled_by = ROOT }
						163 = { is_fully_controlled_by = ROOT }
						164 = { is_fully_controlled_by = ROOT }
						165 = { is_fully_controlled_by = ROOT }
						166 = { is_fully_controlled_by = ROOT }
						167 = { is_fully_controlled_by = ROOT }
						168 = { is_fully_controlled_by = ROOT }
						169 = { is_fully_controlled_by = ROOT }
						170 = { is_fully_controlled_by = ROOT }
						171 = { is_fully_controlled_by = ROOT }
						172 = { is_fully_controlled_by = ROOT }
						173 = { is_fully_controlled_by = ROOT }
						174 = { is_fully_controlled_by = ROOT }
						175 = { is_fully_controlled_by = ROOT }
						176 = { is_fully_controlled_by = ROOT }
						177 = { is_fully_controlled_by = ROOT }
						178 = { is_fully_controlled_by = ROOT }
						179 = { is_fully_controlled_by = ROOT }
						180 = { is_fully_controlled_by = ROOT }
						181 = { is_fully_controlled_by = ROOT }
						182 = { is_fully_controlled_by = ROOT }
						183 = { is_fully_controlled_by = ROOT }
						184 = { is_fully_controlled_by = ROOT }
						185 = { is_fully_controlled_by = ROOT }
						186 = { is_fully_controlled_by = ROOT }
						187 = { is_fully_controlled_by = ROOT }
						188 = { is_fully_controlled_by = ROOT }
						189 = { is_fully_controlled_by = ROOT }
						190 = { is_fully_controlled_by = ROOT }
						191 = { is_fully_controlled_by = ROOT }
						192 = { is_fully_controlled_by = ROOT }
						193 = { is_fully_controlled_by = ROOT }
						194 = { is_fully_controlled_by = ROOT }
						195 = { is_fully_controlled_by = ROOT }
						196 = { is_fully_controlled_by = ROOT }
						197 = { is_fully_controlled_by = ROOT }
						198 = { is_fully_controlled_by = ROOT }
						199 = { is_fully_controlled_by = ROOT }
						200 = { is_fully_controlled_by = ROOT }
						201 = { is_fully_controlled_by = ROOT }
						202 = { is_fully_controlled_by = ROOT }
						203 = { is_fully_controlled_by = ROOT }
						204 = { is_fully_controlled_by = ROOT }
						205 = { is_fully_controlled_by = ROOT }
						206 = { is_fully_controlled_by = ROOT }
						207 = { is_fully_controlled_by = ROOT }
						208 = { is_fully_controlled_by = ROOT }
						209 = { is_fully_controlled_by = ROOT }
						210 = { is_fully_controlled_by = ROOT }
						211 = { is_fully_controlled_by = ROOT }
						212 = { is_fully_controlled_by = ROOT }
						213 = { is_fully_controlled_by = ROOT }
						214 = { is_fully_controlled_by = ROOT }
						215 = { is_fully_controlled_by = ROOT }
						216 = { is_fully_controlled_by = ROOT }
						217 = { is_fully_controlled_by = ROOT }
						218 = { is_fully_controlled_by = ROOT }
						219 = { is_fully_controlled_by = ROOT }
						220 = { is_fully_controlled_by = ROOT }
						221 = { is_fully_controlled_by = ROOT }
						222 = { is_fully_controlled_by = ROOT }
						223 = { is_fully_controlled_by = ROOT }
						224 = { is_fully_controlled_by = ROOT }
						225 = { is_fully_controlled_by = ROOT }
						226 = { is_fully_controlled_by = ROOT }
						227 = { is_fully_controlled_by = ROOT }
						228 = { is_fully_controlled_by = ROOT }
						229 = { is_fully_controlled_by = ROOT }
						230 = { is_fully_controlled_by = ROOT }
						231 = { is_fully_controlled_by = ROOT }
						232 = { is_fully_controlled_by = ROOT }
						233 = { is_fully_controlled_by = ROOT }
						234 = { is_fully_controlled_by = ROOT }
						235 = { is_fully_controlled_by = ROOT }
						236 = { is_fully_controlled_by = ROOT }
						237 = { is_fully_controlled_by = ROOT }
						238 = { is_fully_controlled_by = ROOT }
						239 = { is_fully_controlled_by = ROOT }
						240 = { is_fully_controlled_by = ROOT }
						241 = { is_fully_controlled_by = ROOT }
						242 = { is_fully_controlled_by = ROOT }
						243 = { is_fully_controlled_by = ROOT }
						244 = { is_fully_controlled_by = ROOT }
						245 = { is_fully_controlled_by = ROOT }
						246 = { is_fully_controlled_by = ROOT }
						247 = { is_fully_controlled_by = ROOT }
						248 = { is_fully_controlled_by = ROOT }
						249 = { is_fully_controlled_by = ROOT }
						250 = { is_fully_controlled_by = ROOT }
						251 = { is_fully_controlled_by = ROOT }
						252 = { is_fully_controlled_by = ROOT }
						253 = { is_fully_controlled_by = ROOT }
						254 = { is_fully_controlled_by = ROOT }
						255 = { is_fully_controlled_by = ROOT }
						256 = { is_fully_controlled_by = ROOT }
						257 = { is_fully_controlled_by = ROOT }
						258 = { is_fully_controlled_by = ROOT }
						259 = { is_fully_controlled_by = ROOT }
						260 = { is_fully_controlled_by = ROOT }
						261 = { is_fully_controlled_by = ROOT }
						262 = { is_fully_controlled_by = ROOT }
						263 = { is_fully_controlled_by = ROOT }
						264 = { is_fully_controlled_by = ROOT }
						265 = { is_fully_controlled_by = ROOT }
						266 = { is_fully_controlled_by = ROOT }
						267 = { is_fully_controlled_by = ROOT }
						268 = { is_fully_controlled_by = ROOT }
						269 = { is_fully_controlled_by = ROOT }
						270 = { is_fully_controlled_by = ROOT }
						271 = { is_fully_controlled_by = ROOT }
						272 = { is_fully_controlled_by = ROOT }
						273 = { is_fully_controlled_by = ROOT }
						274 = { is_fully_controlled_by = ROOT }
						275 = { is_fully_controlled_by = ROOT }
						276 = { is_fully_controlled_by = ROOT }
						277 = { is_fully_controlled_by = ROOT }
						278 = { is_fully_controlled_by = ROOT }
						279 = { is_fully_controlled_by = ROOT }
						280 = { is_fully_controlled_by = ROOT }
						281 = { is_fully_controlled_by = ROOT }
						282 = { is_fully_controlled_by = ROOT }
						283 = { is_fully_controlled_by = ROOT }
						284 = { is_fully_controlled_by = ROOT }
						285 = { is_fully_controlled_by = ROOT }
						286 = { is_fully_controlled_by = ROOT }
						287 = { is_fully_controlled_by = ROOT }
						288 = { is_fully_controlled_by = ROOT }
						289 = { is_fully_controlled_by = ROOT }
						290 = { is_fully_controlled_by = ROOT }
						291 = { is_fully_controlled_by = ROOT }
						292 = { is_fully_controlled_by = ROOT }
						293 = { is_fully_controlled_by = ROOT }
						294 = { is_fully_controlled_by = ROOT }
						295 = { is_fully_controlled_by = ROOT }
						296 = { is_fully_controlled_by = ROOT }
						297 = { is_fully_controlled_by = ROOT }
						298 = { is_fully_controlled_by = ROOT }
						299 = { is_fully_controlled_by = ROOT }
						300 = { is_fully_controlled_by = ROOT }
						301 = { is_fully_controlled_by = ROOT }
						302 = { is_fully_controlled_by = ROOT }
						303 = { is_fully_controlled_by = ROOT }
						304 = { is_fully_controlled_by = ROOT }
						305 = { is_fully_controlled_by = ROOT }
						306 = { is_fully_controlled_by = ROOT }
						307 = { is_fully_controlled_by = ROOT }
						308 = { is_fully_controlled_by = ROOT }
						309 = { is_fully_controlled_by = ROOT }
						310 = { is_fully_controlled_by = ROOT }
						311 = { is_fully_controlled_by = ROOT }
						312 = { is_fully_controlled_by = ROOT }
						313 = { is_fully_controlled_by = ROOT }
						314 = { is_fully_controlled_by = ROOT }
						315 = { is_fully_controlled_by = ROOT }
						316 = { is_fully_controlled_by = ROOT }
						317 = { is_fully_controlled_by = ROOT }
						318 = { is_fully_controlled_by = ROOT }
						319 = { is_fully_controlled_by = ROOT }
						320 = { is_fully_controlled_by = ROOT }
						321 = { is_fully_controlled_by = ROOT }
						322 = { is_fully_controlled_by = ROOT }
						323 = { is_fully_controlled_by = ROOT }
						324 = { is_fully_controlled_by = ROOT }
						325 = { is_fully_controlled_by = ROOT }
						326 = { is_fully_controlled_by = ROOT }
						327 = { is_fully_controlled_by = ROOT }
						328 = { is_fully_controlled_by = ROOT }
						329 = { is_fully_controlled_by = ROOT }
						330 = { is_fully_controlled_by = ROOT }
						331 = { is_fully_controlled_by = ROOT }
						332 = { is_fully_controlled_by = ROOT }
						333 = { is_fully_controlled_by = ROOT }
						334 = { is_fully_controlled_by = ROOT }
						335 = { is_fully_controlled_by = ROOT }
						336 = { is_fully_controlled_by = ROOT }
						337 = { is_fully_controlled_by = ROOT }
						338 = { is_fully_controlled_by = ROOT }
						339 = { is_fully_controlled_by = ROOT }
						340 = { is_fully_controlled_by = ROOT }
						341 = { is_fully_controlled_by = ROOT }
						342 = { is_fully_controlled_by = ROOT }
						343 = { is_fully_controlled_by = ROOT }
						344 = { is_fully_controlled_by = ROOT }
						345 = { is_fully_controlled_by = ROOT }
						346 = { is_fully_controlled_by = ROOT }
						347 = { is_fully_controlled_by = ROOT }
						348 = { is_fully_controlled_by = ROOT }
						349 = { is_fully_controlled_by = ROOT }
						350 = { is_fully_controlled_by = ROOT }
						351 = { is_fully_controlled_by = ROOT }
						352 = { is_fully_controlled_by = ROOT }
						353 = { is_fully_controlled_by = ROOT }
						354 = { is_fully_controlled_by = ROOT }
						355 = { is_fully_controlled_by = ROOT }
						356 = { is_fully_controlled_by = ROOT }
						357 = { is_fully_controlled_by = ROOT }
						358 = { is_fully_controlled_by = ROOT }
						359 = { is_fully_controlled_by = ROOT }
						360 = { is_fully_controlled_by = ROOT }
						361 = { is_fully_controlled_by = ROOT }
						362 = { is_fully_controlled_by = ROOT }
						363 = { is_fully_controlled_by = ROOT }
						364 = { is_fully_controlled_by = ROOT }
						365 = { is_fully_controlled_by = ROOT }
						366 = { is_fully_controlled_by = ROOT }
						367 = { is_fully_controlled_by = ROOT }
						368 = { is_fully_controlled_by = ROOT }
						369 = { is_fully_controlled_by = ROOT }
						370 = { is_fully_controlled_by = ROOT }
						371 = { is_fully_controlled_by = ROOT }
						372 = { is_fully_controlled_by = ROOT }
						373 = { is_fully_controlled_by = ROOT }
						374 = { is_fully_controlled_by = ROOT }
						375 = { is_fully_controlled_by = ROOT }
						376 = { is_fully_controlled_by = ROOT }
						377 = { is_fully_controlled_by = ROOT }
						378 = { is_fully_controlled_by = ROOT }
						379 = { is_fully_controlled_by = ROOT }
						380 = { is_fully_controlled_by = ROOT }
						381 = { is_fully_controlled_by = ROOT }
						382 = { is_fully_controlled_by = ROOT }
						383 = { is_fully_controlled_by = ROOT }
						384 = { is_fully_controlled_by = ROOT }
						385 = { is_fully_controlled_by = ROOT }
						386 = { is_fully_controlled_by = ROOT }
						387 = { is_fully_controlled_by = ROOT }
						388 = { is_fully_controlled_by = ROOT }
						389 = { is_fully_controlled_by = ROOT }
						390 = { is_fully_controlled_by = ROOT }
						391 = { is_fully_controlled_by = ROOT }
						392 = { is_fully_controlled_by = ROOT }
						393 = { is_fully_controlled_by = ROOT }
						394 = { is_fully_controlled_by = ROOT }
						395 = { is_fully_controlled_by = ROOT }
						396 = { is_fully_controlled_by = ROOT }
						397 = { is_fully_controlled_by = ROOT }
						398 = { is_fully_controlled_by = ROOT }
						399 = { is_fully_controlled_by = ROOT }
						400 = { is_fully_controlled_by = ROOT }
						401 = { is_fully_controlled_by = ROOT }
						402 = { is_fully_controlled_by = ROOT }
						403 = { is_fully_controlled_by = ROOT }
						404 = { is_fully_controlled_by = ROOT }
						405 = { is_fully_controlled_by = ROOT }
						406 = { is_fully_controlled_by = ROOT }
						407 = { is_fully_controlled_by = ROOT }
						408 = { is_fully_controlled_by = ROOT }
						409 = { is_fully_controlled_by = ROOT }
						410 = { is_fully_controlled_by = ROOT }
						411 = { is_fully_controlled_by = ROOT }
						412 = { is_fully_controlled_by = ROOT }
						413 = { is_fully_controlled_by = ROOT }
						414 = { is_fully_controlled_by = ROOT }
						415 = { is_fully_controlled_by = ROOT }
						416 = { is_fully_controlled_by = ROOT }
						417 = { is_fully_controlled_by = ROOT }
						418 = { is_fully_controlled_by = ROOT }
						419 = { is_fully_controlled_by = ROOT }
						420 = { is_fully_controlled_by = ROOT }
						421 = { is_fully_controlled_by = ROOT }
						422 = { is_fully_controlled_by = ROOT }
						423 = { is_fully_controlled_by = ROOT }
						424 = { is_fully_controlled_by = ROOT }
						425 = { is_fully_controlled_by = ROOT }
						426 = { is_fully_controlled_by = ROOT }
						427 = { is_fully_controlled_by = ROOT }
						428 = { is_fully_controlled_by = ROOT }
						429 = { is_fully_controlled_by = ROOT }
						430 = { is_fully_controlled_by = ROOT }
						431 = { is_fully_controlled_by = ROOT }
						432 = { is_fully_controlled_by = ROOT }
						433 = { is_fully_controlled_by = ROOT }
						434 = { is_fully_controlled_by = ROOT }
						435 = { is_fully_controlled_by = ROOT }
						436 = { is_fully_controlled_by = ROOT }
						437 = { is_fully_controlled_by = ROOT }
						438 = { is_fully_controlled_by = ROOT }
						439 = { is_fully_controlled_by = ROOT }
						440 = { is_fully_controlled_by = ROOT }
						441 = { is_fully_controlled_by = ROOT }
						442 = { is_fully_controlled_by = ROOT }
						443 = { is_fully_controlled_by = ROOT }
						444 = { is_fully_controlled_by = ROOT }
						445 = { is_fully_controlled_by = ROOT }
						446 = { is_fully_controlled_by = ROOT }
						447 = { is_fully_controlled_by = ROOT }
						448 = { is_fully_controlled_by = ROOT }
						449 = { is_fully_controlled_by = ROOT }
						450 = { is_fully_controlled_by = ROOT }
						451 = { is_fully_controlled_by = ROOT }
						452 = { is_fully_controlled_by = ROOT }
						453 = { is_fully_controlled_by = ROOT }
						454 = { is_fully_controlled_by = ROOT }
						455 = { is_fully_controlled_by = ROOT }
						456 = { is_fully_controlled_by = ROOT }
						457 = { is_fully_controlled_by = ROOT }
						458 = { is_fully_controlled_by = ROOT }
						459 = { is_fully_controlled_by = ROOT }
						460 = { is_fully_controlled_by = ROOT }
						461 = { is_fully_controlled_by = ROOT }
						462 = { is_fully_controlled_by = ROOT }
						463 = { is_fully_controlled_by = ROOT }
						464 = { is_fully_controlled_by = ROOT }
						465 = { is_fully_controlled_by = ROOT }
						466 = { is_fully_controlled_by = ROOT }
						467 = { is_fully_controlled_by = ROOT }
						468 = { is_fully_controlled_by = ROOT }
						469 = { is_fully_controlled_by = ROOT }
						470 = { is_fully_controlled_by = ROOT }
						471 = { is_fully_controlled_by = ROOT }
						472 = { is_fully_controlled_by = ROOT }
						473 = { is_fully_controlled_by = ROOT }
						474 = { is_fully_controlled_by = ROOT }
						475 = { is_fully_controlled_by = ROOT }
						476 = { is_fully_controlled_by = ROOT }
						477 = { is_fully_controlled_by = ROOT }
						478 = { is_fully_controlled_by = ROOT }
						479 = { is_fully_controlled_by = ROOT }
						480 = { is_fully_controlled_by = ROOT }
						481 = { is_fully_controlled_by = ROOT }
						482 = { is_fully_controlled_by = ROOT }
						483 = { is_fully_controlled_by = ROOT }
						484 = { is_fully_controlled_by = ROOT }
						485 = { is_fully_controlled_by = ROOT }
						486 = { is_fully_controlled_by = ROOT }
						487 = { is_fully_controlled_by = ROOT }
						488 = { is_fully_controlled_by = ROOT }
						489 = { is_fully_controlled_by = ROOT }
						490 = { is_fully_controlled_by = ROOT }
						491 = { is_fully_controlled_by = ROOT }
						492 = { is_fully_controlled_by = ROOT }
						493 = { is_fully_controlled_by = ROOT }
						494 = { is_fully_controlled_by = ROOT }
						495 = { is_fully_controlled_by = ROOT }
						496 = { is_fully_controlled_by = ROOT }
						497 = { is_fully_controlled_by = ROOT }
						498 = { is_fully_controlled_by = ROOT }
						499 = { is_fully_controlled_by = ROOT }
						500 = { is_fully_controlled_by = ROOT }
						501 = { is_fully_controlled_by = ROOT }
						502 = { is_fully_controlled_by = ROOT }
						503 = { is_fully_controlled_by = ROOT }
						504 = { is_fully_controlled_by = ROOT }
						505 = { is_fully_controlled_by = ROOT }
						506 = { is_fully_controlled_by = ROOT }
						507 = { is_fully_controlled_by = ROOT }
						508 = { is_fully_controlled_by = ROOT }
						509 = { is_fully_controlled_by = ROOT }
						510 = { is_fully_controlled_by = ROOT }
						511 = { is_fully_controlled_by = ROOT }
						512 = { is_fully_controlled_by = ROOT }
						513 = { is_fully_controlled_by = ROOT }
						514 = { is_fully_controlled_by = ROOT }
						515 = { is_fully_controlled_by = ROOT }
						516 = { is_fully_controlled_by = ROOT }
						517 = { is_fully_controlled_by = ROOT }
						518 = { is_fully_controlled_by = ROOT }
						519 = { is_fully_controlled_by = ROOT }
						520 = { is_fully_controlled_by = ROOT }
						521 = { is_fully_controlled_by = ROOT }
						522 = { is_fully_controlled_by = ROOT }
						523 = { is_fully_controlled_by = ROOT }
						524 = { is_fully_controlled_by = ROOT }
						525 = { is_fully_controlled_by = ROOT }
						526 = { is_fully_controlled_by = ROOT }
						527 = { is_fully_controlled_by = ROOT }
						528 = { is_fully_controlled_by = ROOT }
						529 = { is_fully_controlled_by = ROOT }
						530 = { is_fully_controlled_by = ROOT }
						531 = { is_fully_controlled_by = ROOT }
						532 = { is_fully_controlled_by = ROOT }
						533 = { is_fully_controlled_by = ROOT }
						534 = { is_fully_controlled_by = ROOT }
						535 = { is_fully_controlled_by = ROOT }
						536 = { is_fully_controlled_by = ROOT }
						537 = { is_fully_controlled_by = ROOT }
						538 = { is_fully_controlled_by = ROOT }
						539 = { is_fully_controlled_by = ROOT }
						540 = { is_fully_controlled_by = ROOT }
						541 = { is_fully_controlled_by = ROOT }
						542 = { is_fully_controlled_by = ROOT }
						543 = { is_fully_controlled_by = ROOT }
						544 = { is_fully_controlled_by = ROOT }
						545 = { is_fully_controlled_by = ROOT }
						546 = { is_fully_controlled_by = ROOT }
						547 = { is_fully_controlled_by = ROOT }
						548 = { is_fully_controlled_by = ROOT }
						549 = { is_fully_controlled_by = ROOT }
						550 = { is_fully_controlled_by = ROOT }
						551 = { is_fully_controlled_by = ROOT }
						552 = { is_fully_controlled_by = ROOT }
						553 = { is_fully_controlled_by = ROOT }
						554 = { is_fully_controlled_by = ROOT }
						555 = { is_fully_controlled_by = ROOT }
						556 = { is_fully_controlled_by = ROOT }
						557 = { is_fully_controlled_by = ROOT }
						558 = { is_fully_controlled_by = ROOT }
						559 = { is_fully_controlled_by = ROOT }
						560 = { is_fully_controlled_by = ROOT }
						561 = { is_fully_controlled_by = ROOT }
						562 = { is_fully_controlled_by = ROOT }
						563 = { is_fully_controlled_by = ROOT }
						564 = { is_fully_controlled_by = ROOT }
						565 = { is_fully_controlled_by = ROOT }
						566 = { is_fully_controlled_by = ROOT }
						567 = { is_fully_controlled_by = ROOT }
						568 = { is_fully_controlled_by = ROOT }
						569 = { is_fully_controlled_by = ROOT }
						570 = { is_fully_controlled_by = ROOT }
						571 = { is_fully_controlled_by = ROOT }
						572 = { is_fully_controlled_by = ROOT }
						573 = { is_fully_controlled_by = ROOT }
						574 = { is_fully_controlled_by = ROOT }
						575 = { is_fully_controlled_by = ROOT }
						576 = { is_fully_controlled_by = ROOT }
						577 = { is_fully_controlled_by = ROOT }
						578 = { is_fully_controlled_by = ROOT }
						579 = { is_fully_controlled_by = ROOT }
						580 = { is_fully_controlled_by = ROOT }
						581 = { is_fully_controlled_by = ROOT }
						582 = { is_fully_controlled_by = ROOT }
						583 = { is_fully_controlled_by = ROOT }
						584 = { is_fully_controlled_by = ROOT }
						585 = { is_fully_controlled_by = ROOT }
						586 = { is_fully_controlled_by = ROOT }
						587 = { is_fully_controlled_by = ROOT }
						588 = { is_fully_controlled_by = ROOT }
						589 = { is_fully_controlled_by = ROOT }
						590 = { is_fully_controlled_by = ROOT }
						591 = { is_fully_controlled_by = ROOT }
						592 = { is_fully_controlled_by = ROOT }
						593 = { is_fully_controlled_by = ROOT }
						594 = { is_fully_controlled_by = ROOT }
						595 = { is_fully_controlled_by = ROOT }
						596 = { is_fully_controlled_by = ROOT }
						597 = { is_fully_controlled_by = ROOT }
						598 = { is_fully_controlled_by = ROOT }
						599 = { is_fully_controlled_by = ROOT }
						600 = { is_fully_controlled_by = ROOT }
						601 = { is_fully_controlled_by = ROOT }
						602 = { is_fully_controlled_by = ROOT }
						603 = { is_fully_controlled_by = ROOT }
						604 = { is_fully_controlled_by = ROOT }
						605 = { is_fully_controlled_by = ROOT }
						606 = { is_fully_controlled_by = ROOT }
						607 = { is_fully_controlled_by = ROOT }
						608 = { is_fully_controlled_by = ROOT }
						609 = { is_fully_controlled_by = ROOT }
						610 = { is_fully_controlled_by = ROOT }
						611 = { is_fully_controlled_by = ROOT }
						612 = { is_fully_controlled_by = ROOT }
						613 = { is_fully_controlled_by = ROOT }
						614 = { is_fully_controlled_by = ROOT }
						615 = { is_fully_controlled_by = ROOT }
						616 = { is_fully_controlled_by = ROOT }
						617 = { is_fully_controlled_by = ROOT }
						618 = { is_fully_controlled_by = ROOT }
						619 = { is_fully_controlled_by = ROOT }
						620 = { is_fully_controlled_by = ROOT }
						621 = { is_fully_controlled_by = ROOT }
						622 = { is_fully_controlled_by = ROOT }
						623 = { is_fully_controlled_by = ROOT }
						624 = { is_fully_controlled_by = ROOT }
						625 = { is_fully_controlled_by = ROOT }
						626 = { is_fully_controlled_by = ROOT }
						627 = { is_fully_controlled_by = ROOT }
						628 = { is_fully_controlled_by = ROOT }
						629 = { is_fully_controlled_by = ROOT }
						630 = { is_fully_controlled_by = ROOT }
						631 = { is_fully_controlled_by = ROOT }
						632 = { is_fully_controlled_by = ROOT }
						633 = { is_fully_controlled_by = ROOT }
						634 = { is_fully_controlled_by = ROOT }
						635 = { is_fully_controlled_by = ROOT }
						636 = { is_fully_controlled_by = ROOT }
						637 = { is_fully_controlled_by = ROOT }
						638 = { is_fully_controlled_by = ROOT }
						639 = { is_fully_controlled_by = ROOT }
						640 = { is_fully_controlled_by = ROOT }
						641 = { is_fully_controlled_by = ROOT }
						642 = { is_fully_controlled_by = ROOT }
						643 = { is_fully_controlled_by = ROOT }
						644 = { is_fully_controlled_by = ROOT }
						645 = { is_fully_controlled_by = ROOT }
						646 = { is_fully_controlled_by = ROOT }
						647 = { is_fully_controlled_by = ROOT }
						648 = { is_fully_controlled_by = ROOT }
						649 = { is_fully_controlled_by = ROOT }
						650 = { is_fully_controlled_by = ROOT }
						651 = { is_fully_controlled_by = ROOT }
						652 = { is_fully_controlled_by = ROOT }
						653 = { is_fully_controlled_by = ROOT }
						654 = { is_fully_controlled_by = ROOT }
						655 = { is_fully_controlled_by = ROOT }
						656 = { is_fully_controlled_by = ROOT }
						657 = { is_fully_controlled_by = ROOT }
						658 = { is_fully_controlled_by = ROOT }
						659 = { is_fully_controlled_by = ROOT }
						660 = { is_fully_controlled_by = ROOT }
						661 = { is_fully_controlled_by = ROOT }
						662 = { is_fully_controlled_by = ROOT }
						663 = { is_fully_controlled_by = ROOT }
						664 = { is_fully_controlled_by = ROOT }
						665 = { is_fully_controlled_by = ROOT }
						666 = { is_fully_controlled_by = ROOT }
						667 = { is_fully_controlled_by = ROOT }
						668 = { is_fully_controlled_by = ROOT }
						669 = { is_fully_controlled_by = ROOT }
						670 = { is_fully_controlled_by = ROOT }
						671 = { is_fully_controlled_by = ROOT }
						672 = { is_fully_controlled_by = ROOT }
						673 = { is_fully_controlled_by = ROOT }
						674 = { is_fully_controlled_by = ROOT }
						675 = { is_fully_controlled_by = ROOT }
						676 = { is_fully_controlled_by = ROOT }
						677 = { is_fully_controlled_by = ROOT }
						678 = { is_fully_controlled_by = ROOT }
						679 = { is_fully_controlled_by = ROOT }
						680 = { is_fully_controlled_by = ROOT }
						681 = { is_fully_controlled_by = ROOT }
						682 = { is_fully_controlled_by = ROOT }
						683 = { is_fully_controlled_by = ROOT }
						684 = { is_fully_controlled_by = ROOT }
						685 = { is_fully_controlled_by = ROOT }
						686 = { is_fully_controlled_by = ROOT }
						687 = { is_fully_controlled_by = ROOT }
						688 = { is_fully_controlled_by = ROOT }
						689 = { is_fully_controlled_by = ROOT }
						690 = { is_fully_controlled_by = ROOT }
						691 = { is_fully_controlled_by = ROOT }
						692 = { is_fully_controlled_by = ROOT }
						693 = { is_fully_controlled_by = ROOT }
						694 = { is_fully_controlled_by = ROOT }
						695 = { is_fully_controlled_by = ROOT }
						696 = { is_fully_controlled_by = ROOT }
						697 = { is_fully_controlled_by = ROOT }
						698 = { is_fully_controlled_by = ROOT }
						699 = { is_fully_controlled_by = ROOT }
						700 = { is_fully_controlled_by = ROOT }
						701 = { is_fully_controlled_by = ROOT }
						702 = { is_fully_controlled_by = ROOT }
						703 = { is_fully_controlled_by = ROOT }
						704 = { is_fully_controlled_by = ROOT }
						705 = { is_fully_controlled_by = ROOT }
						706 = { is_fully_controlled_by = ROOT }
						707 = { is_fully_controlled_by = ROOT }
						708 = { is_fully_controlled_by = ROOT }
						709 = { is_fully_controlled_by = ROOT }
						710 = { is_fully_controlled_by = ROOT }
						711 = { is_fully_controlled_by = ROOT }
						712 = { is_fully_controlled_by = ROOT }
						713 = { is_fully_controlled_by = ROOT }
						714 = { is_fully_controlled_by = ROOT }
						715 = { is_fully_controlled_by = ROOT }
						716 = { is_fully_controlled_by = ROOT }
						717 = { is_fully_controlled_by = ROOT }
						718 = { is_fully_controlled_by = ROOT }
						719 = { is_fully_controlled_by = ROOT }
						720 = { is_fully_controlled_by = ROOT }
						721 = { is_fully_controlled_by = ROOT }
						722 = { is_fully_controlled_by = ROOT }
						723 = { is_fully_controlled_by = ROOT }
						724 = { is_fully_controlled_by = ROOT }
						725 = { is_fully_controlled_by = ROOT }
						726 = { is_fully_controlled_by = ROOT }
						727 = { is_fully_controlled_by = ROOT }
						728 = { is_fully_controlled_by = ROOT }
						729 = { is_fully_controlled_by = ROOT }
						730 = { is_fully_controlled_by = ROOT }
						731 = { is_fully_controlled_by = ROOT }
						732 = { is_fully_controlled_by = ROOT }
						733 = { is_fully_controlled_by = ROOT }
						734 = { is_fully_controlled_by = ROOT }
						735 = { is_fully_controlled_by = ROOT }
						736 = { is_fully_controlled_by = ROOT }
						737 = { is_fully_controlled_by = ROOT }
						738 = { is_fully_controlled_by = ROOT }
						739 = { is_fully_controlled_by = ROOT }
						740 = { is_fully_controlled_by = ROOT }
						741 = { is_fully_controlled_by = ROOT }
						742 = { is_fully_controlled_by = ROOT }
						743 = { is_fully_controlled_by = ROOT }
						744 = { is_fully_controlled_by = ROOT }
						745 = { is_fully_controlled_by = ROOT }
						746 = { is_fully_controlled_by = ROOT }
						747 = { is_fully_controlled_by = ROOT }
						748 = { is_fully_controlled_by = ROOT }
						749 = { is_fully_controlled_by = ROOT }
						750 = { is_fully_controlled_by = ROOT }
						751 = { is_fully_controlled_by = ROOT }
						752 = { is_fully_controlled_by = ROOT }
						753 = { is_fully_controlled_by = ROOT }
						754 = { is_fully_controlled_by = ROOT }
						755 = { is_fully_controlled_by = ROOT }
						756 = { is_fully_controlled_by = ROOT }
						757 = { is_fully_controlled_by = ROOT }
						758 = { is_fully_controlled_by = ROOT }
						759 = { is_fully_controlled_by = ROOT }
						760 = { is_fully_controlled_by = ROOT }
						761 = { is_fully_controlled_by = ROOT }
						762 = { is_fully_controlled_by = ROOT }
						763 = { is_fully_controlled_by = ROOT }
						764 = { is_fully_controlled_by = ROOT }
						765 = { is_fully_controlled_by = ROOT }
						766 = { is_fully_controlled_by = ROOT }
						767 = { is_fully_controlled_by = ROOT }
						768 = { is_fully_controlled_by = ROOT }
						769 = { is_fully_controlled_by = ROOT }
						770 = { is_fully_controlled_by = ROOT }
						771 = { is_fully_controlled_by = ROOT }
						772 = { is_fully_controlled_by = ROOT }
						773 = { is_fully_controlled_by = ROOT }
						774 = { is_fully_controlled_by = ROOT }
						775 = { is_fully_controlled_by = ROOT }
						776 = { is_fully_controlled_by = ROOT }
						777 = { is_fully_controlled_by = ROOT }
						778 = { is_fully_controlled_by = ROOT }
						779 = { is_fully_controlled_by = ROOT }
						780 = { is_fully_controlled_by = ROOT }
						781 = { is_fully_controlled_by = ROOT }
						782 = { is_fully_controlled_by = ROOT }
						783 = { is_fully_controlled_by = ROOT }
						784 = { is_fully_controlled_by = ROOT }
						785 = { is_fully_controlled_by = ROOT }
						786 = { is_fully_controlled_by = ROOT }
						787 = { is_fully_controlled_by = ROOT }
						788 = { is_fully_controlled_by = ROOT }
						789 = { is_fully_controlled_by = ROOT }
						790 = { is_fully_controlled_by = ROOT }
						791 = { is_fully_controlled_by = ROOT }
						792 = { is_fully_controlled_by = ROOT }
						793 = { is_fully_controlled_by = ROOT }
						794 = { is_fully_controlled_by = ROOT }
						795 = { is_fully_controlled_by = ROOT }
						796 = { is_fully_controlled_by = ROOT }
						797 = { is_fully_controlled_by = ROOT }
						798 = { is_fully_controlled_by = ROOT }
						799 = { is_fully_controlled_by = ROOT }
						800 = { is_fully_controlled_by = ROOT }
						801 = { is_fully_controlled_by = ROOT }
						802 = { is_fully_controlled_by = ROOT }
						803 = { is_fully_controlled_by = ROOT }
						804 = { is_fully_controlled_by = ROOT }
						805 = { is_fully_controlled_by = ROOT }
						806 = { is_fully_controlled_by = ROOT }
						807 = { is_fully_controlled_by = ROOT }
						808 = { is_fully_controlled_by = ROOT }
						809 = { is_fully_controlled_by = ROOT }
						810 = { is_fully_controlled_by = ROOT }
						811 = { is_fully_controlled_by = ROOT }
						812 = { is_fully_controlled_by = ROOT }
						813 = { is_fully_controlled_by = ROOT }
						814 = { is_fully_controlled_by = ROOT }
						815 = { is_fully_controlled_by = ROOT }
						816 = { is_fully_controlled_by = ROOT }
						817 = { is_fully_controlled_by = ROOT }
						818 = { is_fully_controlled_by = ROOT }
						819 = { is_fully_controlled_by = ROOT }
						820 = { is_fully_controlled_by = ROOT }
						821 = { is_fully_controlled_by = ROOT }
						822 = { is_fully_controlled_by = ROOT }
						823 = { is_fully_controlled_by = ROOT }
						824 = { is_fully_controlled_by = ROOT }
						825 = { is_fully_controlled_by = ROOT }
						826 = { is_fully_controlled_by = ROOT }
						827 = { is_fully_controlled_by = ROOT }
						828 = { is_fully_controlled_by = ROOT }
						829 = { is_fully_controlled_by = ROOT }
						830 = { is_fully_controlled_by = ROOT }
						831 = { is_fully_controlled_by = ROOT }
						832 = { is_fully_controlled_by = ROOT }
						833 = { is_fully_controlled_by = ROOT }
						834 = { is_fully_controlled_by = ROOT }
						835 = { is_fully_controlled_by = ROOT }
						836 = { is_fully_controlled_by = ROOT }
						837 = { is_fully_controlled_by = ROOT }
						838 = { is_fully_controlled_by = ROOT }
						839 = { is_fully_controlled_by = ROOT }
						840 = { is_fully_controlled_by = ROOT }
						841 = { is_fully_controlled_by = ROOT }
						842 = { is_fully_controlled_by = ROOT }
						843 = { is_fully_controlled_by = ROOT }
						844 = { is_fully_controlled_by = ROOT }
						845 = { is_fully_controlled_by = ROOT }
						846 = { is_fully_controlled_by = ROOT }
						847 = { is_fully_controlled_by = ROOT }
						848 = { is_fully_controlled_by = ROOT }
						849 = { is_fully_controlled_by = ROOT }
						850 = { is_fully_controlled_by = ROOT }
						851 = { is_fully_controlled_by = ROOT }
						852 = { is_fully_controlled_by = ROOT }
						853 = { is_fully_controlled_by = ROOT }
						854 = { is_fully_controlled_by = ROOT }
						855 = { is_fully_controlled_by = ROOT }
						856 = { is_fully_controlled_by = ROOT }
						857 = { is_fully_controlled_by = ROOT }
						858 = { is_fully_controlled_by = ROOT }
						859 = { is_fully_controlled_by = ROOT }
						860 = { is_fully_controlled_by = ROOT }
						861 = { is_fully_controlled_by = ROOT }
						862 = { is_fully_controlled_by = ROOT }
						863 = { is_fully_controlled_by = ROOT }
						864 = { is_fully_controlled_by = ROOT }
						865 = { is_fully_controlled_by = ROOT }
						866 = { is_fully_controlled_by = ROOT }
						867 = { is_fully_controlled_by = ROOT }
						868 = { is_fully_controlled_by = ROOT }
						869 = { is_fully_controlled_by = ROOT }
						870 = { is_fully_controlled_by = ROOT }
						871 = { is_fully_controlled_by = ROOT }
						872 = { is_fully_controlled_by = ROOT }
						873 = { is_fully_controlled_by = ROOT }
						874 = { is_fully_controlled_by = ROOT }
						875 = { is_fully_controlled_by = ROOT }
						876 = { is_fully_controlled_by = ROOT }
						877 = { is_fully_controlled_by = ROOT }
						878 = { is_fully_controlled_by = ROOT }
						879 = { is_fully_controlled_by = ROOT }
						880 = { is_fully_controlled_by = ROOT }
						881 = { is_fully_controlled_by = ROOT }
						882 = { is_fully_controlled_by = ROOT }
						883 = { is_fully_controlled_by = ROOT }
						884 = { is_fully_controlled_by = ROOT }
						885 = { is_fully_controlled_by = ROOT }
						886 = { is_fully_controlled_by = ROOT }
						887 = { is_fully_controlled_by = ROOT }
						888 = { is_fully_controlled_by = ROOT }
						889 = { is_fully_controlled_by = ROOT }
						890 = { is_fully_controlled_by = ROOT }
						891 = { is_fully_controlled_by = ROOT }
						892 = { is_fully_controlled_by = ROOT }
						893 = { is_fully_controlled_by = ROOT }
						894 = { is_fully_controlled_by = ROOT }
						895 = { is_fully_controlled_by = ROOT }
						896 = { is_fully_controlled_by = ROOT }
						897 = { is_fully_controlled_by = ROOT }
						898 = { is_fully_controlled_by = ROOT }
						899 = { is_fully_controlled_by = ROOT }
						900 = { is_fully_controlled_by = ROOT }
						901 = { is_fully_controlled_by = ROOT }
						902 = { is_fully_controlled_by = ROOT }
						903 = { is_fully_controlled_by = ROOT }
						904 = { is_fully_controlled_by = ROOT }
						905 = { is_fully_controlled_by = ROOT }
						906 = { is_fully_controlled_by = ROOT }
						907 = { is_fully_controlled_by = ROOT }
						908 = { is_fully_controlled_by = ROOT }
						909 = { is_fully_controlled_by = ROOT }
						910 = { is_fully_controlled_by = ROOT }
						911 = { is_fully_controlled_by = ROOT }
						912 = { is_fully_controlled_by = ROOT }
						913 = { is_fully_controlled_by = ROOT }
						914 = { is_fully_controlled_by = ROOT }
						915 = { is_fully_controlled_by = ROOT }
						916 = { is_fully_controlled_by = ROOT }
						917 = { is_fully_controlled_by = ROOT }
						918 = { is_fully_controlled_by = ROOT }
						919 = { is_fully_controlled_by = ROOT }
						920 = { is_fully_controlled_by = ROOT }
						921 = { is_fully_controlled_by = ROOT }
						922 = { is_fully_controlled_by = ROOT }
						923 = { is_fully_controlled_by = ROOT }
						924 = { is_fully_controlled_by = ROOT }
						925 = { is_fully_controlled_by = ROOT }
						926 = { is_fully_controlled_by = ROOT }
						927 = { is_fully_controlled_by = ROOT }
						928 = { is_fully_controlled_by = ROOT }
						929 = { is_fully_controlled_by = ROOT }
						930 = { is_fully_controlled_by = ROOT }
						931 = { is_fully_controlled_by = ROOT }
						932 = { is_fully_controlled_by = ROOT }
						933 = { is_fully_controlled_by = ROOT }
						934 = { is_fully_controlled_by = ROOT }
						935 = { is_fully_controlled_by = ROOT }
						936 = { is_fully_controlled_by = ROOT }
						937 = { is_fully_controlled_by = ROOT }
						938 = { is_fully_controlled_by = ROOT }
						939 = { is_fully_controlled_by = ROOT }
						940 = { is_fully_controlled_by = ROOT }
						941 = { is_fully_controlled_by = ROOT }
						942 = { is_fully_controlled_by = ROOT }
						943 = { is_fully_controlled_by = ROOT }
						944 = { is_fully_controlled_by = ROOT }
						945 = { is_fully_controlled_by = ROOT }
						946 = { is_fully_controlled_by = ROOT }
						947 = { is_fully_controlled_by = ROOT }
						948 = { is_fully_controlled_by = ROOT }
						949 = { is_fully_controlled_by = ROOT }
						950 = { is_fully_controlled_by = ROOT }
						951 = { is_fully_controlled_by = ROOT }
						952 = { is_fully_controlled_by = ROOT }
						953 = { is_fully_controlled_by = ROOT }
						954 = { is_fully_controlled_by = ROOT }
						955 = { is_fully_controlled_by = ROOT }
						956 = { is_fully_controlled_by = ROOT }
						957 = { is_fully_controlled_by = ROOT }
						958 = { is_fully_controlled_by = ROOT }
						959 = { is_fully_controlled_by = ROOT }
						960 = { is_fully_controlled_by = ROOT }
						961 = { is_fully_controlled_by = ROOT }
						962 = { is_fully_controlled_by = ROOT }
						963 = { is_fully_controlled_by = ROOT }
						964 = { is_fully_controlled_by = ROOT }
						965 = { is_fully_controlled_by = ROOT }
						966 = { is_fully_controlled_by = ROOT }
						967 = { is_fully_controlled_by = ROOT }
						968 = { is_fully_controlled_by = ROOT }
						969 = { is_fully_controlled_by = ROOT }
						970 = { is_fully_controlled_by = ROOT }
						971 = { is_fully_controlled_by = ROOT }
						972 = { is_fully_controlled_by = ROOT }
						973 = { is_fully_controlled_by = ROOT }
						974 = { is_fully_controlled_by = ROOT }
						975 = { is_fully_controlled_by = ROOT }
						976 = { is_fully_controlled_by = ROOT }
						977 = { is_fully_controlled_by = ROOT }
						978 = { is_fully_controlled_by = ROOT }
						979 = { is_fully_controlled_by = ROOT }
						980 = { is_fully_controlled_by = ROOT }
						981 = { is_fully_controlled_by = ROOT }
						982 = { is_fully_controlled_by = ROOT }
						983 = { is_fully_controlled_by = ROOT }
						984 = { is_fully_controlled_by = ROOT }
						985 = { is_fully_controlled_by = ROOT }
						986 = { is_fully_controlled_by = ROOT }
						987 = { is_fully_controlled_by = ROOT }
						988 = { is_fully_controlled_by = ROOT }
						989 = { is_fully_controlled_by = ROOT }
						990 = { is_fully_controlled_by = ROOT }
						991 = { is_fully_controlled_by = ROOT }
						992 = { is_fully_controlled_by = ROOT }
						993 = { is_fully_controlled_by = ROOT }
						994 = { is_fully_controlled_by = ROOT }
						995 = { is_fully_controlled_by = ROOT }
						996 = { is_fully_controlled_by = ROOT }
						997 = { is_fully_controlled_by = ROOT }
						998 = { is_fully_controlled_by = ROOT }
						999 = { is_fully_controlled_by = ROOT }
						1000 = { is_fully_controlled_by = ROOT }
						1001 = { is_fully_controlled_by = ROOT }
						1002 = { is_fully_controlled_by = ROOT }
						1003 = { is_fully_controlled_by = ROOT }
						1004 = { is_fully_controlled_by = ROOT }
						1005 = { is_fully_controlled_by = ROOT }
						1006 = { is_fully_controlled_by = ROOT }
						1007 = { is_fully_controlled_by = ROOT }
						1008 = { is_fully_controlled_by = ROOT }
						1009 = { is_fully_controlled_by = ROOT }
						1010 = { is_fully_controlled_by = ROOT }
						1011 = { is_fully_controlled_by = ROOT }
						1012 = { is_fully_controlled_by = ROOT }
						1013 = { is_fully_controlled_by = ROOT }
						1014 = { is_fully_controlled_by = ROOT }
						1015 = { is_fully_controlled_by = ROOT }
						1016 = { is_fully_controlled_by = ROOT }
						1017 = { is_fully_controlled_by = ROOT }
						1018 = { is_fully_controlled_by = ROOT }
						1019 = { is_fully_controlled_by = ROOT }
						1020 = { is_fully_controlled_by = ROOT }
						1021 = { is_fully_controlled_by = ROOT }
						1022 = { is_fully_controlled_by = ROOT }
						1023 = { is_fully_controlled_by = ROOT }
						1024 = { is_fully_controlled_by = ROOT }
						1025 = { is_fully_controlled_by = ROOT }
						1026 = { is_fully_controlled_by = ROOT }
						1027 = { is_fully_controlled_by = ROOT }
						1028 = { is_fully_controlled_by = ROOT }
						1029 = { is_fully_controlled_by = ROOT }
						1030 = { is_fully_controlled_by = ROOT }
						1031 = { is_fully_controlled_by = ROOT }
						1032 = { is_fully_controlled_by = ROOT }
						1033 = { is_fully_controlled_by = ROOT }
						1034 = { is_fully_controlled_by = ROOT }
						1035 = { is_fully_controlled_by = ROOT }
						1036 = { is_fully_controlled_by = ROOT }
						1037 = { is_fully_controlled_by = ROOT }
						1038 = { is_fully_controlled_by = ROOT }
						1039 = { is_fully_controlled_by = ROOT }
						1040 = { is_fully_controlled_by = ROOT }
						1041 = { is_fully_controlled_by = ROOT }
						1042 = { is_fully_controlled_by = ROOT }
						1043 = { is_fully_controlled_by = ROOT }
						1044 = { is_fully_controlled_by = ROOT }
						1045 = { is_fully_controlled_by = ROOT }
						1046 = { is_fully_controlled_by = ROOT }
						1047 = { is_fully_controlled_by = ROOT }
						1048 = { is_fully_controlled_by = ROOT }
						1049 = { is_fully_controlled_by = ROOT }
						1050 = { is_fully_controlled_by = ROOT }
						1051 = { is_fully_controlled_by = ROOT }
						1052 = { is_fully_controlled_by = ROOT }
						1053 = { is_fully_controlled_by = ROOT }
						1054 = { is_fully_controlled_by = ROOT }
						1055 = { is_fully_controlled_by = ROOT }
						1056 = { is_fully_controlled_by = ROOT }
						1057 = { is_fully_controlled_by = ROOT }
						1058 = { is_fully_controlled_by = ROOT }
						1059 = { is_fully_controlled_by = ROOT }
						1060 = { is_fully_controlled_by = ROOT }
						1061 = { is_fully_controlled_by = ROOT }
						1062 = { is_fully_controlled_by = ROOT }
						1063 = { is_fully_controlled_by = ROOT }
						1064 = { is_fully_controlled_by = ROOT }
						1065 = { is_fully_controlled_by = ROOT }
						1066 = { is_fully_controlled_by = ROOT }
						1067 = { is_fully_controlled_by = ROOT }
						1068 = { is_fully_controlled_by = ROOT }
						1069 = { is_fully_controlled_by = ROOT }
						1070 = { is_fully_controlled_by = ROOT }
						1071 = { is_fully_controlled_by = ROOT }
						1072 = { is_fully_controlled_by = ROOT }
						1073 = { is_fully_controlled_by = ROOT }
						1074 = { is_fully_controlled_by = ROOT }
						1075 = { is_fully_controlled_by = ROOT }
						1076 = { is_fully_controlled_by = ROOT }
						1077 = { is_fully_controlled_by = ROOT }
						1078 = { is_fully_controlled_by = ROOT }
						1079 = { is_fully_controlled_by = ROOT }
						1080 = { is_fully_controlled_by = ROOT }
						1081 = { is_fully_controlled_by = ROOT }
						1082 = { is_fully_controlled_by = ROOT }
						1083 = { is_fully_controlled_by = ROOT }
						1084 = { is_fully_controlled_by = ROOT }
						1085 = { is_fully_controlled_by = ROOT }
						1086 = { is_fully_controlled_by = ROOT }
						1087 = { is_fully_controlled_by = ROOT }
						1088 = { is_fully_controlled_by = ROOT }
						1089 = { is_fully_controlled_by = ROOT }
						1090 = { is_fully_controlled_by = ROOT }
						1091 = { is_fully_controlled_by = ROOT }
						1092 = { is_fully_controlled_by = ROOT }
						1093 = { is_fully_controlled_by = ROOT }
						1094 = { is_fully_controlled_by = ROOT }
						1095 = { is_fully_controlled_by = ROOT }
						1096 = { is_fully_controlled_by = ROOT }
						1097 = { is_fully_controlled_by = ROOT }
						1098 = { is_fully_controlled_by = ROOT }
						}
				}
				custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_WOR } } }
				OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_WOR
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 1
				add_state_core = 2
				add_state_core = 3
				add_state_core = 4
				add_state_core = 5
				add_state_core = 6
				add_state_core = 7
				add_state_core = 8
				add_state_core = 9
				add_state_core = 10
				add_state_core = 11
				add_state_core = 12
				add_state_core = 13
				add_state_core = 14
				add_state_core = 15
				add_state_core = 16
				add_state_core = 17
				add_state_core = 18
				add_state_core = 19
				add_state_core = 20
				add_state_core = 21
				add_state_core = 22
				add_state_core = 23
				add_state_core = 24
				add_state_core = 25
				add_state_core = 26
				add_state_core = 27
				add_state_core = 28
				add_state_core = 29
				add_state_core = 30
				add_state_core = 31
				add_state_core = 32
				add_state_core = 33
				add_state_core = 34
				add_state_core = 35
				add_state_core = 36
				add_state_core = 37
				add_state_core = 38
				add_state_core = 39
				add_state_core = 40
				add_state_core = 41
				add_state_core = 42
				add_state_core = 43
				add_state_core = 44
				add_state_core = 45
				add_state_core = 46
				add_state_core = 47
				add_state_core = 48
				add_state_core = 49
				add_state_core = 50
				add_state_core = 51
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
				add_state_core = 55
				add_state_core = 56
				add_state_core = 57
				add_state_core = 58
				add_state_core = 59
				add_state_core = 60
				add_state_core = 61
				add_state_core = 62
				add_state_core = 63
				add_state_core = 64
				add_state_core = 65
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 76
				add_state_core = 77
				add_state_core = 78
				add_state_core = 79
				add_state_core = 80
				add_state_core = 81
				add_state_core = 82
				add_state_core = 83
				add_state_core = 84
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 89
				add_state_core = 90
				add_state_core = 91
				add_state_core = 92
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 97
				add_state_core = 98
				add_state_core = 99
				add_state_core = 100
				add_state_core = 101
				add_state_core = 102
				add_state_core = 103
				add_state_core = 104
				add_state_core = 105
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 109
				add_state_core = 110
				add_state_core = 111
				add_state_core = 112
				add_state_core = 113
				add_state_core = 114
				add_state_core = 115
				add_state_core = 116
				add_state_core = 117
				add_state_core = 118
				add_state_core = 119
				add_state_core = 120
				add_state_core = 121
				add_state_core = 122
				add_state_core = 123
				add_state_core = 124
				add_state_core = 125
				add_state_core = 126
				add_state_core = 127
				add_state_core = 128
				add_state_core = 129
				add_state_core = 130
				add_state_core = 131
				add_state_core = 132
				add_state_core = 133
				add_state_core = 134
				add_state_core = 135
				add_state_core = 136
				add_state_core = 137
				add_state_core = 138
				add_state_core = 139
				add_state_core = 140
				add_state_core = 141
				add_state_core = 142
				add_state_core = 143
				add_state_core = 144
				add_state_core = 145
				add_state_core = 146
				add_state_core = 147
				add_state_core = 148
				add_state_core = 149
				add_state_core = 150
				add_state_core = 151
				add_state_core = 152
				add_state_core = 153
				add_state_core = 154
				add_state_core = 155
				add_state_core = 156
				add_state_core = 157
				add_state_core = 158
				add_state_core = 159
				add_state_core = 160
				add_state_core = 161
				add_state_core = 162
				add_state_core = 163
				add_state_core = 164
				add_state_core = 165
				add_state_core = 166
				add_state_core = 167
				add_state_core = 168
				add_state_core = 169
				add_state_core = 170
				add_state_core = 171
				add_state_core = 172
				add_state_core = 173
				add_state_core = 174
				add_state_core = 175
				add_state_core = 176
				add_state_core = 177
				add_state_core = 178
				add_state_core = 179
				add_state_core = 180
				add_state_core = 181
				add_state_core = 182
				add_state_core = 183
				add_state_core = 184
				add_state_core = 185
				add_state_core = 186
				add_state_core = 187
				add_state_core = 188
				add_state_core = 189
				add_state_core = 190
				add_state_core = 191
				add_state_core = 192
				add_state_core = 193
				add_state_core = 194
				add_state_core = 195
				add_state_core = 196
				add_state_core = 197
				add_state_core = 198
				add_state_core = 199
				add_state_core = 200
				add_state_core = 201
				add_state_core = 202
				add_state_core = 203
				add_state_core = 204
				add_state_core = 205
				add_state_core = 206
				add_state_core = 207
				add_state_core = 208
				add_state_core = 209
				add_state_core = 210
				add_state_core = 211
				add_state_core = 212
				add_state_core = 213
				add_state_core = 214
				add_state_core = 215
				add_state_core = 216
				add_state_core = 217
				add_state_core = 218
				add_state_core = 219
				add_state_core = 220
				add_state_core = 221
				add_state_core = 222
				add_state_core = 223
				add_state_core = 224
				add_state_core = 225
				add_state_core = 226
				add_state_core = 227
				add_state_core = 228
				add_state_core = 229
				add_state_core = 230
				add_state_core = 231
				add_state_core = 232
				add_state_core = 233
				add_state_core = 234
				add_state_core = 235
				add_state_core = 236
				add_state_core = 237
				add_state_core = 238
				add_state_core = 239
				add_state_core = 240
				add_state_core = 241
				add_state_core = 242
				add_state_core = 243
				add_state_core = 244
				add_state_core = 245
				add_state_core = 246
				add_state_core = 247
				add_state_core = 248
				add_state_core = 249
				add_state_core = 250
				add_state_core = 251
				add_state_core = 252
				add_state_core = 253
				add_state_core = 254
				add_state_core = 255
				add_state_core = 256
				add_state_core = 257
				add_state_core = 258
				add_state_core = 259
				add_state_core = 260
				add_state_core = 261
				add_state_core = 262
				add_state_core = 263
				add_state_core = 264
				add_state_core = 265
				add_state_core = 266
				add_state_core = 267
				add_state_core = 268
				add_state_core = 269
				add_state_core = 270
				add_state_core = 271
				add_state_core = 272
				add_state_core = 273
				add_state_core = 274
				add_state_core = 275
				add_state_core = 276
				add_state_core = 277
				add_state_core = 278
				add_state_core = 279
				add_state_core = 280
				add_state_core = 281
				add_state_core = 282
				add_state_core = 283
				add_state_core = 284
				add_state_core = 285
				add_state_core = 286
				add_state_core = 287
				add_state_core = 288
				add_state_core = 289
				add_state_core = 290
				add_state_core = 291
				add_state_core = 292
				add_state_core = 293
				add_state_core = 294
				add_state_core = 295
				add_state_core = 296
				add_state_core = 297
				add_state_core = 298
				add_state_core = 299
				add_state_core = 300
				add_state_core = 301
				add_state_core = 302
				add_state_core = 303
				add_state_core = 304
				add_state_core = 305
				add_state_core = 306
				add_state_core = 307
				add_state_core = 308
				add_state_core = 309
				add_state_core = 310
				add_state_core = 311
				add_state_core = 312
				add_state_core = 313
				add_state_core = 314
				add_state_core = 315
				add_state_core = 316
				add_state_core = 317
				add_state_core = 318
				add_state_core = 319
				add_state_core = 320
				add_state_core = 321
				add_state_core = 322
				add_state_core = 323
				add_state_core = 324
				add_state_core = 325
				add_state_core = 326
				add_state_core = 327
				add_state_core = 328
				add_state_core = 329
				add_state_core = 330
				add_state_core = 331
				add_state_core = 332
				add_state_core = 333
				add_state_core = 334
				add_state_core = 335
				add_state_core = 336
				add_state_core = 337
				add_state_core = 338
				add_state_core = 339
				add_state_core = 340
				add_state_core = 341
				add_state_core = 342
				add_state_core = 343
				add_state_core = 344
				add_state_core = 345
				add_state_core = 346
				add_state_core = 347
				add_state_core = 348
				add_state_core = 349
				add_state_core = 350
				add_state_core = 351
				add_state_core = 352
				add_state_core = 353
				add_state_core = 354
				add_state_core = 355
				add_state_core = 356
				add_state_core = 357
				add_state_core = 358
				add_state_core = 359
				add_state_core = 360
				add_state_core = 361
				add_state_core = 362
				add_state_core = 363
				add_state_core = 364
				add_state_core = 365
				add_state_core = 366
				add_state_core = 367
				add_state_core = 368
				add_state_core = 369
				add_state_core = 370
				add_state_core = 371
				add_state_core = 372
				add_state_core = 373
				add_state_core = 374
				add_state_core = 375
				add_state_core = 376
				add_state_core = 377
				add_state_core = 378
				add_state_core = 379
				add_state_core = 380
				add_state_core = 381
				add_state_core = 382
				add_state_core = 383
				add_state_core = 384
				add_state_core = 385
				add_state_core = 386
				add_state_core = 387
				add_state_core = 388
				add_state_core = 389
				add_state_core = 390
				add_state_core = 391
				add_state_core = 392
				add_state_core = 393
				add_state_core = 394
				add_state_core = 395
				add_state_core = 396
				add_state_core = 397
				add_state_core = 398
				add_state_core = 399
				add_state_core = 400
				add_state_core = 401
				add_state_core = 402
				add_state_core = 403
				add_state_core = 404
				add_state_core = 405
				add_state_core = 406
				add_state_core = 407
				add_state_core = 408
				add_state_core = 409
				add_state_core = 410
				add_state_core = 411
				add_state_core = 412
				add_state_core = 413
				add_state_core = 414
				add_state_core = 415
				add_state_core = 416
				add_state_core = 417
				add_state_core = 418
				add_state_core = 419
				add_state_core = 420
				add_state_core = 421
				add_state_core = 422
				add_state_core = 423
				add_state_core = 424
				add_state_core = 425
				add_state_core = 426
				add_state_core = 427
				add_state_core = 428
				add_state_core = 429
				add_state_core = 430
				add_state_core = 431
				add_state_core = 432
				add_state_core = 433
				add_state_core = 434
				add_state_core = 435
				add_state_core = 436
				add_state_core = 437
				add_state_core = 438
				add_state_core = 439
				add_state_core = 440
				add_state_core = 441
				add_state_core = 442
				add_state_core = 443
				add_state_core = 444
				add_state_core = 445
				add_state_core = 446
				add_state_core = 447
				add_state_core = 448
				add_state_core = 449
				add_state_core = 450
				add_state_core = 451
				add_state_core = 452
				add_state_core = 453
				add_state_core = 454
				add_state_core = 455
				add_state_core = 456
				add_state_core = 457
				add_state_core = 458
				add_state_core = 459
				add_state_core = 460
				add_state_core = 461
				add_state_core = 462
				add_state_core = 463
				add_state_core = 464
				add_state_core = 465
				add_state_core = 466
				add_state_core = 467
				add_state_core = 468
				add_state_core = 469
				add_state_core = 470
				add_state_core = 471
				add_state_core = 472
				add_state_core = 473
				add_state_core = 474
				add_state_core = 475
				add_state_core = 476
				add_state_core = 477
				add_state_core = 478
				add_state_core = 479
				add_state_core = 480
				add_state_core = 481
				add_state_core = 482
				add_state_core = 483
				add_state_core = 484
				add_state_core = 485
				add_state_core = 486
				add_state_core = 487
				add_state_core = 488
				add_state_core = 489
				add_state_core = 490
				add_state_core = 491
				add_state_core = 492
				add_state_core = 493
				add_state_core = 494
				add_state_core = 495
				add_state_core = 496
				add_state_core = 497
				add_state_core = 498
				add_state_core = 499
				add_state_core = 500
				add_state_core = 501
				add_state_core = 502
				add_state_core = 503
				add_state_core = 504
				add_state_core = 505
				add_state_core = 506
				add_state_core = 507
				add_state_core = 508
				add_state_core = 509
				add_state_core = 510
				add_state_core = 511
				add_state_core = 512
				add_state_core = 513
				add_state_core = 514
				add_state_core = 515
				add_state_core = 516
				add_state_core = 517
				add_state_core = 518
				add_state_core = 519
				add_state_core = 520
				add_state_core = 521
				add_state_core = 522
				add_state_core = 523
				add_state_core = 524
				add_state_core = 525
				add_state_core = 526
				add_state_core = 527
				add_state_core = 528
				add_state_core = 529
				add_state_core = 530
				add_state_core = 531
				add_state_core = 532
				add_state_core = 533
				add_state_core = 534
				add_state_core = 535
				add_state_core = 536
				add_state_core = 537
				add_state_core = 538
				add_state_core = 539
				add_state_core = 540
				add_state_core = 541
				add_state_core = 542
				add_state_core = 543
				add_state_core = 544
				add_state_core = 545
				add_state_core = 546
				add_state_core = 547
				add_state_core = 548
				add_state_core = 549
				add_state_core = 550
				add_state_core = 551
				add_state_core = 552
				add_state_core = 553
				add_state_core = 554
				add_state_core = 555
				add_state_core = 556
				add_state_core = 557
				add_state_core = 558
				add_state_core = 559
				add_state_core = 560
				add_state_core = 561
				add_state_core = 562
				add_state_core = 563
				add_state_core = 564
				add_state_core = 565
				add_state_core = 566
				add_state_core = 567
				add_state_core = 568
				add_state_core = 569
				add_state_core = 570
				add_state_core = 571
				add_state_core = 572
				add_state_core = 573
				add_state_core = 574
				add_state_core = 575
				add_state_core = 576
				add_state_core = 577
				add_state_core = 578
				add_state_core = 579
				add_state_core = 580
				add_state_core = 581
				add_state_core = 582
				add_state_core = 583
				add_state_core = 584
				add_state_core = 585
				add_state_core = 586
				add_state_core = 587
				add_state_core = 588
				add_state_core = 589
				add_state_core = 590
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 601
				add_state_core = 602
				add_state_core = 603
				add_state_core = 604
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 623
				add_state_core = 624
				add_state_core = 625
				add_state_core = 626
				add_state_core = 627
				add_state_core = 628
				add_state_core = 629
				add_state_core = 630
				add_state_core = 631
				add_state_core = 632
				add_state_core = 633
				add_state_core = 634
				add_state_core = 635
				add_state_core = 636
				add_state_core = 637
				add_state_core = 638
				add_state_core = 639
				add_state_core = 640
				add_state_core = 641
				add_state_core = 642
				add_state_core = 643
				add_state_core = 644
				add_state_core = 645
				add_state_core = 646
				add_state_core = 647
				add_state_core = 648
				add_state_core = 649
				add_state_core = 650
				add_state_core = 651
				add_state_core = 652
				add_state_core = 653
				add_state_core = 654
				add_state_core = 655
				add_state_core = 656
				add_state_core = 657
				add_state_core = 658
				add_state_core = 659
				add_state_core = 660
				add_state_core = 661
				add_state_core = 662
				add_state_core = 663
				add_state_core = 664
				add_state_core = 665
				add_state_core = 666
				add_state_core = 667
				add_state_core = 668
				add_state_core = 669
				add_state_core = 670
				add_state_core = 671
				add_state_core = 672
				add_state_core = 673
				add_state_core = 674
				add_state_core = 675
				add_state_core = 676
				add_state_core = 677
				add_state_core = 678
				add_state_core = 679
				add_state_core = 680
				add_state_core = 681
				add_state_core = 682
				add_state_core = 683
				add_state_core = 684
				add_state_core = 685
				add_state_core = 686
				add_state_core = 687
				add_state_core = 688
				add_state_core = 689
				add_state_core = 690
				add_state_core = 691
				add_state_core = 692
				add_state_core = 693
				add_state_core = 694
				add_state_core = 695
				add_state_core = 696
				add_state_core = 697
				add_state_core = 698
				add_state_core = 699
				add_state_core = 700
				add_state_core = 701
				add_state_core = 702
				add_state_core = 703
				add_state_core = 704
				add_state_core = 705
				add_state_core = 706
				add_state_core = 707
				add_state_core = 708
				add_state_core = 709
				add_state_core = 710
				add_state_core = 711
				add_state_core = 712
				add_state_core = 713
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 718
				add_state_core = 719
				add_state_core = 720
				add_state_core = 721
				add_state_core = 722
				add_state_core = 723
				add_state_core = 724
				add_state_core = 725
				add_state_core = 726
				add_state_core = 727
				add_state_core = 728
				add_state_core = 729
				add_state_core = 730
				add_state_core = 731
				add_state_core = 732
				add_state_core = 733
				add_state_core = 734
				add_state_core = 735
				add_state_core = 736
				add_state_core = 737
				add_state_core = 738
				add_state_core = 739
				add_state_core = 740
				add_state_core = 741
				add_state_core = 742
				add_state_core = 743
				add_state_core = 744
				add_state_core = 745
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 757
				add_state_core = 758
				add_state_core = 759
				add_state_core = 760
				add_state_core = 761
				add_state_core = 762
				add_state_core = 763
				add_state_core = 764
				add_state_core = 765
				add_state_core = 766
				add_state_core = 767
				add_state_core = 768
				add_state_core = 769
				add_state_core = 770
				add_state_core = 771
				add_state_core = 772
				add_state_core = 773
				add_state_core = 774
				add_state_core = 775
				add_state_core = 776
				add_state_core = 777
				add_state_core = 778
				add_state_core = 779
				add_state_core = 780
				add_state_core = 781
				add_state_core = 782
				add_state_core = 783
				add_state_core = 784
				add_state_core = 785
				add_state_core = 786
				add_state_core = 787
				add_state_core = 788
				add_state_core = 789
				add_state_core = 790
				add_state_core = 791
				add_state_core = 792
				add_state_core = 793
				add_state_core = 794
				add_state_core = 795
				add_state_core = 796
				add_state_core = 797
				add_state_core = 798
				add_state_core = 799
				add_state_core = 800
				add_state_core = 801
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 805
				add_state_core = 806
				add_state_core = 807
				add_state_core = 808
				add_state_core = 809
				add_state_core = 810
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 814
				add_state_core = 815
				add_state_core = 816
				add_state_core = 817
				add_state_core = 818
				add_state_core = 819
				add_state_core = 820
				add_state_core = 821
				add_state_core = 822
				add_state_core = 823
				add_state_core = 824
				add_state_core = 825
				add_state_core = 826
				add_state_core = 827
				add_state_core = 828
				add_state_core = 829
				add_state_core = 830
				add_state_core = 831
				add_state_core = 832
				add_state_core = 833
				add_state_core = 834
				add_state_core = 835
				add_state_core = 836
				add_state_core = 837
				add_state_core = 838
				add_state_core = 839
				add_state_core = 840
				add_state_core = 841
				add_state_core = 842
				add_state_core = 843
				add_state_core = 844
				add_state_core = 845
				add_state_core = 846
				add_state_core = 847
				add_state_core = 848
				add_state_core = 849
				add_state_core = 850
				add_state_core = 851
				add_state_core = 852
				add_state_core = 853
				add_state_core = 854
				add_state_core = 855
				add_state_core = 856
				add_state_core = 857
				add_state_core = 858
				add_state_core = 859
				add_state_core = 860
				add_state_core = 861
				add_state_core = 862
				add_state_core = 863
				add_state_core = 864
				add_state_core = 865
				add_state_core = 866
				add_state_core = 867
				add_state_core = 868
				add_state_core = 869
				add_state_core = 870
				add_state_core = 871
				add_state_core = 872
				add_state_core = 873
				add_state_core = 874
				add_state_core = 875
				add_state_core = 876
				add_state_core = 877
				add_state_core = 878
				add_state_core = 879
				add_state_core = 880
				add_state_core = 881
				add_state_core = 882
				add_state_core = 883
				add_state_core = 884
				add_state_core = 885
				add_state_core = 886
				add_state_core = 887
				add_state_core = 888
				add_state_core = 889
				add_state_core = 890
				add_state_core = 891
				add_state_core = 892
				add_state_core = 893
				add_state_core = 894
				add_state_core = 895
				add_state_core = 896
				add_state_core = 897
				add_state_core = 898
				add_state_core = 899
				add_state_core = 900
				add_state_core = 901
				add_state_core = 902
				add_state_core = 903
				add_state_core = 904
				add_state_core = 905
				add_state_core = 906
				add_state_core = 907
				add_state_core = 908
				add_state_core = 909
				add_state_core = 910
				add_state_core = 911
				add_state_core = 912
				add_state_core = 913
				add_state_core = 914
				add_state_core = 915
				add_state_core = 916
				add_state_core = 917
				add_state_core = 918
				add_state_core = 919
				add_state_core = 920
				add_state_core = 921
				add_state_core = 922
				add_state_core = 923
				add_state_core = 924
				add_state_core = 925
				add_state_core = 926
				add_state_core = 927
				add_state_core = 928
				add_state_core = 929
				add_state_core = 930
				add_state_core = 931
				add_state_core = 932
				add_state_core = 933
				add_state_core = 934
				add_state_core = 935
				add_state_core = 936
				add_state_core = 937
				add_state_core = 938
				add_state_core = 939
				add_state_core = 940
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				add_state_core = 948
				add_state_core = 949
				add_state_core = 950
				add_state_core = 951
				add_state_core = 952
				add_state_core = 953
				add_state_core = 954
				add_state_core = 955
				add_state_core = 956
				add_state_core = 957
				add_state_core = 958
				add_state_core = 959
				add_state_core = 960
				add_state_core = 961
				add_state_core = 962
				add_state_core = 963
				add_state_core = 964
				add_state_core = 965
				add_state_core = 966
				add_state_core = 967
				add_state_core = 968
				add_state_core = 969
				add_state_core = 970
				add_state_core = 971
				add_state_core = 972
				add_state_core = 973
				add_state_core = 974
				add_state_core = 975
				add_state_core = 976
				add_state_core = 977
				add_state_core = 978
				add_state_core = 979
				add_state_core = 980
				add_state_core = 981
				add_state_core = 982
				add_state_core = 983
				add_state_core = 984
				add_state_core = 985
				add_state_core = 986
				add_state_core = 987
				add_state_core = 988
				add_state_core = 989
				add_state_core = 990
				add_state_core = 991
				add_state_core = 992
				add_state_core = 993
				add_state_core = 994
				add_state_core = 995
				add_state_core = 996
				add_state_core = 997
				add_state_core = 998
				add_state_core = 999
				add_state_core = 1000
				add_state_core = 1001
				add_state_core = 1002
				add_state_core = 1003
				add_state_core = 1004
				add_state_core = 1005
				add_state_core = 1006
				add_state_core = 1007
				add_state_core = 1008
				add_state_core = 1009
				add_state_core = 1010
				add_state_core = 1011
				add_state_core = 1012
				add_state_core = 1013
				add_state_core = 1014
				add_state_core = 1015
				add_state_core = 1016
				add_state_core = 1017
				add_state_core = 1018
				add_state_core = 1019
				add_state_core = 1020
				add_state_core = 1021
				add_state_core = 1022
				add_state_core = 1023
				add_state_core = 1024
				add_state_core = 1025
				add_state_core = 1026
				add_state_core = 1027
				add_state_core = 1028
				add_state_core = 1029
				add_state_core = 1030
				add_state_core = 1031
				add_state_core = 1032
				add_state_core = 1033
				add_state_core = 1034
				add_state_core = 1035
				add_state_core = 1036
				add_state_core = 1037
				add_state_core = 1038
				add_state_core = 1039
				add_state_core = 1040
				add_state_core = 1041
				add_state_core = 1042
				add_state_core = 1043
				add_state_core = 1044
				add_state_core = 1045
				add_state_core = 1046
				add_state_core = 1047
				add_state_core = 1048
				add_state_core = 1049
				add_state_core = 1050
				add_state_core = 1051
				add_state_core = 1052
				add_state_core = 1053
				add_state_core = 1054
				add_state_core = 1055
				add_state_core = 1056
				add_state_core = 1057
				add_state_core = 1058
				add_state_core = 1059
				add_state_core = 1060
				add_state_core = 1061
				add_state_core = 1062
				add_state_core = 1063
				add_state_core = 1064
				add_state_core = 1065
				add_state_core = 1066
				add_state_core = 1067
				add_state_core = 1068
				add_state_core = 1069
				add_state_core = 1070
				add_state_core = 1071
				add_state_core = 1072
				add_state_core = 1073
				add_state_core = 1074
				add_state_core = 1075
				add_state_core = 1076
				add_state_core = 1077
				add_state_core = 1078
				add_state_core = 1079
				add_state_core = 1080
				add_state_core = 1081
				add_state_core = 1082
				add_state_core = 1083
				add_state_core = 1084
				add_state_core = 1085
				add_state_core = 1086
				add_state_core = 1087
				add_state_core = 1088
				add_state_core = 1089
				add_state_core = 1090
				add_state_core = 1091
				add_state_core = 1092
				add_state_core = 1093
				add_state_core = 1094
				add_state_core = 1095
				add_state_core = 1096
				add_state_core = 1097
				add_state_core = 1098
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_world_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_world_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_world_requirements_cflag
		}
	}
}
####################################################################
####################################################################
####################################################################

formable_category = {
	formable_yuan_show_decision = {
		icon = formable_yuan
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = CHI
				original_tag = MEN
				original_tag = MON
				original_tag = PRC
				original_tag = SIK
				original_tag = TAN
				original_tag = XSM
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_yuan_requirements_cflag
		}
	}
}

formable_yuan_category = {
	formable_yuan_form_decision = {
		icon = formable_yuan
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_yuan_form_decision_tt
						count_triggers = {
							amount = 65	#94 total states required
							283 = { is_fully_controlled_by = ROOT }
							287 = { is_fully_controlled_by = ROOT }
							322 = { is_fully_controlled_by = ROOT }
							325 = { is_fully_controlled_by = ROOT }
							326 = { is_fully_controlled_by = ROOT }
							328 = { is_fully_controlled_by = ROOT }
							329 = { is_fully_controlled_by = ROOT }
							330 = { is_fully_controlled_by = ROOT }
							408 = { is_fully_controlled_by = ROOT }
							409 = { is_fully_controlled_by = ROOT }
							525 = { is_fully_controlled_by = ROOT }
							527 = { is_fully_controlled_by = ROOT }
							560 = { is_fully_controlled_by = ROOT }
							561 = { is_fully_controlled_by = ROOT }
							563 = { is_fully_controlled_by = ROOT }
							564 = { is_fully_controlled_by = ROOT }
							565 = { is_fully_controlled_by = ROOT }
							566 = { is_fully_controlled_by = ROOT }
							591 = { is_fully_controlled_by = ROOT }
							592 = { is_fully_controlled_by = ROOT }
							593 = { is_fully_controlled_by = ROOT }
							594 = { is_fully_controlled_by = ROOT }
							595 = { is_fully_controlled_by = ROOT }
							596 = { is_fully_controlled_by = ROOT }
							597 = { is_fully_controlled_by = ROOT }
							598 = { is_fully_controlled_by = ROOT }
							599 = { is_fully_controlled_by = ROOT }
							600 = { is_fully_controlled_by = ROOT }
							601 = { is_fully_controlled_by = ROOT }
							602 = { is_fully_controlled_by = ROOT }
							603 = { is_fully_controlled_by = ROOT }
							604 = { is_fully_controlled_by = ROOT }
							605 = { is_fully_controlled_by = ROOT }
							606 = { is_fully_controlled_by = ROOT }
							607 = { is_fully_controlled_by = ROOT }
							608 = { is_fully_controlled_by = ROOT }
							609 = { is_fully_controlled_by = ROOT }
							610 = { is_fully_controlled_by = ROOT }
							611 = { is_fully_controlled_by = ROOT }
							612 = { is_fully_controlled_by = ROOT }
							613 = { is_fully_controlled_by = ROOT }
							614 = { is_fully_controlled_by = ROOT }
							615 = { is_fully_controlled_by = ROOT }
							616 = { is_fully_controlled_by = ROOT }
							617 = { is_fully_controlled_by = ROOT }
							618 = { is_fully_controlled_by = ROOT }
							619 = { is_fully_controlled_by = ROOT }
							620 = { is_fully_controlled_by = ROOT }
							621 = { is_fully_controlled_by = ROOT }
							622 = { is_fully_controlled_by = ROOT }
							640 = { is_fully_controlled_by = ROOT }
							657 = { is_fully_controlled_by = ROOT }
							714 = { is_fully_controlled_by = ROOT }
							715 = { is_fully_controlled_by = ROOT }
							716 = { is_fully_controlled_by = ROOT }
							717 = { is_fully_controlled_by = ROOT }
							728 = { is_fully_controlled_by = ROOT }
							729 = { is_fully_controlled_by = ROOT }
							743 = { is_fully_controlled_by = ROOT }
							744 = { is_fully_controlled_by = ROOT }
							745 = { is_fully_controlled_by = ROOT }
							746 = { is_fully_controlled_by = ROOT }
							747 = { is_fully_controlled_by = ROOT }
							748 = { is_fully_controlled_by = ROOT }
							749 = { is_fully_controlled_by = ROOT }
							750 = { is_fully_controlled_by = ROOT }
							751 = { is_fully_controlled_by = ROOT }
							752 = { is_fully_controlled_by = ROOT }
							753 = { is_fully_controlled_by = ROOT }
							754 = { is_fully_controlled_by = ROOT }
							755 = { is_fully_controlled_by = ROOT }
							756 = { is_fully_controlled_by = ROOT }
							757 = { is_fully_controlled_by = ROOT }
							758 = { is_fully_controlled_by = ROOT }
							759 = { is_fully_controlled_by = ROOT }
							760 = { is_fully_controlled_by = ROOT }
							761 = { is_fully_controlled_by = ROOT }
							817 = { is_fully_controlled_by = ROOT }
							818 = { is_fully_controlled_by = ROOT }
							819 = { is_fully_controlled_by = ROOT }
							820 = { is_fully_controlled_by = ROOT }
							917 = { is_fully_controlled_by = ROOT }
							918 = { is_fully_controlled_by = ROOT }
							919 = { is_fully_controlled_by = ROOT }
							920 = { is_fully_controlled_by = ROOT }
							941 = { is_fully_controlled_by = ROOT }
							942 = { is_fully_controlled_by = ROOT }
							943 = { is_fully_controlled_by = ROOT }
							944 = { is_fully_controlled_by = ROOT }
							945 = { is_fully_controlled_by = ROOT }
							946 = { is_fully_controlled_by = ROOT }
							947 = { is_fully_controlled_by = ROOT }
							1018 = { is_fully_controlled_by = ROOT }
							1075 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_YUA } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_YUA
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 283
				add_state_core = 287
				add_state_core = 322
				add_state_core = 325
				add_state_core = 326
				add_state_core = 328
				add_state_core = 329
				add_state_core = 330
				add_state_core = 408
				add_state_core = 409
				add_state_core = 525
				add_state_core = 527
				add_state_core = 560
				add_state_core = 561
				add_state_core = 563
				add_state_core = 564
				add_state_core = 565
				add_state_core = 566
				add_state_core = 591
				add_state_core = 592
				add_state_core = 593
				add_state_core = 594
				add_state_core = 595
				add_state_core = 596
				add_state_core = 597
				add_state_core = 598
				add_state_core = 599
				add_state_core = 600
				add_state_core = 601
				add_state_core = 602
				add_state_core = 603
				add_state_core = 604
				add_state_core = 605
				add_state_core = 606
				add_state_core = 607
				add_state_core = 608
				add_state_core = 609
				add_state_core = 610
				add_state_core = 611
				add_state_core = 612
				add_state_core = 613
				add_state_core = 614
				add_state_core = 615
				add_state_core = 616
				add_state_core = 617
				add_state_core = 618
				add_state_core = 619
				add_state_core = 620
				add_state_core = 621
				add_state_core = 622
				add_state_core = 640
				add_state_core = 657
				add_state_core = 714
				add_state_core = 715
				add_state_core = 716
				add_state_core = 717
				add_state_core = 728
				add_state_core = 729
				add_state_core = 743
				add_state_core = 744
				add_state_core = 745
				add_state_core = 746
				add_state_core = 747
				add_state_core = 748
				add_state_core = 749
				add_state_core = 750
				add_state_core = 751
				add_state_core = 752
				add_state_core = 753
				add_state_core = 754
				add_state_core = 755
				add_state_core = 756
				add_state_core = 757
				add_state_core = 758
				add_state_core = 759
				add_state_core = 760
				add_state_core = 761
				add_state_core = 817
				add_state_core = 818
				add_state_core = 819
				add_state_core = 820
				add_state_core = 917
				add_state_core = 918
				add_state_core = 919
				add_state_core = 920
				add_state_core = 941
				add_state_core = 942
				add_state_core = 943
				add_state_core = 944
				add_state_core = 945
				add_state_core = 946
				add_state_core = 947
				add_state_core = 1018
				add_state_core = 1075
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_yuan_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_yuan_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_yuan_requirements_cflag
		}
	}
}

####################################################################
####################################################################
####################################################################

formable_category = {
	formable_zapadoslavia_show_decision = {
		icon = formable_zapadoslavia
		cost = 0  days_re_enable = 0
		visible = {
			OR = {
				original_tag = LHQ
				original_tag = POL
				original_tag = SLO
				original_tag = CZE
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_country_flag = display_formable_requirements_cflag
			set_country_flag = display_zapadoslavia_requirements_cflag
		}
	}
}

formable_zapadoslavia_category = {
	formable_zapadoslavia_form_decision = {
		icon = formable_zapadoslavia
		cost = 0  days_re_enable = 0
		available = {
			OR = {
				AND = {
					custom_trigger_tooltip = {
						tooltip = formable_zapadoslavia_form_decision_tt
						count_triggers = {
							amount = 25	#29 total states required
							5 = { is_fully_controlled_by = ROOT }
							9 = { is_fully_controlled_by = ROOT }
							10 = { is_fully_controlled_by = ROOT }
							63 = { is_fully_controlled_by = ROOT }
							66 = { is_fully_controlled_by = ROOT }
							67 = { is_fully_controlled_by = ROOT }
							68 = { is_fully_controlled_by = ROOT }
							69 = { is_fully_controlled_by = ROOT }
							70 = { is_fully_controlled_by = ROOT }
							71 = { is_fully_controlled_by = ROOT }
							72 = { is_fully_controlled_by = ROOT }
							73 = { is_fully_controlled_by = ROOT }
							74 = { is_fully_controlled_by = ROOT }
							75 = { is_fully_controlled_by = ROOT }
							85 = { is_fully_controlled_by = ROOT }
							86 = { is_fully_controlled_by = ROOT }
							87 = { is_fully_controlled_by = ROOT }
							88 = { is_fully_controlled_by = ROOT }
							90 = { is_fully_controlled_by = ROOT }
							92 = { is_fully_controlled_by = ROOT }
							97 = { is_fully_controlled_by = ROOT }
							98 = { is_fully_controlled_by = ROOT }
							664 = { is_fully_controlled_by = ROOT }
							762 = { is_fully_controlled_by = ROOT }
							807 = { is_fully_controlled_by = ROOT }
							861 = { is_fully_controlled_by = ROOT }
							934 = { is_fully_controlled_by = ROOT }
							996 = { is_fully_controlled_by = ROOT }
							1078 = { is_fully_controlled_by = ROOT }
						}
					}
					custom_trigger_tooltip = { tooltip = FORMABLE_NOT_FORMED_TT NOT = { any_country = { has_cosmetic_tag = FORM_ZAP } } }
					OR = { custom_trigger_tooltip = {    NOT = { has_global_flag = rt56rp_gr_nideas_gflag } }    }
				}
				has_global_flag = rt56rp_formables_unrestricted_gflag
			}
		}
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			set_cosmetic_tag = FORM_ZAP
			
			hidden_effect = {
				sound_effect = complete_focus
				
				add_state_core = 5
				add_state_core = 9
				add_state_core = 10
				add_state_core = 63
				add_state_core = 66
				add_state_core = 67
				add_state_core = 68
				add_state_core = 69
				add_state_core = 70
				add_state_core = 71
				add_state_core = 72
				add_state_core = 73
				add_state_core = 74
				add_state_core = 75
				add_state_core = 85
				add_state_core = 86
				add_state_core = 87
				add_state_core = 88
				add_state_core = 90
				add_state_core = 92
				add_state_core = 97
				add_state_core = 98
				add_state_core = 664
				add_state_core = 762
				add_state_core = 807
				add_state_core = 861
				add_state_core = 934
				add_state_core = 996
				add_state_core = 1078
				if = {
					limit = { NOT = { has_country_flag = nideas_no_formable_debuffs_cflag } }
					add_ideas = generic_recent_political_unification
					add_ideas = generic_recent_army_unification
					add_ideas = generic_recent_economic_unification
				}
				clr_country_flag = display_formable_requirements_cflag
				clr_country_flag = display_zapadoslavia_requirements_cflag
				set_country_flag = display_formable_unform_cflag
			}
		}
	}
	formable_zapadoslavia_reset_decision = {
		cost = 0  days_re_enable = 0
		allowed = {
            is_ai1 = yes
        }
        complete_effect = {
			clr_country_flag = display_formable_requirements_cflag
			clr_country_flag = display_zapadoslavia_requirements_cflag
		}
	}
}

