Scripted effect
set_relation_nemesis_effect
set_relation_nemesis_effect = { REASON = … TARGET = … }game/common/scripted_effects/00_relation_effects.txt, line 1457 (90 lines). Parameters: $REASON$, $TARGET$.
set_relation_nemesis_effect is a scripted effect in Crusader Kings III, written at line 1457 of its file. A call passes 2 parameters: REASON and TARGET. The game's script calls it in 55 places, among them Make Nemesis (interaction), … Betrayal (event mpo_temujin_flavor.0020) and A …'s Heart (event ep2_wedding.1200). 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 nemesis reason: scope:relationship_reason_involved_character scope:relationship_reason_province
What it does
If
can_set_relation_nemesis_trigger = { CHARACTER = scope:target_char }
Then
If
has_relation_rival = scope:target_char
Then
gg_relation_catalyst_effect = { ACTOR = scope:srne_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_nemesis_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 (90 lines of game script)
set_relation_nemesis_effect = {
save_scope_as = srne_root_scope
$TARGET$ = { save_scope_as = target_char }
if = {
limit = {
can_set_relation_nemesis_trigger = { CHARACTER = scope:target_char }
}
if = {
limit = { has_relation_rival = scope:target_char }
if = {
limit = {
exists = scope:relationship_reason_involved_character
exists = scope:relationship_reason_province
}
set_relation_nemesis = {
reason = $REASON$
copy_reason = rival
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_nemesis = {
reason = $REASON$
copy_reason = rival
target = scope:target_char
province = scope:relationship_reason_province
}
}
else_if = {
limit = { exists = scope:relationship_reason_involved_character }
set_relation_nemesis = {
reason = $REASON$
copy_reason = rival
target = scope:target_char
involved_character = scope:relationship_reason_involved_character
}
}
else = {
set_relation_nemesis = {
reason = $REASON$
copy_reason = rival
target = scope:target_char
}
}
}
else = {
if = {
limit = {
exists = scope:relationship_reason_involved_character
exists = scope:relationship_reason_province
}
set_relation_nemesis = {
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_nemesis = {
reason = $REASON$
target = scope:target_char
province = scope:relationship_reason_province
}
}
else_if = {
limit = { exists = scope:relationship_reason_involved_character }
set_relation_nemesis = {
reason = $REASON$
target = scope:target_char
involved_character = scope:relationship_reason_involved_character
}
}
else = {
set_relation_nemesis = {
reason = $REASON$
target = scope:target_char
}
}
}
#Is the GG situation applicable?
show_as_tooltip = {
gg_relation_catalyst_effect = { ACTOR = scope:srne_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_nemesis_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_nemesis_effect.
Character interactions (2)
- Make Nemesis
- Set Relationship
Events (39)
- … Betrayal
mpo_temujin_flavor.0020 - A …'s Heart
ep2_wedding.1200 - A Chance to Start Over?
ep2_wedding.1320 - A Disgrace to the Gods
fp1_jomsvikings.0041 - A Dish Best Served...
ep3_laamps.6003 - A Dissonant Voice
coronation_events.1033
33 more
- A Lack of Discipline
chinese_students.0003 - A Royal Trampling
tour_grounds_events.3009 - A Slice of the Pie
court.2201 - Annoying Company
bp1_yearly.1050 - bp1_yearly.1080
- bp1_yearly.2022
- bp1_yearly.8020
- courtier_guest_management.3001
- Danger: Killer Charm
travel_events.3130 - Distaste to Detest
bp1_yearly.7100 - Eradicate the …
tgp_japan_general.9551 - Fit to Lead?
tgp_japan_yearly_events.1210 - Frankokratia
ep3_frankokratia_events.0060 - Hearty Competition
fp1_yearly.2100 - Hell Hath No Fury
lover.0005 - Never Forgive
bp1_yearly.9005 - Passion or Purity
bp1_yearly.9018 - Romance: Intruder
court_outcome.1103 - Romance: The Wild Hunt
court_outcome.1005 - Secret Whispers
ep2_wedding.1130 - Sins of the …: In Flagrante
bp1_yearly.5707 - Strange Teachings: The Council of …
fp2_lyonese_monk.0441 - That's My …!
ep3_wedding.0003 - The … Offense
mpo_temujin_flavor.0030 - The Enemy of …
hasan_sabbah.1031 - The Loss of a …
bp1_yearly.6010 - The Rightful Seljuk
bookmark.1073 - The Secret …
ep1_flavor.0001 - The Two …s
bp1_yearly.9010 - To the Prettiest...?
cultural_festival.3031 - Unhealthy Relations
relation_upgrade.2102 - Unwelcome Attention
childhood.0005 - Set Relationship
debug.350
Scripted effects inside an event file (8)
- ep3_interactions_events_0601_insult
- parental_neglect_effect
- relation_upgrade_0001_rival_effect
- result_discovered_disbelieve_mandala_effect
- set_new_rival_effect
- tax_rivalry_4010_deepen_rivalry_effect
2 more
- vizierate_0001_assign_best_relation_effect
- vizierate_1001_disfavoured_party_opinions_effect
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.