Scripted trigger
is_available_ai_adult
is_available_ai_adult = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 475 (32 lines). No parameters.
is_available_ai_adult is a scripted trigger in Crusader Kings III, written at line 475 of its file. It takes no parameters: is_available_ai_adult = yes (or no). The game's script calls it in 850 places, among them AI Enshrine Artifact (decision), AI Remove Enshrined Artifacts (decision) and In Search of the Pure Land (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_ai_adult = {
is_available_quick = {
ai = yes
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_ai_adult — the first 120 of 850.
Decisions (6)
Character interactions (3)
Activities (3)
Travel (8)
- Hire Cultural Ambassador
- Hire Desert Warrior
- Hire Experienced Captains
- Hire Forder
- Hire Forest Guide
- Hire Jungle Stalker
2 more
- Hire Mountaineer
- Train Knights
Task contracts (1)
- laamp_construction_contract
Story cycles (1)
- story_mandala
Events (98)
- … … Sutta
pilgrimage.3303 - … 'Gift'
mpo_migration_travel_events.0001 - … Allure
bp1_yearly.8120 - … Disappearance
pet_animal.3010 - … Enemies
bp1_yearly.8130 - … in Despair
court.0107
92 more
- … Talents
bp1_yearly.8190 - … the Scenic Route
pilgrimage.2006 - …: Aggressive Negotiations
coerce_tributary_ongoing.0010 - …: Closed Roads
coerce_tributary_ongoing.0001 - …: Trusty …
warhorse.1001 - …'s Not Worth It!
bp1_yearly.5705 - A … Blessing
legend_spread_events.5005 - A … for …
hold_court.8060 - A Beautiful Rule
fp3_yearly.2030 - A Besieged Soul
pam_secular_faith_events.0026 - A Bloody Heirloom
legend_spread_events.5015 - A Border Treaty
ep3_emperor_yearly.2100 - A Brown Naming
bp1_yearly.9046 - A Castle Worthy of Iberia
fp2_struggle.2007 - A Chance Meeting
tour_grounds_events.6000 - A Chance to Perform
tour_grounds_events.6300 - A Child for God
pam_secular_faith_events.0018 - A Child of the Court
hold_court.8100 - A Choke!
host_dinner_events.3080 - A Closeted Cadaver
court.0112 - A Desperate Banishment
physician_epidemic_events.1060 - A Donation in Good Faith
yearly.8200 - A Faithful Friend
bp1_yearly.5708 - A Family Epic
commission_epic.0001 - A Feline Hunter
court.3060 - A Few Words?
legend_spread_events.5045 - A Foreign Treat
travel_events.3030 - A Friend in Need
bp1_yearly.3002 - A Friend Indeed
bp1_yearly.3001 - A Friendly Scuffle
mpo_bb_events.0001 - A Gift Fit For...
bp1_yearly.2000 - A Grainy Matter
childhood.1017 - A Grand Entrance
legend_spread_events.5070 - A Grave Opportunity
court_yearly.0103 - A Greater Armada
fp2_struggle.2004 - A Heretic at …
pam_secular_faith_events.0017 - A Killing Weapon of Fame
artifact.4010 - A King for a Bard
martial_chivalry.5100 - A Land at War
hold_court.6100 - A Land of Foreigners
hold_court.6210 - A Language for the … Court
court_events.3100 - A Legendary Tipple
legend_spread_events.5420 - A Lesson in Charity
child_personality.7080 - A Light in the Dark
pam_generic_events.0004 - A Loving Lock
bp1_yearly.9047 - A Massive Problem
hold_court.6230 - A Master Dueler's Weapon
artifact.4080 - A Master Thief
pilgrimage.6850 - A Matter of Theology: …
laamp_base_learning_contract_events.4015 - A New Hobby
bp1_yearly.1000 - A Night to Forget
relation_upgrade.1001 - A Nose for Profit
stewardship_general.2001 - A Pharmaceutical Compendium
physician_epidemic_events.1030 - A Pilgrim's Welcome
pam_secular_faith_events.0043 - A Poetic Friendship
bp1_yearly.4020 - A Poetic Life
tgp_japan_yearly_events.1225 - A Prayer in the Dark
pam_secular_faith_events.0039 - A Price for the Pulpit
pam_secular_faith_events.0016 - A Prospective …
fp1_shieldmaiden.0001 - A Question of Honor
host_dinner_events.3150 - A Ravished Land
hold_court.6110 - A Relic Desecrated
artifact.4070 - A Relic In Hand...
artifact.4090 - A Relic of Revenge
court.0111 - A Renowned Armor
artifact.4020 - A Ride At Midnight
martial_chivalry.4000 - A Rival is Forever
artifact.7000 - A Roughing Up
tour_grounds_events.3050 - A Sacred Text
learning_scholarship.5000 - A Sacred Text: Bibliomancy
learning_scholarship.5003 - A Sacred Text: Troubling Passage
learning_scholarship.5004 - A School for the People
ep3_emperor_yearly.2080 - A Secret Sympathizer
assassination_ongoing.0001 - A Shadow in the Night
hold_court.6190 - A Shady Discussion
yearly.5040 - A Sparrow in the Hall
pam_secular_faith_events.0056 - A Spectacular Courtier
court.0108 - A Stop on the Way
tour_travel.3110 - A Story About...
bp1_yearly.7052 - A Study In …
bp1_yearly.2050 - A Sublime Vision
mpo_events_tova.0030 - A Superstitious Mind
bp1_yearly.1060 - A Sweet Farewell
intrigue_temptation.3000 - A Tearful Petition
legend_spread_events.0040 - A Test of Loyalty
bp1_yearly.7010 - A Tool for the Wielding
bp2_yearly.0661 - A Treasured Friend
mpo_events_tova.0045 - A True …
tgp_china_yearly.0005 - A True Hunter
legend_spread_events.0010 - A Tumble to Die For
elder_events.1500 - A Villainous Villa
ep3_powerful_families.8060 - A Vision in the Night
pam_secular_faith_events.0003
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.