Scripted effect · All Under Heaven files
japanese_become_shogun_reward_effect
japanese_become_shogun_reward_effect = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 501 (60 lines). No parameters.
japanese_become_shogun_reward_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 501 of its file. It takes no parameters: japanese_become_shogun_reward_effect = yes. The game's script calls it in 2 places, among them Formalize … Shōgunate (decision) and The … Shōgunate (event tgp_japan_decision.9101). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
What it does
japan_clear_flavour_flags_effect = yesIf
a check the game hides
Then
create_legend_seed = { … }
- Dread +50
- Gains 500 Legitimacy
- Adopts the Limited Oversight Law
- Their dynasty: The dynasty gains +1,000 Renown
- Their culture:
- If the culture has the tradition Fragile Peace: … Culture's Fragile Peace Tradition is replaced by Bushidō
- Otherwise: Unlocks the Bushidō Tradition
- Every culture global:
- Where:
- Their culture has the tradition Fragile Peace
One of these
- Their Culture has the Japonic Cultural Pillar
or
culture_head ?= { government_is_japanese_trigger = yes }
- … Culture's Fragile Peace Tradition is replaced by Bushidō
- Where:
- • Every Ritsuryō Vassal:
- Where: Government is Ritsuryō
- Adopts Sōryō Government
• 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 (60 lines of game script)
japanese_become_shogun_reward_effect = {
# Setup
japan_clear_flavour_flags_effect = yes
set_global_variable = {
name = shogunate_established
value = yes
}
add_character_flag = shogun_flag
# Rewards
if = {
limit = { has_dlc_feature = legends }
create_legend_seed = {
type = legitimizing
quality = illustrious
chronicle = great_deed_dynasty
properties = {
dynasty = root.dynasty
founder = root
title = primary_title
}
}
}
add_dread = massive_dread_gain
add_legitimacy = monumental_legitimacy_gain
add_realm_law = japanese_bureaucracy_1
dynasty = { add_dynasty_prestige = monumental_dynasty_prestige_gain }
culture = {
if = {
limit = { has_cultural_tradition = tradition_tgp_imperial_peace }
custom_tooltip = {
text = tradition_tgp_bushido_tt
remove_culture_tradition = tradition_tgp_imperial_peace
add_culture_tradition = tradition_tgp_bushido
}
}
else = { custom_tooltip = unlocks_bushido_tradition_tooltip }
}
every_culture_global = {
limit = {
has_cultural_tradition = tradition_tgp_imperial_peace
OR = {
has_cultural_pillar = heritage_japonic
culture_head ?= { government_is_japanese_trigger = yes }
}
}
custom_tooltip = {
text = tradition_tgp_bushido_tt
remove_culture_tradition = tradition_tgp_imperial_peace
add_culture_tradition = tradition_tgp_bushido
}
}
every_vassal = {
custom = every_japan_admin_vassal_custom_bullet
limit = {
government_has_flag = government_is_japan_administrative
}
show_as_tooltip = { change_government = japan_feudal_government }
}
}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 japanese_become_shogun_reward_effect.
Decisions (1)
Events (1)
- The … Shōgunate
tgp_japan_decision.9101
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.