Scripted effect · All Under Heaven files
restore_ceremonial_liege_faction_combined_effect
restore_ceremonial_liege_faction_combined_effect = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 562 (25 lines). No parameters.
restore_ceremonial_liege_faction_combined_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 562 of its file. It takes no parameters: restore_ceremonial_liege_faction_combined_effect = yes. The game's script calls it in 3 places, among them In Service of the … (event tgp_faction_events.0206), tgp_faction_events.0201 (event) and tgp_faction_events.0202 (event). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
What it does
If
scope:regent_temp != scope:ceremonial_liege_temp
Then
faction_demand_regent_transfer_effect = { NEW_REGENT = scope:ceremonial_liege_temp REASON = faction_demand }
japan_clear_flavour_flags_effect = yesrestore_ceremonial_liege_faction_reward_effect = yes- scope:ceremonial_liege_temp: Event tgp_japan_decision.9301
• 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 (25 lines of game script)
restore_ceremonial_liege_faction_combined_effect = {
top_liege = {
save_temporary_scope_as = regent_temp
primary_title = {
save_temporary_scope_as = realm_temp
var:administrative_ui_special_title.holder ?= { save_temporary_scope_as = ceremonial_liege_temp }
}
}
if = {
limit = { scope:regent_temp != scope:ceremonial_liege_temp }
faction_demand_regent_transfer_effect = {
NEW_REGENT = scope:ceremonial_liege_temp
REASON = faction_demand
}
}
# GLOBAL VAR
japan_clear_flavour_flags_effect = yes
set_global_variable = {
name = tenno_restored
value = yes
}
show_as_tooltip = { restore_ceremonial_liege_faction_reward_effect = yes }
# Event for Ceremonial Liege
scope:ceremonial_liege_temp = { trigger_event = tgp_japan_decision.9301 }
}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 restore_ceremonial_liege_faction_combined_effect.
Events (3)
- In Service of the …
tgp_faction_events.0206 - tgp_faction_events.0201
- tgp_faction_events.0202
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.