Scripted effect · Khans of the Steppe files
gok_realm_devastation_effect
gok_realm_devastation_effect = yesgame/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt, line 6921 (387 lines). No parameters.
gok_realm_devastation_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 6921 of its file. It takes no parameters: gok_realm_devastation_effect = yes. The game's script calls it in 1 place, among them Greatest of Khans' Onslaught (casus belli). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
What it does
If
a check the game hides
Then
- scope:attacker: Gains Dread
- Characters, Holdings, Buildings and Development are ruthlessly scourged in taken Counties and … Capital Duchy
• 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)
gok_realm_devastation_effect = {
#Minor issues targeting the general realm, but REALLY focus in on the capital area for revenge
add_to_list = defender_realm_vassals
#defender domain specifically targeted
every_in_list = {
list = target_titles
limit = {
tier = tier_county
is_landless_type_title = no
}
add_to_list = devastation_area
}
#and area of capital
capital_county.duchy = {
every_de_jure_county = {
limit = {
holder = {
top_liege = scope:defender
NOR = {
is_ai = no
is_at_war_with = scope:defender
}
}
}
add_to_list = devastation_area
}
}
every_vassal_or_below = {
add_to_list = defender_realm_vassals
}
#is this violent retribution for refusing the khan's generosity?
if = {
limit = {
exists = scope:khans_retribution_target
}
scope:attacker = {
custom_tooltip = gok_gain_dread_tt
}
custom_tooltip = gok_ruin_additional_destruction_tt
if = {
limit = {
government_has_flag = government_is_nomadic
scope:defender.capital_county = {
any_county_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
}
scope:attacker = {
custom_tooltip = gok_gain_herd_tt
}
}
else = {
scope:attacker = {
custom_tooltip = gok_gain_gold_tt
}
}
hidden_effect = {
scope:attacker = {
#First off, gain dread
add_dread = gok_retribution_dread_value
#Gain herd or gold
if = {
limit = {
government_has_flag = government_is_nomadic
scope:defender.capital_county = {
any_county_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
}
domicile = {
change_herd = gok_retribution_herd_value
}
}
else = {
add_short_term_gold = gok_retribution_gold_value
}
}
#Tank control everywhere
every_sub_realm_county = {
limit = {
NOT = {
is_in_list = devastation_area
}
}
change_county_control = massive_county_control_loss
change_development_level = {
subtract = development_level
multiply = 0.2
floor = yes
}
}
#Destroy the holdings
every_in_list = {
list = devastation_area
limit = {
any_county_province = {
has_holding = yes
is_county_capital = no
}
}
every_county_province = {
limit = {
has_holding = yes
is_county_capital = no
}
random = {
chance = 50
remove_holding = yes
add_to_list = destroyed_holdings
}
}As written in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt.
The first 120 of its 387 lines; the rest is in game/common/scripted_effects/09_mpo_greatest_of_khans_effects.txt from line 6921.
Where it is used
Every place in common/, events/ and history/ that calls gok_realm_devastation_effect.
Casus belli (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.