Scripted trigger · All Under Heaven files
tgp_install_regent_faction_can_create_trigger
tgp_install_regent_faction_can_create_trigger = yesgame/common/scripted_triggers/10_tgp_japan_triggers.txt, line 473 (33 lines). No parameters.
tgp_install_regent_faction_can_create_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 473 of its file. It takes no parameters: tgp_install_regent_faction_can_create_trigger = yes (or no). The game's script calls it in 1 place, among them Install Ruling Regent Faction (factions). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.
What it checks
scope:target:- Only a Kampaku or Jōkō can be replaced
- Is an Adult
- … gender (…) is dominant in … Faith (⟨faith⟩)
japan_faction_cohesion_hard_trigger = yes
• 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 (33 lines of game script)
tgp_install_regent_faction_can_create_trigger = {
has_tgp_dlc_trigger = yes
scope:target ?= { tgp_install_regent_faction_target_valid_trigger = yes }
custom_tooltip = {
text = replace_ceremonial_regent_faction_kampaku_trigger
NOR = {
has_global_variable = shogunate_established
has_global_variable = tenno_restored
}
}
is_adult = yes
custom_tooltip = {
text = is_faith_dominant_gender_tt
is_faith_dominant_gender = yes
}
japan_faction_cohesion_hard_trigger = yes
trigger_if = {
limit = {
scope:target ?= {
government_is_japanese_trigger = yes # am I a compatible government type?
}
}
government_is_japanese_trigger = yes
}
trigger_if = {
limit = {
scope:target ?= {
government_has_flag = government_is_meritocratic # am I a compatible government type?
}
}
government_has_flag = government_is_meritocratic
}
}As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_install_regent_faction_can_create_trigger.
Factions (1)
- Install Ruling Regent Faction
Source: game/common/scripted_triggers/10_tgp_japan_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.