Scripted effect
petition_head_of_faith_refund_pending_costs_effect
petition_head_of_faith_refund_pending_costs_effect = yesgame/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 73 (7 lines). No parameters.
petition_head_of_faith_refund_pending_costs_effect is a scripted effect in Crusader Kings III, written at line 73 of its file. It takes no parameters: petition_head_of_faith_refund_pending_costs_effect = yes. The game's script calls it in 1 place, among them petition_head_of_faith_travel_planner_exit (on action). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
The comment above it in the file
Only refunds if the reserved-piety var still exists, so two callers cannot refund twice
What it does
If
- Has “pending petition head of faith reserved piety value” (a variable the game's script sets)
Then
- Gain … Piety
• 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 (7 lines of game script)
petition_head_of_faith_refund_pending_costs_effect = {
if = {
limit = { has_variable = pending_petition_head_of_faith_reserved_piety_value }
add_piety = var:pending_petition_head_of_faith_reserved_piety_value
remove_variable = pending_petition_head_of_faith_reserved_piety_value
}
}As written in game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_head_of_faith_refund_pending_costs_effect.
On actions (the game's own hooks) (1)
- petition_head_of_faith_travel_planner_exit
Source: game/common/scripted_effects/11_petition_head_of_faith_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.