命令百科

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. 过滤器指定过于宽泛或未激活的轨道:若不填写任何过滤字段,效果会作用于"所有活跃轨道",若玩家当前实际上没有处于激活状态的对应轨道,效果将静默无效;新手常误以为是脚本写错,实则应先确认目标国家已开始对应学说轨道的研究。