CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

petition_head_of_faith_begin_travel_effect

petition_head_of_faith_begin_travel_effect = yes

game/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 137 (21 lines). No parameters.

petition_head_of_faith_begin_travel_effect is a scripted effect in Crusader Kings III, written at line 137 of its file. It takes no parameters: petition_head_of_faith_begin_travel_effect = yes. The game's script calls it in 1 place, among them petition_head_of_faith_prepare_petition_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.

What it does

• 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 (21 lines of game script)
petition_head_of_faith_begin_travel_effect = {
	if = {
		limit = {
			exists = var:pending_petition_head_of_faith_recipient
			default_location = var:pending_petition_head_of_faith_recipient.capital_province
		}
		petition_head_of_faith_activate_pending_effect = yes
		trigger_event = petition_head_of_faith.9000
	}
	else = {
		start_travel_plan = {
			destination = var:pending_petition_head_of_faith_recipient.capital_province
			on_start_on_action = petition_head_of_faith_start
			on_travel_planner_cancel_on_action = petition_head_of_faith_travel_planner_exit
			on_arrival_event = petition_head_of_faith.9000
			# With return_trip, all_but_last fires on arrival at the Head of Faith's capital and not on the way home
			on_arrival_destinations = all_but_last
			return_trip = yes
		}
	}
}

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_begin_travel_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.

Spotted a mistake on this page?