Scripted trigger
is_available_travelling_ai_adult
is_available_travelling_ai_adult = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 182 (17 lines). No parameters.
is_available_travelling_ai_adult is a scripted trigger in Crusader Kings III, written at line 182 of its file. It takes no parameters: is_available_travelling_ai_adult = yes (or no). The game's script calls it in 6 places, among them … An Offering of Rice (event pilgrimage_seasia.600), Carrion Eaters (event ep3_laamp_flavor.0001) and Danger: Life or Death, Stranded (event travel_events.2110). Patch 1.20.1.2, from game/common/scripted_triggers/00_available_for_events_triggers.txt.
The comment above it in the file
If you update one of the available triggers, update all of them. It's a lot better for performance to not have scripted triggers within scripted triggers when they're checked as often as these ones are.
What it checks
- Is available (an adult, not in an army, not imprisoned, not incapable)
has_contagious_deadly_disease_trigger = nohas_none_of_variables = { name = is_in_task_contract_event_chain name = gone_adventuring name = merchant_var }
• 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_available_travelling_ai_adult = {
is_available_quick = {
travel = yes
adult = yes
ai = yes
alive = yes
in_army = no
imprisoned = no
incapable = no
}
has_contagious_deadly_disease_trigger = no
has_none_of_variables = {
name = is_in_task_contract_event_chain
name = gone_adventuring
name = merchant_var
}
}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_available_travelling_ai_adult.
Events (6)
- … An Offering of Rice
pilgrimage_seasia.600 - Carrion Eaters
ep3_laamp_flavor.0001 - Danger: Life or Death, Stranded
travel_events.2110 - Danger: Tempting Fruit
travel_danger_events.1012 - Dead Weight
ep3_laamp_flavor.0060 - travel_events.2106
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.