Scripted trigger
can_be_warrior_trigger
can_be_warrior_trigger = { ARMY_OWNER = … }game/common/scripted_triggers/00_war_and_peace_triggers.txt, line 499 (38 lines). Parameters: $ARMY_OWNER$.
can_be_warrior_trigger is a scripted trigger in Crusader Kings III, written at line 499 of its file. A call passes 1 parameter: ARMY_OWNER. The game's script calls it in 30 places, among them Ask to Join Military Order (interaction), A Broken Blacksmith (event travel_events_oltner_2.1120) and A Courtly Gift (event court.9001). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.
What it checks
- Is available (an adult, not imprisoned, not incapable)
tgp_is_ceremonial_liege_trigger = noOne of these
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $ARMY_OWNER$ }or
All of these
$ARMY_OWNER$.culture = { has_cultural_parameter = high_prowess_ignores_knight_restrictions }- Prowess at least 10
or
If
Then
All of these
$ARMY_OWNER$ = { is_at_war_as_defender = yes }One of these
is_spouse_of = $ARMY_OWNER$or
All of these
is_close_family_of = $ARMY_OWNER$- Is not married
• 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 (38 lines of game script)
can_be_warrior_trigger = {
is_available_quick = {
adult = yes
imprisoned = no
incapable = no
}
tgp_is_ceremonial_liege_trigger = no
OR = {
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $ARMY_OWNER$ }
AND = {
$ARMY_OWNER$.culture = { has_cultural_parameter = high_prowess_ignores_knight_restrictions }
prowess >= 10
}
# Japan Onna-musha
trigger_if = {
limit = {
#not for admin
$ARMY_OWNER$ = {
NOT = {
government_has_mechanic = administrative
}
culture = { has_cultural_parameter = non_admin_close_family_non_martial_gender_knights_in_defensive_wars }
}
culture = { has_cultural_parameter = non_admin_close_family_non_martial_gender_knights_in_defensive_wars }
}
AND = {
$ARMY_OWNER$ = { is_at_war_as_defender = yes }
OR = {
is_spouse_of = $ARMY_OWNER$
AND = {
is_close_family_of = $ARMY_OWNER$
is_married = no
}
}
}
}
}
}As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_be_warrior_trigger.
Character interactions (1)
Events (11)
- A Broken Blacksmith
travel_events_oltner_2.1120 - A Courtly Gift
court.9001 - Bovine Bounty
travel_events_oltner_2.1100 - Danger: Aftermath
travel_danger_events.1008 - Echoing Horns
travel_events_oltner_2.1150 - Learn Language: Infantile Fables
learn_language_ongoing.1120
5 more
- Sentry of the Silent Dunes
travel_events_oltner_2.1090 - Study Rite: Heretical Tales
study_faith_ongoing.1120 - The Meet
seduce_ongoing.1701 - The Sentinel …
travel_events_oltner_2.1130 - The Smith's Clangor
travel_events_oltner_2.1110
Scripted effects inside an event file (1)
- court_ongoing_0501_option_randomizer_effect
Scripted triggers inside an event file (3)
- holy_order_2001_candidate_trigger
- holy_order_request_child_trigger
- intrigue_scheme_ongoing_3003_hunter_trigger
Scripted triggers (1)
Customizable localization (13)
- ComplimentAdjective
- ComplimentAdjectiveArticle
- DescriptorMixed
- DescriptorMixedArticle
- DescriptorMixedArticle_RULOC_Nom
- DescriptorNegative
7 more
- DescriptorNegativeArticle
- DescriptorPositive
- DescriptorPositiveArticle
- FormalComplimentAdjective
- InsultBehavior
- InsultNoun
- RomanticComplimentAdjective
Source: game/common/scripted_triggers/00_war_and_peace_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.