Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL
Description
Compare the absolute, percentage based, intel level the scoped country has over
the specified one:
GER = {
# is true if all predicates are satisfied
intel_level_over = {
target = POL
civilian_intel > 0.5 # GER has more than 50% civ. intel over POL
army_intel = 0 # GER has no army intel over POL
navy_intel > 0 # GER has at least some navy intel over POL
# airforce_intel is not specified and thus ignored in the comparison
# NOTE: since we are comparing the intel level of a country over another,
# checking for values less than 0 does not make sense
# NOTE: since we are comparing percentages, using values greater than 1
# does not make sense.
}
}
实战 · 配合 · 坑
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
实战用法
intel_level_over 常见于谍报系统相关的 mod 场景,例如当一国对目标国的情报渗透达到一定程度后才解锁特殊决策、外交选项或特工行动。比如你想实现"只有当德国对波兰的民事情报超过 50% 时才能触发某个间谍事件"的逻辑,就可以用它作为 available 或 trigger 块的前置条件。
# 示例:德国对法国拥有足够情报时才允许某决策
decision_example = {
available = {
tag = GER
intel_level_over = {
target = FRA
civilian_intel > 0.5
army_intel > 0.3
}
}
# ...
}