Wiki

trigger · has_army_experience

Definition

  • Supported scope:COUNTRY
  • Supported target:none

Description

Compares current country's army experience with right side value.
 has_army_experience < <value>

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

has_army_experience is commonly used to check whether a country's current army experience meets a certain threshold. Typical scenarios include restricting certain decisions or national focuses that consume large amounts of army experience to only be available when experience reserves are sufficient, or determining in AI strategies whether there is capacity to research new doctrines. For example, to enforce an experience threshold in a decision's available block:

available = {
    has_army_experience > 50
}

Synergy

  • [has_air_experience](/wiki/trigger/has_air_experience): Used in parallel with air experience checks. When a decision consumes multiple types of experience, both experience reserves can be validated simultaneously within the same available block.
  • [army_experience](/wiki/effect/army_experience): The command to consume or add army experience within an effect block. Typically paired with this trigger—first use the trigger to confirm sufficient experience exists, then execute the effect to deduct it, preventing experience from going negative.
  • [has_doctrine](/wiki/trigger/has_doctrine): Checks which doctrines a country has researched. Combined with has_army_experience, it enables building composite unlock conditions such as "has sufficient experience reserves AND meets doctrine prerequisites."
  • [command_power](/wiki/trigger/command_power): A similar value-comparison trigger that frequently appears alongside has_army_experience in the same available block, setting thresholds for multiple command resources simultaneously.

Common Pitfalls

  1. Forgetting comparison operators: Beginners often write has_army_experience = 50 without including comparison operators like < / > / >=, causing script parsing errors or unexpected results. This trigger's semantics require comparison, so the operator must be explicitly stated.
  2. Placing the trigger in an effect block: has_army_experience is a pure condition check and cannot be placed directly in an effect block as a deduction command. Actual experience consumption requires the army_experience effect. Confusing the two results in experience being neither properly validated nor properly consumed.