set_leader_SHA = { 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 = "Ibrahim Ghalidds" picture = "SHA_Ibrahim_Ghali.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 = 7 } } if = { limit = { check_variable = { Autocracy_leader = 0 } } add_to_variable = { Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Brahim Ghali" picture = "SHA_Ibrahim_Ghali.dds" ideology = Autocracy traits = { emerging_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } } } if = { limit = { check_variable = { Autocracy_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Brahim Ghali" picture = "SHA_Ibrahim_Ghali.dds" ideology = Autocracy traits = { emerging_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Autocracy_leader = 2 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Bouchraya Hammoudi Bayoun" picture = "SHA_bucharaya_hamudi_beyun_army.dds" ideology = Autocracy traits = { military_career emerging_Autocracy likeable pro_russia capable } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Autocracy_leader = 3 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Abdelkader Taleb Omar" picture = "SHA_abdelkader_taleb_omar.dds" ideology = Autocracy traits = { military_career emerging_Autocracy likeable pro_russia capable } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } if = { limit = { check_variable = { Autocracy_leader = 4 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Mohamed Lamine Ould Ahmed" picture = "SHA_mohamed_amin_ahmed.dds" ideology = Autocracy traits = { emerging_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Autocracy_leader = 1 } } set_temp_variable = { b = 1 } } } else_if = { limit = { check_variable = { ruling_party = 13 } } if = { limit = { check_variable = { Neutral_Autocracy_leader = 0 } } add_to_variable = { Neutral_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Mahjoub Salek" picture = "SHA_khat_achahid.dds" ideology = Neutral_Autocracy traits = { neutrality_Neutral_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Autocracy_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 = "Brahim Ghali" picture = "gfx/leaders/SHA/SHA_brahim_ghali_army.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 = { check_variable = { Nat_Autocracy_leader = 1 } } add_to_variable = { Nat_Autocracy_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Hamma Salama" picture = "gfx/leaders/SHA/SHA_hamma_salama.dds" ideology = Nat_Autocracy traits = { nationalist_Nat_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Autocracy_leader = 1 } } } } }