﻿add_namespace = Ideologies

### Events for changing the ideology for a country ###

#Western
country_event = {
	id = Ideologies.1
	title = Ideologies.1.t
	desc = Ideologies.1.d
	picture = GFX_politics
	
	trigger = {
		NOT = { has_government = democratic }
		democratic > 0.75	
		has_stability < 0.35
		has_civil_war = no
		has_war = no
	}
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = Ideologies.1.a
		log = "[GetDateText]: [This.GetName]: Ideologies.1.a executed"
		ai_chance = { factor = 95 }
		set_politics = { ruling_party = democratic elections_allowed = yes }
		add_popularity = { ideology = democratic popularity = 0.05 }
	}
	
	option = {
		name = Ideologies.1.b
		log = "[GetDateText]: [This.GetName]: Ideologies.1.b executed"
		ai_chance = { factor = 5 }
		start_civil_war = { ideology = democratic size = 0.5 }
	}		
}

#Emerging
country_event = {
	id = Ideologies.2
	title = Ideologies.2.t
	desc = Ideologies.2.d
	picture = GFX_politics
	
	trigger = {
		NOT = { has_government = communism }
		communism > 0.75
		has_stability < 0.35
		has_civil_war = no
		has_war = no
	}
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = Ideologies.2.a
		log = "[GetDateText]: [This.GetName]: Ideologies.2.a executed"
		ai_chance = { factor = 95 }
		set_politics = { ruling_party = communism elections_allowed = yes }
		add_popularity = { ideology = communism popularity = 0.05 }
	}
	
	option = {
		name = Ideologies.2.b
		log = "[GetDateText]: [This.GetName]: Ideologies.2.b executed"
		ai_chance = { factor = 5 }
		start_civil_war = { ideology = communism size = 0.5 }
	}		
}


#Salafist
# country_event = {
	# id = Ideologies.3
	# title = Ideologies.3.t
	# desc = Ideologies.3.d
	# picture = GFX_politics
	
	# trigger = {
		# NOT = { has_government = fascism }
		# fascism > 0.75
		# has_stability < 0.35
		# has_civil_war = no
		# has_war = no
	# }
	
	# mean_time_to_happen = {
		# days = 2
	# }
	
	# option = {
		# name = Ideologies.3.a
		# ai_chance = { factor = 95 }
		# set_politics = { ruling_party = fascism elections_allowed = yes }
		# add_popularity = { ideology = fascism popularity = 0.2 }
	# }
	
	# option = {
		# name = Ideologies.3.b
		# ai_chance = { factor = 5 }
		# start_civil_war = { ideology = fascism size = 0.5 }
	# }		
# }

#Unaligned
country_event = {
	id = Ideologies.4
	title = Ideologies.4.t
	desc = Ideologies.4.d
	picture = GFX_politics
	
	trigger = {
		NOT = { has_government = neutrality }
		NOT = { Is_Possible_Muslim_Brotherhood = yes }
		neutrality > 0.75
		has_stability < 0.35
		has_civil_war = no
		has_war = no
	}
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = Ideologies.4.a
		log = "[GetDateText]: [This.GetName]: Ideologies.4.a executed"
		ai_chance = { factor = 95 }
		set_politics = { ruling_party = neutrality elections_allowed = yes }
		add_popularity = { ideology = neutrality popularity = 0.05 }
	}
	
	option = {
		name = Ideologies.4.b
		log = "[GetDateText]: [This.GetName]: Ideologies.4.b executed"
		ai_chance = { factor = 5 }
		start_civil_war = { ideology = neutrality size = 0.5 }
	}		
}

#Nationalist 
country_event = {
	id = Ideologies.5
	title = Ideologies.5.t
	desc = Ideologies.5.d
	picture = GFX_politics
	
	trigger = {
		NOT = { has_government = nationalist }
		nationalist > 0.75	
		has_stability < 0.35
		has_civil_war = no
		has_war = no
	}
	
	mean_time_to_happen = {
		days = 2
	}
	
	option = {
		name = Ideologies.5.a
		log = "[GetDateText]: [This.GetName]: Ideologies.5.a executed"
		ai_chance = { factor = 95 }
		set_politics = { ruling_party = nationalist elections_allowed = yes }
		add_popularity = { ideology = nationalist popularity = 0.05 }
	}
	
	option = {
		name = Ideologies.5.b
		log = "[GetDateText]: [This.GetName]: Ideologies.5.b executed"
		ai_chance = { factor = 5 }
		start_civil_war = { ideology = nationalist size = 0.5 }
	}		
}