Scripted trigger
relic_war_valid_against_defender_trigger
relic_war_valid_against_defender_trigger = yesgame/common/scripted_triggers/00_artifact_triggers.txt, line 2250 (32 lines). No parameters.
relic_war_valid_against_defender_trigger is a scripted trigger in Crusader Kings III, written at line 2250 of its file. It takes no parameters: relic_war_valid_against_defender_trigger = yes (or no). No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_artifact_triggers.txt.
What it checks
- Any character artifact:
One of these
All of these
is_holy_relic_for = scope:attacker.faithNOT = { is_holy_relic_for = scope:defender.faith }
or
All of these
exists = var:relic- Relic is Iberian Struggle
scope:attacker:- Any character struggle:
is_struggle_type = iberian_struggle
One of these
scope:attacker:or
scope:attacker:
- Any character struggle:
scope:attacker.faith != scope:defender.faith
• 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 (32 lines of game script)
relic_war_valid_against_defender_trigger = {
any_character_artifact = {
OR = {
# Standard holy relics.
AND = {
is_holy_relic_for = scope:attacker.faith
NOT = {
is_holy_relic_for = scope:defender.faith
}
}
# Struggle relics.
## The Bells of Santiago de Compostela.
AND = {
exists = var:relic
var:relic = flag:iberian_struggle
scope:attacker = {
any_character_struggle = { is_struggle_type = iberian_struggle }
# Plus one of the valid using faiths.
OR = {
scope:attacker = {
islamic_artifact_access_trigger = yes
}
scope:attacker = {
christian_artifact_access_trigger = yes
}
}
}
scope:attacker.faith != scope:defender.faith
}
}
}
}As written in game/common/scripted_triggers/00_artifact_triggers.txt.
Where it is used
No file of common/, events/ or history/ calls it.
Source: game/common/scripted_triggers/00_artifact_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.