Scripted trigger
is_valid_religious_war_target_trigger
is_valid_religious_war_target_trigger = { TARGET = … }game/common/scripted_triggers/00_religious_triggers.txt, line 1023 (10 lines). Parameters: $TARGET$.
is_valid_religious_war_target_trigger is a scripted trigger in Crusader Kings III, written at line 1023 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 4 places, among them Holy (casus belli), Major Holy (casus belli) and Minor Holy (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
The comment above it in the file
Character scope: may this attacker press a religious war against TARGET?
What it checks
One of these
- Their rite:
is_hostile_enough_for_holy_war_trigger = { RITE = $TARGET$.rite }
or
All of these
- Their rite: The rite has Grants a Holy War Casus Belli against Characters of the same Religion whose Rite lacks this tenet
religion = $TARGET$.religionNOT = { $TARGET$.rite = { rite_has_tenet = tenet_literalism } }
- Their rite:
• 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)
is_valid_religious_war_target_trigger = {
OR = {
rite = { is_hostile_enough_for_holy_war_trigger = { RITE = $TARGET$.rite } }
AND = {
rite = { rite_has_parameter = literalism_holy_war_cb_active }
religion = $TARGET$.religion
NOT = { $TARGET$.rite = { rite_has_tenet = tenet_literalism } }
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_valid_religious_war_target_trigger.
Casus belli (3)
Events (1)
Source: game/common/scripted_triggers/00_religious_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.