Wiki

trigger · is_active_decryption_bonuses_enabled

Definition

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

Description

checks if the country activated their active cipher decryption bonuses. Example is_active_decryption_bonuses_enabled = GER

实战 · 配合 · 坑

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

实战用法

在谍报系统相关 mod 中,若你希望某决策或焦点仅在己方已激活主动解密加成时才可用,可用此 trigger 做门控检查。例如,设计一个"深度破译行动"决策,要求目标国正在被本国激活主动解密加成才允许触发:

available = {
    is_active_decryption_bonuses_enabled = GER
    decryption_progress = {
        target = GER
        value > 0.5
    }
}

配合关系

  • [decryption_progress](/wiki/trigger/decryption_progress):通常与本 trigger 联用,先确认主动解密加成已激活,再进一步判断对目标国的解密进度是否达到阈值,两者共同构成完整的谍报条件链。
  • [add_decryption](/wiki/effect/add_decryption):在 effect 块中用于提升对目标国的解密值,常作为满足本 trigger 条件后的奖励效果,形成"激活加成 → 检测 → 增强破译"的逻辑闭环。
  • [compare_intel_with](/wiki/trigger/compare_intel_with):在确认解密加成激活后,进一步比对对目标国的情报量是否充足,两者配合可实现多层次的谍报条件判断。

常见坑

  1. scope 混淆:此 trigger 必须在 COUNTRY scope 下使用,等号右侧填写的是被侦测的目标国 tag,而非"谁激活了加成"——新手常误以为右侧应填己方国家 tag,导致判断逻辑完全颠倒。
  2. 单向关系理解错误:该 trigger 检查的是当前 scope 国家是否对右侧指定国家激活了主动解密加成,若想互相检查需分别写两条,不能用一条 trigger 同时覆盖双向关系。

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

In intelligence system-related mods, if you want a certain decision or focus to be available only when your country has an active decryption bonus enabled, you can use this trigger as a gating check. For example, designing a "Deep Decryption Operation" decision that requires the target nation to currently have an active decryption bonus from your country before it can be triggered:

available = {
    is_active_decryption_bonuses_enabled = GER
    decryption_progress = {
        target = GER
        value > 0.5
    }
}

Synergy

  • [decryption_progress](/wiki/trigger/decryption_progress): Typically used in conjunction with this trigger. First confirm that the active decryption bonus is enabled, then further check whether the decryption progress against the target nation reaches the threshold. Together they form a complete intelligence condition chain.
  • [add_decryption](/wiki/effect/add_decryption): Used in effect blocks to increase the decryption value against the target nation. It commonly serves as a reward effect after satisfying this trigger's conditions, forming a logic loop of "activate bonus → detect → enhance decryption".
  • [compare_intel_with](/wiki/trigger/compare_intel_with): After confirming that the decryption bonus is active, further compare whether the intelligence amount against the target nation is sufficient. Together they enable multi-layered intelligence condition judgments.

Common Pitfalls

  1. Scope confusion: This trigger must be used under COUNTRY scope. The tag on the right side of the equals sign is the target nation being monitored, not "who activated the bonus"—newcomers often mistakenly think the right side should contain their own nation tag, causing the logic to be completely inverted.
  2. Misunderstanding one-way relationships: This trigger checks whether the current scope nation has enabled an active decryption bonus against the specified nation on the right side. To check both directions, you need to write two separate triggers; a single trigger cannot cover bidirectional relationships.