
# ==========================================
# 1. 濞撶鍤梼鐔告烦 (Guerrilla)
# ==========================================
defined_text = {
	name = GetCZDGuerrillaTier
	text = {
		trigger = { CZD = { check_variable = { CZD_guerrilla_power = 4 } } }
		localization_key = CZD_tier_dominating
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_guerrilla_power = 3 } } }
		localization_key = CZD_tier_influential
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_guerrilla_power = 2 } } }
		localization_key = CZD_tier_meddling
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_guerrilla_power = 1 } } }
		localization_key = CZD_tier_subdued
	}
	# 娣囨繂绨抽弰鍓с仛閿涙艾顩ч弸婊冨綁闁插繑婀崚婵嗩潗閸栨牭绱濇妯款吇閺勫墽銇?娑撯偓閼?
	text = {
		localization_key = CZD_tier_meddling
	}
}

# ==========================================
# 2. 瀵よ泛鐣ㄥú?(Yanan)
# ==========================================
defined_text = {
	name = GetCZDYananTier
	text = {
		trigger = { CZD = { check_variable = { CZD_yanan_influence = 4 } } }
		localization_key = CZD_tier_dominating
	
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_yanan_influence = 3 } } }
		localization_key = CZD_tier_influential
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_yanan_influence = 2 } } }
		localization_key = CZD_tier_meddling
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_yanan_influence = 1 } } }
		localization_key = CZD_tier_subdued
	}
	text = {
		localization_key = CZD_tier_meddling
	}
}

# ==========================================
# 3. 閸ヨ棄鍞村ú?(Domestic)
# ==========================================
defined_text = {
	name = GetCZDDomesticTier
	text = {
		trigger = { CZD = { check_variable = { CZD_domestic_influence = 4 } } }
		localization_key = CZD_tier_dominating
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_domestic_influence = 3 } } }
		localization_key = CZD_tier_influential
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_domestic_influence = 2 } } }
		localization_key = CZD_tier_meddling
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_domestic_influence = 1 } } }
		localization_key = CZD_tier_subdued
	}
	text = {
		localization_key = CZD_tier_meddling
	}
}

# ==========================================
# 4. 閼诲繗浠堝ú?(Soviet)
# ==========================================
defined_text = {
	name = GetCZDSovietTier
	text = {
		trigger = { CZD = { check_variable = { CZD_soviet_influence = 4 } } }
		localization_key = CZD_tier_dominating
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_soviet_influence = 3 } } }
		localization_key = CZD_tier_influential
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_soviet_influence = 2 } } }
		localization_key = CZD_tier_meddling
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_soviet_influence = 1 } } }
		localization_key = CZD_tier_subdued
	}
	text = {
		localization_key = CZD_tier_meddling
	}
}

# ==========================================
# 5. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? 閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor1Tooltip
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 0 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 1 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 2 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 3 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 4 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 5 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 6 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 7 } } }
		localization_key = CZD_ascended_advisor_1_tooltip_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_1_tooltip_empty
	}
}

defined_text = {
	name = GetCZDAdvisor1TraitText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 0 } } }
		localization_key = CZD_ascended_advisor_1_trait_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 1 } } }
		localization_key = CZD_ascended_advisor_1_trait_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 2 } } }
		localization_key = CZD_ascended_advisor_1_trait_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 3 } } }
		localization_key = CZD_ascended_advisor_1_trait_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 4 } } }
		localization_key = CZD_ascended_advisor_1_trait_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 5 } } }
		localization_key = CZD_ascended_advisor_1_trait_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 6 } } }
		localization_key = CZD_ascended_advisor_1_trait_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 7 } } }
		localization_key = CZD_ascended_advisor_1_trait_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_1_trait_empty
	}
}

# ==========================================
# 6. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? 閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor2Tooltip
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 0 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 1 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 2 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 3 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 4 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 5 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 6 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 7 } } }
		localization_key = CZD_ascended_advisor_2_tooltip_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_2_tooltip_empty
	}
}

