Scripted effect
petition_head_of_faith_refund_reserved_costs_effect
petition_head_of_faith_refund_reserved_costs_effect = yesgame/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 81 (8 lines). No parameters.
petition_head_of_faith_refund_reserved_costs_effect is a scripted effect in Crusader Kings III, written at line 81 of its file. It takes no parameters: petition_head_of_faith_refund_reserved_costs_effect = yes. The game's script calls it in 3 places, among them Petition Abandoned (event petition_head_of_faith.0601), petition_head_of_faith_travel_planner_exit (on action) and petition_head_of_faith_withdraw_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
What it does
- If has “petition head of faith reserved piety value” (a variable the game's script sets):
- What you had set aside for this petition is restored to you:
- 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 (8 lines of game script)
petition_head_of_faith_refund_reserved_costs_effect = {
if = {
limit = { has_variable = petition_head_of_faith_reserved_piety_value }
custom_tooltip = petition_head_of_faith_reclaim_offering_tt
add_piety = var:petition_head_of_faith_reserved_piety_value
remove_variable = 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_reserved_costs_effect.
Events (1)
- Petition Abandoned
petition_head_of_faith.0601
On actions (the game's own hooks) (1)
- petition_head_of_faith_travel_planner_exit
Scripted effects (1)
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.