Scripted effect · All Under Heaven files
tgp_restore_japanese_monarchy_yamato_creation_effect
tgp_restore_japanese_monarchy_yamato_creation_effect = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 2753 (51 lines). No parameters.
tgp_restore_japanese_monarchy_yamato_creation_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2753 of its file. It takes no parameters: tgp_restore_japanese_monarchy_yamato_creation_effect = yes. The game's script calls it in 1 place, among them tgp_restore_japanese_monarchy_yamato_scion_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
What it does
create_character = { … }scope:scion:If
is_female = yes
Then
create_character = { … }
Otherwise
create_character = { … }
• 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 (51 lines of game script)
tgp_restore_japanese_monarchy_yamato_creation_effect = {
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
age = { 16 38 }
save_scope_as = scion
}
scope:scion ?= {
if = {
limit = { is_female = yes }
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
mother = scope:scion
age = { 11 12 }
}
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
mother = scope:scion
age = { 7 8 }
}
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
mother = scope:scion
age = { 3 4 }
}
}
else = {
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
father = scope:scion
age = { 11 12 }
}
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
father = scope:scion
age = { 7 8 }
}
create_character = {
template = tgp_japan_imperial_scion_template
location = scope:kampaku.capital_province
father = scope:scion
age = { 3 4 }
}
}
}
}As written in game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_restore_japanese_monarchy_yamato_creation_effect.
Scripted effects (1)
Source: game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.