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

Scripted effect

on_peasant_faction_war_win_common

on_peasant_faction_war_win_common = { ATTACKER = … CLAIMANT = … DEFENDER = … TARGET_TITLES = … }

game/common/scripted_effects/00_war_effects.txt, line 1298 (17 lines). Parameters: $ATTACKER$, $CLAIMANT$, $DEFENDER$, $TARGET_TITLES$.

on_peasant_faction_war_win_common is a scripted effect in Crusader Kings III, written at line 1298 of its file. A call passes 4 parameters: ATTACKER, CLAIMANT, DEFENDER and TARGET_TITLES. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.

What it does

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

The script as written (17 lines of game script)
on_peasant_faction_war_win_common = {
	create_title_and_vassal_change = {
		type = conquest
		save_scope_as = change
		add_claim_on_loss = yes
	}

	setup_claim_cb = {
		titles = $TARGET_TITLES$
		attacker = $ATTACKER$
		defender = $DEFENDER$
		claimant = $CLAIMANT$
		change = scope:change
	}

	resolve_title_and_vassal_change = scope:change
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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?