add_namespace = Thailand

#The ASEAN Alliance (Thailand.1)
country_event = {
	id = Thailand.1
	title = Thailand.1.t
	desc = Thailand.1.d
	picture = fdfe.gfx
	fire_only_once = yes # Optional : if set to "yes" the event will never occur more than once
	is_triggered_only = yes

	option = {	#Sure
		name = Thailand.1.o1
		set_country_flag = seeks_british_alliance
		if = {
			limit = {
				is_in_faction = yes
				is_faction_leader = no
			}
			random_country = {
				limit = {
					is_in_faction_with = ROOT
					is_faction_leader = yes
				}
				add_opinion_modifier = {
					target = ROOT
					modifier = recent_actions_negative
				}
			}
		}
		SIA = {
			add_to_faction = ROOT
			country_event = diplomatic_response.1
		}

		ai_chance = {
			factor = 75

			modifier = {
				add = -50
				has_opinion = {
					target = SIA
					value < 10
				}
			}
			modifier = {
				add = 50
				has_opinion = {
					target = ENG
					value > 40
				}
			}
		}
	}

	option = {	#Ah hell nah
		name = Thailand.1.o2
		add_political_power = 10
		SIA = {
			add_opinion_modifier = {
				target = ROOT
				modifier = recent_actions_negative
			}
			country_event = diplomatic_response.2
		}

		ai_chance = {
			factor = 25

			modifier = {
				add = 50
				is_in_faction = yes
			}
			modifier = {
				add = 500
				is_faction_leader = yes
			}
		}
	}
}
#The election (Thailand.2)
country_event = {
	id = Thailand.2
	title = Thailand.2.t
	desc = Thailand.2.d
	picture = fdfe.gfx
	fire_only_once = yes # Optional : if set to "yes" the event will never occur more than once
	is_triggered_only = yes

	option = {	#Democracy
		name = Thailand.2.o1
		set_country_flag = seeks_british_alliance
		SIA = {
			complete_national_focus = SIA_democracy
		}
		ai_chance = { 
			base = 5
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}

	option = {	#Nationalism
		name = Thailand.2.o2
		set_country_flag = seeks_british_alliance
		SIA = {
			complete_national_focus = SIA_New_Government
		}
		ai_chance = { 
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
	option = {	#Royal
		name = Thailand.2.o3
		set_country_flag = seeks_british_alliance
		SIA = {
			complete_national_focus = SIA_Return_of_King
		}
		ai_chance = { 
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}
}
#The election (Thailand.3)
country_event = {
	id = Thailand.3
	title = Thailand.3.t
	desc = Thailand.3.d
	picture = fdfe.gfx
	fire_only_once = yes # Optional : if set to "yes" the event will never occur more than once
	is_triggered_only = yes

	option = {	#Democracy
		name = Thailand.3.o1
		set_country_flag = seeks_british_alliance
		SIA = {
			complete_national_focus = SIA_Red_shirts
		}
		ai_chance = { 
			base = 1
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
	}

	option = {	#Nationalism
		name = Thailand.3.o2
		set_country_flag = seeks_british_alliance
		SIA = {
			complete_national_focus = SIA_Yellow_shirts
		}
		
		ai_chance = { 
			base = 5
			modifier = {
				add = 100
				is_historical_focus_on = yes
			}
		}
	}
}
#The election (Thailand.4)
country_event = {
	id = Thailand.4
	title = Thailand.4.t
	desc = Thailand.4.d
	picture = fdfe.gfx
	fire_only_once = yes # Optional : if set to "yes" the event will never occur more than once
	is_triggered_only = yes

	option = {	#Democracy
		name = Thailand.4.o1
		set_country_flag = seeks_british_alliance
		SIA = {
			724 ={
				add_core_of = SIA
			}
		}
	}

}
