Scripted trigger
is_in_activity
is_in_activity = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 42 (30 lines). No parameters.
is_in_activity is a scripted trigger in Crusader Kings III, written at line 42 of its file. It takes no parameters: is_in_activity = yes (or no). The game's script calls it in 22 places, among them Adopt State Rite (decision), Ask for Support (decision) and Expand the Steppes (decision). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_available_for_events_triggers.txt.
What it checks
• 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 (30 lines of game script)
is_in_activity = {
OR = {
custom_description = {
text = ALREADY_IN_ACTIVITY
OR = {
exists = involved_activity
has_variable = {
name = homage_liege_scope
name = meditation_character_flag
name = local_shrine_rite
name = petition_liege_character_flag
name = petition_head_of_faith_petitioner
name = holding_court_character_flag
name = gone_adventuring
name = merchant_var # only added here since they should always be travelling
}
is_being_visited_on_tour_strict = yes
}
}
custom_description = {
text = ALREADY_PLANNING_ACTIVITY
has_character_flag = planning_an_activity
}
# Variable set on Mandala succession
custom_tooltip = {
text = busy_in_mandala_succession
has_variable = busy_in_mandala_succession
}
}
}As written in game/common/scripted_triggers/00_available_for_events_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_in_activity.
Decisions (9)
Character interactions (1)
Activities (1)
Important actions (1)
- You could declare War on …
Events (3)
- Commander of the Faithful
fp3_yearly.2040 - The … …
hunt_mystical_animal.1002 - The Great, Limp Purse
ach_yearly_events.1004
Scripted triggers inside an event file (1)
- bp2_yearly_6200_basic_knight
Scripted effects (2)
Scripted triggers (3)
Suggestions (1)
- Suggestion: Declare War on …
Source: game/common/scripted_triggers/00_available_for_events_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.