set_leader_IKR = { if = { limit = { check_variable = { ruling_party = 1 } } if = { limit = { check_variable = { conservatism_leader = 0 } } add_to_variable = { conservatism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Abdullah Hesenzade" picture = "IKR_kdp_Abdullah_Hesenzade.dds" ideology = conservatism traits = { western_conservatism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { conservatism_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } 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 = "Hussein Yazdanpana" picture = "IKR_pak_Hussein_Yazdanpana.dds" ideology = liberalism traits = { western_liberalism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { liberalism_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } 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 = "Ibrahim Alizade" picture = "IKR_Ibrahim_Alizade.dds" ideology = Communist-State traits = { emerging_Communist-State } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } 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 = "Abdul Rahman Haji Ahmadi" picture = "IKR_pjak_abdul_rahman_haji_ahmadi.dds" ideology = anarchist_communism traits = { emerging_anarchist_communism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { anarchist_communism_leader = 1 } } if = { limit = { date < 2005.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { anarchist_communism_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { anarchist_communism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Peyman Viyan" picture = "IKR_pjak_peyman_viyan.dds" ideology = Neutral_conservatism traits = { neutrality_Neutral_conservatism } } 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 = 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 = "Mustefa Hicri" picture = "IKR_kdp_Mustefa_Hicri.dds" ideology = neutral_Social traits = { neutrality_neutral_Social } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { neutral_Social_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } 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 = "Abdulla Konaposhi" picture = "generic.dds" ideology = Neutral_Communism traits = { neutrality_Neutral_Communism } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Communism_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } else_if = { limit = { check_variable = { ruling_party = 12 } } if = { limit = { check_variable = { Neutral_Muslim_Brotherhood_leader = 0 } } add_to_variable = { Neutral_Muslim_Brotherhood_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Abdulrahman Pirani" picture = "Abdulrahman_Pirani.dds" ideology = Neutral_Muslim_Brotherhood traits = { neutrality_Neutral_Muslim_Brotherhood } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_Muslim_Brotherhood_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } else_if = { limit = { check_variable = { ruling_party = 17 } } if = { limit = { check_variable = { Neutral_green_leader = 0 } } add_to_variable = { Neutral_green_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Omar Ilkhanizade" picture = "Omar_Ilkhanizade.dds" ideology = Neutral_green traits = { neutrality_Neutral_green } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Neutral_green_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } } else_if = { limit = { check_variable = { ruling_party = 3 } } if = { limit = { check_variable = { socialism_leader = 0 } } add_to_variable = { socialism_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Abdulla Mohtadi" picture = "abdulla_mohtadi.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 } } } }