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_all_participants_fame_values_crusading_claim

modify_all_participants_fame_values_crusading_claim = { FAME_BASE = … LOSER = … LOSER_ALLY_FAME_SCALE = … LOSER_FAME_SCALE = … WINNER = … WINNER_ALLY_FAME_SCALE = … WINNER_FAME_SCALE = … }

game/common/scripted_effects/00_casus_belli_effects.txt, line 163 (41 lines). Parameters: $FAME_BASE$, $LOSER$, $LOSER_ALLY_FAME_SCALE$, $LOSER_FAME_SCALE$, $WINNER$, $WINNER_ALLY_FAME_SCALE$, $WINNER_FAME_SCALE$.

modify_all_participants_fame_values_crusading_claim is a scripted effect in Crusader Kings III, written at line 163 of its file. A call passes 7 parameters: FAME_BASE, LOSER, LOSER_ALLY_FAME_SCALE, LOSER_FAME_SCALE, WINNER, WINNER_ALLY_FAME_SCALE and WINNER_FAME_SCALE. The game's script calls it in 1 place, among them Crusader War for Imperial Claim (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

    • scope:attacker:
      • add_prestige_experience = { value = $FAME_BASE$ multiply = $WINNER_FAME_SCALE$ }

    Otherwise

    • scope:defender:
      • add_prestige = { value = $FAME_BASE$ multiply = $WINNER_FAME_SCALE$ }
  • modify_allies_of_participants_fame_values_crusading_claim = { … }
  • $LOSER$ = { … }

• 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 (41 lines of game script)
modify_all_participants_fame_values_crusading_claim = {

	# Give the winner the appropriate type & amount of 'fame' (prestige or piety).
	if = {
		# If the attacker is the winner, we only award fame *experience* instead of actual fame currency.
		limit = {
			$WINNER$ = scope:attacker
		}
		scope:attacker = {
			add_prestige_experience = {
				value = $FAME_BASE$
				multiply = $WINNER_FAME_SCALE$
			}
		}		
	}
	else = {
		# Gain prestige for winning all other defensive wars.
		scope:defender = {
			add_prestige = {
				value = $FAME_BASE$
				multiply = $WINNER_FAME_SCALE$
			}
		}
	}

	# Award the appropriate type & amount of 'fame' to the allies of both primary participants.
	modify_allies_of_participants_fame_values_crusading_claim = {
		WINNER = $WINNER$
		FAME_BASE = $FAME_BASE$
		WINNER_ALLY_FAME_SCALE = $WINNER_ALLY_FAME_SCALE$
		LOSER_ALLY_FAME_SCALE = $LOSER_ALLY_FAME_SCALE$
	}

	# All other war types cost  Prestige from the loser.
	$LOSER$ = {
		add_prestige = {
			value = $FAME_BASE$
			multiply = $LOSER_FAME_SCALE$
		}
	}
}

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_all_participants_fame_values_crusading_claim.

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?