defined_text = {
	name = GetCZDAdvisor2TraitText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 0 } } }
		localization_key = CZD_ascended_advisor_2_trait_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 1 } } }
		localization_key = CZD_ascended_advisor_2_trait_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 2 } } }
		localization_key = CZD_ascended_advisor_2_trait_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 3 } } }
		localization_key = CZD_ascended_advisor_2_trait_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 4 } } }
		localization_key = CZD_ascended_advisor_2_trait_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 5 } } }
		localization_key = CZD_ascended_advisor_2_trait_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 6 } } }
		localization_key = CZD_ascended_advisor_2_trait_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 7 } } }
		localization_key = CZD_ascended_advisor_2_trait_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_2_trait_empty
	}
}

# ==========================================
# 7. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? 閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor3Tooltip
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 0 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 1 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 2 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 3 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 4 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 5 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 6 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 7 } } }
		localization_key = CZD_ascended_advisor_3_tooltip_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_3_tooltip_empty
	}
}

defined_text = {
	name = GetCZDAdvisor3TraitText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 0 } } }
		localization_key = CZD_ascended_advisor_3_trait_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 1 } } }
		localization_key = CZD_ascended_advisor_3_trait_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 2 } } }
		localization_key = CZD_ascended_advisor_3_trait_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 3 } } }
		localization_key = CZD_ascended_advisor_3_trait_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 4 } } }
		localization_key = CZD_ascended_advisor_3_trait_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 5 } } }
		localization_key = CZD_ascended_advisor_3_trait_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 6 } } }
		localization_key = CZD_ascended_advisor_3_trait_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 7 } } }
		localization_key = CZD_ascended_advisor_3_trait_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_3_trait_empty
	}
}

# ==========================================
# 8. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? Name閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor1NameText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 0 } } }
		localization_key = CZD_ascended_advisor_1_name_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 1 } } }
		localization_key = CZD_ascended_advisor_1_name_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 2 } } }
		localization_key = CZD_ascended_advisor_1_name_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 3 } } }
		localization_key = CZD_ascended_advisor_1_name_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 4 } } }
		localization_key = CZD_ascended_advisor_1_name_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 5 } } }
		localization_key = CZD_ascended_advisor_1_name_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 6 } } }
		localization_key = CZD_ascended_advisor_1_name_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_1 = 7 } } }
		localization_key = CZD_ascended_advisor_1_name_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_1_name_empty
	}
}

# ==========================================
# 9. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? Name閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor2NameText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 0 } } }
		localization_key = CZD_ascended_advisor_2_name_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 1 } } }
		localization_key = CZD_ascended_advisor_2_name_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 2 } } }
		localization_key = CZD_ascended_advisor_2_name_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 3 } } }
		localization_key = CZD_ascended_advisor_2_name_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 4 } } }
		localization_key = CZD_ascended_advisor_2_name_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 5 } } }
		localization_key = CZD_ascended_advisor_2_name_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 6 } } }
		localization_key = CZD_ascended_advisor_2_name_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_2 = 7 } } }
		localization_key = CZD_ascended_advisor_2_name_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_2_name_empty
	}
}

# ==========================================
# 10. 閸忔氨娈戞０鍡楊嚤閺嶇绺?- 娴ｅ秶鐤? Name閸斻劍鈧焦鏋冮張?
# ==========================================
defined_text = {
	name = GetCZDAdvisor3NameText
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 0 } } }
		localization_key = CZD_ascended_advisor_3_name_empty
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 1 } } }
		localization_key = CZD_ascended_advisor_3_name_choe
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 2 } } }
		localization_key = CZD_ascended_advisor_3_name_kim
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 3 } } }
		localization_key = CZD_ascended_advisor_3_name_choe_h
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 4 } } }
		localization_key = CZD_ascended_advisor_3_name_mu
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 5 } } }
		localization_key = CZD_ascended_advisor_3_name_pak
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 6 } } }
		localization_key = CZD_ascended_advisor_3_name_kang
	}
	text = {
		trigger = { CZD = { check_variable = { CZD_ascended_advisor_3 = 7 } } }
		localization_key = CZD_ascended_advisor_3_name_nam
	}
	text = {
		localization_key = CZD_ascended_advisor_3_name_empty
	}
}

