Scripted trigger
is_available_healthy_ai_adult
is_available_healthy_ai_adult = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 542 (32 lines). No parameters.
is_available_healthy_ai_adult is a scripted trigger in Crusader Kings III, written at line 542 of its file. It takes no parameters: is_available_healthy_ai_adult = yes (or no). The game's script calls it in 298 places, among them Commission Artifact (decision), Commission Icon (decision) and Commission Silk Regalia (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)
is_healthy = yes- 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_healthy_ai_adult = {
is_available_quick = {
ai = yes
adult = yes
alive = yes
travel = no
in_army = no
imprisoned = no
incapable = no
}
is_healthy = yes
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_healthy_ai_adult — the first 120 of 298.
Character interactions (2)
Activity pulse actions (1)
- apa_university_discussions
Events (113)
- … Architect
fp2_yearly.4006 - … Concerns
fp3_yearly.8009 - … Drills
bp3_journey.1700 - … Floating Shrine
pilgrimage_seasia.400 - … Mangrove Spirits
pilgrimage_seasia.200 - … Rattan Snare
pilgrimage_seasia.1100
107 more
- … Sampan Pirates
pilgrimage_seasia.900 - … The Fishermen of …
pilgrimage_seasia.500 - … The Nāga's Victim
pilgrimage_seasia.700 - …: Amorous Endeavors
pet_animal.0202 - …: Betrayal!
pet_animal.0203 - …: Horse Enthusiast
warhorse.1301 - "The Blade of …
fp2_struggle.1011 - A … Specialty
bp3_journey.2100 - A Broken Blacksmith
travel_events_oltner_2.1120 - A Change of Direction
ep3_admin_events.0001 - A Comfort
spouse.2001 - A Compromising Position
fp2_yearly.1002 - A Cumbersome Gift
hold_court.6140 - A Cure for Acedia
fp3_yearly.8037 - A Devoted Follower
ep3_camp_temperament.0040 - A Friend till the End
bp1_yearly.1020 - A Good Word
spouse.2002 - A Laden Caravan
travel_events_oltner_2.1030 - A Magical Tree
mpo_events_ariana.0080 - A Magical Tree
mpo_events_ariana.0081 - A Realm of My Own
ep3_admin_events.0005 - A Tasteless Evening
fp2_yearly.3003 - A Threat?
spouse.2014 - A Threat...
spouse.3012 - A Travelling …
rite_travel_events.1000 - Accusations of Witchery
epidemic_events.5007 - An Anonymous Informant
intrigue_scheming.1801 - An Odd Smell
bp1_yearly.5800 - An Unexpected Move
fp2_yearly.3002 - Annoying Company
bp1_yearly.1050 - Architectural Peddling
bp3_journey.1000 - Being Neighborly
legend_spread_events.5305 - Beyond Boundaries
stewardship_wealth.7001 - Bonds of Fear
fp3_clan.8004 - Bovine Bounty
travel_events_oltner_2.1100 - bp3_journey.2300
- Bring Me … Head
laamp_base_contract_schemes.1004 - Budding Ally
hold_court.6070 - By Order of the …
cid.0001 - Change of Path
tgp_dynastic_cycle_events.0030 - Chased by Shadows
intrigue_scheming_special.1302 - Contract: Fight Corruption
ep3_contract_event.0093 - Contract: Treasure Hunt
ep3_contract_event.0006 - councillor_spouse_intrigue.0001
- councillor_spouse_intrigue.0002
- councillor_spouse_intrigue.0003
- councillor_spouse_intrigue.0004
- Cultivated Sands
travel_events_oltner_2.1000 - Cupid's Arrow
bp1_yearly.5100 - Disorderly Market
fp2_struggle.2000 - Drunken Brawl
bp1_yearly.5717 - Easing My Torment
house_arrest_ongoing.0004 - Echoing Horns
travel_events_oltner_2.1150 - Equine Emissaries
travel_events_oltner_2.1050 - Establishing Enclaves
fp2_yearly.4005 - Even … Fears Me
intrigue_dread.2001 - Exotic Espand
fp3_yearly.8003 - Fireside Tales
fp2_yearly.4008 - For a Bit of Gold...
ep3_landless_admin.1020 - From The Sea
ep3_story_cycle_harrying.3015 - Frontier Fortress Benefactor
fp3_yearly.8001 - Gibbering Fool
bp1_yearly.5715 - Greasing Mouths
legend_spread_events.5320 - Hammam Havoc
fp3_clan.8016 - Hawking Meat
bp3_journey.1400 - Hearsay
ep3_camp_temperament.0020 - Heir Tutelage: At an Impass
diplomacy_family.2410 - Heir Tutelage: The Offer
diplomacy_family.2400 - Home Sweet Home?
ep3_laamps.6001 - Hospitable Hospices
travel_events_oltner_2.1010 - Hunger's Bold Hand
tgp_dynastic_cycle_events.0020 - In Every Corner
ep3_camp_temperament.0010 - In Good Estate
ep3_landless_admin.1010 - Inspiration: Out with the Old
fund_inspiration.2131 - Know Your Place
feast_lifestyle.2001 - Learned Locals
bp3_journey.1500 - Legend's Herald
legend_spread_events.5310 - Lives or Gold?
epidemic_events.5005 - Mandala Ritual: Bamboo Rebels
tgp_east_asia_mandala_task_contract_events.2800 - Mandala Ritual: Barren Cattle
tgp_east_asia_mandala_task_contract_events.1100 - Mandala Ritual: Beasts in the …
tgp_east_asia_mandala_task_contract_events.4800 - Mandala Ritual: Bless the Weavers
tgp_east_asia_mandala_task_contract_events.3300 - Mandala Ritual: Blood Tax
tgp_east_asia_mandala_task_contract_events.2700 - Mandala Ritual: Breaking of Spears
tgp_east_asia_mandala_task_contract_events.3400 - Mandala Ritual: Collective Punishment
tgp_east_asia_mandala_task_contract_events.2300 - Mandala Ritual: Cursed Fields
tgp_east_asia_mandala_task_contract_events.1900 - Mandala Ritual: Defiant Village
tgp_east_asia_mandala_task_contract_events.2600 - Mandala Ritual: Diseased Spirits
tgp_east_asia_mandala_task_contract_events.2400 - Mandala Ritual: Divine Thief
tgp_east_asia_mandala_task_contract_events.4400 - Mandala Ritual: Dull Spears
tgp_east_asia_mandala_task_contract_events.2500 - Mandala Ritual: Eightfold Path
tgp_east_asia_mandala_task_contract_events.3700 - Mandala Ritual: Festival of Reversal
tgp_east_asia_mandala_task_contract_events.4600 - Mandala Ritual: Goat Oracle
tgp_east_asia_mandala_task_contract_events.4700 - Mandala Ritual: Laughing Ascetic
tgp_east_asia_mandala_task_contract_events.4100 - Mandala Ritual: Midwives' Dream
tgp_east_asia_mandala_task_contract_events.1500 - Mandala Ritual: Pig Slaughter Oath
tgp_east_asia_mandala_task_contract_events.2100 - Mandala Ritual: Promised Land
tgp_east_asia_mandala_task_contract_events.5000 - Mandala Ritual: Purify Battlefield
tgp_east_asia_mandala_task_contract_events.3200 - Mandala Ritual: Quarreling Monks
tgp_east_asia_mandala_task_contract_events.3100 - Mandala Ritual: Reconciliation Edict
tgp_east_asia_mandala_task_contract_events.3600 - Mandala Ritual: Ritual Wrath
tgp_east_asia_mandala_task_contract_events.2200 - Mandala Ritual: River Naga
tgp_east_asia_mandala_task_contract_events.4900 - Mandala Ritual: River Ritual
tgp_east_asia_mandala_task_contract_events.1800 - Mandala Ritual: Road Sacrifice
tgp_east_asia_mandala_task_contract_events.2900 - Mandala Ritual: Sacred Heifer
tgp_east_asia_mandala_task_contract_events.1300 - Mandala Ritual: Spirit Decoy
tgp_east_asia_mandala_task_contract_events.4200 - Mandala Ritual: Spirit Trial
tgp_east_asia_mandala_task_contract_events.4500
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.