defined_text = {
	name = KOR_NatAsm_current_faction_dynamic
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 1 }
		}
		localization_key = KOR_NatAsm_DP_c
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 2 }
		}
		localization_key = KOR_NatAsm_PPP_c
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 3 }
		}
		localization_key = KOR_NatAsm_JP_c
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 4 }
		}
		localization_key = KOR_NatAsm_PP_c
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 5 }
		}
		localization_key = KOR_NatAsm_Ind_c
	}
}

defined_text = {
	name = KOR_NatAsm_change_seats_dynamic
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_temp = 1 }
		}
		localization_key = KOR_NatAsm_DP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_temp = 2 }
		}
		localization_key = KOR_NatAsm_PPP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_temp = 3 }
		}
		localization_key = KOR_NatAsm_JP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_temp = 4 }
		}
		localization_key = KOR_NatAsm_PP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_temp = 5 }
		}
		localization_key = KOR_NatAsm_Ind_seat_tooltip
	}
}

defined_text = {
	name = KOR_NatAsm_change_seats_specific_1_target
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_target = 1 }
		}
		localization_key = KOR_NatAsm_DP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_target = 2 }
		}
		localization_key = KOR_NatAsm_PPP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_target = 3 }
		}
		localization_key = KOR_NatAsm_JP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_target = 4 }
		}
		localization_key = KOR_NatAsm_PP_seat_tooltip
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction_target = 5 }
		}
		localization_key = KOR_NatAsm_Ind_seat_tooltip
	}
}

defined_text = {
	name = KOR_NatAsm_current_faction_color_dynamic
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 1 }
		}
		localization_key = KOR_NatAsm_DP_color
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 2 }
		}
		localization_key = KOR_NatAsm_PPP_color
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 3 }
		}
		localization_key = KOR_NatAsm_JP_color
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 4 }
		}
		localization_key = KOR_NatAsm_PP_color
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 5 }
		}
		localization_key = KOR_NatAsm_Ind_color
	}
}

defined_text = {
	name = KOR_NatAsm_vote_seats
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_current_ordinance_id = 0 }
		}
		localization_key = ""
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_current_ordinance_id > 0 }
		}
		localization_key = KOR_NatAsm_vote_seat_show
	}
}

defined_text = {
	name = KOR_NatAsm_current_faction_seats_dynamic
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 1 }
		}
		localization_key = KOR_NatAsm_DP_seats
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 2 }
		}
		localization_key = KOR_NatAsm_PPP_seats
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 3 }
		}
		localization_key = KOR_NatAsm_JP_seats
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 4 }
		}
		localization_key = KOR_NatAsm_PP_seats
	}
	text = {
		trigger = {
			check_variable = { KOR_NatAsm_faction = 5 }
		}
		localization_key = KOR_NatAsm_Ind_seats
	}
}

