add_namespace = venezuela add_namespace = venezuela_news add_namespace = gca # 2004 - The Recall Elections # TODO: Setup historical event chains to give Venezuela some flavour uwu country_event = { id = venezuela.1 title = venezuela.1.t desc = venezuela.1.d picture = GFX_election_day is_triggered_only = yes fire_only_once = yes trigger = { original_tag = VEN date < 2016.1.1 emerging_anarchist_communism_in_power_or_coalition = yes has_country_leader = { name = "Hugo Chávez" ruling_only = yes } has_country_flag = VEN_2004_recall_referendum_engaged } # Schedule the Election option = { name = venezuela.1.a log = "[GetDateText]: [This.GetName]: venezuela.1.a executed" country_event = { id = venezuela.2 days = 15 } } # Denounce the Recall Election option = { name = venezuela.1.b } } # 2004 - Recall Referendum Results country_event = { id = venezuela.2 title = venezuela.2.t desc = { text = venezuela.2.d1 trigger = { has_country_flag = VEN_2004_recall_chavez_survives } } desc = { text = venezuela.2.d2 trigger = { has_country_flag = VEN_2004_recall_chavez_recalled } } picture = GFX_election_day is_triggered_only = yes fire_only_once = yes trigger = { original_tag = VEN date < 2016.1.1 emerging_anarchist_communism_in_power_or_coalition = yes has_country_leader = { name = "Hugo Chávez" ruling_only = yes } has_country_flag = VEN_2004_recall_referendum_engaged } immediate = { random_list = { 60 = { modifier = { add = 40 has_completed_focus = VEN_mission_florentino } modifier = { factor = 0.6 has_idea = VEN_opposition_strengthened } modifier = { factor = 0.75 check_variable = { party_pop_array^2 > 0.20 } } set_country_flag = VEN_2004_recall_chavez_survives } 40 = { modifier = { add = 20 has_idea = VEN_opposition_strengthened } modifier = { add = 15 check_variable = { party_pop_array^2 > 0.20 } } set_country_flag = VEN_2004_recall_chavez_recalled } } } option = { name = venezuela.2.a trigger = { has_country_flag = VEN_2004_recall_chavez_survives } log = "[GetDateText]: [This.GetName]: venezuela.2.a executed" add_stability = 0.05 add_political_power = 50 set_party_index_to_ruling_party = yes set_temp_variable = { party_popularity_increase = 0.05 } change_relative_party_popularity = yes hidden_effect = { clr_country_flag = VEN_2004_recall_referendum_engaged clr_country_flag = VEN_2004_recall_campaign_active clr_country_flag = VEN_2004_recall_chavez_survives } } option = { name = venezuela.2.b trigger = { has_country_flag = VEN_2004_recall_chavez_recalled } log = "[GetDateText]: [This.GetName]: venezuela.2.b executed" add_stability = -0.10 add_political_power = -50 country_event = { id = MD4_election_campaign.0 days = 1 } hidden_effect = { clr_country_flag = VEN_2004_recall_referendum_engaged clr_country_flag = VEN_2004_recall_campaign_active clr_country_flag = VEN_2004_recall_chavez_recalled } } } # US import policy country_event = { id = venezuela.50 title = venezuela.50.t desc = venezuela.50.d picture = GFX_generic_soldiers is_triggered_only = yes fire_only_once = yes option = { name = venezuela.50.o1 log = "[GetDateText]: [This.GetName]: venezuela.50.o1 executed" set_variable = { VEN.var_us_import_policy = 1 } custom_effect_tooltip = VEN_us_import_policy_loc1 } option = { name = venezuela.50.o2 log = "[GetDateText]: [This.GetName]: venezuela.50.o2 executed" set_variable = { VEN.var_us_import_policy = 2 } custom_effect_tooltip = VEN_us_import_policy_loc2 } option = { name = venezuela.50.o3 log = "[GetDateText]: [This.GetName]: venezuela.50.o3 executed" set_variable = { VEN.var_us_import_policy = 3 } custom_effect_tooltip = VEN_us_import_policy_loc3 } option = { name = venezuela.50.o4 log = "[GetDateText]: [This.GetName]: venezuela.50.o4 executed" set_variable = { VEN.var_us_import_policy = 4 } custom_effect_tooltip = VEN_us_import_policy_loc4 } } # Offer to Join the Gran-Colombia Alliance country_event = { id = gca.1 title = gca.1.t desc = gca.1.d picture = GFX_grancolo is_triggered_only = yes # We will join option = { name = gca.1.a log = "[GetDateText]: [This.GetName]: gca.1.a executed" VEN = { country_event = { id = gca.2 days = 1 } if = { limit = { is_faction_leader = yes PREV = { is_in_faction = no } } add_to_faction = PREV } } ai_chance = { base = 5 modifier = { factor = 3 OR = { check_variable = { influence_array^0 = VEN.id } check_variable = { influence_array^1 = VEN.id } check_variable = { influence_array^2 = VEN.id } } } modifier = { add = 5 has_opinion = { target = VEN value > 49 } } } } # No we wont join option = { name = gca.1.b log = "[GetDateText]: [This.GetName]: gca.1.b executed" VEN = { country_event = { id = gca.3 days = 1 } } ai_chance = { base = 0 modifier = { add = 5 has_opinion = { target = VEN value < 0 } } } } } # [FROM.GetName] Joins the GCA country_event = { id = gca.2 title = gca.2.t desc = gca.2.d picture = GFX_handshake_black is_triggered_only = yes # Great they joined option = { name = gca.2.a log = "[GetDateText]: [This.GetName]: gca.2.a executed" effect_tooltip = { VEN = { add_to_faction = FROM } } } } # [FROM.GetName] Refuses to Join the GCA country_event = { id = gca.3 title = gca.3.t desc = gca.3.d picture = GFX_handshake_black is_triggered_only = yes option = { name = gca.3.a } } # Curacao Return country_event = { id = venezuela.8 title = venezuela.8.t desc = venezuela.8.d picture = GFX_venez_carac is_triggered_only = yes # Will give the state option option = { name = venezuela.8.a log = "[GetDateText]: [This.GetName]: venezuela.8.a executed" VEN = { country_event = venezuela.9 } ai_chance = { base = 5 modifier = { has_opinion = { target = VEN value > 49 } add = 10 } } VEN = { add_state_claim = 49 } } # Will not give the state option option = { name = venezuela.8.b log = "[GetDateText]: [This.GetName]: venezuela.8.b executed" VEN = { country_event = venezuela.10 } ai_chance = { base = 5 } VEN = { add_state_claim = 49 } } } # Does give you the state country_event = { id = venezuela.9 title = venezuela.9.t desc = venezuela.9.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.9.a log = "[GetDateText]: [This.GetName]: venezuela.9.a executed" 49 = { transfer_state_to = VEN } ai_chance = { base = 5 } } } # Doesn't give you the state country_event = { id = venezuela.10 title = venezuela.10.t desc = venezuela.10.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = venezuela.10.a log = "[GetDateText]: [This.GetName]: venezuela.10.a executed" set_temp_variable = { wargoal_on = HOL } set_temp_variable = { wargoal_type = 2 } add_threat_from_wargoal_effect = yes create_wargoal = { type = annex_everything target = HOL } ai_chance = { base = 5 } HOL = { add_opinion_modifier = { target = VEN modifier = imminent_danger_to_national_security } } } } # Peru becoming a puppet country_event = { id = venezuela.11 title = venezuela.11.t desc = venezuela.11.d picture = GFX_venez_capt is_triggered_only = yes fire_only_once = yes # Accepts becoming a puppet option = { name = venezuela.11.o1 log = "[GetDateText]: [This.GetName]: venezuela.11.o1 executed" VEN = { country_event = { id = venezuela.12 days = 1 } } ai_chance = { base = 75 } } # Peru Refuses! option = { name = venezuela.11.o2 log = "[GetDateText]: [This.GetName]: venezuela.11.o2 executed" VEN = { country_event = { id = venezuela.13 days = 1 } } ai_chance = { base = 25 } } } # Good Choice country_event = { id = venezuela.12 title = venezuela.12.t desc = venezuela.12.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.12.o1 log = "[GetDateText]: [This.GetName]: venezuela.12.o1 executed" if = { limit = { PRU = { NOT = { is_subject_of = VEN } } } VEN = { puppet = PRU } } ai_chance = { base = 75 } } } # That was a mistake country_event = { id = venezuela.13 title = venezuela.13.t desc = venezuela.13.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = venezuela.13.o1 log = "[GetDateText]: [This.GetName]: venezuela.13.o1 executed" if = { limit = { PRU = { NOT = { is_subject_of = VEN } } } VEN = { set_temp_variable = { wargoal_on = PRU } add_threat_from_wargoal_effect = yes create_wargoal = { target = PRU type = puppet_wargoal_focus } add_opinion_modifier = { target = PRU modifier = threat_to_our_independence } } } ai_chance = { base = 25 } } } # Demanding the Canal country_event = { id = venezuela.16 title = venezuela.16.t desc = venezuela.16.d picture = GFX_venez_canal is_triggered_only = yes fire_only_once = yes # Accepts becoming a puppet and offering the canal option = { name = venezuela.16.o1 log = "[GetDateText]: [This.GetName]: venezuela.16.o1 executed" VEN = { country_event = { id = venezuela.17 days = 1 } } ai_chance = { base = 50 } } # Panama Refuses! option = { name = venezuela.16.o2 log = "[GetDateText]: [This.GetName]: venezuela.16.o2 executed" VEN = { country_event = { id = venezuela.18 days = 1 } } ai_chance = { base = 50 } } } # Good Choice country_event = { id = venezuela.17 title = venezuela.17.t desc = venezuela.17.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.17.o1 log = "[GetDateText]: [This.GetName]: venezuela.17.o1 executed" if = { limit = { PAN = { NOT = { is_subject_of = VEN } } } VEN = { puppet = PAN } } ai_chance = { base = 50 } } } # That was a mistake country_event = { id = venezuela.18 title = venezuela.18.t desc = venezuela.18.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.18.o1 log = "[GetDateText]: [This.GetName]: venezuela.18.o1 executed" if = { limit = { PAN = { NOT = { is_subject_of = VEN } } } VEN = { set_temp_variable = { wargoal_on = PAN } add_threat_from_wargoal_effect = yes create_wargoal = { target = PAN type = puppet_wargoal_focus } add_opinion_modifier = { target = PAN modifier = threat_to_our_independence } } } ai_chance = { base = 50 } } } # country_event = { id = venezuela.19 title = venezuela.19.t desc = venezuela.19.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.19.a log = "[GetDateText]: [This.GetName]: venezuela.19.a executed" VEN = { country_event = { id = venezuela.20 days = 2 } } USA = { diplomatic_relation = { country = VEN relation = guarantee active = yes } } set_temp_variable = { percent_change = 4 } set_temp_variable = { tag_index = USA } set_temp_variable = { influence_target = VEN } change_influence_percentage = yes ai_chance = { base = 5 modifier = { has_opinion = { target = VEN value > 30 } add = 20 } } } option = { name = venezuela.19.b log = "[GetDateText]: [This.GetName]: venezuela.19.b executed" VEN = { country_event = { id = venezuela.21 days = 2 } } ai_chance = { base = 5 modifier = { has_opinion = { target = VEN value < 0 } add = 20 } } } } # country_event = { id = venezuela.20 title = venezuela.20.t desc = venezuela.20.d picture = GFX_treaty is_triggered_only = yes option = { name = venezuela.20.a log = "[GetDateText]: [This.GetName]: venezuela.20.a executed" VEN = { diplomatic_relation = { country = USA relation = guarantee active = yes } } ai_chance = { base = 50 } } } # country_event = { id = venezuela.21 title = venezuela.21.t desc = venezuela.21.d picture = GFX_treaty_rejected is_triggered_only = yes option = { name = venezuela.21.a ai_chance = { base = 50 } } } # Venezuela asks us to establish military bases country_event = { id = venezuela.22 title = venezuela.22.t desc = venezuela.22.d picture = GFX_generic_soldiers is_triggered_only = yes option = { name = venezuela.22.a log = "[GetDateText]: [This.GetName]: venezuela.22.a executed" VEN = { give_military_access = USA } USA = { give_military_access = VEN } ai_chance = { base = 5 modifier = { has_opinion = { target = VEN value > 30 } add = 20 } } } # option = { name = venezuela.22.b log = "[GetDateText]: [This.GetName]: venezuela.22.b executed" VEN = { country_event = { id = venezuela.23 days = 1 } } ai_chance = { base = 5 modifier = { has_opinion = { target = VEN value < 0 } add = 20 } } } } # United States Refuses Bases country_event = { id = venezuela.23 title = venezuela.23.t desc = venezuela.23.d picture = GFX_generic_soldiers is_triggered_only = yes option = { name = venezuela.23.a ai_chance = { base = 50 } } } # Death of Hugo Chávez country_event = { id = venezuela.24 title = venezuela.24.t desc = venezuela.24.d is_triggered_only = yes trigger = { original_tag = VEN has_country_leader = { name = "Hugo Chávez" ruling_only = yes } } # A Hero of the Bolivarian Revolution option = { name = venezuela.24.a log = "[GetDateText]: [This.GetName]: venezuela.24.a executed" create_country_leader = { name = "Nicolás Maduro" picture = "Nicolas_Maduro.dds" ideology = anarchist_communism traits = { emerging_anarchist_communism union_man career_politician } } ai_chance = { base = 1 } } } # 2000 Elections country_event = { id = venezuela.100 title = venezuela.100.t desc = venezuela.100.d picture = GFX_election_day is_triggered_only = yes trigger = { original_tag = VEN emerging_anarchist_communism_in_power_or_coalition = yes } # So they begin... option = { name = venezuela.100.a log = "[GetDateText]: [This.GetName]: venezuela.100.a executed" country_event = MD4_election_campaign.0 hidden_effect = { set_elections_72_months = yes } ai_chance = { base = 50 } } } # 2003 - Signatures Collected country_event = { id = venezuela.101 title = venezuela.101.t desc = venezuela.101.d picture = GFX_election_day is_triggered_only = yes fire_only_once = yes # picture = trigger = { original_tag = VEN emerging_anarchist_communism_in_power_or_coalition = yes has_country_leader = { name = "Hugo Chávez" ruling_only = yes } NOT = { has_country_flag = VEN_2004_recall_referendum_engaged } } # Signatures Collected... a crisis is coming option = { name = venezuela.101.a log = "[GetDateText]: [This.GetName]: venezuela.101.a executed" set_temp_variable = { party_index = 2 } set_temp_variable = { party_popularity_increase = 0.03 } set_temp_variable = { temp_outlook_increase = 0.03 } change_relative_party_popularity = yes set_country_flag = VEN_2004_recall_referendum_engaged set_country_flag = { flag = VEN_2004_recall_campaign_active days = 240 value = 1 } country_event = { id = venezuela.1 days = 245 } } } # Trade Deal with China country_event = { id = venezuela.200 title = venezuela.200.t desc = venezuela.200.d picture = GFX_stock_market is_triggered_only = yes option = { name = venezuela.200.a log = "[GetDateText]: [This.GetName]: venezuela.200.a executed" if = { limit = { original_tag = SOV } SOV = { add_opinion_modifier = { target = ROOT modifier = economic_mission } add_ideas = russian_trade_deal set_temp_variable = { int_investment_change = 35 } modify_international_investment_effect = yes set_temp_variable = { treasury_change = -35 } modify_treasury_effect = yes } VEN = { set_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = SOV.id } change_influence_percentage = yes add_ideas = russian_trade_deal 875 = { add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } set_temp_variable = { receiver_nation = SOV.id } set_temp_variable = { sender_nation = VEN.id } set_improved_trade_agreement = yes } else_if = { limit = { original_tag = CHI } CHI = { add_ideas = china_trade_deal add_opinion_modifier = { target = ROOT modifier = economic_mission } create_import = { resource = oil amount = 10 exporter = VEN } } VEN = { add_ideas = china_trade_deal set_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = CHI.id } change_influence_percentage = yes create_import = { resource = steel amount = 10 exporter = CHI } } set_temp_variable = { receiver_nation = CHI.id } set_temp_variable = { sender_nation = VEN.id } set_improved_trade_agreement = yes } set_country_flag = VEN_accepted_deal VEN = { country_event = venezuela.201 } } option = { name = venezuela.200.b log = "[GetDateText]: [This.GetName]: venezuela.200.b executed" set_country_flag = VEN_refused_deal VEN = { country_event = venezuela.201 } } } country_event = { id = venezuela.201 title = { trigger = { FROM = { has_country_flag = VEN_accepted_deal } } text = venezuela.201.t1 } title = { trigger = { FROM = { has_country_flag = VEN_refused_deal } } text = venezuela.201.t2 } desc = { trigger = { FROM = { has_country_flag = VEN_accepted_deal } } text = venezuela.201.d1 } desc = { trigger = { FROM = { has_country_flag = VEN_refused_deal } } text = venezuela.201.d2 } picture = GFX_stock_market is_triggered_only = yes option = { name = venezuela.201.a log = "[GetDateText]: [This.GetName]: venezuela.201.a executed" trigger = { FROM = { has_country_flag = VEN_accepted_deal } } effect_tooltip = { if = { limit = { FROM = { original_tag = SOV } } SOV = { add_opinion_modifier = { target = ROOT modifier = economic_mission } add_ideas = russian_trade_deal set_temp_variable = { int_investment_change = 35 } modify_international_investment_effect = yes } VEN = { set_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = SOV.id } change_influence_percentage = yes add_ideas = russian_trade_deal 875 = { add_extra_state_shared_building_slots = 2 add_building_construction = { type = industrial_complex level = 2 instant_build = yes } } } set_temp_variable = { receiver_nation = SOV.id } set_temp_variable = { sender_nation = VEN.id } set_improved_trade_agreement = yes } else_if = { limit = { FROM = { original_tag = CHI } } CHI = { add_ideas = china_trade_deal add_opinion_modifier = { target = ROOT modifier = economic_mission } create_import = { resource = oil amount = 10 exporter = VEN } } VEN = { add_ideas = china_trade_deal set_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = CHI.id } change_influence_percentage = yes create_import = { resource = steel amount = 10 exporter = CHI } } set_temp_variable = { receiver_nation = CHI.id } set_temp_variable = { sender_nation = VEN.id } set_improved_trade_agreement = yes } } hidden_effect = { FROM = { clr_country_flag = VEN_accepted_deal clr_country_flag = VEN_refused_deal } } } option = { name = venezuela.201.b log = "[GetDateText]: [This.GetName]: venezuela.201.b executed" trigger = { FROM = { has_country_flag = VEN_refused_deal } } hidden_effect = { FROM = { clr_country_flag = VEN_accepted_deal clr_country_flag = VEN_refused_deal } } } }