Scripted trigger
building_breweries_requirement
building_breweries_requirement = { NUMBER = … }game/common/scripted_triggers/00_building_requirement_triggers.txt, line 1007 (15 lines). Parameters: $NUMBER$.
building_breweries_requirement is a scripted trigger in Crusader Kings III, written at line 1007 of its file. A call passes 1 parameter: NUMBER. The game's script calls it in 8 places, among them Barrel Room (building), Brewing House (building) and Brewing Vats (building). Patch 1.20.1.2, from game/common/scripted_triggers/00_building_requirement_triggers.txt.
What it checks
If
has_building_or_higher = temple_$NUMBER$
Then
One of these
- Their faith is Catholicism
or
Their rite: The rite has Unlocks the Breweries line of Buildings for Temple Holdings
Otherwise
building_requirement_castle_city_church = { LEVEL = $NUMBER$ }- Their culture: The Culture has the Unlocks the Breweries line of Buildings for City Holdings Tradition
• 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 (15 lines of game script)
building_breweries_requirement = {
trigger_if = {
limit = {
has_building_or_higher = temple_$NUMBER$
}
OR = {
faith = faith:catholic
rite = { rite_has_parameter = allows_brewery }
}
}
trigger_else = {
building_requirement_castle_city_church = { LEVEL = $NUMBER$ }
culture = { has_cultural_parameter = allows_brewery }
}
}As written in game/common/scripted_triggers/00_building_requirement_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls building_breweries_requirement.
Source: game/common/scripted_triggers/00_building_requirement_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.