Wiki

trigger · is_lend_leasing

Definition

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

Description

is lend-leasing 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

is_lend_leasing is commonly used in events, decisions, or focuses related to lend-lease mechanics to determine whether the current country is actively providing lend-lease aid to a specific nation, thereby triggering different diplomatic or economic branches. For example, in a mod simulating an American aid system, you can use it to restrict certain decisions so they are only available when lend-lease has been implemented toward the target country:

# available block in a decision: only usable when the current country is lend-leasing to SOV
available = {
    is_lend_leasing = SOV
}

Synergy

  • [has_country_flag](/wiki/trigger/has_country_flag): Typically paired within the same trigger block—first check whether a flag is set (e.g., player manually enabled an aid policy), then layer is_lend_leasing for dual-condition validation to prevent accidental triggers.
  • [any_allied_country](/wiki/trigger/any_allied_country): Calling is_lend_leasing within the subscope of any_allied_country allows you to iterate through all allies and check whether at least one ally is receiving lend-lease from your country, ideal for implementing collective security logic.
  • [has_collaboration](/wiki/trigger/has_collaboration): Use in parallel within the same diplomatic/economic status check chain; both belong to the "relation state toward other nations" trigger category, and combining them lets you distinguish whether lend-lease and collaboration level are simultaneously satisfied.
  • [create_import](/wiki/effect/create_import): When is_lend_leasing returns true, you often follow it with create_import in the corresponding effect block to add supplementary resource imports, simulating the resource benefits that lend-lease supplies bring.

Common Pitfalls

  1. Confusion over target syntax: Beginners often mistakenly think the parameter should be a scope keyword (like THIS), but it should actually be the country tag of the recipient nation (such as USA or SOV). Incorrect syntax causes the condition to always fail silently with no error message, making it difficult to debug.
  2. Reversed scope direction: The subject of is_lend_leasing is the "lend-lease provider" (the current COUNTRY scope), checking "whom am I providing lend-lease to," not "who is providing lend-lease to me." If you want to check whether your country is receiving lend-lease, you must switch to the other nation's scope before calling it, otherwise the logic is completely inverted.