﻿add_namespace = venezuela

country_event = {
	id = venezuela.1 ###March Revolution Event
	title = venezuela.1.t
	desc = venezuela.1.d
	picture = GFX_report_event_march_revolution_1858
		
	fire_only_once = yes
	is_triggered_only = yes
		
	option = {
		name = venezuela.1.a ###March Revolution SUCCESS
		add_political_power = 5
		add_popularity = {
			ideology = traditional_conservatism
			popularity = 0.15
		}
		country_event = { id = venezuela.12 days = 1 }
		add_stability = -0.035
	}	

	option = {
		name = venezuela.1.b #March Revolution FAILS
		add_political_power = 5
		add_popularity = {
			ideology = centrism
			popularity = 0.15
		}
		country_event = { id = venezuela.13 days = 1 }
		add_stability = -0.035
	}	
}

country_event = {
		id = venezuela.2 ###1858 Constitution
		title = venezuela.2.t
		desc = venezuela.2.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			name = venezuela.2.a
			add_political_power = -5
			add_stability = 0.01
		}	
}

country_event = {
		id = venezuela.3 ###La Galipanada (PROTEST TO JULIAN CASTRO'S GOVERNMENT)
		title = venezuela.3.t
		desc = venezuela.3.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			#AND = {
				tag = VEN
				#date > 1858.10.17
			#}
		}
		
		option = {
			name = venezuela.3.a
			add_stability = -0.025
		}	
}


country_event = {
		id = venezuela.4 ###Fall of Coro START OF FEDERAL WAR
		title = venezuela.4.t
		desc = venezuela.4.d
		
		fire_only_once = yes
		is_triggered_only = yes
		picture = GFX_report_event_fall_of_coro
		
		trigger = {
			#AND = {
				tag = VEN
				#date > 1859.2.20
			#}
		}
		
		option = {
			name = venezuela.4.a
			add_political_power = -50
			add_war_support = 0.15
			add_stability = -0.25
			add_ideas = VEN_defend_unity
			hidden_effect = {
				news_event = venezuela.23
				USV = {
					add_state_core = 489
					add_state_core = 307
					add_state_core = 488
					add_state_core = 927
					transfer_state = 489
					news_event = venezuela.23
				}
				COL = { 
					news_event = venezuela.23
				}
				ECU = { 
					news_event = venezuela.23
				}
				PRU = { 
					news_event = venezuela.23
				}
			}	
		}			
}

country_event = {
		id = venezuela.5
		title = venezuela.5.t
		desc = venezuela.5.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			#AND = {
				tag = USV
				#date > 1860.2.17
			#}
		}
		
		option = {
			name = venezuela.5.a
			swap_ideas = {
				remove_idea = USV_guerrilla_support
				add_idea = USV_guerrilla_support2
			}
			VEN = {
				swap_ideas = {
					remove_idea = VEN_guerrilla_opposition
					add_idea = VEN_guerrilla_opposition2
				}
			}	
		}	
}

country_event = {
		id = venezuela.6
		title = venezuela.6.t
		desc = venezuela.6.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			#AND = {
				tag = USV
				#date > 1863.2.1
			#}
		}
		
		option = {
			name = venezuela.6.a
			add_war_support = 0.15
			load_oob = USV_1861
			swap_ideas = {
				remove_idea = USV_guerrilla_support2
				add_idea = USV_guerrilla_support3
			}
			VEN = {
				swap_ideas = {
					remove_idea = VEN_guerrilla_opposition2
					add_idea = VEN_guerrilla_opposition3
				}
			}	
		}	
}

country_event = {
		id = venezuela.7
		title = venezuela.7.t
		desc = venezuela.7.d
		picture = GFX_report_event_treaty_of_coche
		
		is_triggered_only = yes
		
		option = {
			name = venezuela.7.a
			add_war_support = -0.30
			add_stability = 0.05
			remove_ideas = USV_guerrilla_support3
			VEN = {
				remove_state_core = 489
				remove_state_core = 307
				remove_state_core = 488
				remove_state_core = 927
				remove_ideas = VEN_guerrilla_opposition3
			}
		}	
}

country_event = {
		id = venezuela.8
		title = venezuela.8.t
		desc = venezuela.8.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		
		trigger = {
			#AND = {
				tag = USV
				#date > 1867.9.1
			#}
		}

		option = {
			name = venezuela.8.a
			add_political_power = -10
			add_stability = -0.11
			add_ideas = USV_blue_rebels
		}	
}

country_event = {
		id = venezuela.9
		title = venezuela.9.t
		desc = venezuela.9.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			#AND = {
				tag = USV
				#date > 1868.5.3
			#}
		}
		
		option = {
			name = venezuela.9.a
			add_stability = -0.15
			add_political_power = 30
			remove_ideas = USV_blue_rebels
			USA = {
				give_guarantee = USV
			}	
		}	
}

country_event = {
		id = venezuela.10
		title = venezuela.10.t
		desc = venezuela.10.d
		picture = GFX_report_event_yellow_revolution
		
		fire_only_once = yes
		is_triggered_only = yes
		
		trigger = {
			#AND = {
				tag = USV
				#date > 1870.4.26
			#}
		}
		
		option = {
			name = venezuela.10.a
			add_stability = 0.12
			add_political_power = -10
		}	
}

