Scripted effect
shift_counties_on_mongol_succession_effect
shift_counties_on_mongol_succession_effect = yesgame/common/scripted_effects/00_mongol_invasion_effects.txt, line 5552 (4980 lines). No parameters.
shift_counties_on_mongol_succession_effect is a scripted effect in Crusader Kings III, written at line 5552 of its file. It takes no parameters: shift_counties_on_mongol_succession_effect = yes. The game's script calls it in 1 place, among them break_up_mongol_empire_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_mongol_invasion_effects.txt.
The comment above it in the file
Forcibly shift counties around as appropriate
What it does
- Every in list › Every held title:
- Where:
is_landless_type_title = no
title_tier = county
- Where:
- scope:old_mongol_emperor › Every held title:
- Where:
is_landless_type_title = no
title_tier = county
- Where:
If
a check the game hides
Then
- Every in list: Gains the … Title (ilkhanate ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:ilkhanate_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (golden horde ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:golden_horde_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (chagatai ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:chagatai_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (great yuan ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:great_yuan_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (red horde ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:red_horde_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (white horde ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:white_horde_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (blue horde ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:blue_horde_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (omnod dalai khanate ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:omnod_dalai_khanate_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (aarlud khanate ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:aarlud_khanate_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (togskol khanate ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:togskol_khanate_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- Every in list: Gains the … Title (baruun khanate ruler)
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:baruun_khanate_ruler change = scope:mongol_succession }
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal or below:
change_liege = { liege = scope:mongolia_ruler change = scope:mongol_succession }
- scope:old_mongol_emperor › Every vassal or below:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire ilkhanate region region
change_liege = { liege = scope:ilkhanate_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire golden horde region region
change_liege = { liege = scope:golden_horde_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire chagatai region region
change_liege = { liege = scope:chagatai_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire great yuan region region
change_liege = { liege = scope:great_yuan_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire red horde region region
change_liege = { liege = scope:red_horde_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire white horde region region
change_liege = { liege = scope:white_horde_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If
a check the game hides
Then
- scope:old_mongol_emperor › Every vassal:
- Where:
has_none_of_variables = { … }- Their capital province: Is in the special mongol empire blue horde region region
change_liege = { liege = scope:blue_horde_ruler change = scope:mongol_succession }
- Where:
- scope:old_mongol_emperor › Every vassal:
If a check the game hides passes: the same again (2 lines)
- scope:old_mongol_emperor › Every vassal:
- Where: … (more in the script below)
- … (more in the script below)
- scope:old_mongol_emperor › Every vassal:
- … (more in the script below)
• 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)
shift_counties_on_mongol_succession_effect = {
every_in_list = {
list = selected_mongol_heirs
every_held_title = {
title_tier = county
limit = {
is_landless_type_title = no
}
if = {
limit = {
exists = global_var:ilkhanate_handed_out
is_in_list = ilkhanate_counties
NOT = { holder = { has_title = title:e_ilkhanate } }
}
add_to_list = ilkhanate_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = ilkhanate_titles_for_transfer
}
}
}
if = {
limit = {
exists = global_var:golden_horde_handed_out
is_in_list = golden_horde_counties
NOT = { holder = { has_title = title:e_golden_horde } }
}
add_to_list = golden_horde_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = golden_horde_titles_for_transfer
}
}
}
if = {
limit = {
exists = global_var:chagatai_handed_out
is_in_list = chagatai_counties
NOT = { holder = { has_title = title:e_chagatai } }
}
add_to_list = chagatai_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = chagatai_titles_for_transfer
}
}
}
if = {
limit = {
exists = global_var:great_yuan_handed_out
is_in_list = great_yuan_counties
NOT = { holder = { has_title = scope:great_yuan_title } }
}
add_to_list = great_yuan_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = great_yuan_titles_for_transfer
}
}
}
if = {
limit = {
exists = global_var:red_horde_handed_out
is_in_list = red_horde_counties
NOT = { holder = { has_title = title:e_red_horde } }
}
add_to_list = red_horde_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = red_horde_titles_for_transfer
}
}
}
if = {
limit = {
exists = global_var:white_horde_handed_out
is_in_list = white_horde_counties
NOT = { holder = { has_title = title:e_white_horde } }
}
add_to_list = white_horde_titles_for_transfer
# Also mark duchies for transfer if relevant
if = {
limit = {
exists = duchy.holder
holder = duchy.holder
}
duchy = {
add_to_list = white_horde_titles_for_transfer
}
}
}As written in game/common/scripted_effects/00_mongol_invasion_effects.txt.
The first 120 of its 4980 lines; the rest is in game/common/scripted_effects/00_mongol_invasion_effects.txt from line 5552.
Where it is used
Every place in common/, events/ and history/ that calls shift_counties_on_mongol_succession_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_mongol_invasion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.