Scripted effect · All Under Heaven files
tgp_japan_assert_regional_dominance_war_outcome_effect
tgp_japan_assert_regional_dominance_war_outcome_effect = yesgame/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt, line 3587 (51 lines). No parameters.
tgp_japan_assert_regional_dominance_war_outcome_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3587 of its file. It takes no parameters: tgp_japan_assert_regional_dominance_war_outcome_effect = yes. The game's script calls it in 2 places, among them … Under One Banner (event tgp_japan_decision.9961) and tgp_japan_assert_regional_dominion_government_decision_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_japan_scripted_effects.txt.
What it does
- Gains the … Title (root)
- Every de jure county:
- Where:
holder.top_liege = root.top_liegeholder.liege = root.top_liegeNone of these
holder = rootholder.liege = root- Their holder:
is_liege_or_above_of = root
this = holder.top_liege.capital_county
If
- Their holder:
Then
- Their holder:
change_liege = { liege = root change = scope:change }
Else if
- Their holder:
One of these
- they has administrative government mechanic
or
this = root.top_liege
Then
- Gains the … Title (root)
- Where:
• 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_japan_assert_regional_dominance_war_outcome_effect = {
create_title_and_vassal_change = {
type = created
save_scope_as = change
}
change_title_holder = {
holder = root
change = scope:change
}
every_de_jure_county = {
limit = {
holder.top_liege = root.top_liege # in same realm
holder.liege = root.top_liege # is not already a sub-vassal
NOR = {
holder = root # held my me
holder.liege = root # or my vassal
holder = { is_liege_or_above_of = root } # or my liege
this = holder.top_liege.capital_county # stop transfer of capital
}
}
if = {
limit = {
holder = {
NOT = { government_has_mechanic = administrative }
highest_held_title_tier <= tier_county
}
}
holder = {
change_liege = {
liege = root
change = scope:change
}
}
}
else_if = {
limit = {
holder = {
OR = {
government_has_mechanic = administrative
this = root.top_liege
}
}
}
change_title_holder = {
holder = root
change = scope:change
}
}
}
resolve_title_and_vassal_change = scope:change
}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_japan_assert_regional_dominance_war_outcome_effect.
Events (1)
- … Under One Banner
tgp_japan_decision.9961
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.