Scripted trigger
is_valid_for_narrow_yearly_events
is_valid_for_narrow_yearly_events = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 819 (17 lines). No parameters.
is_valid_for_narrow_yearly_events is a scripted trigger in Crusader Kings III, written at line 819 of its file. It takes no parameters: is_valid_for_narrow_yearly_events = yes (or no). The game's script calls it in 38 places, among them … Cup Runneth Over (event fp3_clan.1010), …'s Not Worth It! (event bp1_yearly.5705) and A Faithful Friend (event bp1_yearly.5708). 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 (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 (17 lines of game script)
is_valid_for_narrow_yearly_events = {
is_available_quick = {
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.
Events (38)
- … Cup Runneth Over
fp3_clan.1010 - …'s Not Worth It!
bp1_yearly.5705 - A Faithful Friend
bp1_yearly.5708 - A Weighty Problem
bp1_yearly.5301 - An Odd Smell
bp1_yearly.5800 - An Odd Smell: A Strong Base
bp1_yearly.5803
32 more
- An Odd Smell: From The Heart
bp1_yearly.5802 - An Odd Smell: One Final Drop
bp1_yearly.5804 - An Odd Smell: Top Notch
bp1_yearly.5801 - Around The Fire
bp1_yearly.5721 - Burning Rivalry
bp1_yearly.5728 - Fair When …'s Angry
bp1_yearly.5704 - Getting Ahead In Life
bp1_yearly.5602 - Gibbering Fool
bp1_yearly.5715 - Hook, Line...
bp1_yearly.5709 - Life In Color
bp1_yearly.5601 - Mismanaged Land
fp3_clan.1040 - Naming Convention
lifestyle_nicknames.0001 - Naming Convention
lifestyle_nicknames.0002 - Practical Learning
fp3_clan.1020 - Reckless Relations
bp1_yearly.5713 - Scrambling for Answers
bp1_yearly.5740 - Silence is Golden
lifestyle_nicknames.0007 - Silence is Golden
lifestyle_nicknames.0008 - Sins of the …: In Flagrante
bp1_yearly.5707 - Speech is Silver
lifestyle_nicknames.0003 - Speech is Silver
lifestyle_nicknames.0004 - Strange Bedfellows
bp1_yearly.5703 - Sword of Reason
lifestyle_nicknames.0005 - Sword of Reason
lifestyle_nicknames.0006 - Tax Dispute
fp3_clan.1030 - Taxing Situations
bp1_yearly.5719 - Test of Strength
bp1_yearly.5720 - The Cat-apult
bp1_yearly.5722 - The Pen is Mightier
lifestyle_nicknames.0009 - The Pen is Mightier
lifestyle_nicknames.0010 - The Wild …
bp1_yearly.5725 - Worth More than Gold?
fp3_clan.1000
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.