Scripted effect · All Under Heaven files
tgp_restore_japanese_monarchy_decision_effect
tgp_restore_japanese_monarchy_decision_effect = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 2576 (18 lines). No parameters.
tgp_restore_japanese_monarchy_decision_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2576 of its file. It takes no parameters: tgp_restore_japanese_monarchy_decision_effect = yes. The game's script calls it in 3 places, among them Restore a Yamato Ten'nō (decision), Yamato Ten'nō Restored (event tgp_japan_decision.9901) and Yamato Ten'nō Restored (event tgp_japan_decision.9902). Its body carries 1 text 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
tgp_restore_japanese_monarchy_yamato_scion_effect = yes- Gain +350 Prestige
- If government uses Influence: Influence +100
- Otherwise: Gain +100 Piety
If
a check the game hides
Then
add_hook = { type = strong_favor_hook target = scope:scion }
Otherwise
- You will gain a Strong Hook on the new Ten'nō
• 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 (18 lines of game script)
tgp_restore_japanese_monarchy_decision_effect = {
save_scope_as = kampaku
tgp_restore_japanese_monarchy_yamato_scion_effect = yes
add_prestige = major_prestige_value
if = {
limit = { government_has_flag = government_has_influence }
change_influence = major_influence_value
}
else = { add_piety = medium_piety_value }
if = {
limit = { exists = scope:scion }
add_hook = {
type = strong_favor_hook
target = scope:scion
}
}
else = { custom_tooltip = tgp_restore_japanese_monarchy_decision_hook_tt }
}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_decision_effect.
Decisions (1)
Events (2)
- Yamato Ten'nō Restored
tgp_japan_decision.9901 - Yamato Ten'nō Restored
tgp_japan_decision.9902
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.