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

Scripted trigger

is_on_a_pilgrimage_trigger

is_on_a_pilgrimage_trigger = yes

game/common/scripted_triggers/00_pilgrimage_triggers.txt, line 2 (18 lines). No parameters.

is_on_a_pilgrimage_trigger is a scripted trigger in Crusader Kings III, written at line 2 of its file. It takes no parameters: is_on_a_pilgrimage_trigger = yes (or no). The game's script calls it in 2 places, among them on_travel_plan_movement (on action) and pilgrimage_journey_events (on action). Patch 1.20.1.2, from game/common/scripted_triggers/00_pilgrimage_triggers.txt.

What it checks

  • Their activity:
    • has_activity_type = activity_pilgrimage
  • NOT = { current_travel_plan = { next_destination_province = root.capital_province } }

• 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)
is_on_a_pilgrimage_trigger = {
	involved_activity ?= {
		has_activity_type = activity_pilgrimage
		#NOT = { # Commenting out until Hajj-content is made distinct
		#	has_activity_option = {
		#		category = special_type
		#		option = pilgrimage_type_hajj
		#	}
		#}
	}
	#No more pilgrimage events if you're on your way home :colbert:
	exists = capital_province
	NOT = { 
		current_travel_plan = {
			next_destination_province = root.capital_province 
		}
	}
}

As written in game/common/scripted_triggers/00_pilgrimage_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls is_on_a_pilgrimage_trigger.

On actions (the game's own hooks) (2)

  • on_travel_plan_movement
  • pilgrimage_journey_events

Source: game/common/scripted_triggers/00_pilgrimage_triggers.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?