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
- 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.
- 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.