Scripted trigger · Legends of the Dead files
locale_valid_for_legendary_buildings
locale_valid_for_legendary_buildings = yesgame/common/scripted_triggers/06_ce1_legend_triggers.txt, line 13 (10 lines). No parameters.
locale_valid_for_legendary_buildings is a scripted trigger in Crusader Kings III, in the Legends of the Dead files, written at line 13 of its file. It takes no parameters: locale_valid_for_legendary_buildings = yes (or no). The game's script calls it in 7 places, among them give_legendary_building_heroic_tooltip_effect (scripted effect), give_legendary_building_holy_tooltip_effect (scripted effect) and give_legendary_building_legitimizing_tooltip_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/06_ce1_legend_triggers.txt.
What it checks
scope:location:One of these
province_owner = rootor
province_owner.top_liege = root
- Does not have a Special Building slot
• 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 (10 lines of game script)
locale_valid_for_legendary_buildings = {
scope:location ?= {
OR = {
province_owner = root
province_owner.top_liege = root
}
has_special_building_slot = no
}
}As written in game/common/scripted_triggers/06_ce1_legend_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls locale_valid_for_legendary_buildings.
Scripted effects (7)
Source: game/common/scripted_triggers/06_ce1_legend_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.