Scripted effect
set_relation_grudge_effect
set_relation_grudge_effect = { REASON = … TARGET = … }game/common/scripted_effects/00_relation_effects.txt, line 1358 (49 lines). Parameters: $REASON$, $TARGET$.
set_relation_grudge_effect is a scripted effect in Crusader Kings III, written at line 1358 of its file. A call passes 2 parameters: REASON and TARGET. The game's script calls it in 8 places, among them A Potential Rival (event debate_event.2050), A Potential Rival (event imperial_examination.4060) and Ill-Advised: Where There Is Smoke (event nomad_events.0003). Patch 1.21.0, from game/common/scripted_effects/00_relation_effects.txt.
The comment above it in the file
Save these scopes separately before running the effect if you need them for the grudge reason: scope:relationship_reason_involved_character scope:relationship_reason_province
What it does
If
NOT = { has_relation_grudge = scope:target_char }
Then
gg_relation_catalyst_effect = { ACTOR = scope:srge_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_grudge_hre_pope }
• 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 (49 lines of game script)
set_relation_grudge_effect = {
save_scope_as = srge_root_scope
$TARGET$ = { save_scope_as = target_char }
if = {
limit = {
NOT = {
has_relation_grudge = scope:target_char
}
}
if = {
limit = {
exists = scope:relationship_reason_involved_character
exists = scope:relationship_reason_province
}
set_relation_grudge = {
reason = $REASON$
target = scope:target_char
involved_character = scope:relationship_reason_involved_character
province = scope:relationship_reason_province
}
}
else_if = {
limit = { exists = scope:relationship_reason_province }
set_relation_grudge = {
reason = $REASON$
target = scope:target_char
province = scope:relationship_reason_province
}
}
else_if = {
limit = { exists = scope:relationship_reason_involved_character }
set_relation_grudge = {
reason = $REASON$
target = scope:target_char
involved_character = scope:relationship_reason_involved_character
}
}
else = {
set_relation_grudge = {
reason = $REASON$
target = scope:target_char
}
}
}
#Is the GG situation applicable?
show_as_tooltip = {
gg_relation_catalyst_effect = { ACTOR = scope:srge_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_grudge_hre_pope }
}
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_relation_grudge_effect.
Character interactions (1)
- Set Relationship
Events (6)
- A Potential Rival
debate_event.2050 - A Potential Rival
imperial_examination.4060 - Ill-Advised: Where There Is Smoke
nomad_events.0003 - Ill-Advised?
nomad_events.0001 - tgp_interaction_event.0030
- The Most Important Lesson
pam_decision_events.0003
Scripted effects (1)
Source: game/common/scripted_effects/00_relation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.