Scripted effect
ep3_frankokratia_paying_off_latins_effect
ep3_frankokratia_paying_off_latins_effect = yesgame/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
If
scope:frankokratia_story:- Has “crusader kingdom” (a variable the game's script sets)
var:crusader_kingdom.holder:- Their faith is the same as that of attacker
NOT = { is_at_war_with = scope:attacker }NOT = { is_at_war_with = scope:claimant }
Then
scope:crusader_king:spawn_army = { … }
- scope:attacker: Gain +500 Piety
- All involved Crusaders lose Excommunicated
Else if
a check the game hides
Then
title:e_byzantium.holder:
- Loses 200 Legitimacy
- Tyranny +30
- Gains the modifier “Bent Before the Crusaders” for 10 years
- Their capital county:
- The county gains the modifier “Crippled by Imperial Measures” for 25 years
- Development Decline -1/month
- Garrison Size -50%
- Levy Size -50%
- Holding Taxes -33%
- The county gains the modifier “Crippled by Imperial Measures” for 25 years
ep3_frankokratia_gather_governor_funds_effect = yes- Pays every involved Crusader payoff per crusader
• 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)
- All the Riches of Empire
ep3_frankokratia_events.0041 - ep3_frankokratia_events.0040
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.