Scripted trigger · By God Alone files
is_valid_cathedral_upgrade_spot_in_province_trigger
is_valid_cathedral_upgrade_spot_in_province_trigger = yesgame/common/scripted_triggers/pam_scripted_triggers.txt, line 872 (21 lines). No parameters.
is_valid_cathedral_upgrade_spot_in_province_trigger is a scripted trigger in Crusader Kings III, in the By God Alone files, written at line 872 of its file. It takes no parameters: is_valid_cathedral_upgrade_spot_in_province_trigger = yes (or no). The game's script calls it in 2 places, among them pam_cathedral_02 (great project) and has_accessible_cathedral_tier_2_upgrade_site_trigger (scripted trigger). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/pam_scripted_triggers.txt.
What it checks
- An existing Romanesque Grand Cathedral Great Project Building stands in the selected Barony
- No Grand Cathedral Great Project is already under construction in the selected Barony
• 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 (21 lines of game script)
is_valid_cathedral_upgrade_spot_in_province_trigger = {
custom_tooltip = {
text = great_project_cathedral_01_required_for_upgrade_tt
has_building = great_project_cathedral_01
NOT = { has_building = great_project_cathedral_02 }
NOT = { has_building = great_project_cathedral_03 }
}
custom_tooltip = {
text = no_cathedral_upgrade_in_progress_tt
NOR = {
has_building = great_project_cathedral_under_construction
any_great_project_in_province = {
OR = {
great_project_type = pam_cathedral_01
great_project_type = pam_cathedral_02
great_project_type = pam_cathedral_03
}
}
}
}
}As written in game/common/scripted_triggers/pam_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_valid_cathedral_upgrade_spot_in_province_trigger.
Great projects (1)
- pam_cathedral_02
Scripted triggers (1)
Source: game/common/scripted_triggers/pam_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.