Scripted trigger
is_available
is_available = yesgame/common/scripted_triggers/00_available_for_events_triggers.txt, line 110 (35 lines). No parameters.
is_available is a scripted trigger in Crusader Kings III, written at line 110 of its file. It takes no parameters: is_available = yes (or no). The game's script calls it in 980 places, among them Abandon Confederation (decision), Be Entertained by the Court Jester (decision) and Become Chakravarti (decision). Its body carries 2 texts 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 (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
- You are currently busy in a Mandala succession
• 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 (35 lines of game script)
is_available = {
is_available_quick = {
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 }
}
# Variable set on Mandala succession
custom_tooltip = {
text = busy_in_mandala_succession
NOT = { has_variable = busy_in_mandala_succession }
}
}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 — the first 120 of 980.
Decisions (65)
- Abandon Confederation
- Be Entertained by the Court Jester
- Become Chakravarti
- Become Greatest of Khans
- Become Nomadic
- Become the Greatest of All Khans
59 more
- Borrow Gold from Military Order
- Call for Confederation
- Challenge the …
- Champion the … Culture
- Change State Rite
- Cleave the Empire
- Confide in the Court
- Consolidate Bene-Israel
- Consume Hashish Cakes
- Divine Reincarnation
- Donate to Charity
- Educate your Clerical Court
- Embrace Heresy
- Enter Seclusion
- Establish Bactrian Supremacy
- Excavate Treasure
- Expand the Steppes
- Expunge Latin Dominion
- Forsake Nomadism
- Foster Integration
- Go Fishing
- Humiliate the Stooge
- Indulge in Drink
- Indulge in Food
- Introduce Heir
- Lash Out
- Legitimize Latin Dominion
- Mortify Flesh
- Move into Conquered Lands
- Pet …
- Pet …
- Play with the Monkey
- Prepare Greek Fire Dromons
- Push State Rite Change
- Reform the Great Khaganate
- Refuse Further Appointments
- Repay Loan
- Request Royal Honsei
- Restore …
- Restore the Byzantine Empire
- Resume New Appointments
- Return to the Steppe
- Revoke Order Lease
- Rites of Passage
- Secede from …
- Seclude Yourself
- Settle the Steppe
- Shun Food
- Study the …
- Study the Confucian Classics
- Summon Fair Courtiers
- Take Confession
- Take Stewardship of the Sacred River
- Talk to Confidant
- The … of the …
- Visit a Brothel
- Visit the Market
- Work off Some Stress
- Write Thoughts Down
Character interactions (55)
49 more
- Accuse of Violating Sumptuary Law
- Acknowledge Bloc Leadership
- Acknowledge Governor
- Add Artifact to Estate
- Adjust Bureaucracy
- Adopt
- Adopt as Successor
- Adopt into House
- Adopt Rite
- Adopt Rite
- ai_cultural_hybridization_interaction
- ai_make_concubine_interaction
- ai_only_hegemonic_tributary_modify_tributary_contract_interaction
- ai_only_liege_modify_vassal_contract_admin_province_interaction
- ai_only_liege_modify_vassal_contract_interaction
- ai_only_vassal_modify_vassal_contract_interaction
- Aid Tribal Development
- Appoint as Republican Overseer
- Appoint Cardinal
- Appoint Vizier
- Arrange Marriage
- Ask for Clerical Influence
- Ask for Council Position
- Ask for Dynasty Banner
- Ask for Gold
- Ask for Governorship
- Ask for Imperial Expedition
- Ask for Military Assistance
- Ask for Paiza
- Ask for Permission to Declare War
- Ask Liege for Troops
- Ask Subordinate for Gold
- Ask to Influence Candidacy
- Ask to Join Military Order
- Ask to Join my Movement
- Ask to Promote Legend
- Ask to Sanctify Artifact
- Ask to Take Monastic Vows
- Ask to Take Vows
- Attempt to Convert
- Bargain Fealty
- Befriend (Scheme)
- Beseech a Title
- Beseech De Jure Rights
- Bestow a Monastery
- Bestow De Jure Lands
- Bestow Pain
- Bestow Title
- Bolster Governance
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.