Hands-On Usage
create_production_license is commonly used in diplomatic or technology events to grant one nation the production rights to an equipment variant from another nation. Typical scenarios include smaller nations purchasing production licenses for aircraft or tanks from larger powers. A classic case is when the player completes a diplomatic focus and automatically grants production licenses to allies.
# Germany grants Hungary a production license for the Do 22 aircraft
GER = {
create_production_license = {
target = HUN
cost_factor = 0.75
new_prioritised = no
equipment = {
type = small_plane_naval_bomber_airframe
version_name = "Do 22"
}
}
}
Synergy
[has_any_license](/wiki/trigger/has_any_license): Check whether the target nation already holds the license before granting it to avoid logical conflicts from duplicate licenses.
[create_equipment_variant](/wiki/effect/create_equipment_variant): Typically use this command first to create the equipment variant in the granting nation's technology tree, then use create_production_license to grant that variant. This ensures the version_name matches correctly.
[add_opinion_modifier](/wiki/effect/add_opinion_modifier): Stack diplomatic opinion modifiers after granting the license to simulate improved relations from technology transfer.
[diplomatic_relation](/wiki/effect/diplomatic_relation): Use alongside production licenses to establish a more comprehensive military cooperation framework (such as setting military access rights or vassal relationships).
Common Pitfalls
- License creation fails silently due to missing variant: If the
version_name or version cannot find a matching equipment variant in the granting nation, the game will not produce an error—the license simply will not be created. Always ensure the variant exists through create_equipment_variant or verify that a built-in variant actually exists before calling this command.
- Priority confusion between
new_prioritised and version/version_name: Setting new_prioritised = yes (the default value) will ignore the version field and select the newest variant instead, but will still match version_name. If you fill in version but forget to disable new_prioritised, the version will be silently ignored, resulting in granting a production license for an unintended variant.