Scripted effect
modify_allies_of_participants_fame_values
modify_allies_of_participants_fame_values = { FAME_BASE = … IS_RELIGIOUS_WAR = … LOSER_ALLY_FAME_SCALE = … WINNER = … WINNER_ALLY_FAME_SCALE = … }game/common/scripted_effects/00_casus_belli_effects.txt, line 222 (125 lines). Parameters: $FAME_BASE$, $IS_RELIGIOUS_WAR$, $LOSER_ALLY_FAME_SCALE$, $WINNER$, $WINNER_ALLY_FAME_SCALE$.
modify_allies_of_participants_fame_values is a scripted effect in Crusader Kings III, written at line 222 of its file. A call passes 5 parameters: FAME_BASE, IS_RELIGIOUS_WAR, LOSER_ALLY_FAME_SCALE, WINNER and WINNER_ALLY_FAME_SCALE. The game's script calls it in 86 places, among them … China's Grand Campaign (casus belli), …-… Bloc Supremacy War (casus belli) and …… Ancestral Claim on … (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_casus_belli_effects.txt.
What it does
If
$IS_RELIGIOUS_WAR$ = yes
Then
If
$WINNER$ = scope:attacker
Then
add_from_contribution_attackers = { … }add_from_contribution_defenders = { … }
Otherwise
add_from_contribution_defenders = { … }add_from_contribution_attackers = { … }
Otherwise
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 (120 lines of game script)
modify_allies_of_participants_fame_values = {
# Give the allies of both primary participants the appropriate type & amount of 'fame'.
if = {
# Religious wars award Piety to participants.
limit = {
$IS_RELIGIOUS_WAR$ = yes
}
if = {
# Award Piety to the victorious attacker's allies.
limit = {
$WINNER$ = scope:attacker
}
add_from_contribution_attackers = {
piety = {
value = $FAME_BASE$
multiply = $WINNER_ALLY_FAME_SCALE$
max = @maximum_piety_winner_ally
}
opinion = {
modifier = contributed_in_war
}
}
# Award Piety to the defeated defender's allies.
add_from_contribution_defenders = {
piety = {
value = $FAME_BASE$
multiply = $LOSER_ALLY_FAME_SCALE$
max = @maximum_prestige_loser_ally
}
opinion = {
modifier = contributed_in_war
}
}
}
else = {
# Award Piety to the victorious defender's allies.
add_from_contribution_defenders = {
piety = {
value = $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 = {
piety = {
value = $FAME_BASE$
multiply = $LOSER_ALLY_FAME_SCALE$
max = @maximum_prestige_loser_ally
}
opinion = {
modifier = contributed_in_war
}
}
}
}
else = {
# All other war types award Prestige to participants.
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$
max = @maximum_prestige_winner_ally
}
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$
max = @maximum_prestige_loser_ally
}
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$
max = @maximum_prestige_winner_ally
}
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$
max = @maximum_prestige_loser_ally
}
opinion = {
modifier = contributed_in_warAs written in game/common/scripted_effects/00_casus_belli_effects.txt.
The first 120 of its 125 lines; the rest is in game/common/scripted_effects/00_casus_belli_effects.txt from line 222.
Where it is used
Every place in common/, events/ and history/ that calls modify_allies_of_participants_fame_values.
Casus belli (85)
- … China's Grand Campaign
- …-… Bloc Supremacy War
- …… Ancestral Claim on …
- ……-… Vassalization War (Dynastic Cycle)
- Adventurer Invasion
- Adventurer Invasion
79 more
- Adventurer Invasion
- Adventurer Invasion
- Azariqa Rebellion
- Bloc Expansion
- Bring Under Tribute
- Chinese Consolidation War
- Chinese Consolidation War
- Claim
- Clan Invasion
- County Conquest
- County Expansion
- De Jure
- Diarch Seizure
- Domination War
- Ducal Conquest
- Duchy Conquest
- Duchy Expansion
- Enforce Administrative Integration
- Eradicate Rival House
- Establish Sōryō Administration
- Expand Dominance
- Great War of Defiance
- Greatest of Khans' Onslaught
- Holy
- Humiliation War
- Humiliation War
- Iberian Reclamation
- Imperial County Pacification
- Imperial Expedition
- Imperial Reconquest of Japan (De Jure)
- Individual De Jure County
- Individual De Jure Duchy
- Invasion
- Invasion
- Invasion
- Invasion
- Laudabiliter Conquest
- Legendary Adventure
- Major Holy
- Mediterranean Conquest
- Migrate to Pannonia
- Migration War
- Minor Holy
- Mongol Invasion
- Mongol Realm Invasion
- Naval County Expansion
- Naval Duchy Expansion
- Nomadic County Quarrel
- Nomadic Duchy Quarrel
- Overrun Kingdom
- Overrun Kingdom
- Pax Romana
- Raid for Captives
- Raid for Captives Contract
- Raiktor's "Claim"
- Raiktor's Claim
- Remove Regent
- Rescue House Members
- Resist Capture
- Retaliation War
- Seize Hegemonic County
- Seize Hegemonic County
- Seize Hegemonic Duchy
- Seize Hegemonic Duchy
- Seize Imperial Duchy
- Seize Peripheral Duchy
- Seize the Mandate of Heaven
- Sōryō Conquest
- Sōryō Conquest
- Sovereignty War
- Sponsored Administrative War
- Sponsored Conquest
- Struggle Clash
- Subjugation
- Unify The House
- Varangian Adventurer
- Vassalization
- Viking Adventurer
- Zanj Rebellion
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.