Wiki

effect · unlock_tactic

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Unlocks the specified combat tactic for the country.

	### Examples
	```
	GER = {
		unlock_tactic = tactic_masterful_blitz
	}
	```

实战 · 配合 · 坑

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

实战用法

unlock_tactic 常用于国策树、决议或事件中,为某国解锁特殊战术,强化其战斗机制表现,是制作历史向或架空 mod 时赋予大国独特军事风格的常见手段。例如,在德国完成某条闪击战国策后解锁专属战术:

focus = {
    id = GER_blitzkrieg_doctrine
    ...
    completion_reward = {
        GER = {
            unlock_tactic = tactic_masterful_blitz
        }
    }
}

配合关系

  • [add_ideas](/wiki/effect/add_ideas):通常与解锁战术同步添加军事思潮或将领特质 idea,共同营造某国军事体系的完整性。
  • [add_tech_bonus](/wiki/effect/add_tech_bonus):在国策奖励中同步给予科技研究加成,使战术解锁与教义科技推进协调一致。
  • [has_completed_focus](/wiki/trigger/has_completed_focus):作为前置条件判断,确保只有在特定国策完成后才触发战术解锁,避免提前生效。
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction):配合使用可降低相关教义的研究消耗,与战术解锁形成军事改革的完整奖励包。

常见坑

  1. 战术 token 拼写错误:战术名称必须与 common/combat_tactics/ 下定义的 token 完全一致,大小写敏感,若拼错游戏不会报错但效果静默失效,难以排查。
  2. 在非 COUNTRY scope 下调用:该 effect 仅支持 COUNTRY scope,若在 STATE 或 CHARACTER 等 scope 内直接书写会导致脚本错误,需用 OWNER = { unlock_tactic = ... } 等方式先切换 scope。

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

unlock_tactic is commonly used in focus trees, decisions, or events to unlock special tactics for a nation, enhancing its combat performance and serving as a standard way to grant major powers distinctive military styles when creating historical or alternate-history mods. For example, unlocking an exclusive tactic for Germany upon completing a certain blitzkrieg focus:

focus = {
    id = GER_blitzkrieg_doctrine
    ...
    completion_reward = {
        GER = {
            unlock_tactic = tactic_masterful_blitz
        }
    }
}

Synergy

  • [add_ideas](/wiki/effect/add_ideas): Typically paired with tactic unlocks to simultaneously add military doctrines or leader traits as ideas, creating a cohesive military system for the nation.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus): Grants concurrent research bonuses for technologies in focus rewards, ensuring that tactic unlocks align with doctrine tech progression.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Serves as a prerequisite condition to ensure tactic unlocks are triggered only after a specific focus is completed, preventing premature activation.
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction): Can be used together to reduce research costs for related doctrines, forming a complete military reform reward package alongside tactic unlocks.

Common Pitfalls

  1. Tactic token spelling errors: The tactic name must exactly match the token defined under common/combat_tactics/, including case sensitivity. If misspelled, the game will not report an error but the effect will silently fail, making it difficult to debug.
  2. Calling outside COUNTRY scope: This effect only supports COUNTRY scope. Calling it directly within STATE or CHARACTER scopes will cause script errors. Use scope switching like OWNER = { unlock_tactic = ... } to properly change scope first.