Scripted effect
downgrade_to_rival_effect
downgrade_to_rival_effect = { CHARACTER = … REASON = … }game/common/scripted_effects/00_relation_effects.txt, line 922 (39 lines). Parameters: $CHARACTER$, $REASON$.
downgrade_to_rival_effect is a scripted effect in Crusader Kings III, written at line 922 of its file. A call passes 2 parameters: CHARACTER and REASON. The game's script calls it in 7 places, among them … Friend (event bp1_yearly.8170), … Ultimatum (event bp1_yearly.8180) and I Know You Now (event bp1_yearly.9025). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
The comment above it in the file
Immediately downgrade the relationship DO NOT USE AFTER BP1 - hard to implement with relationship reasons
What it does
Else if
has_relation_friend = $CHARACTER$
Then
remove_relation_friend = $CHARACTER$
Else if
has_relation_rival = $CHARACTER$NOT = { has_relation_nemesis = $CHARACTER$ }
Then
- Gains a Nemesis
• 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 (39 lines of game script)
downgrade_to_rival_effect = {
#If best friend, change to friend
if = {
limit = {
has_relation_best_friend = $CHARACTER$
}
remove_relation_best_friend = $CHARACTER$
set_relation_friend = { reason = friend_downgrade_best_friends target = $CHARACTER$ }
}
#If friend, end friendship.
else_if = {
limit = {
has_relation_friend = $CHARACTER$
}
remove_relation_friend = $CHARACTER$
}
# If not, look at upgrading from rival to nemesis
else_if = {
limit = {
has_relation_rival = $CHARACTER$
NOT = { has_relation_nemesis = $CHARACTER$ }
}
set_relation_nemesis = {
target = $CHARACTER$
copy_reason = rival
reason = nemesis_downgrade_from_rival
}
}
# If not, look at upgrading from nothing to rival
else_if = {
limit = {
NOT = { has_relation_nemesis = $CHARACTER$ }
}
set_relation_rival = {
target = $CHARACTER$
reason = $REASON$
}
}
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls downgrade_to_rival_effect.
Events (6)
- … Friend
bp1_yearly.8170 - … Ultimatum
bp1_yearly.8180 - I Know You Now
bp1_yearly.9025 - The Baby Eating …
bp1_yearly.9043 - The Face of …
bp1_yearly.9042 - The False …
funeral.1021
Scripted effects inside an event file (1)
- 1080_insulting_performance_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.20.1.2.