country_event = {
	id = venezuela.11 ###Constitution of 1857
	title = venezuela.11.t
	desc = venezuela.11.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	trigger = {
		tag = VEN
	}
	
	option = {
		name = venezuela.11.a
	}	
}

country_event = {
	id = venezuela.12 ###March Revolution Succeeds
	title = venezuela.12.t
	desc = venezuela.12.d
	picture = GFX_report_event_march_revolution_1858
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = venezuela.12.a
		add_political_power = 5
		set_politics = {
			ruling_party = traditional_conservatism
		}
		complete_national_focus = VEN_castros_victory
	}	
}

country_event = {
	id = venezuela.13 ###March Revolution Fails
	title = venezuela.13.t
	desc = venezuela.13.d
	picture = GFX_report_event_march_revolution_1858
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.13.a
		add_political_power = 5
		complete_national_focus = VEN_march_revolution_fails
	}	
}

country_event = {
	id = venezuela.14 ###Two options on what to do with the caudillos. THIS IS IN JULIAN CASTRO'S PATH.
	title = venezuela.14.t
	desc = venezuela.14.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.14.a ###EXILE CAUDILLOS
		add_stability = 0.02
		complete_national_focus = VEN_jc_exile_caudillos
	}	

	option = {
		name = venezuela.14.b ###PEACE CAUDILLOS
		add_popularity = {
			ideology = traditional_conservatism
			popularity = 0.05
		}
		complete_national_focus = VEN_jc_peace_caudillos
	}	
}

country_event = {
	id = venezuela.15 ###The Fate of Monagas | Post March Revolution
	title = venezuela.15.t
	desc = venezuela.15.d
	picture = GFX_report_event_march_revolution_1858
	
	fire_only_once = yes
	is_triggered_only = yes

	option = {
		name = venezuela.15.a ###Let him be
		add_political_power = -15
		add_popularity = {
			ideology = traditional_conservatism
			popularity = -0.1
		}
	}
	
	option = {
		name = venezuela.15.b ###Exile him
		add_political_power = 5
		add_popularity = {
			ideology = traditional_conservatism
			popularity = -0.05
		}
		FRA = {
			add_opinion_modifier = { target = VEN modifier = VEN_monagas_event }
		}
	}

	option = {
		name = venezuela.15.c ###Kill him
		add_political_power = 20
		add_stability = -0.2
		FRA = {
			add_opinion_modifier = { target = VEN modifier = VEN_monagas_event }
		}
	}
}

country_event = {
	id = venezuela.16 ###Who will be new president post Paez Revolution
	title = venezuela.16.t
	desc = venezuela.16.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.16.a ###Carlos Soublette
		add_political_power = -10
		add_timed_idea = {
			idea = VEN_new_president_con
			days = 180
		}
		add_ideas = VEN_guerrilla_opposition
		complete_national_focus = VEN_con_puppet_regime
	}	

	option = {
		name = venezuela.16.b ###Jose Antonio Paez
		add_political_power = 20
		complete_national_focus = VEN_con_paez_take_responsbility
		add_ideas = VEN_guerrilla_opposition
	}	
}

country_event = {
	id = venezuela.17 ###Partido Igualitario Introduction
	title = venezuela.17.t
	desc = venezuela.17.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.17.a
		add_political_power = -10
		add_popularity = {
			ideology = social_egalitarianism
			popularity = 0.15
		}
	}	

	option = {
		name = venezuela.17.b
		add_political_power = -15
		add_stability = 0.1
		news_event = {
			id = venezuela.25
			days = 5
		}
	}	
}

country_event = {
	id = venezuela.18 ###Military Reforms Gual Escandon
	title = venezuela.18.t
	desc = venezuela.18.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.18.a
		add_political_power = -10
		complete_national_focus = VEN_ge_expand_military_staff
		}

	option = {
		name = venezuela.18.b
		add_political_power = -10
		complete_national_focus = VEN_ge_demilitarize_nation
		}
}

country_event = {
	id = venezuela.19 ###The Caudillos Situation Monagas
	title = venezuela.19.t
	desc = venezuela.19.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.19.a
		unlock_national_focus = VEN_jtm_conduct_military_reforms
		}

	option = {
		name = venezuela.19.b
		unlock_national_focus = VEN_jtm_make_the_preparations
		}
}

country_event = {
	id = venezuela.20 ###Support the USA/CSA
	title = venezuela.20.t
	desc = venezuela.20.d
	
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
		name = venezuela.20.a
		add_equipment_to_stockpile  = {
			type = infantry_equipment_rifle_0
			amount = 250
			producer = FROM
		}
	}
}

country_event = {
	id = venezuela.21 ###Appears at the start
	title = venezuela.21.t
	desc = venezuela.21.d
	picture = GFX_report_event_march_revolution_1858
		
	fire_only_once = yes
	is_triggered_only = yes
		
	option = {
		name = venezuela.21.a
		add_political_power = 15
		country_event = venezuela.22
	}	
}

