Scripted effect
ep3_frankokratia_capital_sacking_effect
ep3_frankokratia_capital_sacking_effect = yesgame/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 993 (208 lines). No parameters.
ep3_frankokratia_capital_sacking_effect is a scripted effect in Crusader Kings III, written at line 993 of its file. It takes no parameters: ep3_frankokratia_capital_sacking_effect = yes. The game's script calls it in 1 place, among them All the Riches of Empire (event ep3_frankokratia_events.0041). Its body carries 6 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
- Latin Empire will be granted to your choice of Holder
- … Counties within … will be distributed among involved Crusaders
- Dread +50
- Every involved Crusader receives ep3 sacking byz capital payoff value
- … will be destroyed
scope:claimant.capital_county:change_county_control = -100If
- scope:claimant.capital_county: Development level at least 90
Then
- Development level in the county reduces by -20
Else if
- scope:claimant.capital_county: Development level at least 60
Then
- Development level in the county reduces by -15
Else if
- scope:claimant.capital_county: Development level at least 40
Then
- Development level in the county reduces by -10
Otherwise
- Development level in the county reduces by -5
- 3 Buildings will be downgraded or destroyed
scope:claimant:- If government allows: state faith › Their primary title:
state_rite.faith = { … }
- Else, if all of these hold:
- Else, if all of these hold:
- If government allows: state faith › Their primary title:
• 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_capital_sacking_effect = {
custom_tooltip = latin_empire_creation_tooltip
custom_tooltip = latin_empire_land_distribution_tooltip
add_dread = massive_dread_gain
custom_tooltip = {
text = every_crusader_gets_paid_sacking
add_short_term_gold = ep3_sacking_byz_capital_payoff_value
}
custom_tooltip = byzantine_empire_destroyed_tooltip
hidden_effect = {
scope:frankokratia_story = {
every_in_list = {
variable = frankokratia_leaders
limit = {
this != scope:attacker
}
add_dread = medium_dread_gain
}
}
}
scope:claimant.capital_county = {
change_county_control = -100
if = {
limit = {
scope:claimant.capital_county = {
development_level >= 90
}
}
change_development_level = -20
}
else_if = {
limit = {
scope:claimant.capital_county = {
development_level >= 60
}
}
change_development_level = -15
}
else_if = {
limit = {
scope:claimant.capital_county = {
development_level >= 40
}
}
change_development_level = -10
}
else = {
change_development_level = -5
}
custom_tooltip = byz_capital_building_destroyed_tooltip
}
scope:claimant = {
if = {
limit = {
government_allows = state_faith
}
primary_title = {
state_rite.faith = {
change_fervor = {
value = major_fervor_value
desc = imperial_capital_sacked_fervor_gain
}
}
}
}
else_if = {
limit = {
scope:claimant.capital_county.rite = {
rite_has_doctrine = special_doctrine_is_eastern_christian_faith
}
}
scope:claimant.capital_county.faith = {
change_fervor = {
value = major_fervor_value
desc = imperial_capital_sacked_fervor_gain
}
}
}
else_if = {
limit = {
scope:claimant.rite = {
rite_has_doctrine = special_doctrine_is_eastern_christian_faith
}
}
scope:claimant.faith = {
change_fervor = {
value = major_fervor_value
desc = imperial_capital_sacked_fervor_gain
}
}
}
}
hidden_effect = {
scope:claimant.capital_province = {
destroy_random_building_variable_effect = yes
destroy_random_building_effect = yes
}
scope:claimant.capital_province = {
destroy_random_building_variable_effect = yes
destroy_random_building_effect = yes
}
scope:claimant.capital_province = {
destroy_random_building_variable_effect = yes
destroy_random_building_effect = yes
}
}
faith:catholic = {
change_fervor = {
value = medium_fervor_loss
desc = imperial_capital_sacked_fervor_gain
}
}
hidden_effect = {
if = {
limit = {
NOT = {As written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
The first 120 of its 208 lines; the rest is in game/common/scripted_effects/07_frankokratia_scripted_effects.txt from line 993.
Where it is used
Every place in common/, events/ and history/ that calls ep3_frankokratia_capital_sacking_effect.
Events (1)
- All the Riches of Empire
ep3_frankokratia_events.0041
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.