Scripted effect · Khans of the Steppe files
migration_set_obedient_vassal_effect
migration_set_obedient_vassal_effect = yesgame/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 841 (57 lines). No parameters.
migration_set_obedient_vassal_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 841 of its file. It takes no parameters: migration_set_obedient_vassal_effect = yes. The game's script calls it in 1 place, among them Migrate (interaction). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
What it does
- Every realm county:
- Where:
holder = scope:current_vassalis_nomad_title = no- The … is not a Noble Family Title
create_character = { … }- Gains the … Title (herder character)
- Their province:
If
has_holding_type = nomad_holding
Then
set_holding_type = herder_holding
- Where:
- Every held title:
- Where: Title tier at least Duchy
prev:destroy_title = prev
- Every in list:
- Adopts Herder Government
remove_from_list = government_change
• 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 (57 lines of game script)
migration_set_obedient_vassal_effect = {
create_title_and_vassal_change = {
type = migration
save_scope_as = change
}
every_realm_county = {
limit = {
holder = scope:current_vassal
is_nomad_title = no
is_noble_family_title = no
}
create_character = {
template = herder_character
faith = scope:current_vassal.domicile.domicile_faith
rite = scope:current_vassal.domicile.domicile_rite
culture = scope:current_vassal.domicile.domicile_culture
location = scope:current_vassal.primary_title.title_capital_county.title_province
save_scope_as = herder_character
after_creation = {
remove_character_flag = peasant_outfit
add_to_list = government_change
}
}
change_title_holder = {
holder = scope:herder_character
change = scope:change
}
title_province = {
if = {
limit = {
has_holding_type = nomad_holding
}
set_holding_type = herder_holding
}
}
}
resolve_title_and_vassal_change = scope:change
every_held_title = {
limit = {
tier >= tier_duchy
}
prev = { destroy_title = prev }
}
every_in_list = {
list = government_change
change_government = herder_government
remove_from_list = government_change
}
scope:actor = {
add_to_variable_list = {
name = obedient_vassals
target = scope:current_vassal
}
}
}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 migration_set_obedient_vassal_effect.
Character interactions (1)
- Migrate
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.