Scripted effect · By God Alone files
divorce_get_hook_effect
divorce_get_hook_effect = yesgame/common/scripted_effects/pam_effects.txt, line 8358 (18 lines). No parameters.
divorce_get_hook_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8358 of its file. It takes no parameters: divorce_get_hook_effect = yes. The game's script calls it in 3 places, among them Justifying Divorce (event pam_interactions_events.0060), religious_interaction.1 (event) and religious_interaction.6 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
a check the game hides
Then
add_hook = { type = favor_hook target = scope:forcing_divorce }
Otherwise
add_hook = { type = favor_hook target = scope:divorcer }
• 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)
divorce_get_hook_effect = {
if = {
limit = {
exists = scope:forcing_divorce
}
add_hook = {
type = favor_hook
target = scope:forcing_divorce
}
}
else = {
add_hook = {
type = favor_hook
target = scope:divorcer
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls divorce_get_hook_effect.
Events (3)
- Justifying Divorce
pam_interactions_events.0060 - religious_interaction.1
- religious_interaction.6
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.