Scripted trigger
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { GENDER_CHARACTER = … TRAIT = … }game/common/scripted_triggers/00_religious_triggers.txt, line 546 (18 lines). Parameters: $GENDER_CHARACTER$, $TRAIT$.
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger is a scripted trigger in Crusader Kings III, written at line 546 of its file. A call passes 2 parameters: GENDER_CHARACTER and TRAIT. The game's script calls it in 22 places, among them … Who Makes a Beast Out of …... (event hold_court.4600), An Odd Request (event bp1_yearly.9020) and Convert to Witchcraft: The Time Has Come (event witch.2001). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
One of these
All of these
- Their rite:
save_temporary_scope_as = check_rite
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:check_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
- Their rite:
or
All of these
- Their liege › Their rite:
save_temporary_scope_as = check_rite
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:check_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
- Their liege › Their rite:
• 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 (18 lines of game script)
trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = {
OR = {
AND = {
rite = { #My rite doesn't approve
save_temporary_scope_as = check_rite
}
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:check_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
}
AND = { #Liege's rite doesn't approve
liege ?= {
rite = {
save_temporary_scope_as = check_rite
}
}
trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:check_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
}
}
}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_shunned_or_criminal_in_my_or_lieges_rite_trigger.
Events (9)
- … Who Makes a Beast Out of …...
hold_court.4600 - An Odd Request
bp1_yearly.9020 - Convert to Witchcraft: The Time Has Come
witch.2001 - Exposed
seduce_outcome.4003 - fund_inspiration.6513
- Taste for Blood
legend_spread_events.5230
3 more
- The Baby Eating …
bp1_yearly.9043 - The Sting of Rejection
seduce_outcome.4002 - The Tapestry
bp1_yearly.7003
Scripted triggers inside an event file (4)
- yearly_1030_could_get_cannibal_secret_trigger
- yearly_1030_could_get_deviant_secret_trigger
- yearly_1030_could_get_homosexual_secret_trigger
- yearly_1030_could_get_witch_secret_trigger
Scripted effects (8)
Scripted triggers (1)
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.