Scripted trigger
can_be_combatant_based_on_gender_trigger
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = … }game/common/scripted_triggers/00_religious_triggers.txt, line 117 (91 lines). Parameters: $ARMY_OWNER$.
can_be_combatant_based_on_gender_trigger is a scripted trigger in Crusader Kings III, written at line 117 of its file. A call passes 1 parameter: ARMY_OWNER. The game's script calls it in 256 places, among them Become Adventurer (decision), Challenge the … (decision) and Rites of Passage (decision). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
• 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 (91 lines of game script)
can_be_combatant_based_on_gender_trigger = {
custom_description = {
text = "can_be_combatant_based_on_gender"
object = this
subject = $ARMY_OWNER$
OR = {
trigger_if = { # Has the Royal Court and thus can modify pillars
limit = {
has_dlc_feature = diverge_culture # Can modify pillars
}
trigger_if = {
limit = {
$ARMY_OWNER$.culture = { has_cultural_parameter = martial_custom_male_only_combatant }
}
is_male = yes
}
trigger_else_if = {
limit = {
$ARMY_OWNER$.culture = { has_cultural_parameter = martial_custom_female_only_combatant }
}
is_female = yes
}
trigger_else = {}
}
trigger_else = { # Does not have the Royal Court and thus combatant is governed by faith
OR = {
$ARMY_OWNER$.rite = { rite_has_parameter = combatant_can_be_either_gender_if_no_roco }
AND = {
$ARMY_OWNER$.rite = { rite_has_parameter = combatant_must_be_male_if_no_roco }
is_male = yes
}
AND = {
$ARMY_OWNER$.rite = { rite_has_parameter = combatant_must_be_female_if_no_roco }
is_female = yes
}
}
}
AND = {
# No need to gender diversify this: if they're a right-gender shieldperson of the culture, then they've already got permission to fight from the previous AND conditions.
has_trait = shieldmaiden
$ARMY_OWNER$ = {
culture = { has_cultural_parameter = has_access_to_shieldmaidens }
}
}
# Event-based special exceptions
OR = {
has_character_modifier = ignores_gender_army_rules
has_character_modifier = mpo_destined_leader_modifier
}
AND = {
prowess >= 10
$ARMY_OWNER$.culture = { has_cultural_parameter = high_prowess_ignores_knight_restrictions }
NOT = { $ARMY_OWNER$.culture = { has_cultural_parameter = minimum_prowess_for_knights } }
}
AND = {
prowess >= 12
$ARMY_OWNER$.culture = {
has_cultural_parameter = high_prowess_ignores_knight_restrictions
has_cultural_parameter = minimum_prowess_for_knights
}
}
}
}
# Separate custom_description so barred clergy get a clergy-specific reason, not the gender tooltip
trigger_if = {
limit = {
is_clergy = yes
}
custom_description = {
text = "clergy_can_be_combatant"
object = this
subject = $ARMY_OWNER$
OR = {
rite = { rite_has_parameter = clergy_can_fight }
AND = {
has_personal_tenet_flag = clergy_can_fight_personal
NOT = {
rite = { rite_has_parameter = pacifist }
}
}
culture = { has_cultural_parameter = culture_clergy_can_fight }
AND = {
$ARMY_OWNER$.culture = {
has_cultural_parameter = high_prowess_ignores_knight_restrictions
}
prowess >= 10
}
}
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_be_combatant_based_on_gender_trigger — the first 120 of 256.
Decisions (3)
Character interactions (5)
Activities (2)
Activity intents (5)
- Dreadful
- Murder
- Slay Beast
- Succeed
- Triumph
Activity pulse actions (2)
- hunt_distinguished_ability
- hunt_tracks_character
Casus belli (1)
Court positions (12)
Focuses (1)
- Martial Education
Cultural traditions (1)
Artifacts (2)
- book_topic_martial_duels
- book_topic_martial_military
Buttons of the game's windows (scripted GUIs) (1)
- tournament_is_character_martial_eligible_in_contest
Events (85)
- … … Brigandage
pilgrimage.1110 - … Incursions
ep3_governor_yearly.8170 - … Sampan Pirates
pilgrimage_seasia.900 - … Struggle
travel_events.4032 - … Under One Banner
tgp_japan_decision.9961 - …: Be A …!
tournament_events.7000
79 more
- …: Honor Defended
tournament_events.1407 - …: Local Lancer
tournament_events.6900 - …: Riders
ep2_tournament_events.4500 - …: Small Tales
tournament_events.1400 - …: the Castle
ep3_laamp_decision_event.1050 - A Challenger
tribal.1001 - A Disgrace to the Gods
fp1_jomsvikings.0041 - A Divine Right Unearned
ach_coronation.0017 - A Duel Demanded
travel_events.2200 - A Green Spot
migration_events.1000 - A Home Beyond the Steppe
mpo_nomad_events.1040 - A Kingdom for the Latins
ep3_frankokratia_events.0080 - A Roughing Up
tour_grounds_events.3050 - A Strange Figure
legend_spread_events.8010 - A Talented Wanderer
host_dinner_events.3110 - A Traitor's Comfort
ep3_story_cycle_harrying.3020 - A Well-Traveled Tongue
ep3_governor_yearly.3070 - A Wonderful Phrase
bp2_yearly.8053 - Allegiance, Burped
jason_locale_events.200 - An Arrow for …
hunt.1012 - An Unfortunate Village
tour_travel.3040 - Armorer: Defensive Gifts
ep2_locale_events.2010 - Aspect of …: Transcendence
tgp_east_asia_mandala_events.1000 - Assert Regional Dominion
tgp_japan_decision.9960 - Bounty of the Wild
hunt.9001 - Bowyer: Ballistic Gifts
ep2_locale_events.4010 - Bring Me … Head
laamp_base_contract_schemes.1004 - Bring Me … Head
laamp_base_contract_schemes.1301 - Bubbling Up
ep3_governor_yearly.8150 - Caught in a Trap
hunt.7011 - Challenger Approaching
bp2_yearly.5100 - Coming of Age
coming_of_age.0003 - coming_of_age.3000
- Confronting a Viper
ep3_story_cycle_harrying.3021 - Cornering the …
hunt.1003 - councillor_spouse_martial.0009
- court_ongoing.1020
- Danger: A Fearsome Beast!
travel_danger_events.6000 - Danger: Treacherous Slopes
travel_danger_events.1002 - Decapitation
mpo_nomad_events.1011 - Disloyal Subjects
tour_grounds_events.3040 - Distant Lands: Victory
legend_spread_events.8125 - Empty Crates
ep3_laamps.5000 - Empty-Handed
hunt.9002 - ep3_frankokratia_events.0046
- Fit to Lead?
tgp_japan_yearly_events.1210 - For Honor and Glory!
bp2_yearly.5105 - Frontier Fortress Benefactor
fp3_yearly.8001 - Fur in the Grass
mpo_hunt.0060 - Handling Oneself
court.8195 - Hungriest Among the Brood
mpo_nomad_events.1020 - Inspiration: A …'s Touch
fund_inspiration.2090 - Inspiration: Bandits on the Road
fund_inspiration.9000 - Isolation
epidemic_events.0100 - Keen as Blade's Edge
ep2_accolade_events.0200 - Laying in Wait
hunt.1032 - Laying in Wait
hunt.1033 - Mandala Ritual: Bamboo Rebels
tgp_east_asia_mandala_task_contract_events.2800 - Mandala Ritual: Dull Spears
tgp_east_asia_mandala_task_contract_events.2500 - Mandala Ritual: Pig Slaughter Oath
tgp_east_asia_mandala_task_contract_events.2100 - Masters of the Desert
jason_locale_events.210 - mpo_nomad_events.1001
- Muddled Up
tournament_events.1311 - My Arm Against Yours
fp1_yearly.0561 - Necessary Training: A Chance Blow
harm.0571 - Necessary Training: Just an Accident
harm.0572 - Passing Like Fire
migration_events.1050 - Raiding Peasants
governor_contract_event.2031 - Rallying the Tribes
mpo_decisions_events.0001 - Rampaging …
hunt.4007 - Rampaging …
hunt.4900 - Recall, You Are Byzantine!
ep3_frankokratia_events.0090 - Religious Reproach
tournament_events.1200 - Rites of Passage
bp2_decision.0002 - Rites of Passage: Duel
bp2_yearly.7021 - Romance: Competition
court_ongoing.1110 - scheme_critical_moments.8031
- sell_titles.1003
- Slow as the Sheep
migration_events.1060
Source: game/common/scripted_triggers/00_religious_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.