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

Scripted effect · Friends and Foes files

copy_war_memory_casus_belli_effect

copy_war_memory_casus_belli_effect = { MEMORY = … }

game/common/scripted_effects/03_bp1_scripted_effects.txt, line 1034 (64 lines). Parameters: $MEMORY$.

copy_war_memory_casus_belli_effect is a scripted effect in Crusader Kings III, in the Friends and Foes files, written at line 1034 of its file. A call passes 1 parameter: MEMORY. The game's script calls it in 3 places, among them on_join_war_as_secondary (on action), on_war_started (on action) and set_war_over_memory_casus_belli_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/03_bp1_scripted_effects.txt.

What it does

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

The script as written (64 lines of game script)
copy_war_memory_casus_belli_effect = {
	if = {
		limit = { exists = $MEMORY$.var:war_cb }
		set_variable = {
			name = war_cb
			value = $MEMORY$.var:war_cb
		}
		if = {
			limit = { exists = $MEMORY$.var:war_attacker }
			set_variable = {
				name = war_attacker
				value = $MEMORY$.var:war_attacker
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_title }
			set_variable = {
				name = war_title
				value = $MEMORY$.var:war_title
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_claimant }
			set_variable = {
				name = war_claimant
				value = $MEMORY$.var:war_claimant
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_faith }
			set_variable = {
				name = war_faith
				value = $MEMORY$.var:war_faith
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_culture }
			set_variable = {
				name = war_culture
				value = $MEMORY$.var:war_culture
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_faith_attacker }
			set_variable = {
				name = war_faith_attacker
				value = $MEMORY$.var:war_faith_attacker
			}
		}
		if = {
			limit = { exists = $MEMORY$.var:war_liege }
			set_variable = {
				name = war_liege
				value = $MEMORY$.var:war_liege
			}
		}
	}
	else = {
		set_variable = {
			name = war_cb
			value = flag:war_memory_cb_fallback
		}
	}
}

As written in game/common/scripted_effects/03_bp1_scripted_effects.txt.

Where it is used

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

On actions (the game's own hooks) (2)

  • on_join_war_as_secondary
  • on_war_started

Source: game/common/scripted_effects/03_bp1_scripted_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?