set_leader_QAT = { 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 = "Lt. Gen. Ghanim bin Shaheen Al-Ghanem" picture = "Portrait_Ghanim_bin_Shaheen_al_Ghanim.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 = 10 } } if = { limit = { check_variable = { Kingdom_leader = 0 } } add_to_variable = { Kingdom_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Hamad bin Khalifa Al-Thani" picture = "Hamad_bin_Khalifa_al-Thani.dds" ideology = Kingdom traits = { salafist_Kingdom } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Kingdom_leader = 1 } } if = { limit = { date < 2016.1.2 } set_temp_variable = { b = 1 } } #skip if 2017 } if = { limit = { check_variable = { Kingdom_leader = 1 } NOT = { check_variable = { b = 1 } } } add_to_variable = { Kingdom_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Tamim bin Hamad Al-Thani" picture = "Tamim_bin_Hamad_Al_Thani.dds" ideology = Neutral_Autocracy traits = { neutrality_Neutral_Autocracy } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Kingdom_leader = 1 } } set_temp_variable = { b = 1 } } } else_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 = "Mohammed al-Ajami" picture = "mohammed_al_ajami.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 = 11 } } if = { limit = { check_variable = { Caliphate_leader = 0 } } add_to_variable = { Caliphate_leader = 1 } hidden_effect = { kill_country_leader = yes } create_country_leader = { name = "Qasim al-Raymi" picture = "qasim_al_raymi.dds" ideology = Caliphate traits = { salafist_Caliphate } } if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Caliphate_leader = 1 } } set_temp_variable = { b = 1 } } } }