Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL
Description
Sets the occupation law for an occupied country, occupied state, or the default occupation law of an occupying country.
- If THIS is a country and it's the same as the PREV country, then THIS's default law is set.
- If THIS is a country and it's different from the PREV country, then PREV's country law override for THIS is set.
- If THIS is a state, then PREV's state law override for THIS is set.
The token default_law is used to remove a country or state override, or to set a country's default law to the law defined with starting_law=yes.
Example:
GER = { set_occupation_law = foreign_civilian_oversight }
GER = { POL = { set_occupation_law = default_law } }
GER = { 123 = { set_occupation_law = military_governor_occupation } }
实战 · 配合 · 坑
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
实战用法
set_occupation_law 常用于占领事件或决策中,根据当前合规度、抵抗强度或战争进程动态切换占领政策,例如在 mod 中实现"当某地区合规度达到阈值时自动升级为更宽松的法律"。也可用于在国家被傀儡化或附属化时为占领国设置默认占领法,模拟更细致的政治控制逻辑。
# 德国对波兰 123 号州强制设置军事管制
GER = {
123 = {
set_occupation_law = military_governor_occupation
}
}
# 移除德国对波兰的州级覆盖,回退为默认法律
GER = {
POL = {
set_occupation_law = default_law
}
}