Scripted trigger
is_available_child
is_available_child = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 274 (32 lines). No parameters.
is_available_child is a scripted trigger in Crusader Kings III, written at line 274 of its file. It takes no parameters: is_available_child = yes (or no). The game's script calls it in 66 places, among them Demand Child for the Cloister (interaction), laamp_transport_ward (contract) and Imaginary Friend (story cycle). 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 (a child, 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_child = {
is_available_quick = {
adult = no
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_child.
Character interactions (1)
Task contracts (1)
- laamp_transport_ward
Story cycles (1)
- Imaginary Friend
Events (53)
- … in Despair
court.0107 - … Second Capital
bp2_yearly.0611 - 'Preparing' for the Future
childhood.7300 - A … Foreigner
bp2_yearly.5005 - A Blooming Friendship
bp2_yearly.2016 - A Familiar Presence
bp2_yearly.7014
47 more
- A Growing Shadow
childhood.1007 - A Mysterious New Friend
bp2_yearly.2010 - A Potential Crush
bp2_yearly.2014 - A Sick Leave
bp2_yearly.7000 - A Story from the Past
childhood.7500 - A Tool for the Wielding
bp2_yearly.0661 - A Traumatizing Sight
childhood.7100 - An Encouraging Friend
bp2_yearly.2015 - Are You Sure?
bp2_yearly.2013 - Bullyguard
childhood.7400 - Challenger Approaching
bp2_yearly.5100 - Child See, Child...
bp2_yearly.1005 - Compassionate or Sadistic?
bp2_yearly.2160 - Flight of Fancy
fp2_yearly.8003 - For Honor and Glory!
bp2_yearly.5105 - Generous or Greedy?
bp2_yearly.2130 - Genpei War: A Crossroads of Power
tgp_genpei_character.2010 - Gifts for the …
bp2_yearly.0621 - Heir Tutelage: A Joint Effort
diplomacy_family.2411 - Heir Tutelage: At an Impass
diplomacy_family.2410 - Heir Tutelage: The Offer
diplomacy_family.2400 - Herbalist or Gardener?
bp2_yearly.2150 - Honest or Deceitful?
bp2_yearly.2140 - Horse Hobby
bp2_yearly.5101 - Humble or Arrogant?
bp2_yearly.2110 - In Their Footsteps
bp2_yearly.2000 - In Their Footsteps
bp2_yearly.2001 - Instant Repercussions
bp2_yearly.5102 - Language Barrier
childhood.7200 - Lasting Heartbreak
bp2_yearly.5109 - Laying Foundations
bp2_yearly.2100 - My Favorite Councilor
bp2_yearly_extra.0001 - Pranking …
childhood.7000 - Quid Pro Quo
bp2_yearly.0641 - Ruling Rightly
bp2_yearly.0601 - Smuggling Sweets
bp2_yearly.5103 - Stories from the Past
mpo_events_anna.0005 - Temperate or Gluttonous?
bp2_yearly.2120 - The Concern of a Friend
childhood.1009 - The Destruction of the …
childhood.1013 - The Lonely Child
bp2_yearly.5104 - The Polyglot
bp2_yearly.5050 - Train Them Young
mpo_events_anna.0001 - What's a Study Day Worth?
bp2_yearly.3000 - Whenever You Need …
bp2_yearly.0651 - Whispered Words
bp2_yearly.0631 - Whistle Like an Arrow
mpo_events_anna.0010
Scripted triggers inside an event file (3)
- bp1_yearly_2020_relevant_child_trigger
- clan_harem_intrigue_child_trigger
- suitable_spy_child_trigger
On actions (the game's own hooks) (2)
- bp2_child_pulse
- childhood_ongoing
Scripted effects (1)
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.