Create unit effect, just like in OOB, example:
create_unit = {
# unit detauls
division = "name = \"1. Northern Redemption Army\" division_template = \"Redemption Army\" start_experience_factor = 0.5"
# country to spawn unit for
owner = MAN
# a prov id can be specified
prioritize_location = 12406
# can be set to yes to be able to spawn units on enemy provs.
allow_spawning_on_enemy_provs = no
# province controllers can be scored using this scorer. otherwise it will prio your owned provs first, friendly provs second.
# it will also prio provs with scores and less units firstl
country_score = {
base = 100
modifier = {
tag = MAN
add = 100
}
}
count = 1 # can be specified to spawn more than one units
id = 42 # an id can be given to delete units later on divisional_commander_xp = 4 # give the division commander experience on unit creation }
实战 · 配合 · 坑
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
实战用法
create_unit 常用于剧情事件、国策完成后为某国生成历史感部队,例如在国策链末尾为玩家凭空生成一支精锐师,或在事件触发时为 AI 国家增援前线。配合 prioritize_location 可将部队尽量投放到指定省份,适合演绎特定战役的开局局面。