country_decisions = {

	tibetan_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			was_never_end_game_tag_trigger = yes
			NOT = { has_country_flag = formed_tibet_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				is_free_or_tributary_trigger = yes
				ai = no
			}
			NOT = { exists = TIB }
			OR = {
				primary_culture = tibetan
				primary_culture = tibetan_new
			}
			OR = {
				ai = no
				AND = {
					ai = yes
					num_of_cities = 5
				}
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		provinces_to_highlight = {
			OR = {
				province_id = 677
				province_id = 678
				province_id = 2135
			}
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		allow = {
			OR = {
				religion = vajrayana
				religion = tibetan_buddhism # Religions & Cultures Expanded
			}
			is_at_war = no
			is_free_or_tributary_trigger = yes
			is_nomad = no
			owns_core_province = 2135
			owns_core_province = 678
			owns_core_province = 677
			677 = {
				is_state = yes
			}
		}
		effect = {
			677 = {
				add_base_tax = 1
				move_capital_effect = yes
			}
			change_tag = TIB
			on_change_tag_effect = yes
			swap_non_generic_missions = yes
			remove_non_electors_emperors_from_empire_effect = yes
			if = {
				limit = { NOT = { government_rank = 2 } }
				set_government_rank = 2
			}
			every_province = {
				limit = {
					OR = {
						region = tibet_region
						province_id = 2074
					}
					NOT = { area = tarim_basin_area }
					NOT = { owned_by = ROOT }
				}
				add_permanent_claim = TIB
			}
			add_prestige = 25
			set_country_flag = formed_tibet_flag
			if = {
				limit = { has_custom_ideas = no NOT = { has_idea_group = TIB_ideas } }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
		}
		ai_will_do = {
			factor = 1
		}
		ai_importance = 400
	}

}
