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

Scripted effect

break_alliance_due_to_attack_effect

break_alliance_due_to_attack_effect = { TARGET = … }

game/common/scripted_effects/00_war_effects.txt, line 616 (10 lines). Parameters: $TARGET$.

break_alliance_due_to_attack_effect is a scripted effect in Crusader Kings III, written at line 616 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 2 places, among them diarch_coup_preamble_effects_effect (scripted effect) and on_declared_war (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.

What it does

• 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 (10 lines of game script)
break_alliance_due_to_attack_effect = {
	custom_description_no_bullet = { text = attack_ally_text }
	add_prestige = attack_ally_prestige_loss
	add_prestige_level = attack_ally_prestige_level_loss
	add_character_modifier = {
		modifier = attacked_ally
		years = 3
	}
	break_alliance = $TARGET$
}

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

Where it is used

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

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