country_decisions = {
	siamese_nation = {
		major = yes
		potential = {
			normal_or_historical_nations = yes
			was_never_end_game_tag_trigger = yes
			NOT = { has_country_flag = formed_siam_flag }
			NOT = { tag = SIA }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			OR = {
				is_free_or_tributary_trigger = yes
				ai = no
			}
			OR = {
				NOT = { exists = SIA }
				ai = no
			}
			culture_group = thai_group
			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
				}
			}
			OR = {
				NOT = {
					tag = AYU
				}
				NOT = { has_dlc = "Leviathan" }
			}
		}
		provinces_to_highlight = {
			region = indo_china_region
			OR = {
				NOT = { owned_by = ROOT }
				NOT = { is_core = ROOT }
			}
		}
		
		allow = {
			NOT = { exists = SIA }
			if = {
				limit = {
					OR = {
						tag = AYU
						tag = RTN
						tag = THB
					}
				}
				adm_tech = 65
			}
			is_at_war = no
			is_free_or_tributary_trigger = yes
			owns_core_province = 600
			owns_core_province = 601
			owns_core_province = 589
			num_of_owned_provinces_with = {	
				value = 20
				is_core = ROOT
				region = indo_china_region
			}
			total_non_estate_disasters_completed = { value = 2 }
		}
		
		effect = {
			change_tag = SIA
			on_change_tag_effect = yes
			swap_non_generic_missions = yes
			indo_china_region = {
				limit = {
					NOT = {
						owned_by = ROOT
					}
				}
				add_permanent_claim = ROOT
			}
			add_prestige = 25
			if = {
				limit = { has_custom_ideas = no }
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			set_country_flag = formed_siam_flag
			
			restore_country_name = yes			#New added in MMETR for Rattanakosin / other name changes added in mod
		}		
		ai_will_do = {
			factor = 1
		}
		ai_importance = 400
	}
}