country_event = {
	id = venezuela.22 ###Appears at the start
	title = venezuela.22.t
	desc = venezuela.22.d
	picture = GFX_report_event_march_revolution_1858
		
	fire_only_once = yes
	is_triggered_only = yes
		
	option = {
		name = venezuela.22.a
		add_political_power = 15
	}	
}

###Caudillos Unrest

#country_event = {   Temp Commented out due to errors and bad trigger
#	id = venezuelacaudillosunrest.1
#	title = venezuelacaudillosunrest.1.t
#	desc = venezuelacaudillosunrest.1.d
#
#	trigger = {
#		TAG = VEN
#		OR = {
#			check_variable = { ENG_irish_unrest > 100 }
#			check_variable = { ENG_irish_unrest < 0 }
#		}
#	}
#
#	mean_time_to_happen = {
#		days = 10
#	}
#
#	hidden = yes
#
#	immediate = {
#		clamp_variable = {
#			var = VEN_caudillos_unrest
#			min = 0
#			max = 100
#		}
#	}
#
#	option = {
#		name = britainirishunrest.1.a
#		ai_chance = { factor = 100 }
#	}
#}
	
	news_event = {
        id = venezuela.23
        title = venezuela.23.t
        desc = venezuela.23.d

        picture = GFX_news_event_venezuelan_federal_war

        major = no

        is_triggered_only = yes

        option = {
			name = venezuela.23.a
            trigger = {
                NOT = { TAG = USV }
                NOT = { TAG = VEN }
            }
        }
		
        option = {
			name = venezuela.23.b
            trigger = {
                TAG = VEN
            }
			add_ideas = VEN_guerrilla_opposition
			declare_war_on = {
				target = USV
				type = annex_everything
			}	
			hidden_effect = {
				load_oob = USV_1859
			}	
        }
		
        option = {
			name = venezuela.23.c
            trigger = {
                TAG = USV
            }
			add_ideas = USV_guerrilla_support
			hidden_effect = {
				load_oob = VEN_1859			
				set_cosmetic_tag = USV_civwar 
			}
        }
		
	}

	news_event = {
        id = venezuela.24
        title = venezuela.24.t
        desc = venezuela.24.d

        picture = GFX_news_event_venezuelan_federal_war

        major = no

        is_triggered_only = yes

        option = {
            trigger = {
                NOT = { TAG = VEN }
            }
            name = venezuela.24.a
        }
		
        option = {
            trigger = {
                TAG = VEN
            }
            name = venezuela.24.b
			add_political_power = 30
			add_command_power = 30
			add_stability = -0.15
			set_politics = {
				ruling_party = traditional_conservatism
			}
			country_event = { id = venezuela.16 }
		}	
    }

	news_event = {
        id = venezuela.25
        title = venezuela.25.t
        desc = venezuela.25.d

        picture = GFX_news_event_venezuelan_federal_war

        major = no

        is_triggered_only = yes

		option = {
            trigger = {
                NOT = { TAG = VEN }
            }
            name = venezuela.25.a
        }
		
        option = {
            trigger = {
                OR = {
					TAG = VEN
					TAG = USV
				}
            }
            name = venezuela.25.b
			if = {
				limit = {
					has_idea = VEN_guerrilla_opposition
				}   
				add_political_power = -20
				add_popularity = {
					ideology = social_egalitarianism
					popularity = 0.05
				}
				add_stability = -0.2
				remove_ideas = VEN_guerrilla_opposition
				add_ideas = VEN_guerrilla_opposition2
			}
			else_if = {
				limit = {
					has_idea = VEN_guerrilla_opposition2
				}   
				add_political_power = -20
				add_popularity = {
					ideology = social_egalitarianism
					popularity = 0.05
				}
				add_stability = -0.2
				remove_ideas = VEN_guerrilla_opposition2
				add_ideas = VEN_guerrilla_opposition3
			}
			else_if = {
				limit = {
					has_idea = VEN_guerrilla_opposition3
				}   
				add_political_power = -20
				add_popularity = {
					ideology = social_egalitarianism
					popularity = 0.05
				}
				add_stability = -0.2
			}
			else = {
				add_political_power = -20
				add_popularity = {
					ideology = social_egalitarianism
					popularity = 0.05
				}
				add_stability = -0.2
				add_ideas = VEN_guerrilla_opposition
			}
		}		
    }

	news_event = {
		id = venezuela.26 ###Slavery Abolished wih Monagas as president
		title = venezuela.26.t
		desc = venezuela.26.d
		
		fire_only_once = yes
		is_triggered_only = yes
		
		option = {
			trigger = {
                TAG = VEN
            }
			name = venezuela.26.a
			add_political_power = -10
			add_popularity = {
				ideology = social_egalitarianism
				popularity = 0.15
			}
		}

		option = {
			trigger = {
                NOT = { TAG = VEN }
            }
			name = venezuela.26.b
			add_political_power = -10
			add_popularity = {
				ideology = social_egalitarianism
				popularity = 0.15
			}
		}
	}
	
	
	


