Scripted trigger
war_declarer_needs_hook_on_liege
war_declarer_needs_hook_on_liege = yesgame/common/scripted_triggers/00_war_and_peace_triggers.txt, line 455 (18 lines). No parameters.
war_declarer_needs_hook_on_liege is a scripted trigger in Crusader Kings III, written at line 455 of its file. It takes no parameters: war_declarer_needs_hook_on_liege = yes (or no). The game's script calls it in 2 places, among them Declare War (interaction) and allows_declaring_war_against_target_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.
What it checks
- Is an Independent Ruler
liege != scope:recipientNot all of these
- they has administrative government mechanic
- Their liege: they has administrative government mechanic
NOT = { vassal_contract_has_flag = vassal_contract_war_override }One of these
All of these
liege = scope:recipient.liege- Their liege:
has_realm_law_flag = vassal_internal_wars_banned
or
Their liege:has_realm_law_flag = vassal_all_wars_banned
• 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 (18 lines of game script)
war_declarer_needs_hook_on_liege = {
top_liege != this
liege != scope:recipient
NAND = {
government_has_mechanic = administrative
liege = { government_has_mechanic = administrative }
}
NOT = {
vassal_contract_has_flag = vassal_contract_war_override
}
OR = {
AND = {
liege = scope:recipient.liege
liege = { has_realm_law_flag = vassal_internal_wars_banned }
}
liege = { has_realm_law_flag = vassal_all_wars_banned }
}
}As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls war_declarer_needs_hook_on_liege.
Character interactions (1)
Scripted triggers (1)
Source: game/common/scripted_triggers/00_war_and_peace_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.