Scripted effect
convert_great_yuan_to_admin_effect
convert_great_yuan_to_admin_effect = yesgame/common/scripted_effects/00_mongol_invasion_effects.txt, line 11903 (110 lines). No parameters.
convert_great_yuan_to_admin_effect is a scripted effect in Crusader Kings III, written at line 11903 of its file. It takes no parameters: convert_great_yuan_to_admin_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.
What it does
If
a check the game hides
Then
found_cadet_house_decision_effect = { CHARACTER = scope:administrative_liege PRESTIGE = 0 }- Their house: The coat of arms changes
change_to_administrative_effect = yes
• 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 (110 lines of game script)
convert_great_yuan_to_admin_effect = {
save_scope_as = administrative_liege
#Create cadet branch to ensure you have a domicile
if = {
limit = {
exists = house.house_head
NOT = {
this = house.house_head
}
}
#Create cadet branch
found_cadet_house_decision_effect = {
CHARACTER = scope:administrative_liege
PRESTIGE = 0
}
house = {
set_coa = scope:administrative_liege.capital_province.barony
}
}
change_to_administrative_effect = yes
#Direct Vassals who fulfill the tgp_mongol_vassal_will_become_admin criteria are converted. Vassals above 25 opinion always accept
#Vassals are converted as a hierarchy. If a king is converted we convert all who are valid below that king (so his dukes, their counts, and their barons) are all converted.
#If a vassal does not convert (because of not accepting or because they are outside of the de jure empire, etc) then the vassals below them are _not_ converted either.
#Human vassals are given a choice to convert or not in the ping event, even if powerful or having very good relation.
hidden_effect = {
save_scope_as = actor
every_vassal = {
limit = {
tgp_mongol_vassal_will_become_admin = yes
}
save_scope_as = recipient
change_to_administrative_effect = yes
every_vassal = { #Everyone below also converts (could be Counts, could be Dukes)
limit = {
tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops
is_ai = yes
}
save_scope_as = recipient
change_to_administrative_effect = yes
every_vassal = { #Everyone below also converts (Could be Counts, could be Barons)
limit = {
tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops
is_ai = yes
}
save_scope_as = recipient
change_to_administrative_effect = yes
every_vassal = { #Everyone below also converts (could be Barons)
limit = {
tgp_mongol_vassal_will_become_admin = yes #We still don't want mayors and bishops
is_ai = yes
}
save_scope_as = recipient
change_to_administrative_effect = yes
}
}
}
}
}
if = {
limit = {
NOT = {
has_character_flag = latin_emp_force_admin_flag
}
top_liege = this
}
add_character_modifier = {
modifier = first_admin_emperor
}
}
change_influence = 1500
add_treasury = 2500
every_vassal_or_below = {
limit = {
is_ai = no
tgp_mongol_vassal_will_become_admin = yes
}
trigger_event = ep3_decisions_event.4065
}
if = {
limit = {
exists = capital_county
NOT = {
domicile.domicile_location.county ?= capital_county
}
}
domicile = {
move_domicile = scope:administrative_liege.capital_province
}
}
if = {
limit = {
tgp_use_chinese_naming_trigger = yes
highest_held_title_tier >= tier_empire
primary_title = {
has_custom_title_name = no
}
}
trigger_event = {
id = tgp_dynastic_cycle.9000
days = 1
}
}
}As written in game/common/scripted_effects/00_mongol_invasion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls convert_great_yuan_to_admin_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.