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

Scripted effect

save_died_in_battle_variables_effect

save_died_in_battle_variables_effect = { ENEMY = … LEADER = … LOCATION = … }

game/common/scripted_effects/00_death_management_effects.txt, line 124 (14 lines). Parameters: $ENEMY$, $LEADER$, $LOCATION$.

save_died_in_battle_variables_effect is a scripted effect in Crusader Kings III, written at line 124 of its file. A call passes 3 parameters: ENEMY, LEADER and LOCATION. The game's script calls it in 3 places, among them combat_event.1001 (event), commander_killed (combat phase events) and knight_killed (combat phase events). Patch 1.20.1.2, from game/common/scripted_effects/00_death_management_effects.txt.

What it does

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

The script as written (14 lines of game script)
save_died_in_battle_variables_effect = {
	set_variable = {
		name = battle_death_enemy
		value = $ENEMY$
	}
	set_variable = {
		name = battle_death_leader
		value = $LEADER$
	}
	set_variable = {
		name = battle_death_location
		value = $LOCATION$
	}
}

As written in game/common/scripted_effects/00_death_management_effects.txt.

Where it is used

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

Combat phase events (2)

  • commander_killed
  • knight_killed

Source: game/common/scripted_effects/00_death_management_effects.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?