CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

ep3_frankokratia_gather_governor_funds_effect

ep3_frankokratia_gather_governor_funds_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 917 (75 lines). No parameters.

ep3_frankokratia_gather_governor_funds_effect is a scripted effect in Crusader Kings III, written at line 917 of its file. It takes no parameters: ep3_frankokratia_gather_governor_funds_effect = yes. The game's script calls it in 2 places, among them All the Riches of Empire (event ep3_frankokratia_events.0041) and ep3_frankokratia_paying_off_latins_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (75 lines of game script)
ep3_frankokratia_gather_governor_funds_effect = {
	if = {
		limit = {
			any_vassal = {
				is_governor = yes
				NOT = { is_at_war_with = title:e_byzantium.holder }
			}
		}
		every_vassal = {
			limit = {
				is_governor = yes
				NOT = { is_at_war_with = title:e_byzantium.holder }
			}
			hidden_effect = {
				pay_short_term_gold = {
					target = title:e_byzantium.holder
					gold = 150
				}
			}
			add_to_list = paying_off_crusaders
		}
	}
	else_if = {
		limit = {
			any_vassal = {
				is_governor = no
				NOT = { is_at_war_with = title:e_byzantium.holder }
			}
		}
		every_vassal = {
			limit = {
				is_governor = no
				NOT = { is_at_war_with = title:e_byzantium.holder }
			}
			hidden_effect = {
				pay_short_term_gold = {
					target = title:e_byzantium.holder
					gold = 50
				}
			}
			add_to_list = paying_off_crusaders
		}
	}
	scope:attacker = {
		random_owned_story = {
			type = frankokratia_story
			save_scope_as = frankokratia_story
		}
	}
	save_scope_value_as = {
		name = crusader_payoff_total
		value = scope:attacker.pay_off_crusaders_value
	}
	save_scope_value_as = {
		name = payoff_per_crusader
		value = {
			value = 0
			add = scope:crusader_payoff_total
			divide = {
				value = 1
				scope:frankokratia_story = {
					every_in_list = {
						variable = frankokratia_leaders
						limit = {
							this != scope:attacker
						}
						add = 1
					}
				}
				subtract = 1
				min = 1	
			}
		}
	}
}

As written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls ep3_frankokratia_gather_governor_funds_effect.

Events (1)

Source: game/common/scripted_effects/07_frankokratia_scripted_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?