trigger · has_country_leader_ideology
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
Checks the Ideology of the active country leader
has_country_leader_ideologyCOUNTRYnoneChecks the Ideology of the active country leader
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
has_country_leader_ideology 常用于区分不同意识形态领袖下的事件选项或决议可用性,例如判断当前执政者是否属于法西斯主义,从而解锁特定的战争借口或国策分支。在多派系内战 mod 中,也常用来在同一国家标签下根据领袖意识形态动态切换可用的决策池。
# 仅当国家领袖为法西斯主义时,该决议才可用
available = {
has_country_leader_ideology = fascism_ideology
}
[has_country_leader](/wiki/trigger/has_country_leader):先用此 trigger 确认特定角色正在执政,再用 has_country_leader_ideology 精确校验其意识形态,两者叠用可避免误判同名角色。[has_country_leader_with_trait](/wiki/trigger/has_country_leader_with_trait):意识形态相同的领袖可能风格迥异,追加 trait 检查可以做到"法西斯且具备某特质"的双重过滤。[any_character](/wiki/trigger/any_character):当需要遍历候选领袖而非当前执政者时,配合此 trigger 可检查潜在替代者的意识形态是否满足条件。[add_country_leader_role](/wiki/effect/add_country_leader_role):确认当前领袖意识形态后,用此 effect 为其追加额外领袖角色(如同时兼任党政双职),逻辑上形成"检测→赋权"的完整闭环。fascism)与子意识形态(如 nazism)是两层概念,此 trigger 接受的是 sub-ideology 键名,若直接填写分组名将永远返回假,需确认填入的是 _ideology 后缀的具体子意识形态字符串。Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.
has_country_leader_ideology is commonly used to differentiate event options or decision availability across different ideological leaders. For example, it determines whether the current ruling leader belongs to fascism, thereby unlocking specific war justifications or national focus branches. In multi-faction civil war mods, it is also frequently used to dynamically switch available decision pools within the same country tag based on the leader's ideology.
# This decision is only available when the country's leader has fascist ideology
available = {
has_country_leader_ideology = fascism_ideology
}
[has_country_leader](/wiki/trigger/has_country_leader): First use this trigger to confirm that a specific character is in power, then use has_country_leader_ideology to precisely verify their ideology. Using both together avoids misidentification of characters with the same name.[has_country_leader_with_trait](/wiki/trigger/has_country_leader_with_trait): Leaders with the same ideology may have vastly different styles. Adding trait checks enables double filtering for "fascist AND possesses certain trait".[any_character](/wiki/trigger/any_character): When iterating through candidate leaders rather than the current ruler, pair this trigger to check whether potential replacements' ideologies meet the conditions.[add_country_leader_role](/wiki/effect/add_country_leader_role): After confirming the current leader's ideology, use this effect to assign them an additional leader role (e.g., simultaneously holding both party and government positions), forming a complete "detect → empower" loop.fascism) and sub-ideologies (such as nazism) are two-tier concepts. This trigger accepts sub-ideology key names; if you directly input a group name it will always return false. Ensure you input the concrete sub-ideology string with the _ideology suffix.