Scripted trigger
valid_ghw_target_trigger
valid_ghw_target_trigger = { FAITH = … }game/common/scripted_triggers/00_great_holy_war_triggers.txt, line 89 (21 lines). Parameters: $FAITH$.
valid_ghw_target_trigger is a scripted trigger in Crusader Kings III, written at line 89 of its file. A call passes 1 parameter: FAITH. The game's script calls it in 5 places, among them Call … (decision), Choose an Opponent (decision) and Enact a Bull (decision). Patch 1.20.1.2, from game/common/scripted_triggers/00_great_holy_war_triggers.txt.
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 (21 lines of game script)
valid_ghw_target_trigger = {
exists = capital_vassal.capital_vassal
any_in_de_jure_hierarchy = {
continue = { tier > tier_county }
tier = tier_county
count >= 5
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
}
}
NOT = {
any_in_de_jure_hierarchy = {
continue = { tier > tier_county }
tier = tier_county
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
prev.holder.top_liege.current_military_strength > { value = scope:faith_strength }
}
}
}
}As written in game/common/scripted_triggers/00_great_holy_war_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls valid_ghw_target_trigger.
Decisions (3)
Scripted effects (1)
Scripted triggers (1)
Source: game/common/scripted_triggers/00_great_holy_war_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.