Wiki

trigger · network_strength

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

checks network strength you have in a country. Examples: 
# country has a network strength greater than 50% over germany
network_strength = { 
 target = GER
 value > 50
}

# country has a network strength greater than 50% over germany in state 53
network_strength = { 
 target = GER
 state = 53 value > 50
}

# country has a network strength greater than 50% in state 53, regardless of the target
network_strength = { 
 state = 53
 value > 50
}

实战 · 配合 · 坑

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

实战用法

network_strength 常用于情报系统相关的 mod 场景,例如判断玩家在目标国的渗透程度是否达到阈值,从而解锁特定决策或事件分支。也可以用于 AI 策略逻辑中,限制某国只有在对特定州建立足够情报网络后才能触发间谍行动或协作相关内容。

# 当本国在德国的情报网络强度超过 60% 时,允许激活某决策
available = {
    network_strength = {
        target = GER
        value > 60
    }
}

# 仅检查特定州(如首都州)的网络强度
trigger = {
    network_strength = {
        target = GER
        state = 4
        value > 40
    }
}

配合关系

  • [has_collaboration](/wiki/trigger/has_collaboration):协作度与网络强度通常同步增长,常一起检查以判断对目标国的渗透是否全面达标。
  • [has_active_mission](/wiki/trigger/has_active_mission):情报任务(mission)激活中才可能积累网络强度,常用于前置条件确认任务正在执行。
  • [add_collaboration](/wiki/effect/add_collaboration):当网络强度达到阈值后触发该 effect,将情报优势转化为实际的协作度收益。
  • [decryption_progress](/wiki/trigger/decryption_progress):与解密进度配合使用,综合衡量对目标国的情报控制程度,避免单一指标判断失准。

常见坑

  1. 省略 target 字段时范围不明确:不写 target 时,trigger 会检查本国在指定 state 内的网络强度,但新手容易误以为会检查所有国家或当前 scope 目标国,实际上省略 target 仅对 state 维度生效,不等于"任意国家"——若两个字段都省略,脚本可能直接报错或产生未定义行为。
  2. 将 scope 用错国家network_strength 的 scope 是拥有情报网络的一方(即派遣方),target 才是被渗透的目标国。新手常将 scope 切换到目标国后再写 target = ROOT,导致逻辑完全反转,检查的是目标国对自己的网络强度而非预期方向。

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

network_strength is commonly used in intelligence system-related mod scenarios, such as checking whether the player's infiltration level in a target nation reaches a threshold to unlock specific decisions or event branches. It can also be employed in AI strategy logic to restrict a nation from triggering espionage operations or collaboration-related content until sufficient intelligence networks have been established in a specific state.

# Allow activating a decision when this nation's intelligence network strength in Germany exceeds 60%
available = {
    network_strength = {
        target = GER
        value > 60
    }
}

# Only check network strength in a specific state (e.g., capital state)
trigger = {
    network_strength = {
        target = GER
        state = 4
        value > 40
    }
}

Synergy

  • [has_collaboration](/wiki/trigger/has_collaboration): Collaboration level and network strength typically grow in tandem; check both together to verify comprehensive infiltration of the target nation.
  • [has_active_mission](/wiki/trigger/has_active_mission): Intelligence missions (mission) must be active to accumulate network strength; commonly used as a prerequisite to confirm the mission is executing.
  • [add_collaboration](/wiki/effect/add_collaboration): Once network strength reaches the threshold, trigger this effect to convert intelligence advantage into actual collaboration benefits.
  • [decryption_progress](/wiki/trigger/decryption_progress): Use in combination with decryption progress to holistically evaluate intelligence control over the target nation, avoiding misjudgment from a single metric.

Common Pitfalls

  1. Ambiguous scope when omitting the target field: Without specifying target, the trigger checks this nation's network strength within the designated state, but beginners often mistakenly assume it checks all nations or the current scope's target. Omitting target only applies to the state dimension and does not mean "any nation"—if both fields are omitted, the script may error or produce undefined behavior.
  2. Swapping the scope to the wrong nation: The scope of network_strength belongs to the side possessing the intelligence network (the dispatching party), while target is the infiltrated nation. Beginners often switch scope to the target nation and then write target = ROOT, completely reversing the logic and checking the target's network strength against itself rather than the intended direction.