Scripted effect
petition_head_of_faith_route_to_result_effect
petition_head_of_faith_route_to_result_effect = { COURT_EVENT = … FIELD_EVENT = … }game/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 427 (10 lines). Parameters: $COURT_EVENT$, $FIELD_EVENT$.
petition_head_of_faith_route_to_result_effect is a scripted effect in Crusader Kings III, written at line 427 of its file. A call passes 2 parameters: COURT_EVENT and FIELD_EVENT. The game's script calls it in 4 places, among them petition_head_of_faith_route_to_excommunication_failure_effect (scripted effect), petition_head_of_faith_route_to_excommunication_success_effect (scripted effect) and petition_head_of_faith_route_to_repentance_failure_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
The comment above it in the file
Routing helpers. Fire the correct event variant based on courtroom state. Result events come in court/field pairs; $COURT_EVENT$/$FIELD_EVENT$ pick the pair. Also resumes the paused return leg home after the petition is decided.
What it does
current_travel_plan ?= { resume_travel_plan = yes }Otherwise
• 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 (10 lines of game script)
petition_head_of_faith_route_to_result_effect = {
current_travel_plan ?= { resume_travel_plan = yes }
if = {
limit = { has_character_flag = petition_head_of_faith_in_courtroom }
trigger_event = petition_head_of_faith.$COURT_EVENT$
}
else = {
trigger_event = petition_head_of_faith.$FIELD_EVENT$
}
}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_route_to_result_effect.
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.