country_decisions = {
	rce_formable_decision_assyria = {
		major = yes
		potential = {
			primary_culture = assyrian_culture
			NOT = { has_global_flag = rce_formable_assyria }
			NOT = { tag = NPA }
		}
		allow = {
			primary_culture = assyrian_culture
			is_at_war = no
			is_free_or_tributary_trigger = yes
			num_of_owned_provinces_with = {
				value = 10
				culture = assyrian_culture
			}
		}
		effect = {
			add_prestige = 10
			set_global_flag = rce_formable_assyria
			set_country_flag = rce_formable_assyria
			override_country_name = RCE_FORMABLE_ASSYRIA
			change_country_color = { color = { 255 215 0 } }
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 }
			}
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			mashriq_region = {
				limit = {
					NOT = { is_core = ROOT }
					NOT = { is_permanent_claim = ROOT }
				}
				add_permanent_claim = ROOT
			}
		}
		ai_will_do = {
			factor = 1
		}
	}

	rce_formable_decision_empire_of_light = {
		major = yes
		potential = {
			religion = manichaeism
			NOT = { has_global_flag = rce_formable_empire_of_light }
			NOT = { tag = NPA }
		}
		allow = {
			rce_has_religion_mechanic_manichaeism_purity_value = { value = 75 }
			is_at_war = no
			is_free_or_tributary_trigger = yes
			development_in_provinces = {
				value = 1000
				province_religion = manichaeism
			}
		}
		effect = {
			add_prestige = 20
			set_global_flag = rce_formable_empire_of_light
			set_country_flag = rce_formable_empire_of_light
			override_country_name = RCE_FORMABLE_EMPIRE_OF_LIGHT
			change_country_color = { color = { 166 108 146 } }
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 }
			}
			if = {
				limit = {
					NOT = { government_rank = 3 }
				}
				set_government_rank = 3
			}
		}
		ai_will_do = {
			factor = 1
		}
	}

	rce_formable_decision_coptic_egypt = {
		major = yes
		potential = {
			primary_culture = coptic_culture
			religion_group = christian
			NOT = { exists = EGY }
			NOT = { has_country_flag = formed_egypt_flag }
			NOT = { has_country_flag = rce_formable_coptic_egypt }
			NOT = { has_reform = celestial_empire }
			was_never_end_game_tag_trigger = yes
			NOT = { tag = HLR }
			NOT = { tag = PAP }
			NOT = { tag = TUR }
			NOT = { tag = ARB }
			NOT = { tag = MAM }
			NOT = { tag = NBI }
			NOT = { tag = NPA }
		}
		provinces_to_highlight = {
			OR = {
				province_id = 358
				province_id = 361
				province_id = 1234
				province_id = 2317
				province_id = 4320
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		allow = {
			adm_tech = 10
			primary_culture = coptic_culture
			religion_group = christian
			is_free_or_tributary_trigger = yes
			is_at_war = no
			owns_core_province = 358
			owns_core_province = 361
			owns_core_province = 1234
			owns_core_province = 2317
			owns_core_province = 4320
		}
		effect = {
			change_tag = EGY
			on_change_tag_effect = yes
			remove_non_electors_emperors_from_empire_effect = yes
			override_country_name = RCE_FORMABLE_COPTIC_EGYPT
			set_country_flag = rce_formable_coptic_egypt
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			add_prestige = 25
			if = {
				limit = { has_dlc = "King of Kings" }
				set_country_flag = egyptian_government_reform_flag
				add_government_reform = egyptian_government_reform
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			361 = {
				move_capital_effect = yes
				change_culture = ROOT
				change_religion = ROOT
			}
			egypt_region = {
				limit = {
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = EGY
			}
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			swap_non_generic_missions = yes
		}
		ai_will_do = {
			factor = 1
		}
	}

	rce_formable_decision_nestorian_kingdom_of_god = {
		major = yes
		potential = {
			tag = NPA
			religion = nestorian
			NOT = { has_country_flag = rce_formable_nestorian_kingdom_of_god }
		}
		provinces_to_highlight = {
			OR = {
				AND = {
					OR = {
						region = balkan_region
						region = anatolia_region
						area = al_jazira_area
						area = aleppo_area
					}
					NOT = { owned_by = ROOT }
					ROOT = {
						NOT = {
							num_of_owned_provinces_with = {
								value = 50
								OR = {
									region = balkan_region
									region = anatolia_region
									area = al_jazira_area
									area = aleppo_area
								}
							}
						}
					}
				}
				AND = {
					OR = {
						province_id = 148
						province_id = 146
						province_id = 1773
						province_id = 163
						province_id = 321
						province_id = 318
						province_id = 151
						province_id = 316
						province_id = 326
						province_id = 328
						province_id = 2301
						province_id = 2298
						AND = {
							OR = {
								province_id = 4174
								province_id = 137
								province_id = 4780
								province_id = 4239
								province_id = 3000
								province_id = 2750
								province_id = 330
								province_id = 2305
								province_id = 2313
							}
							ROOT = {
								NOT = {
									OR = {
										AND = {
											owns_core_province = 4174
											owns_core_province = 137
											owns_core_province = 4780
										}
										AND = {
											owns_core_province = 4239
											owns_core_province = 3000
											owns_core_province = 2750
										}
										AND = {
											owns_core_province = 330
											owns_core_province = 2305
											owns_core_province = 2313
										}
									}
								}
							}
						}
					}
					OR = {
						NOT = { owned_by = ROOT }
						NOT = { is_core = ROOT }
					}
				}
			}
		}
		allow = {
			is_free_or_tributary_trigger = yes
			is_at_war = no
			OR = {
				AND = {
					owns_core_province = 4174
					owns_core_province = 137
					owns_core_province = 4780
				}
				AND = {
					owns_core_province = 4239
					owns_core_province = 3000
					owns_core_province = 2750
				}
				AND = {
					owns_core_province = 330
					owns_core_province = 2305
					owns_core_province = 2313
				}
			}
			owns_core_province = 148
			owns_core_province = 146
			owns_core_province = 1773
			owns_core_province = 163
			owns_core_province = 321
			owns_core_province = 318
			owns_core_province = 151
			owns_core_province = 316
			owns_core_province = 326
			owns_core_province = 328
			owns_core_province = 2301
			owns_core_province = 2298
			num_of_owned_provinces_with = {
				value = 50
				OR = {
					region = balkan_region
					region = anatolia_region
					area = al_jazira_area
					area = aleppo_area
				}
			}
		}
		effect = {
			add_prestige = 20
			set_country_flag = rce_formable_nestorian_kingdom_of_god
			override_country_name = RCE_FORMABLE_NESTORIAN_KINGDOM_OF_GOD
			add_country_modifier = {
				name = rce_formable_nestorian_kingdom_of_god_modifier
				duration = -1
			}
		}
		ai_will_do = {
			factor = 1
		}
	}
}