Scripted trigger
is_on_a_hajj_trigger
is_on_a_hajj_trigger = yesgame/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_pilgrimagehas_activity_option = { category = special_type option = pilgrimage_type_hajj }
involved_activity.activity_location.barony = title:b_makkaNOT = { 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.