Scripted trigger
are_holy_wars_disabled_in_struggle_phase_trigger
are_holy_wars_disabled_in_struggle_phase_trigger = yesgame/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt, line 384 (21 lines). No parameters.
are_holy_wars_disabled_in_struggle_phase_trigger is a scripted trigger in Crusader Kings III, written at line 384 of its file. It takes no parameters: are_holy_wars_disabled_in_struggle_phase_trigger = yes (or no). The game's script calls it in 5 places, among them Incite Holy War (interaction), Holy (casus belli) and Major Holy (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt.
The comment above it in the file
Can conquest holy wars be accessed in the current phase of the struggle?
What it checks
If
a check the game hides
Then
scope:target.tier = tier_county- scope:target › Any county struggle:
NOT = { has_struggle_phase_parameter = holy_wars_in_region_cannot_be_declared }
Otherwise
- scope:target › Any in de facto hierarchy:
- Title tier exactly County
- Any county struggle:
NOT = { has_struggle_phase_parameter = holy_wars_in_region_cannot_be_declared }
• 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)
are_holy_wars_disabled_in_struggle_phase_trigger = {
exists = scope:target
trigger_if = {
scope:target.tier = tier_county
scope:target = {
any_county_struggle = {
NOT = { has_struggle_phase_parameter = holy_wars_in_region_cannot_be_declared }
}
}
}
trigger_else = { # For Duchy and Kingdom Holy War
scope:target = {
any_in_de_facto_hierarchy = { # We only consider county within the realm of the target's holder
tier = tier_county
any_county_struggle = {
NOT = { has_struggle_phase_parameter = holy_wars_in_region_cannot_be_declared }
}
}
}
}
}As written in game/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls are_holy_wars_disabled_in_struggle_phase_trigger.
Character interactions (1)
Casus belli (3)
Scripted triggers (1)
Source: game/common/scripted_triggers/00_generic_struggle_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.