Scripted trigger
has_any_war_opinion_against_character_trigger
has_any_war_opinion_against_character_trigger = { CHARACTER = … }game/common/scripted_triggers/00_opinion_scripted_triggers.txt, line 71 (24 lines). Parameters: $CHARACTER$.
has_any_war_opinion_against_character_trigger is a scripted trigger in Crusader Kings III, written at line 71 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them Whispered Words (event bp2_yearly.0631) and has_any_major_negative_opinion_against_character_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_opinion_scripted_triggers.txt.
The comment above it in the file
Has this character declared war on me close enough that I remember it?
What it checks
One of these
has_opinion_modifier = { modifier = declared_war target = $CHARACTER$ }or
has_opinion_modifier = { modifier = declared_war_on_son_daughter target = $CHARACTER$ }or
has_opinion_modifier = { modifier = vassal_lost_faction_revolt_war target = $CHARACTER$ }or
has_opinion_modifier = { modifier = vassal_wp_faction_revolt_war target = $CHARACTER$ }or
has_opinion_modifier = { modifier = peasant_revolt_opinion target = $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 (24 lines of game script)
has_any_war_opinion_against_character_trigger = {
OR = {
has_opinion_modifier = {
modifier = declared_war
target = $CHARACTER$
}
has_opinion_modifier = {
modifier = declared_war_on_son_daughter
target = $CHARACTER$
}
has_opinion_modifier = {
modifier = vassal_lost_faction_revolt_war
target = $CHARACTER$
}
has_opinion_modifier = {
modifier = vassal_wp_faction_revolt_war
target = $CHARACTER$
}
has_opinion_modifier = {
modifier = peasant_revolt_opinion
target = $CHARACTER$
}
}
}As written in game/common/scripted_triggers/00_opinion_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_any_war_opinion_against_character_trigger.
Events (1)
- Whispered Words
bp2_yearly.0631
Scripted triggers (1)
Source: game/common/scripted_triggers/00_opinion_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.