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_paying_off_latins_effect

ep3_frankokratia_paying_off_latins_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 1346 (148 lines). No parameters.

ep3_frankokratia_paying_off_latins_effect is a scripted effect in Crusader Kings III, written at line 1346 of its file. It takes no parameters: ep3_frankokratia_paying_off_latins_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_events.0040 (event). Its body carries 5 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.

What it does

• 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)
ep3_frankokratia_paying_off_latins_effect = {
	#If crusader state exists - all troops go to crusader king and crusaders get piety
	if = {
		limit = {
			scope:frankokratia_story = {
				has_variable = crusader_kingdom
				exists = var:crusader_kingdom.holder
				var:crusader_kingdom.holder = {
					faith = scope:attacker.faith
					NOR = {
						is_at_war_with = scope:attacker
						is_at_war_with = scope:claimant
					}
				}
			}
		}
		scope:frankokratia_story = {
			var:crusader_kingdom.holder = {
				save_scope_as = crusader_king
			}
		}
		scope:crusader_king = {
			spawn_army = {
				name = ep3_frankokratia_reward_army_name
				uses_supply = yes
				levies = 3400
				men_at_arms = {
					type = cataphract
					stacks = ep3_byz_regiments_ck_value
				}
				location = scope:claimant.capital_province
			}
		}
		scope:attacker = {
			add_piety = massive_piety_gain
		}
		if = {
			limit = {
				scope:attacker = {
					has_trait = excommunicated
				}
			}
			scope:attacker = { remove_trait = excommunicated }
		}
		custom_tooltip = frankokratia_leaders_lose_excommunicated
	}
	else = {
		scope:attacker = {
			add_piety = major_piety_gain
			spawn_army = {
				name = ep3_frankokratia_reward_army_name
				uses_supply = yes
				levies = ep3_byz_reward_levy_size_value
				men_at_arms = {
					type = cataphract
					stacks = ep3_byz_regiments_gained_value
				}
				location = scope:claimant.capital_province
				inheritable = no
			}
			custom_tooltip = frankokratia_leaders_gain_identical_force
		}
	}
	if = {
		limit = {
			exists = scope:financier_sate_reward_duchy
		}
		show_as_tooltip = {
			create_title_and_vassal_change = {
				type = granted
				save_scope_as = title_change
				add_claim_on_loss = yes
			}
			scope:financier_sate_reward_duchy = {
				change_title_holder = {
					holder = scope:financier
					change = scope:title_change
					take_baronies = yes
				}
			}
			resolve_title_and_vassal_change = scope:title_change
		}
		hidden_effect = {
			title:e_byzantium.holder = {
				ep3_frankokratia_give_financier_sate_lands_effect = yes
			}
		}
	}
	else_if = {
		limit = {
			exists = scope:financier_sate_reward_county_1
		}
		title:e_byzantium.holder = {
			ep3_frankokratia_give_financier_sate_lands_effect = yes
		}
	}
	add_legitimacy = major_legitimacy_loss
	add_tyranny = massive_tyranny_gain
	
	add_character_modifier = {
		modifier = bent_before_crusaders_modifier
		years = 10
	}
	#Army transfer - Emperor loses MaA regiments
	if = {
		limit = {
			exists = scope:regiment_2
		}
		custom_tooltip = 2_byzantine_regiments_given_over_tooltip
		hidden_effect = {
			scope:regiment_1 = { destroy_maa_regiment = yes }
		}
	}
	else_if = {
		limit = {
			exists = scope:regiment_1
		}
		custom_tooltip = 1_byzantine_regiment_given_over_tooltip
		hidden_effect = {
			scope:regiment_1 = { destroy_maa_regiment = yes }

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

The first 120 of its 148 lines; the rest is in game/common/scripted_effects/07_frankokratia_scripted_effects.txt from line 1346.

Where it is used

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

Events (2)

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?