trigger · attack_skill_level
Definition
- Supported scope:
CHARACTER,COMBATANT - Supported target:
none
Description
Compares attack skill level of a unit leader.
Example: attack_skill_level > 5
attack_skill_levelCHARACTER, COMBATANTnoneCompares attack skill level of a unit leader.
Example: attack_skill_level > 5
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.
attack_skill_level is commonly used to unlock general traits, trigger events, or determine decision availability—for example, only generals with sufficient attack skill levels can receive specific titles or trigger exclusive events. A typical scenario is within custom general progression systems, where it serves as a promotion threshold condition.
# Only allow a decision to be selected when the general's attack skill exceeds 4
available = {
is_corps_commander = yes
attack_skill_level > 4
}
[defense_skill_level](/wiki/trigger/defense_skill_level): Attack and defense skills are often used together to construct compound conditions for "well-rounded generals" or "specialized generals."[has_trait](/wiki/trigger/has_trait): After confirming a general meets the attack skill threshold, further check whether they already possess the relevant trait to avoid duplicate grants.[add_attack](/wiki/effect/add_attack): As a complementary effect, when attack_skill_level meets prerequisite conditions, use this effect to further boost attack values, enabling conditional growth logic.[skill](/wiki/trigger/skill): The skill trigger checks a general's overall level; combining it with attack_skill_level allows you to distinguish between "high overall strength but weak attack" and "specialist-type" generals for refined filtering.attack_skill_level = 5, but this trigger should use comparison operators like >, <, >=, <= rather than the equals sign. Using assignment syntax here is ineffective or produces unexpected behavior.any_army_leader or every_unit_leader before using it.