Scripted effect
add_favour_hook_if_possible_simple_effect
add_favour_hook_if_possible_simple_effect = { TARGET = … }game/common/scripted_effects/00_hook_effects.txt, line 43 (14 lines). Parameters: $TARGET$.
add_favour_hook_if_possible_simple_effect is a scripted effect in Crusader Kings III, written at line 43 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 16 places, among them A Common Enemy (event agent_events.3051), A Glorious Expedition! (event diarchy.8011) and A Tool for the Wielding (event bp2_yearly.0661). Patch 1.20.1.2, from game/common/scripted_effects/00_hook_effects.txt.
What it does
If
can_add_hook = { target = $TARGET$ type = favor_hook }
Then
add_hook = { target = $TARGET$ type = favor_hook }
• 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 (14 lines of game script)
add_favour_hook_if_possible_simple_effect = {
if = {
limit = {
can_add_hook = {
target = $TARGET$
type = favor_hook
}
}
add_hook = {
target = $TARGET$
type = favor_hook
}
}
}As written in game/common/scripted_effects/00_hook_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_favour_hook_if_possible_simple_effect.
Events (16)
- A Common Enemy
agent_events.3051 - A Glorious Expedition!
diarchy.8011 - A Tool for the Wielding
bp2_yearly.0661 - Camp Gossip: Cruel Pranks
ep3_laamp_flavour_ewan.2014 - Camp Gossip: Hidden Feud
ep3_laamp_flavour_ewan.2016 - Camp Gossip: Petty Theft
ep3_laamp_flavour_ewan.2013
10 more
- Camp Gossip: Rumormonger
ep3_laamp_flavour_ewan.2015 - Close Working Conditions
agent_events.0011 - Closer Working Conditions
agent_events.0012 - My Spot
ep3_laamp_flavour_ewan.2061 - Render Unto …: Null & Void
laamp_base_contract_schemes.2324 - Side Hustle
laamp_base_contract_schemes.0811 - The Family that Stays Together
agent_events.3021 - Travails of a Cook
ep3_laamp_flavour_ewan.0041 - vizierate.1001
- Whispered Words
bp2_yearly.0631
Source: game/common/scripted_effects/00_hook_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.