Wiki

effect · add_daily_mastery

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Adds doctrine mastery daily for a certain duration.

	You can use flexible filters to have this effect apply to all tracks that match the specified
	folder, grand doctrine, subdoctrine or specific track. If a certain filter is not present, it will be counted as a pass.
	For example, you can add mastery to all active tracks in all folders by not specifying any filters at all.

	### Examples
	```
	GER = {
		add_daily_mastery = {
			amount = 0.1						# Amount of mastery to add per day
			days = 90							# Number of days to apply the daily mastery gain for
			name = [loc]                        # Loc key - will be used in descriptions to show the source of the mastery gain

			# FILTERS:
			folder = land						# Optional - will filter by tracks in the specified folder
			grand_doctrine = mobile_warfare		# Optional - will filter by tracks in folders with the specified grand doctrine
			sub_doctrine = mobile_infantry		# Optional - will filter by tracks with the specified subdoctrine
			track = infantry					# Optional - will filter by tracks of the specified type
			index = 1							# Optional - will filter by the track index within the folder (0-indexed).
		}
	}
	```

实战 · 配合 · 坑

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

实战用法

add_daily_mastery 适合在国家焦点、决议或事件中为玩家提供"持续一段时间内每日获得学说熟练度"的奖励,常用于表现某一军事改革运动或训练计划的长期效果。例如,一个"装甲战术革新"焦点可以让德国在 90 天内每日为机动战下的特定训练轨道积累熟练度:

focus = {
    id = GER_armored_tactics
    ...
    completion_reward = {
        GER = {
            add_daily_mastery = {
                amount = 0.1
                days = 90
                name = ger_armored_tactics_mastery
                folder = land
                grand_doctrine = mobile_warfare
                track = armor
            }
        }
    }
}

配合关系

  • [add_mastery](/wiki/effect/add_mastery)add_daily_mastery 提供随时间累积的持续增益,而 add_mastery 一次性直接添加熟练度,两者配合可实现"立竿见影+长期收益"的双重奖励结构。
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction):学说费用减免与熟练度增益协同,常在同一焦点或事件中一起授予,加快玩家解锁学说进度。
  • [has_completed_track](/wiki/trigger/has_completed_track):作为前置条件检查,确认某条轨道已完成后再触发持续熟练度奖励,避免对已满轨道的无效投入。
  • [add_timed_idea](/wiki/effect/add_timed_idea):用于同时添加一个有时限的 idea,在视觉和描述上与 add_daily_mastery 的持续期同步,给玩家明确的 UI 反馈。

常见坑

  1. name 字段缺失或 loc key 不存在name 用于在 UI 中显示熟练度来源说明,若对应的本地化键不存在,游戏不会报错但会显示原始 key 字符串,导致界面出现乱码般的文本,新手容易忽略这一本地化配对工作。
  2. 过滤器指定过于宽泛或未激活的轨道:若不填写任何过滤字段,效果会作用于"所有活跃轨道",若玩家当前实际上没有处于激活状态的对应轨道,效果将静默无效;新手常误以为是脚本写错,实则应先确认目标国家已开始对应学说轨道的研究。

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

add_daily_mastery is well-suited for national focuses, decisions, or events that reward players with "daily doctrine mastery gains over a period of time," typically representing the sustained effects of military reform movements or training programs. For example, an "Armored Tactics Innovation" focus can grant Germany daily mastery accumulation for a specific training track under Mobile Warfare over 90 days:

focus = {
    id = GER_armored_tactics
    ...
    completion_reward = {
        GER = {
            add_daily_mastery = {
                amount = 0.1
                days = 90
                name = ger_armored_tactics_mastery
                folder = land
                grand_doctrine = mobile_warfare
                track = armor
            }
        }
    }
}

Synergy

  • [add_mastery](/wiki/effect/add_mastery): add_daily_mastery provides sustained benefits that accumulate over time, while add_mastery grants mastery immediately. Used together, they create a dual-reward structure of "immediate impact plus long-term gains."
  • [add_doctrine_cost_reduction](/wiki/effect/add_doctrine_cost_reduction): Doctrine cost reduction synergizes with mastery gains and is commonly granted alongside add_daily_mastery in the same focus or event, accelerating players' doctrine unlock progression.
  • [has_completed_track](/wiki/trigger/has_completed_track): Serves as a prerequisite check to confirm a track's completion before triggering sustained mastery rewards, preventing wasted investment on already-maxed tracks.
  • [add_timed_idea](/wiki/effect/add_timed_idea): Can be used to add a time-limited idea simultaneously, synchronized visually and descriptively with the duration of add_daily_mastery, providing clear UI feedback to players.

Common Pitfalls

  1. Missing name field or non-existent localization key: The name field displays the mastery source description in the UI. If the corresponding localization key doesn't exist, the game won't error but will display the raw key string, resulting in garbled-looking text in the interface—a detail newcomers often overlook in their localization setup.
  2. Overly broad filters or specifying inactive tracks: If no filter fields are specified, the effect applies to "all active tracks." If the player hasn't actually activated the corresponding track, the effect silently fails; newcomers often mistakenly assume the script is broken when they should first verify that the target nation has begun researching the intended doctrine track.