Scripted trigger
is_available_at_peace_adult
is_available_at_peace_adult = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 616 (32 lines). No parameters.
is_available_at_peace_adult is a scripted trigger in Crusader Kings III, written at line 616 of its file. It takes no parameters: is_available_at_peace_adult = yes (or no). The game's script calls it in 120 places, among them Champion the Faith of the Country Basques (decision), Claim the Mandate of Heaven (decision) and Embellish Capital (decision). Its body carries 1 text of the game's own for the player. 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 = no- Busy participating in an Activity
- You are already planning another Activity
• 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 (32 lines of game script)
is_available_at_peace_adult = {
is_available_quick = {
at_war = no
adult = yes
alive = yes
travel = no
in_army = no
imprisoned = no
incapable = no
}
has_contagious_deadly_disease_trigger = no
custom_description = {
text = ALREADY_IN_ACTIVITY
NOR = {
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
}
is_being_visited_on_tour_strict = yes
}
}
custom_description = {
text = ALREADY_PLANNING_ACTIVITY
NOT = { has_character_flag = planning_an_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_available_at_peace_adult.
Decisions (6)
Events (112)
- … Architect
fp2_yearly.4006 - … Gains Experience
fp1_shieldmaiden.0032 - … Nomads Flock to …
yearly_saharan.0021 - … of the North Sea
fp1_major_decisions.1001 - … Second Visit
bp1_yearly.9030 - … Traders in …
yearly_saharan.0001
106 more
- …!
bp1_yearly.9029 - A … in Our Bed
bp1_yearly.9019 - A Caring Hand
bp1_yearly.9024 - A Disgrace to the Gods
fp1_jomsvikings.0041 - A Face From Long Ago
bp1_yearly.9026 - A Friendly Intervention
bp1_yearly.9022 - A Grazing Grievance
fp3_yearly.8888 - A Helping Hand from …
fp1_jomsvikings.0001 - A Language Barrier
bp1_yearly.9023 - A Language in Common
language_events.0002 - A Matter of Life and Death
fp1_yearly.0021 - A Mystic's Bargain
culture_tradition_events.0141 - A Mystic's Mind
culture_tradition_events.0101 - A Mystic's Service
culture_tradition_events.0121 - A Mystic's Speech
culture_tradition_events.0111 - A Mystic's Wrath
culture_tradition_events.0131 - A Night to Forget
relation_upgrade.1001 - A Novel Challenge
fp1_yearly.0661 - A Prospective …
fp1_shieldmaiden.0001 - A Relaxing Evening
stress_trait_ongoing.0501 - A Story About...
bp1_yearly.7052 - A Stroke of Luck
board_games.0051 - A Test of Loyalty
bp1_yearly.7010 - A Wandering Mi—
stress_trait_ongoing.0516 - An Absolute Shambles
ep1_flavor.0011 - An Odd Request
bp1_yearly.9020 - Attempted Atonement
fp1_yearly.0691 - Away, …!
bp1_yearly.5716 - Breaking Fast With a Friend
bp1_yearly.7000 - chinese_students.0001
- Comet Sighted!
yearly.0011 - Comfort of a Friend
bp1_yearly.7004 - Coming Out To Play?
bp1_yearly.5701 - Competitive Cronying
court_yearly.2001 - Consulting the Way
chinese_students.0020 - Cupid's Arrow
bp1_yearly.5100 - Distaste to Detest
bp1_yearly.7100 - Establishing Enclaves
fp2_yearly.4005 - Evening Reflections
trait_specific.9001 - Fireside Tales
fp2_yearly.4008 - Forgetting
bp1_yearly.7054 - Forgive Me
bp1_yearly.9031 - Fresh at Court
ep1_flavor.0031 - Fury of the Northmen
fp1_yearly.2600 - Gibbering Fool
bp1_yearly.5715 - Glory Seekers
fp1_yearly.2300 - Gone Fishing
bp1_yearly.7001 - Great Expectations
bp1_yearly.2020 - Hearty Competition
fp1_yearly.2100 - Hole's There?
yearly.7050 - I Know You Now
bp1_yearly.9025 - Inspiring Leadership
culture_tradition_events.2000 - Intimidation Tactics
bp1_yearly.7056 - It Was Ever Thus
stress_trait_ongoing.0511 - Leading by Example?
culture_tradition_events.2001 - Life or Death
travel_events.2100 - Living In Harmony
fp2_yearly.4002 - Look And You Shell Find
fp2_yearly.4007 - Lost Lordling
ep3_laamp_flavor.0040 - Lowlife at Court
court_yearly.0101 - Making Amends
bp1_yearly.9032 - Marauding Slavers from …
yearly_saharan.0032 - My Arm Against Yours
fp1_yearly.0561 - O Camiño de Santiago
fp2_yearly.4003 - Old Foes
bp1_yearly.7050 - Parleying with Pirates
fp1_jomsvikings.0021 - Passion or Purity
bp1_yearly.9018 - Pigs of Stone
fp2_yearly.4010 - Poor Unfortunate Serfs
bp1_yearly.9027 - Preparations for the Hunt
fp1_yearly.2400 - Privy Squabbles
bp1_yearly.7002 - Provisional Catastrophe
bp1_yearly.7058 - Raunchy Runestone
fp1_yearly.2500 - Recording a Memory
bp1_yearly.7055 - Religious Ecstasy
bp1_yearly.7057 - Slave Raids against … Escalate
yearly_saharan.0031 - Sparklingly Clean
fp1_yearly.1071 - Strength or Humility
chinese_students.0030 - Sweet Relief
stress_trait_ongoing.0506 - Test of Strength
bp1_yearly.5720 - The … in My Bed
bp1_yearly.9021 - The … Who Would Be …
bp1_yearly.9016 - The Alien …
bp1_yearly.9017 - The Battle of …
bp1_yearly.7051 - The Beautiful Game
yearly.7010 - The Blank Scroll
chinese_students.0010 - The Bored Berserker
fp1_yearly.2200 - The Family Craft
bp1_yearly.3007 - The Ghost of Quarrels Past
bp1_yearly.9028 - The Last Night
bp1_yearly.9033 - The Secret …
ep1_flavor.0001 - The Sixth Hour
fp2_yearly.4001 - The Tapestry
bp1_yearly.7003 - The Wandering Master
fp2_yearly.4004 - The White Lord
fp2_yearly.4009 - Thief!
ep3_laamp_flavor.0020 - Traditions: A Visiting Eunuch
ep1_flavor.1000 - Traditions: Tricks of the Trade
ep1_flavor.1200 - travel_events.2106
- Two Realms Separated by a Courtly Language
ep1_flavor.0021 - Vengeful Memories
bp1_yearly.7053 - Virtuoso Performance
bp1_yearly.5702 - vizierate.1001
- Wanderlust
fp1_yearly.2000 - Why Can't I Come?
fp1_yearly.0681 - Wroth of the Old Ways
fp1_jomsvikings.0011
Scripted triggers inside an event file (2)
- skilful_friend_trigger
- valid_for_shieldmaiden_level_up
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.