Scripted effect
modify_allies_of_participants_fame_values_crusading_claim
modify_allies_of_participants_fame_values_crusading_claim = { FAME_BASE = … LOSER_ALLY_FAME_SCALE = … WINNER = … WINNER_ALLY_FAME_SCALE = … }game/common/scripted_effects/00_casus_belli_effects.txt, line 435 (62 lines). Parameters: $FAME_BASE$, $LOSER_ALLY_FAME_SCALE$, $WINNER$, $WINNER_ALLY_FAME_SCALE$.
modify_allies_of_participants_fame_values_crusading_claim is a scripted effect in Crusader Kings III, written at line 435 of its file. A call passes 4 parameters: FAME_BASE, LOSER_ALLY_FAME_SCALE, WINNER and WINNER_ALLY_FAME_SCALE. The game's script calls it in 1 place, among them modify_all_participants_fame_values_crusading_claim (scripted effect). 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 (62 lines of game script)
modify_allies_of_participants_fame_values_crusading_claim = {
# Give the allies of both primary participants the appropriate type & amount of 'fame'.
if = {
# Award Prestige to the victorious attacker's allies.
limit = {
$WINNER$ = scope:attacker
}
add_from_contribution_attackers = {
prestige = {
value = $FAME_BASE$
multiply = $WINNER_ALLY_FAME_SCALE$
}
merit = {
value = $FAME_BASE$
multiply = $WINNER_ALLY_FAME_SCALE$
max = @maximum_merit_winner_ally
}
opinion = {
modifier = contributed_in_war
}
}
# Award Prestige to the defeated defender's allies.
add_from_contribution_defenders = {
prestige = {
value = $FAME_BASE$
multiply = $LOSER_ALLY_FAME_SCALE$
}
opinion = {
modifier = contributed_in_war
}
}
}
else = {
# Award Prestige to the victorious defender's allies.
add_from_contribution_defenders = {
prestige = {
value = $FAME_BASE$
multiply = $WINNER_ALLY_FAME_SCALE$
}
merit = {
value = $FAME_BASE$
multiply = $WINNER_ALLY_FAME_SCALE$
max = @maximum_merit_winner_ally
}
opinion = {
modifier = contributed_in_war
}
}
# Award Prestige to the defeated attacker's allies.
add_from_contribution_attackers = {
prestige = {
value = $FAME_BASE$
multiply = $LOSER_ALLY_FAME_SCALE$
multiply = -1
}
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_values_crusading_claim.
Scripted effects (1)
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.