Scripted trigger
trait_is_criminal_in_rite_trigger
trait_is_criminal_in_rite_trigger = { GENDER_CHARACTER = … RITE = … TRAIT = … }game/common/scripted_triggers/00_religious_triggers.txt, line 410 (75 lines). Parameters: $GENDER_CHARACTER$, $RITE$, $TRAIT$.
trait_is_criminal_in_rite_trigger is a scripted trigger in Crusader Kings III, written at line 410 of its file. A call passes 3 parameters: GENDER_CHARACTER, RITE and TRAIT. The game's script calls it in 59 places, among them Attempt Suicide (decision), Accuse of Decadence (interaction) and Denounce (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
One of these
All of these
One of these
$TRAIT$ = trait:kinslayer_3or
$TRAIT$ = trait:kinslayer_2or
$TRAIT$ = trait:kinslayer_1
$RITE$ = { rite_has_parameter = kinslaying_any_dynasty_member_crime }
or
All of these
One of these
$TRAIT$ = trait:kinslayer_3or
$TRAIT$ = trait:kinslayer_2
$RITE$ = { rite_has_parameter = kinslaying_extended_family_crime }
or
All of these
$TRAIT$ = trait:kinslayer_3$RITE$ = { rite_has_parameter = kinslaying_close_kin_crime }
or
All of these
$TRAIT$ = trait:witch$RITE$ = { rite_has_parameter = witchcraft_illegal }
or
All of these
$TRAIT$ = trait:cannibalNOT = { $RITE$ = { rite_has_parameter = cannibalism_legal } }
or
All of these
$TRAIT$ = trait:sodomite$RITE$ = { rite_has_parameter = homosexuality_illegal }
or
All of these
$TRAIT$ = trait:deviant$RITE$ = { rite_has_parameter = deviancy_illegal }
or
All of these
$TRAIT$ = trait:incestuousNOT = { $RITE$ = { rite_has_parameter = allows_unrestricted_marriage } }
or
All of these
One of these
$TRAIT$ = trait:adultereror
$TRAIT$ = trait:fornicator
One of these
All of these
$RITE$ = { rite_has_parameter = adultery_female_crime }$GENDER_CHARACTER$ = { is_female = yes }
or
All of these
$RITE$ = { rite_has_parameter = adultery_male_crime }$GENDER_CHARACTER$ = { is_male = yes }
or
All of these
$TRAIT$ = trait:devoted$RITE$ = { rite_has_parameter = devoted_trait_criminal }
• 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 (75 lines of game script)
trait_is_criminal_in_rite_trigger = {
OR = {
#KINSLAYER
AND = {
OR = {
$TRAIT$ = trait:kinslayer_3
$TRAIT$ = trait:kinslayer_2
$TRAIT$ = trait:kinslayer_1
}
$RITE$ = { rite_has_parameter = kinslaying_any_dynasty_member_crime }
}
AND = {
OR = {
$TRAIT$ = trait:kinslayer_3
$TRAIT$ = trait:kinslayer_2
}
$RITE$ = { rite_has_parameter = kinslaying_extended_family_crime }
}
AND = {
$TRAIT$ = trait:kinslayer_3
$RITE$ = { rite_has_parameter = kinslaying_close_kin_crime }
}
#WITCH
AND = {
$TRAIT$ = trait:witch
$RITE$ = { rite_has_parameter = witchcraft_illegal }
}
#CANNIBAL
AND = {
$TRAIT$ = trait:cannibal
NOT = {
$RITE$ = { rite_has_parameter = cannibalism_legal }
}
}
#SODOMITE
AND = {
$TRAIT$ = trait:sodomite
$RITE$ = { rite_has_parameter = homosexuality_illegal }
}
#DEVIANT
AND = {
$TRAIT$ = trait:deviant
$RITE$ = { rite_has_parameter = deviancy_illegal }
}
#INCEST
AND = {
$TRAIT$ = trait:incestuous
NOT = {
$RITE$ = { rite_has_parameter = allows_unrestricted_marriage }
}
}
#ADULTERER/FORNICATOR
AND = {
OR = {
$TRAIT$ = trait:adulterer
$TRAIT$ = trait:fornicator
}
OR = {
AND = {
$RITE$ = { rite_has_parameter = adultery_female_crime }
$GENDER_CHARACTER$ = { is_female = yes }
}
AND = {
$RITE$ = { rite_has_parameter = adultery_male_crime }
$GENDER_CHARACTER$ = { is_male = yes }
}
}
}
# Devoted is criminal when monasticism is forbidden
AND = {
$TRAIT$ = trait:devoted
$RITE$ = { rite_has_parameter = devoted_trait_criminal }
}
}
}As written in game/common/scripted_triggers/00_religious_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls trait_is_criminal_in_rite_trigger.
Decisions (1)
Character interactions (5)
Events (25)
- … Appointed... …?
ep3_governor_yearly.3020 - A Chance Meeting
tour_grounds_events.6000 - A Deviant on the Loose
yearly.8400 - A Disgrace to the Gods
fp1_jomsvikings.0041 - A Head Unworthy of the Crown
ep3_emperor_yearly.2020 - A Lecture on Lustfulness
court_yearly.0110
19 more
- A Secret Exposed!
secrets.0101 - A Secret Exposed!
secrets.0103 - A Secret Exposed!
secrets.0104 - A Secret Exposed!
secrets.0107 - A Sensual Proposal
seduce_outcome.0003 - A Single Night
feast_default.3006 - Beyond All Doubt
pregnancy.6004 - Espionage: Sodomy
spymaster_task.0342 - fund_inspiration.6301
- Hungriest Among the Brood
mpo_nomad_events.1020 - Inspiration Funded
fund_inspiration.0031 - Inspiration Realized
fund_inspiration.1031 - Last Rites: My Sin is Ever Before Me
pam_decision_events.0006 - Local Justice
tour_travel.9020 - Raunchy Runestone
fp1_yearly.2500 - The Age of Knowing
witch.1002 - The Borders of Faith
fp2_struggle.2006 - The Cangue-Wearer
mpo_nomad_events.1080 - Wise …
playdate.3013
Scripted triggers inside an event file (7)
- ep2_wedding_ewan_0051_legal_rake_trigger
- ep3_laamp_flavour_ewan_2041_valid_courtier_to_gain_lover_general_trigger
- fp1_yearly_2500_guest_trigger
- fund_inspiration_3001_cannibal_topic_trigger
- homosexual_poet_trigger
- tour_travel_9020_valid_criminal_trigger
1 more
- yearly_8400_guest_trigger
Scripted effects (6)
Scripted triggers (7)
Script values (1)
- appointment_score_base
Scripted modifiers (AI weights) (4)
- admin_claimant_faction_modifiers
- admin_faction_modifiers
- ai_agent_join_chance_hostile_taboo_modifier
- theocratic_related_puppet_acceptance_factors_modifier
Courtier guest management (1)
- guest_management
Scripted character templates (1)
- pool_repopulate_local_flavor
Succession appointment (1)
- clerical_christian
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.