Scripted trigger
has_negative_attitude_towards_trait_trigger
has_negative_attitude_towards_trait_trigger = { GENDER_CHARACTER = … TRAIT = … }game/common/scripted_triggers/00_religious_triggers.txt, line 735 (61 lines). Parameters: $GENDER_CHARACTER$, $TRAIT$.
has_negative_attitude_towards_trait_trigger is a scripted trigger in Crusader Kings III, written at line 735 of its file. A call passes 2 parameters: GENDER_CHARACTER and TRAIT. The game's script calls it in 10 places, among them … Love (event seduce_outcome.8101), A Secret Exposed! (event secrets.0101) and A Secret Exposed! (event secrets.0103). Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.
What it checks
None of these
- Has the Trait: …
All of these
$TRAIT$ = trait:incestuous- Any secret:
All of these
$TRAIT$ = trait:witch- Any secret:
All of these
$TRAIT$ = trait:cannibal- Any secret:
All of these
$TRAIT$ = trait:sodomiteOne of these
has_sexuality = homosexualor
has_sexuality = bisexual
- Any secret:
One of these
trait_is_shunned_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }or
trait_is_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
• 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 (61 lines of game script)
has_negative_attitude_towards_trait_trigger = {
NOR = {
has_trait = $TRAIT$
#INCESTUOUS
AND = {
$TRAIT$ = trait:incestuous
any_secret = { type = secret_incest }
}
#WITCH
AND = {
$TRAIT$ = trait:witch
any_secret = { type = secret_witch }
}
#CANNIBAL
AND = {
$TRAIT$ = trait:cannibal
any_secret = { type = secret_cannibal }
}
#SODOMITE
AND = {
$TRAIT$ = trait:sodomite
OR = {
has_sexuality = homosexual
has_sexuality = bisexual
}
any_secret = {
type = secret_homosexual
}
}
#ADULTERER
AND = {
$TRAIT$ = trait:adulterer
OR = {
has_trait = lustful
AND = {
is_married = yes
any_relation = { type = lover NOT = { is_spouse_of = prev } }
}
any_relation = {
type = lover
is_married = yes
NOT = { is_spouse_of = prev }
}
}
}
#FORNICATOR
AND = {
$TRAIT$ = trait:fornicator
OR = {
has_trait = lustful
any_relation = { type = lover always = yes }
}
}
}
rite = { save_temporary_scope_as = my_rite }
OR = {
trait_is_shunned_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_rite GENDER_CHARACTER = $GENDER_CHARACTER$ }
trait_is_criminal_in_rite_trigger = { TRAIT = $TRAIT$ RITE = scope:my_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 has_negative_attitude_towards_trait_trigger.
Events (10)
- … Love
seduce_outcome.8101 - A Secret Exposed!
secrets.0101 - A Secret Exposed!
secrets.0103 - A Secret Exposed!
secrets.0104 - A Secret Exposed!
secrets.0106 - A Secret Exposed!
secrets.0107
4 more
- A Secret Exposed!
secrets.0108 - Espionage: Incest
spymaster_task.0348 - Information Brokering
intrigue_scheming.4054 - Unfaithful
infidelity_confrontation.1000
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.