Scripted effect · Khans of the Steppe files
mpo_gok_civilian_slaughter_totalling_effect
mpo_gok_civilian_slaughter_totalling_effect = yesgame/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 7309 (86 lines). No parameters.
mpo_gok_civilian_slaughter_totalling_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 7309 of its file. It takes no parameters: mpo_gok_civilian_slaughter_totalling_effect = yes. The game's script calls it in 1 place, among them gok_realm_devastation_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
What it does
- Every in list:
If
a check the game hides
Then
- Every pool character:
province = prev.holder.capital_province
- Every pool character:
• 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 (86 lines of game script)
mpo_gok_civilian_slaughter_totalling_effect = {
every_in_list = {
list = devastation_area
if = {
limit = {
this = holder.capital_county
}
holder = {
if = {
limit = {
NOR = {
this = scope:defender
is_ai = no
}
}
add_to_list = potential_victims
}
every_courtier_or_guest = {
add_to_list = potential_victims
}
}
#Local pool characters
every_pool_character = {
province = prev.holder.capital_province
add_to_list = potential_victims
}
}
}
scope:defender = {
#ai landless house heads in the capital
every_vassal = {
limit = {
is_ai = yes
is_landless_administrative = yes
domicile ?= {
domicile_location.county = {
this = scope:defender.capital_county
}
}
}
add_to_list = potential_victims
}
#Courtiers of landless house heads in the capital
every_vassal = {
limit = {
is_landless_administrative = yes
domicile ?= {
domicile_location.county = {
this = scope:defender.capital_county
}
}
}
every_courtier_or_guest = {
add_to_list = potential_victims
}
}
}
ordered_in_list = {
order_by = {
value = 1
#I suppose they would probably try to avoid killing their own
if = {
limit = {
NOT = {
faith = scope:attacker.faith
}
}
add = 1
}
if = {
limit = {
NOT = {
culture = scope:attacker.culture
}
}
add = 1
}
}
list = potential_victims
max = {
value = "list_size(potential_victims)"
divide = 2
}
add_to_list = gok_slaughter_victims
}
}As written in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls mpo_gok_civilian_slaughter_totalling_effect.
Scripted effects (1)
Source: game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.