Scripted effect
pay_short_term_gold_reparations_prefer_greater_income_effect
pay_short_term_gold_reparations_prefer_greater_income_effect = { FACTOR = … }game/common/scripted_effects/00_war_effects.txt, line 2513 (41 lines). Parameters: $FACTOR$.
pay_short_term_gold_reparations_prefer_greater_income_effect is a scripted effect in Crusader Kings III, written at line 2513 of its file. A call passes 1 parameter: FACTOR. The game's script calls it in 1 place, among them Imperial Expedition (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.
What it does
If
scope:defender.yearly_character_income >= scope:attacker.yearly_character_income
Then
pay_short_term_gold = { … }
Otherwise
pay_short_term_gold = { … }
• 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)
pay_short_term_gold_reparations_prefer_greater_income_effect = {
if = {
limit = { scope:defender.yearly_character_income >= scope:attacker.yearly_character_income }
pay_short_term_gold = {
gold = {
value = scope:defender.yearly_character_income
multiply = {
add = $FACTOR$
if = {
limit= {
scope:defender.culture = {
has_cultural_parameter = more_gold_for_successful_defensive_wars
}
}
multiply = 2
}
}
}
target = scope:defender
}
}
else = {
pay_short_term_gold = {
gold = {
value = yearly_character_income
multiply = {
add = $FACTOR$
if = {
limit= {
scope:defender.culture = {
has_cultural_parameter = more_gold_for_successful_defensive_wars
}
}
multiply = 2
}
}
}
target = scope:defender
}
}
}As written in game/common/scripted_effects/00_war_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pay_short_term_gold_reparations_prefer_greater_income_effect.
Casus belli (1)
Source: game/common/scripted_effects/00_war_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.