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_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_war

As 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)

79 more

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?