effect · promote_officer_to_general
Definition
- Supported scope:(none)
- Supported target:
none
Description
Promote the officer of the division to a general.
Example:
promote_officer_to_general = yes # yes/no is ignored
promote_officer_to_generalnonePromote the officer of the division to a general.
Example:
promote_officer_to_general = yes # yes/no is ignored
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
promote_officer_to_general 常用于事件或决策链中,将某个师的指挥官自动晋升为将领,适合制作"名将崛起"或战役奖励类 mod 场景。例如在一场重大胜利事件触发后,让玩家的精锐师团长直接升格为将领:
country_event = {
id = my_mod.1
# ...
option = {
name = my_mod.1.a
# 当前 scope 为该师的 division scope
promote_officer_to_general = yes
}
}
由于当前 scope 白名单中暂无同层级的 effect / trigger 命令,无法列出有效的交叉引用。建议在调用此 effect 前,在外层逻辑中确认目标师确实存在且拥有军官,以避免静默失败。