Scripted effect
add_hook_from_temp_de_jure_liege_to_attacker
add_hook_from_temp_de_jure_liege_to_attacker = yesgame/common/scripted_effects/00_casus_belli_effects.txt, line 498 (30 lines). No parameters.
add_hook_from_temp_de_jure_liege_to_attacker is a scripted effect in Crusader Kings III, written at line 498 of its file. It takes no parameters: add_hook_from_temp_de_jure_liege_to_attacker = yes. The game's script calls it in 4 places, among them De Jure (casus belli), Individual De Jure County (casus belli) and Individual De Jure Duchy (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_casus_belli_effects.txt.
What it does
If
scope:temp_de_jure_liege != scope:attackerscope:temp_de_jure_liege:target_is_liege_or_above = scope:attacker
- scope:temp_de_jure_liege: Is played by the AI
scope:attacker:can_add_hook = { type = favor_hook target = scope:temp_de_jure_liege }
Then
scope:attacker:add_hook = { type = favor_hook target = scope:temp_de_jure_liege }
• 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 (30 lines of game script)
add_hook_from_temp_de_jure_liege_to_attacker = {
# Assumes scope of title to be conquered.
# Assumes scope:attacker to be set for the character initiating the war.
# Assumes scope:temp_de_jure_liege to be set for the de jure liege that
# might gain a title from the war.
# Outcome: De jure liege of the contested title will owe a favor towards
# the attacker of the war if the de jure liege is in the vassal tree of the attacker.
if = {
limit = {
exists = scope:temp_de_jure_liege
scope:temp_de_jure_liege != scope:attacker
scope:temp_de_jure_liege = { target_is_liege_or_above = scope:attacker }
scope:temp_de_jure_liege = {
is_ai = yes
}
scope:attacker = {
can_add_hook = {
type = favor_hook
target = scope:temp_de_jure_liege
}
}
}
scope:attacker = {
add_hook = {
type = favor_hook
target = scope:temp_de_jure_liege
}
}
}
}As written in game/common/scripted_effects/00_casus_belli_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_hook_from_temp_de_jure_liege_to_attacker.
Casus belli (3)
Scripted effects (1)
Source: game/common/scripted_effects/00_casus_belli_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.