Scripted effect
pick_up_remaining_counties_effect
pick_up_remaining_counties_effect = yesgame/common/scripted_effects/00_mongol_invasion_effects.txt, line 4436 (603 lines). No parameters.
pick_up_remaining_counties_effect is a scripted effect in Crusader Kings III, written at line 4436 of its file. It takes no parameters: pick_up_remaining_counties_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
Effect to clean up borders a little
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
pick_up_remaining_counties_effect = {
### Ilkhanate
if = {
limit = {
NOT = { exists = global_var:ilkhanate_handed_out }
any_in_list = {
list = ilkhanate_counties
count > 0
}
}
# Try giving them to Chagatai
if = {
limit = {
exists = global_var:chagatai_handed_out
}
every_in_list = {
list = ilkhanate_counties
add_to_list = chagatai_counties
}
}
# Try Red Horde
else_if = {
limit = {
exists = global_var:red_horde_handed_out
}
every_in_list = {
list = ilkhanate_counties
add_to_list = red_horde_counties
}
}
# Try Golden Horde
else_if = {
limit = {
exists = global_var:golden_horde_handed_out
}
every_in_list = {
list = ilkhanate_counties
add_to_list = golden_horde_counties
}
}
# Try Baruun
else_if = {
limit = {
exists = global_var:baruun_khanate_handed_out
}
every_in_list = {
list = ilkhanate_counties
add_to_list = baruun_khanate_counties
}
}
}
### End Ilkhanate
### Golden Horde
if = {
limit = {
NOT = { exists = global_var:golden_horde_handed_out }
any_in_list = {
list = golden_horde_counties
count > 0
}
}
# Try giving them to White Horde
if = {
limit = {
exists = global_var:white_horde_handed_out
}
every_in_list = {
list = golden_horde_counties
add_to_list = white_horde_counties
}
}
# Try Aarlud Khanate
else_if = {
limit = {
exists = global_var:aarlud_khanate_handed_out
}
every_in_list = {
list = golden_horde_counties
add_to_list = aarlud_khanate_counties
}
}
# Try Chagatai
else_if = {
limit = {
exists = global_var:chagatai_handed_out
}
every_in_list = {
list = golden_horde_counties
add_to_list = chagatai_counties
}
}
# Try Ilkhanate
else_if = {
limit = {
exists = global_var:ilkhanate_handed_out
}
every_in_list = {
list = golden_horde_counties
add_to_list = ilkhanate_counties
}
}
}
### End Golden Horde
### Chagatai
if = {
limit = {
NOT = { exists = global_var:chagatai_handed_out }
any_in_list = {
list = chagatai_counties
count > 0
}
}
# Try giving them to Golden Horde
if = {
limit = {
exists = global_var:golden_horde_handed_out
}
every_in_list = {As written in game/common/scripted_effects/00_mongol_invasion_effects.txt.
The first 120 of its 603 lines; the rest is in game/common/scripted_effects/00_mongol_invasion_effects.txt from line 4436.
Where it is used
Every place in common/, events/ and history/ that calls pick_up_remaining_counties_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.