Wiki

trigger · ideology_support_trigger

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Checks if the current scope has the specified ideology above the specified amount.
Usage: <Ideology> < <float>
Supported Ideologies: democratic, communism, fascism, neutrality.

实战 · 配合 · 坑

实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。

实战用法

ideology_support_trigger 常用于判断某国当前的意识形态支持率是否达到阈值,从而决定某个决策是否可用、某个事件是否触发,或某个国策路线是否解锁。例如在政治类 mod 中,可以设计"只有法西斯支持率超过 50% 才允许发动政变"的条件。

available = {
    ideology_support_trigger = {
        fascism > 0.5
    }
}

配合关系

  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology) — 通常与本 trigger 联用,既检查大众意识形态支持率,又确认当前领袖的意识形态,两者共同构成完整的政治状态判断。
  • [add_popularity](/wiki/effect/add_popularity) — 在 effect 块中配合使用,当支持率未达标时通过事件或决策追加人气值,使后续触发条件逐步满足。
  • [has_country_flag](/wiki/trigger/has_country_flag) — 常作为前置保护 flag,防止同一段政治剧情因支持率反复波动而重复触发。
  • [add_political_power](/wiki/effect/add_political_power) — 在支持率满足条件后给予政治点数奖励,形成"民意基础越强,执政资源越多"的机制闭环。

常见坑

  1. 比较符号写反或写错:官方语法是 <Ideology> < <float>(意为支持率大于指定值),但直觉上容易误写成 > 或混淆方向,导致条件永远不满足或永远为真;务必对照官方定义确认符号方向。
  2. 数值范围概念混淆:支持率是 0.0–1.0 的浮点数,新手常误填百分比整数(如写 50 而非 0.5),导致条件逻辑完全错误且不会报错,只会静默失效。

Hands-On Notes

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.

Hands-On Usage

ideology_support_trigger is commonly used to check whether a country's current ideology support rate meets a threshold, thereby determining whether a decision is available, an event should fire, or a national focus path should unlock. For example, in political mods, you can design conditions such as "allow a coup only if fascism support exceeds 50%".

available = {
    ideology_support_trigger = {
        fascism > 0.5
    }
}

Synergy

  • [has_country_leader_ideology](/wiki/trigger/has_country_leader_ideology) — Typically used in conjunction with this trigger to verify both the popular ideology support rate and the current leader's ideology, creating a comprehensive political state assessment.
  • [add_popularity](/wiki/effect/add_popularity) — Used alongside in effect blocks; when support falls short of the threshold, add popularity through events or decisions so subsequent trigger conditions are gradually satisfied.
  • [has_country_flag](/wiki/trigger/has_country_flag) — Often serves as a gating flag to prevent the same political narrative from repeatedly firing due to fluctuating support rates.
  • [add_political_power](/wiki/effect/add_political_power) — Awards political power after support rates meet conditions, creating a mechanic loop where "stronger popular support yields more governing resources".

Common Pitfalls

  1. Comparison operator reversed or mistyped — The official syntax is <Ideology> < <float> (meaning support rate greater than the specified value), but it's easy to accidentally write > or confuse the direction, causing the condition to never be satisfied or always be true. Always verify operator direction against the official definition.
  2. Confusion over value range concept — Support rates are floats between 0.0–1.0, but beginners often mistakenly enter percentage integers (such as 50 instead of 0.5), causing completely incorrect condition logic that won't error but will silently fail.