set_leader_PMR = {

	if = { limit = { has_country_flag = set_Communist-State }

		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 = "Nina Shtanski"
				picture = "TRA_Nina_Shtanski.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 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Communist-State_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Tetyana Mykhailivna Turanska"
				picture = "Tetyana_Mykhailivna_Turanska.dds"
				ideology = Communist-State
				traits = {
					emerging_Communist-State
					pro_russia
				}
			}

			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 = 2 } NOT = { check_variable = { b = 1 } } }
			add_to_variable = { Communist-State_leader = 1 }
			hidden_effect = { kill_country_leader = yes }

			create_country_leader = {
				name = "Yevgeny Shevchuk"
				picture = "Yevgeny_Shevchuk.dds"
				ideology = Communist-State
				traits = {
					lawyer
					emerging_Communist-State
					pro_russia
					deceitful
					rash
				}
			}

			if = { limit = { has_country_flag = do_not_retire } subtract_from_variable = { Communist-State_leader = 1 } }
			set_temp_variable = { b = 1 }
		}
	}
}