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