Scripted effect · All Under Heaven files
tgp_domicile_conversion_when_changing_government_type
tgp_domicile_conversion_when_changing_government_type = { NEW_DOMICILE_TYPE = … NEW_GOVERNMENT_TYPE = … }game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 5036 (59 lines). Parameters: $NEW_DOMICILE_TYPE$, $NEW_GOVERNMENT_TYPE$.
tgp_domicile_conversion_when_changing_government_type is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 5036 of its file. A call passes 2 parameters: NEW_DOMICILE_TYPE and NEW_GOVERNMENT_TYPE. The game's script calls it in 3 places, among them Adopt Meritocratic Government (decision), change_to_administrative_effect (scripted effect) and tgp_claim_mandate_of_heaven_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (59 lines of game script)
tgp_domicile_conversion_when_changing_government_type = {
hidden_effect = {
if = {
limit = {
any_held_title = {
is_noble_family_title = yes
}
trigger_if = {
limit = {
has_domicile = yes #If we have a domicile we check its type
}
NOT = {
domicile ?= {
is_domicile_type = $NEW_DOMICILE_TYPE$
}
}
}
trigger_else = {
has_domicile = no #If we do not have a domicile we need to still pass so we can add one
}
}
random_held_title = {
limit = {
is_noble_family_title = yes
}
save_scope_as = old_nf_title
}
tgp_wipe_domicile_effect = yes
if = {
limit = {
has_character_flag = new_government_is_byz_admin
}
give_noble_family_title = {
name = noble_family_name
tier = duchy
article = DEFAULT_TITLE_NAME_ARTICLE
government = $NEW_GOVERNMENT_TYPE$
save_scope_as = new_title
}
}
else = {
give_noble_family_title = {
name = noble_family_name
tier = county
article = DEFAULT_TITLE_NAME_ARTICLE
government = $NEW_GOVERNMENT_TYPE$
save_scope_as = new_title
}
}
scope:new_title = {
copy_title_history = scope:old_nf_title
}
destroy_title = scope:old_nf_title
domicile ?= {
set_up_domicile_estate_effect = yes
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_domicile_conversion_when_changing_government_type.
Decisions (1)
Scripted effects (2)
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.