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

Scripted trigger

activate_struggle_catalyst_warfare_check_attacker_involvement_trigger

activate_struggle_catalyst_warfare_check_attacker_involvement_trigger = { CATALYST = … INVOLVEMENT = … VAR_SCOPE = … }

game/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt, line 246 (19 lines). Parameters: $CATALYST$, $INVOLVEMENT$, $VAR_SCOPE$.

activate_struggle_catalyst_warfare_check_attacker_involvement_trigger is a scripted trigger in Crusader Kings III, written at line 246 of its file. A call passes 3 parameters: CATALYST, INVOLVEMENT and VAR_SCOPE. The game's script calls it in 1 place, among them fp3_struggle_apply_supporter_detractor_war_won_catalysts_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt.

What it checks

Every line of it is script with no tooltip text: the script is below.

The script as written (19 lines of game script)
activate_struggle_catalyst_warfare_check_attacker_involvement_trigger = {
	phase_has_catalyst = $CATALYST$
	save_temporary_scope_as = struggle_temp
	$VAR_SCOPE$ = {
		trigger_if = {
			limit = { scope:attacker = scope:loser }
			has_variable = struggle_involvement_attacker
			has_variable = struggle_scope_attacker
			var:struggle_involvement_attacker = flag:$INVOLVEMENT$
			var:struggle_scope_attacker = scope:struggle_temp
		}
		trigger_else = {
			has_variable = struggle_involvement_defender
			has_variable = struggle_scope_defender
			var:struggle_involvement_defender = flag:$INVOLVEMENT$
			var:struggle_scope_defender = scope:struggle_temp
		}
	}
}

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

Where it is used

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

Source: game/common/scripted_triggers/00_generic_struggle_scripted_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?