Wiki

effect · inherit_technology

Definition

  • Supported scope:COUNTRY
  • Supported target:THIS, ROOT, PREV, FROM, OWNER, CONTROLLER, OCCUPIED, CAPITAL

Description

Copies over technology state from target

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

inherit_technology is commonly used in annexation, puppet-to-direct-control conversion, or special event scenarios, allowing the player nation or AI to directly acquire the target nation's technology tree state, eliminating the tedious process of granting technologies one by one. For example, in a "technology inheritance" event, allowing the new regime to fully inherit the research achievements of the previous regime:

country_event = {
    id = my_mod.42
    # ...
    option = {
        name = my_mod.42.a
        # Current country inherits all technology state from country FROM
        inherit_technology = FROM
    }
}

Synergy

  • [annex_country](/wiki/effect/annex_country) — After annexing the target nation, you typically need to simultaneously inherit its technologies; combining these two restores the logic of "complete takeover."
  • [has_completed_focus](/wiki/trigger/has_completed_focus) — Use to trigger inheritance after a focus completes, ensuring technology transfer only executes at specific national spirit nodes and prevents premature activation.
  • [add_tech_bonus](/wiki/effect/add_tech_bonus) — If you only want partial acceleration rather than wholesale copying, this effect can be paired with inherit_technology to provide additional bonuses to specific fields as a supplement.
  • [add_research_slot](/wiki/effect/add_research_slot) — After inheriting technologies, simultaneously expand research slots to ensure the target nation's subsequent research capacity keeps pace, making the logic more complete.

Common Pitfalls

  1. Incorrect scope assignment: The executor of inherit_technology is the "recipient" and the target is the "source." Beginners often reverse these, causing the source nation's technologies to be cleared or the effect to fail entirely. Always clarify which nation is the current scope.
  2. Using on puppets/occupied nations without scope switching: Writing inherit_technology = OVERLORD directly in the overlord's scope may seem logical, but if the current scope is not the intended recipient, the result will be mismatched. Use iterators like every_subject_country to enter the correct scope before executing the effect.