CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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 … Culture allows … to be combatants
  • If a member of the Clergy: Members of the Clergy are allowed to be combatants in ⟨faith⟩

• 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.

Activities (2)

Activity intents (5)

  • Dreadful
  • Murder
  • Slay Beast
  • Succeed
  • Triumph

Activity pulse actions (2)

  • hunt_distinguished_ability
  • hunt_tracks_character

Casus belli (1)

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)

79 more

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.

Spotted a mistake on this page?