# Set Leader Guide # Written by AngriestBird # set_leader_ is the wrapper used in 99_election_effects.txt set_leader_SPR = { if = { limit = { check_variable = { ruling_party = 23 } # set_ NOT = { # General conditionals to use any of these leaders in this group OR = { has_global_flag = SPR_chavy_deposition_of_monarchs_flag has_global_flag = SPR_french_execution_gangnam_flag } } } if = { limit = { check_variable = { Monarchist_leader = 0 } NOT = { has_country_flag = SPR_carlist_rising } } # Conditions to Trigger Leader 1 add_to_variable = { Monarchist_leader = 1 } # You use this to increment to hit the next leader hidden_effect = { kill_country_leader = yes } #Removes the current standing leader create_country_leader = { # Obvious name = "Juan Carlos I" picture = "juan_carlos_i.dds" ideology = Monarchist traits = { nationalist_Monarchist king military_career } } # Do Not Retire Condition: Setting this flag to keep the current leader. i.e. Juan Carlos is in power and I want to keep Juan Carlos I so I set this flag to prevent him from being replaced. if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } } if = { # This sets a fail conditional if the leader is abdicated or if the date is under 2014 limit = { OR = { date < 2014.1.1 has_country_flag = SPR_abdication_of_juan_carlos } } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { Monarchist_leader = 1 } NOT = { check_variable = { b = 1 } } NOT = { has_country_flag = SPR_carlist_rising } } add_to_variable = { Monarchist_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Felipe VI" picture = "felipe_vi.dds" ideology = Monarchist traits = { nationalist_Monarchist king military_career } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Monarchist_leader = 2 } NOT = { check_variable = { b = 1 } } has_country_flag = SPR_carlist_rising } add_to_variable = { Monarchist_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Carlos Hugo" picture = "prince_charles_hugo.dds" ideology = Monarchist traits = { nationalist_Monarchist king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } } if = { limit = { OR = { date < 2016.1.1 has_country_flag = SPR_death_of_charles_hugo } } set_temp_variable = { b = 1 } } #skip if 2017 set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Monarchist_leader = 3 } NOT = { check_variable = { b = 1 } } has_country_flag = SPR_carlist_rising } add_to_variable = { Monarchist_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Carlos Javier" picture = "carlos_javier.dds" ideology = Monarchist traits = { nationalist_Monarchist king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Monarchist_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { western_autocrats_are_in_power = yes NOT = { OR = { has_global_flag = SPR_chavy_deposition_of_monarchs_flag has_global_flag = SPR_french_execution_gangnam_flag } } } if = { limit = { check_variable = { Western_Autocracy_leader = 0 } NOT = { has_country_flag = SPR_carlist_rising } } add_to_variable = { Western_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Juan Carlos I" picture = "juan_carlos_i.dds" ideology = Western_Autocracy traits = { western_Western_Autocracy king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Western_Autocracy_leader = 1 } } if = { limit = { OR = { date < 2016.1.1 has_country_flag = SPR_abdication_of_juan_carlos } } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { Western_Autocracy_leader = 1 } NOT = { check_variable = { b = 1 } } NOT = { has_country_flag = SPR_carlist_rising } } add_to_variable = { Western_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Felipe VI" picture = "felipe_vi.dds" ideology = Western_Autocracy traits = { western_Western_Autocracy king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Western_Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } # Carlists are listed as successors for now. if = { limit = { check_variable = { Western_Autocracy_leader = 2 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Western_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Charles Hugo" picture = "prince_charles_hugo.dds" ideology = Western_Autocracy traits = { western_Western_Autocracy king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Western_Autocracy_leader = 1 } } if = { limit = { OR = { date < 2016.1.1 has_country_flag = SPR_abdication_of_juan_carlos } } set_temp_variable = { b = 1 } } #skip if 2017 set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Western_Autocracy_leader = 3 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Western_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Carlos Javier" picture = "carlos_javier.dds" ideology = Western_Autocracy traits = { western_Western_Autocracy king } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Western_Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 21 } } if = { limit = { check_variable = { Nat_Fascism_leader = 0 } } add_to_variable = { Nat_Fascism_leader = 1 } hidden_effect = { kill_country_leader = yes } # La Falange Leader create_country_leader = { name = "Norberto Pico" picture = "norberto_pico.dds" ideology = Nat_Fascism traits = { nationalist_Nat_Fascism silent_workhorse ideological_crusader } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Fascism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 16 } } if = { limit = { check_variable = { Neutral_Libertarian_leader = 0 } } add_to_variable = { Neutral_Libertarian_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Mario Conde" picture = "mario_conde.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Libertarian } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Libertarian_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Neutral_Libertarian_leader = 1 } } add_to_variable = { Neutral_Libertarian_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Daniel Martínez" picture = "daniel_martinez.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Libertarian } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Libertarian_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Neutral_Libertarian_leader = 2 } } add_to_variable = { Neutral_Libertarian_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Silvia Barquero" picture = "silvia_barquero.dds" ideology = Neutral_Libertarian traits = { neutrality_Neutral_Libertarian } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Libertarian_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 4 } } if = { limit = { check_variable = { Communist-State_leader = 0 } } add_to_variable = { Communist-State_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Francisco Frutos" picture = "francisco_frutos.dds" ideology = Communist-State traits = { emerging_Communist-State } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Communist-State_leader = 1 } } add_to_variable = { Communist-State_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "José Luis Centella" picture = "jose_luis_centella.dds" ideology = Communist-State traits = { emerging_Communist-State } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 19 } } if = { limit = { check_variable = { Neutral_Communism_leader = 0 } } add_to_variable = { Neutral_Communism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Carmelo Suarez" picture = "carmelo_suarez.dds" ideology = Neutral_Communism traits = { neutrality_Neutral_Communism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Communism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 3 } } if = { limit = { check_variable = { socialism_leader = 0 } date < 2005.1.1 } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Joaquin Alumnia" picture = "joaquin_alumnia.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { socialism_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Jose Zapatero" picture = "jose_zapatero.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { socialism_leader = 2 } NOT = { check_variable = { b = 1 } } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Pedro Sánchez" picture = "pedro_sanchez.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { socialism_leader = 3 } NOT = { check_variable = { b = 1 } } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Alfredo Pérez Rubalcaba" picture = "alfredo_perez_rubalcaba.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { socialism_leader = 4 } NOT = { check_variable = { b = 1 } } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Susana Díaz" picture = "susana_diaz.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { socialism_leader = 5 } NOT = { check_variable = { b = 1 } } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Rosa Díez" picture = "rosa_diez.dds" ideology = socialism traits = { western_socialism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { socialism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 2 } } if = { limit = { check_variable = { liberalism_leader = 0 } } add_to_variable = { liberalism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Albert Rivera" picture = "albert_rivera.dds" ideology = liberalism traits = { western_liberalism lawyer career_politician } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { liberalism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { liberalism_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { liberalism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Inés Arrimadas" picture = "ines_arrimadas.dds" ideology = liberalism traits = { western_liberalism lawyer } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { liberalism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 5 } } if = { limit = { check_variable = { anarchist_communism_leader = 0 } } add_to_variable = { anarchist_communism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Gaspar Llamazares" picture = "gaspar_llamazares.dds" ideology = anarchist_communism traits = { emerging_anarchist_communism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { anarchist_communism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { anarchist_communism_leader = 1 } } add_to_variable = { anarchist_communism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Alberto Garzón" picture = "alberto_garzon.dds" ideology = anarchist_communism traits = { emerging_anarchist_communism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { anarchist_communism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 22 } } if = { limit = { check_variable = { Nat_Autocracy_leader = 0 } } add_to_variable = { Nat_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Alfonso Pardo" picture = "alfonso_pardo.dds" ideology = Nat_Autocracy traits = { nationalist_Nat_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Nat_Autocracy_leader = 1 } } add_to_variable = { Nat_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Francisco Javier" picture = "fransicso_javier.dds" ideology = Nat_Autocracy traits = { nationalist_Nat_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 20 } } if = { limit = { check_variable = { Nat_Populism_leader = 0 } has_country_flag = SPR_espana_2000_forms } add_to_variable = { Nat_Populism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "José Luis Roberto" picture = "jose_roberto.dds" ideology = Nat_Populism traits = { nationalist_Nat_Populism fervent_anti_migrant } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } } set_temp_variable = { b = 1 } } else_if = { limit = { check_variable = { Nat_Populism_leader = 0 } has_country_flag = SPR_vox_forms } add_to_variable = { Nat_Populism_leader = 1 } } if = { limit = { check_variable = { Nat_Populism_leader = 1 } NOT = { check_variable = { b = 1 } } has_country_flag = SPR_vox_forms } add_to_variable = { Nat_Populism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Santiago Abascal" picture = "santiago_abascal.dds" ideology = Nat_Populism traits = { nationalist_Nat_Populism career_politician fervent_anti_migrant } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Nat_Populism_leader = 2 } NOT = { check_variable = { b = 1 } } has_country_flag = SPR_vox_forms } add_to_variable = { Nat_Populism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Jordi de la Fuente" picture = "jordi_fuentes.dds" ideology = Nat_Populism traits = { nationalist_Nat_Populism career_politician fervent_anti_migrant } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 15 } } if = { limit = { check_variable = { oligarchism_leader = 0 } } add_to_variable = { oligarchism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Francisca Cortés Picazo" picture = "la_paca.dds" ideology = oligarchism traits = { neutrality_oligarchism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { oligarchism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 1 } } if = { limit = { check_variable = { conservatism_leader = 0 } date < 2004.1.1 } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "José María Aznar" picture = "jose_maria_aznar.dds" ideology = conservatism traits = { western_conservatism lawyer career_politician silent_workhorse } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } if = { limit = { date < 2004.1.2 } set_temp_variable = { b = 1 } } #skip if 2004 } if = { limit = { check_variable = { conservatism_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Mariano Rajoy" picture = "mariano_rajoy.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } if = { limit = { date < 2018.1.2 } set_temp_variable = { b = 1 } } #skip if 2018 } if = { limit = { check_variable = { conservatism_leader = 2 } NOT = { check_variable = { b = 1 } } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Pablo Casado" picture = "pablo_casado.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { conservatism_leader = 3 } NOT = { check_variable = { b = 1 } } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Alberto Núñez Feijóo" picture = "alberto_nunez_feijoo.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { conservatism_leader = 4 } NOT = { check_variable = { b = 1 } } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Soraya Sáenz de Santamaría" picture = "soraya_saenz_da_santamaria.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { conservatism_leader = 5 } NOT = { check_variable = { b = 1 } } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Cristina Cifuentes" picture = "cristina_cifuentes.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 14 } } if = { limit = { check_variable = { Neutral_conservatism_leader = 0 } } add_to_variable = { Neutral_conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Jésus Gil" picture = "jesus_gil.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_conservatism_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Neutral_conservatism_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Neutral_conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Rafael López-Diéguez" picture = "rafael_lopez_dieguez.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_conservatism_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 18 } } if = { limit = { check_variable = { neutral_Social_leader = 0 } } add_to_variable = { neutral_Social_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Pablo Iglesias Turrión" picture = "pablo_iglesias_turrion.dds" ideology = neutral_Social traits = { neutrality_neutral_Social } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { neutral_Social_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { neutral_Social_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { neutral_Social_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Yolanda Díaz" picture = "yolanda_diaz.dds" ideology = neutral_Social traits = { neutrality_neutral_Social } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { neutral_Social_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { neutral_Social_leader = 2 } NOT = { check_variable = { b = 1 } } } add_to_variable = { neutral_Social_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Íñigo Errejón" picture = "inigo_errejon.dds" ideology = neutral_Social traits = { neutrality_neutral_Social } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { neutral_Social_leader = 1 } } set_temp_variable = { b = 1 } } } }