 add_namespace = election_COL

country_event = {  #2002 elections
	id = election_COL.1
	title = election_COL.1.t
	desc = election_COL.1.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2002.1.1
		date < 2002.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2002 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2002
	}
	
	option = {    #Alvaro Uribe
		name = election_COL.1.a
        ai_chance = { factor = 100 }
		set_politics = {
			ruling_party = reactionary
			last_election = "2002.5.26"
			election_frequency = 48
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = reactionary 
			popularity = 0.15
		}
	}
	option = {    #Horaio Cerpa
		name = election_COL.1.b
        set_politics = {
			ruling_party = social_liberal
			last_election = "2002.5.26"
			election_frequency = 48
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = social_liberal 
			popularity = 0.15
		}
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}

country_event = {  #2006 elections
	id = election_COL.2
	title = election_COL.2.t
	desc = election_COL.2.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2006.1.1
		date < 2006.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2006 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2006
	}
	
	option = {    #Alvaro Uribe
		name = election_COL.1.a
        ai_chance = { factor = 100 }
		set_politics = {
			ruling_party = reactionary
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = reactionary 
			popularity = 0.15
		}
	}
	option = {    #Carlos Gaviria Díaz
		name = election_COL.2.1
        set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = social_democrat 
			popularity = 0.15
		}
	}
	option = {    #Horaio Cerpa
		name = election_COL.1.b
        set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = social_liberal 
			popularity = 0.15
		}
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}
country_event = {  #2010 elections
	id = election_COL.3
	title = election_COL.3.t
	desc = election_COL.3.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2010.1.1
		date < 2010.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2010 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2010
	}
	
	option = {    #Juan Manuel Santos
		name = election_COL.3.a
        ai_chance = { factor = 100 }
		promote_character = COL_juan_manuel_santos
		set_party_name = { ideology = social_liberal long_name = COL_social_liberal_party_U_long name = COL_social_liberal_party_U }
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = social_liberal 
			popularity = 0.15
		}
	}
	option = {    #Antanas Mockus
		name = election_COL.3.b
        set_politics = {
			ruling_party = progressive
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = progressive 
			popularity = 0.15
		}
	}
	option = {    #Germán Vargas Lleras
		name = election_COL.3.c
        set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = market_liberal 
			popularity = 0.15
		} 
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}
country_event = {  #2014 elections
	id = election_COL.4
	title = election_COL.4.t
	desc = election_COL.4.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2014.1.1
		date < 2014.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2014 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2014
		hidden_effect = {
			set_party_name = { ideology = reactionary long_name = COL_reactionary_party_democratic_center_long name = COL_reactionary_party_democratic_center }
		}
	}
	
	option = {    #Juan Manuel Santos
		name = election_COL.3.a
        ai_chance = { factor = 100 }
		promote_character = COL_juan_manuel_santos
		set_party_name = { ideology = social_liberal long_name = COL_social_liberal_party_U_long name = COL_social_liberal_party_U }
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = social_liberal 
			popularity = 0.15
		}
	}
	option = {    #Óscar Iván Zuluaga
		name = election_COL.4.a
		promote_character = COL_oscar_ivan_zuluaga
        set_politics = {
			ruling_party = reactionary
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = reactionary 
			popularity = 0.15
		}
	}
	option = {    #Marta Lucía Ramírez
		name = election_COL.4.b
		promote_character = COL_marta_lucia_ramirez
        set_politics = {
			ruling_party = conservative
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = conservative 
			popularity = 0.15
		}
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}
country_event = {  #2018 elections
	id = election_COL.5
	title = election_COL.5.t
	desc = election_COL.5.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2018.1.1
		date < 2018.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2018 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2018
	}
	
	option = {    #Ivan Duque
		name = election_COL.5.a
        ai_chance = { factor = 100 }
		promote_character = COL_ivan_duque
		set_politics = {
			ruling_party = reactionary
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = reactionary 
			popularity = 0.15
		}
	}
	option = {    #Gustavo Petro
		name = election_COL.5.b
		set_party_name = { ideology = social_democrat long_name = COL_social_democrat_party_CH_long name = COL_social_democrat_party_CH }
		promote_character = gustavo_petro
        set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = social_democrat 
			popularity = 0.15
		}
	}
	option = {    #Sergio Fajardo
		name = election_COL.5.c
		promote_character = COL_sergio_fajardo
		set_party_name = { ideology = progressive long_name = COL_progressive_party_compromiso_ciudadano name = COL_progressive_party_compromiso_ciudadano }
        set_politics = {
			ruling_party = progressive
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = progressive 
			popularity = 0.15
		}
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}
country_event = {  #2022 elections
	id = election_COL.6
	title = election_COL.6.t
	desc = election_COL.6.d
	picture = GFX_report_event_colombia_elections
	
	trigger = {
	    tag = COL
	    date > 2022.1.1
		date < 2022.12.1
		has_democratic_form_of_government = yes
		not = { has_country_flag = col_election_2022 }
	}

	is_triggered_only = yes
	
	immediate = {
		set_country_flag = col_election_2022
	}
	
	option = {    #Gustavo Petro
		name = election_COL.5.b
		promote_character = COL_gustavo_petro
		set_party_name = { ideology = social_democrat long_name = COL_social_democrat_party_CH_long name = COL_social_democrat_party_CH }
        set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = social_democrat
			popularity = 0.15
		}
	}
	option = {    #Rodolfo Hernández
		name = election_COL.6.a
        ai_chance = { factor = 100 }
		promote_character = COL_rodolfo_hernandez
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		add_popularity = { 
			ideology = social_liberal 
			popularity = 0.15
		}
	}
	option = {    #Sergio Fajardo
		name = election_COL.5.c
		promote_character = COL_sergio_fajardo
		set_party_name = { ideology = progressive long_name = COL_progressive_party_compromiso_ciudadano name = COL_progressive_party_compromiso_ciudadano }
        set_politics = {
			ruling_party = progressive
			elections_allowed = yes
		} 
		add_popularity = { 
			ideology = progressive 
			popularity = 0.15
		}
	}
	option = {    #Neither
		name = election_COL.1.c
	}
}