Hands-On Usage
is_licensing_to is commonly used to check whether the current nation is exporting a specific equipment license to a target country. It's ideal for diplomatic events, decisions, or AI strategies to verify licensing relationships. For example, in a mod that restricts players from freely proliferating advanced tank technology, you can use it as an available condition to prevent players from repeatedly initiating licensing negotiations when authorization already exists:
available = {
NOT = {
is_licensing_to = {
target = GER
archetype = medium_tank_equipment
}
}
}
Synergy
[create_production_license](/wiki/effect/create_production_license): After confirming that no license exists, use this effect to formally establish the licensing agreement. Together, they form a complete "check-then-create" workflow.
[has_any_license](/wiki/trigger/has_any_license): Can be used in parallel; the former checks the direction of authorization (am I licensing to the other party), while the latter checks whether the current nation holds any license. Combined, they cover bidirectional licensing state assessment.
[any_subject_country](/wiki/trigger/any_subject_country): Often nested outside this trigger to iterate through all subject nations and check whether the overlord is exporting a specific equipment license to a particular vassal.
[break_embargo](/wiki/effect/break_embargo): When a licensing relationship needs to be terminated due to diplomatic changes, you typically need to first confirm the authorization exists via is_licensing_to, then trigger relevant penalties or termination logic.
Common Pitfalls
archetype and equipment cannot be used simultaneously: The official specification explicitly states that if you specify archetype, you should not also include an equipment block, otherwise script parsing may fail or behave unexpectedly. Using archetype performs fuzzy matching (matching all variants under that archetype), while equipment performs exact matching—these are mutually exclusive semantically.
- Direction is easily reversed: This trigger executes in the scope of the licensing nation (the exporter), and
target is the receiving nation. Beginners sometimes mistakenly use this trigger in the scope of the licensed nation to check "did I receive a license from another nation"—this is incorrect. Use [has_any_license](/wiki/trigger/has_any_license) instead, or switch scope to the licensing nation before checking.