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_hajj_trigger

is_on_a_hajj_trigger = yes

game/common/scripted_triggers/00_pilgrimage_triggers.txt, line 21 (17 lines). No parameters.

is_on_a_hajj_trigger is a scripted trigger in Crusader Kings III, written at line 21 of its file. It takes no parameters: is_on_a_hajj_trigger = yes (or no). The game's script calls it in 1 place, among them hajj_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
    • has_activity_option = { category = special_type option = pilgrimage_type_hajj }
  • involved_activity.activity_location.barony = title:b_makka
  • 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 (17 lines of game script)
is_on_a_hajj_trigger = {
	involved_activity ?= {
		has_activity_type = activity_pilgrimage
		has_activity_option = {
			category = special_type
			option = pilgrimage_type_hajj
		}
	}
	involved_activity.activity_location.barony = title:b_makka
	#No more Hajj 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_hajj_trigger.

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

  • hajj_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?