Wiki

trigger · is_fully_decrypted

Definition

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

Description

checks if fully decrypted a cipher. Example is_fully_decrypted = GER

实战 · 配合 · 坑

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

实战用法

is_fully_decrypted 常用于情报系统相关的 mod 中,例如当玩家完全破解某国密码后解锁特殊决策、事件或国策分支。它可以作为 availabletrigger 块的前置条件,确保只有在密码完全破译后才允许执行后续操作。

# 示例:只有完全破解德国密码后,才能触发该决策
decision_GER_intel_exploit = {
    available = {
        is_fully_decrypted = GER
    }
    ...
}

配合关系

  • [decryption_progress](/wiki/trigger/decryption_progress):在 is_fully_decrypted 为假时,可用此 trigger 检查当前破译进度,实现分阶段的条件判断(如达到 50% 时给予提示)。
  • [add_decryption](/wiki/effect/add_decryption):配合使用,当破译进度不足时通过 effect 主动加速破译进程,与 is_fully_decrypted 形成"检查—推进"逻辑闭环。
  • [compare_intel_with](/wiki/trigger/compare_intel_with):破译完成后往往需要进一步比较双方情报值高低,二者常在同一 trigger 块中联合使用以判断情报优势。
  • [add_intel](/wiki/effect/add_intel):完全破解密码后通常作为奖励触发,与 is_fully_decrypted 搭配在 if 块中给予额外情报加成。

常见坑

  1. Scope 混用is_fully_decrypted 必须在 COUNTRY scope 下使用,新手容易误放在 STATE scope(如 any_owned_state 内部)中调用,导致脚本报错或条件永远不成立,使用前务必确认当前 scope 是国家级。
  2. target 填错= 右侧应填写被破解方的国家标签(如 GERUSA),而非己方标签或变量名;部分新手误以为填 THIS 即检查自身密码是否被破解,但实际语义是检查当前 scope 国家是否完全破解了 THIS 所指国家的密码,容易造成逻辑混乱。

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

is_fully_decrypted is commonly used in intelligence system-related mods, such as unlocking special decisions, events, or focus branches after a player has completely decrypted a target nation's cipher. It can serve as a prerequisite condition in available or trigger blocks, ensuring that subsequent operations are only permitted after the encryption is fully broken.

# Example: The following decision can only be triggered after completely decrypting Germany's cipher
decision_GER_intel_exploit = {
    available = {
        is_fully_decrypted = GER
    }
    ...
}

Synergy

  • [decryption_progress](/wiki/trigger/decryption_progress): When is_fully_decrypted evaluates to false, this trigger can be used to check the current decryption progress, enabling staged conditional logic (such as providing a hint when reaching 50%).
  • [add_decryption](/wiki/effect/add_decryption): Used in conjunction with is_fully_decrypted, when decryption progress is insufficient, this effect can actively accelerate the decryption process, forming a "check—advance" logical loop with is_fully_decrypted.
  • [compare_intel_with](/wiki/trigger/compare_intel_with): After decryption is complete, it is often necessary to further compare intelligence values between both sides; the two are commonly used together within the same trigger block to determine intelligence advantage.
  • [add_intel](/wiki/effect/add_intel): Typically triggered as a reward after complete cipher decryption, paired with is_fully_decrypted within an if block to grant additional intelligence bonuses.

Common Pitfalls

  1. Scope Misuse: is_fully_decrypted must be used within a COUNTRY scope. Beginners often mistakenly place it in a STATE scope (such as inside any_owned_state), causing script errors or conditions that never evaluate to true. Always verify that the current scope is at the nation level before use.
  2. Incorrect Target Assignment: The right side of = should contain the nation tag of the decrypted party (such as GER, USA), not your own tag or a variable name. Some beginners mistakenly think filling in THIS checks whether their own cipher has been decrypted, but the actual semantics is checking whether the current scope nation has completely decrypted the cipher of the nation referenced by THIS, easily leading to logical confusion.