Scripted effect · Khans of the Steppe files
update_domicile_and_courtier_location_effect
update_domicile_and_courtier_location_effect = yesgame/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 817 (23 lines). No parameters.
update_domicile_and_courtier_location_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 817 of its file. It takes no parameters: update_domicile_and_courtier_location_effect = yes. The game's script calls it in 2 places, among them launch_hungarian_migration_scripted_effect (scripted effect) and migration_title_and_vassal_change_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
What it does
- If a ruler:
- Every courtier or guest:
- Where:
location != prev.capital_provinceshould_in_default_location_trigger = yes
set_location_to_default = yes
- Where:
- Every prisoner:
- Where:
location != prev.capital_province
set_location_to_default = yes
- Where:
- Every courtier or guest:
• 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 (23 lines of game script)
update_domicile_and_courtier_location_effect = {
if = {
limit = {
exists = capital_province
is_ruler = yes
}
every_courtier_or_guest = {
limit = {
location != prev.capital_province
should_in_default_location_trigger = yes
}
debug_log = "Courtier not updated in migration"
debug_log_scopes = no
set_location_to_default = yes
}
every_prisoner = {
limit = { location != prev.capital_province }
debug_log = "Prisoner not updated in migration"
debug_log_scopes = no
set_location_to_default = yes
}
}
}As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls update_domicile_and_courtier_location_effect.
Source: game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.