Wiki

trigger · decryption_progress

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks decryption ratio against a country. Example: 
decryption_progress = { 
 target = GER
 value > 0.5
} 
#or decryption_progress@GER as variable

实战 · 配合 · 坑

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

实战用法

decryption_progress 常用于情报系统相关的 mod 中,例如当某国破译进度超过阈值时解锁特殊决议或事件。例如当玩家对德国的解密率达到一定程度后才允许触发间谍行动事件:

# 在 decision 的 available 块中
available = {
    decryption_progress = {
        target = GER
        value > 0.5
    }
}

配合关系

  • [add_decryption](/wiki/effect/add_decryption):增加对目标国的解密值,与本 trigger 配合构成"积累-检测"闭环,常用于决议/焦点的 complete_effect 中推进破译进度。
  • [compare_intel_with](/wiki/trigger/compare_intel_with):同属情报体系的条件判断,常与 decryption_progress 并列使用,进一步细化"解密率够高 + 情报优势足够"才触发某事件的复合条件。
  • [add_intel](/wiki/effect/add_intel):在破译进度满足条件后作为奖励发放情报,逻辑上形成"先解密、后获情报"的自然流程。
  • [create_intelligence_agency](/wiki/effect/create_intelligence_agency):情报机构创建后才有意义推进解密,通常作为前置 effect,之后再用本 trigger 检测破译成果。

常见坑

  1. 忘记指定 targetdecryption_progress 必须针对某个具体国家标签,直接写 value > 0.5 而不带 target = TAG 会导致脚本报错或静默失效,新手容易漏掉这一必填字段。
  2. 混淆 scope:本 trigger 只能在 COUNTRY scope 下使用,若放在 STATE 或 CHARACTER scope 的 limit 块内会无效甚至报错,需确保外层 scope 是国家。

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

decryption_progress is commonly used in intelligence system-related mods, for example to unlock special decisions or events when a nation's decryption progress exceeds a threshold. For instance, allowing the player to trigger a spy operation event only after achieving a certain decryption rate against Germany:

# In the available block of a decision
available = {
    decryption_progress = {
        target = GER
        value > 0.5
    }
}

Synergy

  • [add_decryption](/wiki/effect/add_decryption): Increases decryption value against the target nation, forming an "accumulate-check" feedback loop with this trigger, commonly used in the complete_effect of decisions/focuses to advance decryption progress.
  • [compare_intel_with](/wiki/trigger/compare_intel_with): Also part of the intelligence system's conditional checks, often used alongside decryption_progress to further refine compound conditions such as "decryption rate high enough + sufficient intelligence advantage" before triggering certain events.
  • [add_intel](/wiki/effect/add_intel): Grants intelligence as a reward after decryption progress conditions are met, logically forming a natural sequence of "decrypt first, then gain intelligence".
  • [create_intelligence_agency](/wiki/effect/create_intelligence_agency): Only meaningful to advance decryption after an intelligence agency is created, typically used as a prerequisite effect, then this trigger checks the decryption results afterward.

Common Pitfalls

  1. Forgetting to specify target: decryption_progress must target a specific nation tag; writing value > 0.5 directly without target = TAG will cause script errors or silent failure, a common mistake among newcomers to overlook this required field.
  2. Confusing scope: This trigger can only be used within COUNTRY scope; placing it in the limit block of STATE or CHARACTER scope will be ineffective or cause errors, so ensure the outer scope is a nation.