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

Scripted effect

modify_allies_of_participants_fame_both_values

modify_allies_of_participants_fame_both_values = { LOSER_ALLY_FAME_SCALE = … MERIT_FAME_BASE = … PIETY_FAME_BASE = … PRESTIGE_FAME_BASE = … WINNER = … WINNER_ALLY_FAME_SCALE = … }

game/common/scripted_effects/00_casus_belli_effects.txt, line 348 (86 lines). Parameters: $LOSER_ALLY_FAME_SCALE$, $MERIT_FAME_BASE$, $PIETY_FAME_BASE$, $PRESTIGE_FAME_BASE$, $WINNER$, $WINNER_ALLY_FAME_SCALE$.

modify_allies_of_participants_fame_both_values is a scripted effect in Crusader Kings III, written at line 348 of its file. A call passes 6 parameters: LOSER_ALLY_FAME_SCALE, MERIT_FAME_BASE, PIETY_FAME_BASE, PRESTIGE_FAME_BASE, WINNER and WINNER_ALLY_FAME_SCALE. The game's script calls it in 2 places, among them Plunder for Contribution (casus belli) and Raze Capital Temple Complex (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_casus_belli_effects.txt.

What it does

  • If

    • $WINNER$ = scope:attacker

    Then

    • add_from_contribution_attackers = { … }
    • add_from_contribution_defenders = { … }

    Otherwise

    • add_from_contribution_defenders = { … }
    • add_from_contribution_attackers = { … }

• 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 (86 lines of game script)
modify_allies_of_participants_fame_both_values = {
	# Give the allies of both primary participants the appropriate type & amount of 'fame'.

	if = {
		# Award Piety to the victorious attacker's allies.
		limit = {
			$WINNER$ = scope:attacker
		}
		add_from_contribution_attackers = {
			prestige = {
				value = $PRESTIGE_FAME_BASE$
				multiply = $WINNER_ALLY_FAME_SCALE$
				max = @maximum_prestige_winner_ally
			}
			piety = {
				value = $PIETY_FAME_BASE$
				multiply = $WINNER_ALLY_FAME_SCALE$
				max = @maximum_piety_winner_ally
			}
			merit = {
				value = $MERIT_FAME_BASE$
				multiply = $WINNER_ALLY_FAME_SCALE$
				max = @maximum_merit_winner_ally
			}
			opinion = {
				modifier = contributed_in_war
			}
		}
		# Award Piety to the defeated defender's allies.
		add_from_contribution_defenders = {
			prestige = {
				value = $PRESTIGE_FAME_BASE$
				multiply = $LOSER_ALLY_FAME_SCALE$
				max = @maximum_prestige_loser_ally
			}
			piety = {
				value = $PIETY_FAME_BASE$
				multiply = $LOSER_ALLY_FAME_SCALE$
				max = @maximum_piety_loser_ally
			}
			opinion = {
				modifier = contributed_in_war
			}
		}
	}
	else = {
		# Award Piety to the victorious defender's allies.
		add_from_contribution_defenders = {
			prestige = {
				value = $PRESTIGE_FAME_BASE$
				multiply = $WINNER_ALLY_FAME_SCALE$
				max = @maximum_prestige_winner_ally
			}
			piety = {
				value = $PIETY_FAME_BASE$
				multiply = $WINNER_ALLY_FAME_SCALE$
				max = @maximum_piety_winner_ally
			}
			opinion = {
				modifier = contributed_in_war
			}
		}
		# Award Piety to the defeated attacker's allies.
		add_from_contribution_attackers = {
			prestige = {
				value = $PRESTIGE_FAME_BASE$
				multiply = $LOSER_ALLY_FAME_SCALE$
				max = @maximum_prestige_loser_ally
			}
			piety = {
				value = $PIETY_FAME_BASE$
				multiply = $LOSER_ALLY_FAME_SCALE$
				max = @maximum_piety_loser_ally
			}
			merit = {
				value = $MERIT_FAME_BASE$
				multiply = $LOSER_ALLY_FAME_SCALE$
				max = @maximum_merit_loser_ally
			}
			opinion = {
				modifier = contributed_in_war
			}
		}	
	}

}

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

Where it is used

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

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