Scripted effect · All Under Heaven files
tgp_assign_china_realm_name_options_effect
tgp_assign_china_realm_name_options_effect = yesgame/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt, line 776 (1533 lines). No parameters.
tgp_assign_china_realm_name_options_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 776 of its file. It takes no parameters: tgp_assign_china_realm_name_options_effect = yes. The game's script calls it in 1 place, among them The Foundation of a State (event tgp_dynastic_cycle.9001). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt.
What it does
- 1 of 89 things will happen:
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): Nothing else happens
- 0 (base chance; changed in play): … (more in the script below)
- … (more in the script below)
• 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 (120 lines of game script)
tgp_assign_china_realm_name_options_effect = {
random_list = {
pick = 3
unique = yes
0 = { # Ba 巴
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_ba_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_ba_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_ba
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_ba }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_ba }
}
0 = { # Bao 宝
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_bao_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_bao_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_bao
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_bao }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_bao }
}
0 = { # Bi 毕
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_bi_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_bi_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_bi
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_bi }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_bi }
}
0 = { # Cai 蔡
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_cai_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_cai_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_cai
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_cai }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_cai }
}
0 = { # Cao 曹
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_cao_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_cao_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_cao
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_cao }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_cao }
}
0 = { # Chen 陈
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_chen_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_chen_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_chen
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_chen }
}
}
add_to_variable_list = { name = realm_title_names target = flag:dynn_title_chen }
}
0 = { # Cheng 成
modifier = {
add = 100
OR = {
capital_province ?= { geographical_region = tgp_cheng_region }
scope:title.capital_county.title_province ?= { geographical_region = tgp_cheng_region }
}
}
modifier = {
factor = 0
OR = {
is_title_localization_key_used = dynn_title_cheng
is_target_in_variable_list = { name = realm_title_names target = flag:dynn_title_cheng }
}As written in game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt.
The first 120 of its 1533 lines; the rest is in game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt from line 776.
Where it is used
Every place in common/, events/ and history/ that calls tgp_assign_china_realm_name_options_effect.
Events (1)
- The Foundation of a State
tgp_dynastic_cycle.9001
Source: game/common/scripted_effects/10_dlc_tgp_dynastic_cycle_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.