Wiki

effect · add_equipment_subsidy

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Adds an equipment subsidy to the country in scope.
Example:
GER = {
	add_equipment_subsidy = 
	{
		cic = 100 # Amount of CIC for the subsidy.
		equipment_type = support_equipment # The target archetype of the subsidy
		seller_tags = {RAJ AST} # The possible sellers that this subsidy can apply to. [Mutually exclusive with seller_trigger]
		seller_trigger = scripted_trigger_name # The name of a scripted trigger to check whether to apply the subsidy or not. [Mutually exclusive with seller_tags]
	}
}

实战 · 配合 · 坑

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

实战用法

add_equipment_subsidy 常用于实现"宗主国/盟友援助"类 mod 场景,例如让某个大国向附属国或盟友提供装备补贴,降低其采购成本。典型场景是在某国完成特定国策或达成协议后,触发对盟友的支援协议。

# 德国完成某协议后,向印度和澳大利亚提供支援装备补贴
GER = {
    add_equipment_subsidy = {
        cic = 150
        equipment_type = support_equipment
        seller_tags = { RAJ AST }
    }
}

配合关系

  • [create_import](/wiki/effect/create_import):可在建立装备进口合同的同时添加补贴,形成完整的装备援助流程。
  • [add_political_power](/wiki/effect/add_political_power):外交援助行为通常伴随政治资本消耗或奖励,二者常出现在同一 option 块中体现外交代价。
  • [has_completed_focus](/wiki/trigger/has_completed_focus):作为触发条件,确保只有在完成特定国策后才发放补贴,避免补贴被无条件触发。
  • [add_opinion_modifier](/wiki/effect/add_opinion_modifier):援助后同步添加好感度修正,配合补贴营造完整的外交互动效果。

常见坑

  1. seller_tagsseller_trigger 二选一:两者是互斥字段,不能同时写在同一个 add_equipment_subsidy 块中,否则脚本解析会报错或行为未定义;若需要动态判断卖家,应改用 seller_trigger 指向一个 scripted trigger。
  2. scope 必须是国家:新手有时在 state 作用域或 unit leader 作用域内调用此命令,导致效果静默失效,使用前务必确认当前执行块的 scope 为 COUNTRY。

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_equipment_subsidy is commonly used to implement "overlord/ally support" scenarios in mods, such as having a major power provide equipment subsidies to vassals or allies to reduce their procurement costs. A typical use case is triggering support agreements for allies after a nation completes a specific focus or reaches an agreement.

# After Germany completes a certain agreement, provide equipment subsidies to India and Australia
GER = {
    add_equipment_subsidy = {
        cic = 150
        equipment_type = support_equipment
        seller_tags = { RAJ AST }
    }
}

Synergy

  • [create_import](/wiki/effect/create_import): Can add subsidies while establishing equipment import contracts, forming a complete equipment aid workflow.
  • [add_political_power](/wiki/effect/add_political_power): Diplomatic aid actions typically involve political capital consumption or rewards; both often appear in the same option block to represent diplomatic costs.
  • [has_completed_focus](/wiki/trigger/has_completed_focus): Used as a trigger condition to ensure subsidies are only granted after completing a specific focus, preventing subsidies from being triggered unconditionally.
  • [add_opinion_modifier](/wiki/effect/add_opinion_modifier): Simultaneously add opinion modifiers after aid to work with subsidies and create a complete diplomatic interaction effect.

Common Pitfalls

  1. seller_tags and seller_trigger are mutually exclusive: These two fields cannot be written in the same add_equipment_subsidy block simultaneously, otherwise the script parser will error or produce undefined behavior. If dynamic seller determination is needed, use seller_trigger pointing to a scripted trigger instead.
  2. Scope must be a country: Beginners sometimes call this command within state or unit leader scopes, causing the effect to silently fail. Always verify that the executing block's scope is COUNTRY before use.