effect · add_doctrine_cost_reduction
Definition
- Supported scope:
COUNTRY - Supported target:
none
Description
adds a limited use cost reduction for doctrines
add_doctrine_cost_reductionCOUNTRYnoneadds a limited use cost reduction for doctrines
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
add_doctrine_cost_reduction 常用于奖励玩家完成特定国策、决策或事件后,给予一次性的教义研究费用折扣,帮助国家快速推进军事条令树。例如在"军事改革"类国策完成后,赠予玩家数次教义价格减免以模拟军事学说突破的历史感。
# 国策完成效果块示例
focus = {
id = military_doctrine_reform
...
completion_reward = {
add_doctrine_cost_reduction = {
name = military_reform_bonus
cost = 0.5
uses = 2
category = land_doctrine
}
}
}
[has_completed_focus](/wiki/trigger/has_completed_focus):先判断玩家是否完成了某个前置国策,再触发折扣奖励,避免折扣在不合逻辑的时机生效。[add_political_power](/wiki/effect/add_political_power):研究教义通常消耗政治点数,配合一同发放,使奖励包更加完整、符合设计节奏。[can_research](/wiki/trigger/can_research):在条件判断块中验证该教义类别当前是否可研究,防止折扣在无意义状态下浪费。[add_tech_bonus](/wiki/effect/add_tech_bonus):同为研究加速类效果,两者组合可同时覆盖"折扣次数"与"研究速度加成"两个维度,形成更全面的科研奖励。category 或填错字段名:该 effect 通常需要明确目标教义类别(如 land_doctrine、naval_doctrine),若字段缺失或拼写错误,折扣将不会正确绑定到对应教义,且游戏不一定报错,导致效果静默失效。uses 参数控制可使用次数,多次触发同一 effect 并不会将次数合并到同一折扣条目,需注意设计触发条件的唯一性,否则玩家可通过反复触发事件刷取大量折扣次数。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.
add_doctrine_cost_reduction is commonly used to reward players with a one-time doctrine research cost discount after completing specific focuses, decisions, or events, helping nations rapidly advance through their military doctrine trees. For example, upon completing a "Military Reform" type focus, you might grant players several doctrine price reductions to simulate the historical progression of military doctrine breakthroughs.
# Example focus completion reward block
focus = {
id = military_doctrine_reform
...
completion_reward = {
add_doctrine_cost_reduction = {
name = military_reform_bonus
cost = 0.5
uses = 2
category = land_doctrine
}
}
}
[has_completed_focus](/wiki/trigger/has_completed_focus): First verify that the player has completed a prerequisite focus before triggering the discount reward, preventing the discount from taking effect at illogical moments.[add_political_power](/wiki/effect/add_political_power): Doctrine research typically consumes political power, so granting it alongside the discount creates a more complete reward package that aligns with design pacing.[can_research](/wiki/trigger/can_research): In conditional blocks, verify whether the doctrine category is currently researchable, preventing the discount from being wasted in meaningless states.[add_tech_bonus](/wiki/effect/add_tech_bonus): Both are research acceleration effects; combining them covers both the "discount uses" and "research speed bonus" dimensions simultaneously, forming a more comprehensive research reward.category or misspelling the field name: This effect typically requires explicitly designating the target doctrine category (such as land_doctrine or naval_doctrine). If the field is missing or misspelled, the discount will not bind correctly to the corresponding doctrine, and the game may not report an error, causing the effect to fail silently.uses parameter controls how many times the discount can be used. Triggering the same effect multiple times will not merge the uses into a single discount entry. Pay attention to ensuring the uniqueness of trigger conditions; otherwise, players can exploit repeated event triggering to farm large quantities of discount uses.