Scripted effect
ep3_frankokratia_kill_byzantines_effect
ep3_frankokratia_kill_byzantines_effect = yesgame/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 1202 (143 lines). No parameters.
ep3_frankokratia_kill_byzantines_effect is a scripted effect in Crusader Kings III, written at line 1202 of its file. It takes no parameters: ep3_frankokratia_kill_byzantines_effect = yes. The game's script calls it in 1 place, among them Baptized by Fire (event ep3_frankokratia_events.0042). Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
What it does
- title:e_byzantium.holder › Every pool character:
- Where: No heir title:
province = title:e_byzantium.holder.capital_province
- Every in list: Event ep3_frankokratia_events.0046
• 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_kill_byzantines_effect = {
#Byzantines (and misc locals) are slaughtered in the taking of the city
title:e_byzantium.holder = {
#Courtiers of emperor
every_courtier_or_guest = {
limit = {
NOT = {
any_heir_title = {
holder ?= {
this = global_var:byz_claimant_champion
}
}
}
}
add_to_list = byz_civilians
}
#Local pool characters
every_pool_character = {
province = title:e_byzantium.holder.capital_province
limit = {
NOT = {
any_heir_title = {
holder ?= {
this = global_var:byz_claimant_champion
}
}
}
}
add_to_list = byz_civilians
}
#ai landless house heads in the capital
every_vassal = {
limit = {
is_ai = yes
is_landless_administrative = yes
domicile ?= {
domicile_location.county = {
this = title:e_byzantium.holder.capital_county
}
}
}
add_to_list = byz_civilians
}
#Courtiers of landless house heads in the capital
every_vassal = {
limit = {
is_landless_administrative = yes
domicile ?= {
domicile_location.county = {
this = title:e_byzantium.holder.capital_county
}
}
}
every_courtier_or_guest = {
limit = {
NOT = {
any_heir_title = {
holder ?= {
this = global_var:byz_claimant_champion
}
}
}
}
add_to_list = byz_civilians
}
}
}
ordered_in_list = {
order_by = {
value = 1
#I suppose they would probably try to avoid killing Catholics... if possible
if = {
limit = {
NOR = {
faith = faith:catholic
this = scope:defender
is_close_family_of = scope:defender
}
}
add = 1
}
}
list = byz_civilians
max = {
value = list_size:byz_civilians
divide = 3
}
add_to_global_variable_list = {
name = slaughtered_byzantines_list
target = this
days = 30
}
}
set_global_variable = {
name = slaughtered_byzantines
value = {
value = 0
every_in_global_list = {
variable = slaughtered_byzantines_list
add = 1
}
}
days = 30
}
#Let everyone know this happened
scope:frankokratia_story = {
every_in_list = {
variable = frankokratia_leaders
limit = {
is_ai = no
}
add_to_list = byz_slaughter_recipients
}
}
title:e_byzantium.holder = {
if = {
limit = {
is_ai = no
}As written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
The first 120 of its 143 lines; the rest is in game/common/scripted_effects/07_frankokratia_scripted_effects.txt from line 1202.
Where it is used
Every place in common/, events/ and history/ that calls ep3_frankokratia_kill_byzantines_effect.
Events (1)
- Baptized by Fire
ep3_frankokratia_events.0042
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.