# ==========================================
# 閺€鎸庝笉缂佸繑绁圭€涳妇閮寸紒?- 閺€鎸庝笉鐠侯垳鍤?
# ==========================================
defined_text = {
	name = GetPoliticalLineName
	text = {
		trigger = {
			has_country_flag = CZD_current_line_proletariat
		}
		localization_key = CZD_line_proletariat_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_democracy
		}
		localization_key = CZD_line_democracy_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_technocracy
		}
		localization_key = CZD_line_technocracy_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_revisionism
		}
		localization_key = CZD_line_revisionism_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_militarism
		}
		localization_key = CZD_line_militarism_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_bureaucratic
		}
		localization_key = CZD_line_bureaucratic_name
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_syndicalism
		}
		localization_key = CZD_line_syndicalism_name
	}
	text = {
		localization_key = CZD_line_democracy_name
	}
}

defined_text = {
	name = GetPoliticalLineEffect
	text = {
		trigger = {
			has_country_flag = CZD_current_line_proletariat
		}
		localization_key = CZD_line_proletariat_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_democracy
		}
		localization_key = CZD_line_democracy_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_technocracy
		}
		localization_key = CZD_line_technocracy_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_revisionism
		}
		localization_key = CZD_line_revisionism_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_militarism
		}
		localization_key = CZD_line_militarism_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_bureaucratic
		}
		localization_key = CZD_line_bureaucratic_effect
	}
	text = {
		trigger = {
			has_country_flag = CZD_current_line_syndicalism
		}
		localization_key = CZD_line_syndicalism_effect
	}
	text = {
		localization_key = CZD_line_democracy_effect
	}
}

# ==========================================
# 鐎规ê鍎︾挧鍕獓闂冨墎楠囬崡杈ㄦ簚 - GUI閺勫墽銇?
# ==========================================

# 閸楄鲸婧€閻樿埖鈧焦妯夌粈?
defined_text = {
	name = GetCrisisStatusText
	text = {
		trigger = { has_country_flag = CZD_crisis_resolved }
		localization_key = CZD_crisis_status_resolved
	}
	text = {
		trigger = { has_country_flag = CZD_radical_line_active }
		localization_key = CZD_crisis_status_radical
	}
	text = {
		trigger = { has_country_flag = CZD_historical_line_active }
		localization_key = CZD_crisis_status_historical
	}
	text = {
		trigger = { has_country_flag = CZD_crisis_started }
		localization_key = CZD_crisis_status_active
	}
	text = {
		localization_key = CZD_crisis_status_dormant
	}
}

# 瑜版挸澧犵捄顖滃殠閺勫墽銇?
defined_text = {
	name = GetCrisisLineText
	text = {
		trigger = { has_country_flag = CZD_world_liberation_ending }
		localization_key = CZD_line_world_liberation
	}
	text = {
		trigger = { has_country_flag = CZD_wuzhangyuan_ending }
		localization_key = CZD_line_wuzhangyuan
	}
	text = {
		trigger = { has_country_flag = CZD_red_dynasty_ending }
		localization_key = CZD_line_red_dynasty
	}
	text = {
		trigger = { has_country_flag = CZD_radical_line_active }
		localization_key = CZD_line_radical
	}
	text = {
		trigger = { has_country_flag = CZD_historical_line_active }
		localization_key = CZD_line_historical
	}
	text = {
		trigger = { has_country_flag = CZD_crisis_started }
		localization_key = CZD_line_undecided
	}
	text = {
		localization_key = CZD_line_none
	}
}