CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

can_be_commander_basic_trigger

can_be_commander_basic_trigger = { ARMY_OWNER = … }

game/common/scripted_triggers/00_war_and_peace_triggers.txt, line 619 (19 lines). Parameters: $ARMY_OWNER$.

can_be_commander_basic_trigger is a scripted trigger in Crusader Kings III, written at line 619 of its file. A call passes 1 parameter: ARMY_OWNER. The game's script calls it in 4 places, among them Request Commander (interaction), DescribingEducationOutcome (custom loc) and can_command_troops (scripted rules). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.

The comment above it in the file

If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.

What it checks

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (19 lines of game script)
can_be_commander_basic_trigger = {
	is_available_quick = {
		alive = yes
		adult = yes
		incapable = no
		hostage = no
	}

	OR = { # You can always lead your own armies
		this = $ARMY_OWNER$
		can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $ARMY_OWNER$ }
	}

	trigger_if = {
		limit = { $ARMY_OWNER$ = { is_ai = yes } }
		is_ai = yes
		highest_held_title_tier < tier_hegemony
	}
}

As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls can_be_commander_basic_trigger.

Character interactions (1)

Customizable localization (1)

  • DescribingEducationOutcome

Courtier guest management (1)

  • guest_management

Scripted rules (1)

  • can_command_troops

Source: game/common/scripted_triggers/00_war_and_peace_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?