CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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.

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.

Spotted a mistake on this page?