defined_text = {
	name = GetNatAsmspeaker
	text = {
		trigger = {
			has_country_flag = speaker_moon_hee_sang
		}
		localization_key = NatAsmSpeaker_moon_hee_sang
	}
	text = {
		trigger = {
			has_country_flag = speaker_park_byeong_seug
		}
		localization_key = NatAsmSpeaker_park_byeong_seug
	}
	text = {
		trigger = {
			has_country_flag = speaker_kim_jin_pyo
		}
		localization_key = NatAsmSpeaker_kim_jin_pyo
	}
	text = {
		trigger = {
			has_country_flag = speaker_woo_won_shik
		}
		localization_key = NatAsmSpeaker_woo_won_shik
	}
	text = {
		trigger = {
			has_country_flag = speaker_jeong_dong_yeong
		}
		localization_key = NatAsmSpeaker_jeong_dong_yeong
	}
	text = {
		trigger = {
			has_country_flag = speaker_cho_jeong_shik
		}
		localization_key = NatAsmSpeaker_cho_jeong_shik
	}
	text = {
		trigger = {
			has_country_flag = speaker_lee_in_yeong
		}
		localization_key = NatAsmSpeaker_lee_in_yeong
	}
	text = {
		trigger = {
			has_country_flag = speaker_jeong_cheong_rae
		}
		localization_key = NatAsmSpeaker_jeong_cheong_rae
	}
	text = {
		trigger = {
			has_country_flag = speaker_cho_seung_rae
		}
		localization_key = NatAsmSpeaker_cho_seung_rae
	}
	text = {
		trigger = {
			has_country_flag = speaker_jeong_jin_seok #국힘 2024 전반기
		}
		localization_key = NatAsmSpeaker_jeong_jin_seok
	}
	text = {
		trigger = {
			has_country_flag = speaker_cho_gyeong_tae #국힘 2024 후반기
		}
		localization_key = NatAsmSpeaker_cho_gyeong_tae
	}
	text = {
		trigger = {
			has_country_flag = speaker_ha_tae_gyung #국힘 2028 전반기
		}
		localization_key = NatAsmSpeaker_ha_tae_gyung
	}
	text = {
		trigger = {
			has_country_flag = speaker_kim_tae_ho #국힘 2028 후반기
		}
		localization_key = NatAsmSpeaker_kim_tae_ho
	}
	text = {
		trigger = {
			has_country_flag = speaker_jang_dong_hyeok #국힘 2032 전반기
		}
		localization_key = NatAsmSpeaker_jang_dong_hyeok
	}
	text = {
		trigger = {
			has_country_flag = speaker_bae_hyeon_jin #국힘 2032 후반기
		}
		localization_key = NatAsmSpeaker_bae_hyeon_jin
	}
	text = {
		trigger = {
			OR = {
				has_country_flag = speaker_vacant_2020
				has_country_flag = speaker_vacant_2022
				has_country_flag = speaker_vacant_2024
				has_country_flag = speaker_vacant_2028
				has_country_flag = speaker_vacant_2032
			}
		}
		localization_key = NatAsmSpeaker_vacant
	}
}
defined_text = {
	name = GetNameDPLoc
	text = {
		trigger = {
			has_country_flag = DP_name_NFP
		}
		localization_key = KOR_DP_LOC_NFP
	}
	text = {
		localization_key = KOR_DP_LOC_DPK
	}
}
defined_text = {
	name = GetNameRKPLoc
	text = {
		trigger = {
			has_country_flag = RKP_was_established
		}
		localization_key = KOR_RKP_LOC_RKP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameODPLoc
	text = {
		trigger = {
			has_country_flag = ODP_go_DPK
		}
		localization_key = KOR_ODP_LOC_ANNEXED
	}
	text = {
		localization_key = KOR_ODP_LOC_ODP
	}
}

defined_text = {
	name = GetNamePPPLoc
	text = {
		trigger = {
			has_country_flag = PPP_was_dismentled
			has_country_flag = KOR_PPP_remake_han_flag
		}
		localization_key = KOR_PPP_LOC_NP
	}
	text = {
		trigger = {
			has_country_flag = PPP_was_dismentled
			has_country_flag = KOR_PPP_remake_yoon_flag
		}
		localization_key = KOR_PPP_LOC_RC
	}
	text = {
		trigger = {
			has_country_flag = PPP_was_dismentled
			NOT = {
				has_country_flag = PPP_new_party_name
			}
		}
		localization_key = KOR_PPP_LOC_DISMENDTLED
	}
	text = {
		trigger = {
			has_country_flag = PPP_name_UFP
			has_country_flag = PPP_name_PPP
		}
		localization_key = KOR_PPP_LOC_PPP
	}
	text = {
		trigger = {
			has_country_flag = PPP_name_UFP
			NOT = {
				has_country_flag = PPP_name_PPP
			}
		}
		localization_key = KOR_PPP_LOC_UFP
	}
	text = {
		localization_key = KOR_PPP_LOC_LKP
	}
}

defined_text = {
	name = GetNameJPLoc
	text = {
		trigger = {
			has_country_flag = JP_name_KDLP
		}	
		localization_key = KOR_JP_LOC_KDLP
	}
	text = {
		trigger = {
			has_country_flag = JP_name_GJP
		}	
		localization_key = KOR_JP_LOC_GJP
	}
	text = {
		localization_key = KOR_JP_LOC_JP
	}
}
defined_text = {
	name = GetNameTPPLoc
	text = {
		trigger = {
			has_country_flag = TPP_name_TPP
			has_country_flag = KOR_election_of_NA_2023_by
		}	
		localization_key = KOR_TPP_LOC_TPP
	}
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2020
			NOT = {
				has_country_flag = KOR_election_of_NA_2023_by
			}
		}	
		localization_key = KOR_PARTY_LOC_NONE
	}
	text = {
		localization_key = KOR_TPP_LOC_PPSK
	}
}
defined_text = {
	name = GetNameLPLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2024_tw_defeat
		}
		localization_key = KOR_LP_LOC_LP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNamePPLoc
	text = {
		trigger = {
			has_country_flag = BP_to_PP
			has_country_flag = PPP_was_dismentled
			has_country_flag = PP_go_PPP
			has_country_flag = KOR_election_of_NA_ppp_dismentled_by
		}
		localization_key = KOR_PP_LOC_PP
	}
	text = {
		trigger = {
			has_country_flag = BP_to_PP
			has_country_flag = PPP_was_dismentled
			has_country_flag = PP_go_PPP
		}
		localization_key = KOR_PP_LOC_ANNEXED2
	}
	text = {
		trigger = {
			has_country_flag = BP_to_PP
			NOT = {
				has_country_flag = PPP_was_dismentled
			}
			has_country_flag = PP_go_PPP
		}
		localization_key = KOR_PP_LOC_ANNEXED
	}
	text = {
		trigger = {
			has_country_flag = BP_to_PP
		}
		localization_key = KOR_PP_LOC_PP
	}
	text = {
		localization_key = KOR_PP_LOC_BP
	}
}
defined_text = {
	name = GetNameRPLoc
	text = {
		trigger = {
			has_country_flag = RP_name_RP
		}
		localization_key = KOR_RP_LOC_RP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNamePDPLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2024_tw_defeat
		}
		localization_key = KOR_PDP_LOC_PDP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameKSDPLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2028_mtl
		}
		localization_key = KOR_KSDP_LOC_KSDP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameGPKLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2028_mtl
		}
		localization_key = KOR_GPK_LOC_GPK
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameBIPLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2028_mtl
		}
		localization_key = KOR_BIP_LOC_BIP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameHEOLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2028_mtl
		}
		localization_key = KOR_HEO_LOC_HEO
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
defined_text = {
	name = GetNameORPLoc
	text = {
		trigger = {
			has_country_flag = KOR_election_of_NA_2028_mtl
			has_country_flag = PPP_was_dismentled
		}
		localization_key = KOR_ORP_LOC_ORP
	}
	text = {
		localization_key = KOR_PARTY_LOC_NONE
	}
}
