set_leader_LOG = {

	if = { limit = { has_country_flag = set_Nat_Populism }

		if = { limit = { check_variable = { Nat_Populism_leader = 0 } }
			set_variable = { Nat_Populism_leader = 1 }
			kill_country_leader = yes

			create_country_leader = {
				name = "Noureddine Adam"
				picture = "LOG_noureddine_adam.dds"
				ideology = Nat_Populism
				traits = {
					nationalist_Nat_Populism
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Nat_Populism_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
}