Scripted trigger
is_valid_for_narrow_yearly_events_adult
is_valid_for_narrow_yearly_events_adult = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 838 (18 lines). No parameters.
is_valid_for_narrow_yearly_events_adult is a scripted trigger in Crusader Kings III, written at line 838 of its file. It takes no parameters: is_valid_for_narrow_yearly_events_adult = yes (or no). The game's script calls it in 9 places, among them A Mirror in the Mud (event bp1_yearly.9007), A Sinister Consideration (event bp1_yearly.9006) and All We Are Not (event bp2_yearly.6040). 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 imprisoned, not incapable)
is_commanding_army = nois_playable_character = yesOne of these
- Is not traveling
or
Has a Adventurer Government
• 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_valid_for_narrow_yearly_events_adult = {
is_available_quick = {
adult = yes
at_war = no
imprisoned = no
incapable = no
}
is_commanding_army = no
is_playable_character = yes
OR = {
is_travelling = no
has_government = landless_adventurer_government
}
NOR = {
has_character_flag = is_in_task_contract_event_chain
exists = involved_activity
}
}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_valid_for_narrow_yearly_events_adult.
Events (9)
- A Mirror in the Mud
bp1_yearly.9007 - A Sinister Consideration
bp1_yearly.9006 - All We Are Not
bp2_yearly.6040 - Another Lover
bp1_yearly.9009 - It Takes Two
bp1_yearly.9015 - More Than a Pretty Face
bp1_yearly.9014
3 more
- Sins of the …
bp1_yearly.5706 - The Two …s
bp1_yearly.9010 - To Live as My Other Half
bp1_yearly.9008
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.