Scripted effect
set_relation_rival_effect
set_relation_rival_effect = { REASON = … TARGET = … }game/common/scripted_effects/00_relation_effects.txt, line 1411 (42 lines). Parameters: $REASON$, $TARGET$.
set_relation_rival_effect is a scripted effect in Crusader Kings III, written at line 1411 of its file. A call passes 2 parameters: REASON and TARGET. The game's script calls it in 211 places, among them Call to War (interaction), Castrate Kin (interaction) and Dismiss Vizier (interaction). 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 rival reason: scope:relationship_reason_involved_character scope:relationship_reason_province
What it does
gg_relation_catalyst_effect = { ACTOR = scope:srre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_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 (42 lines of game script)
set_relation_rival_effect = {
save_scope_as = srre_root_scope
$TARGET$ = { save_scope_as = target_char }
if = {
limit = {
exists = scope:relationship_reason_involved_character
exists = scope:relationship_reason_province
}
set_relation_rival = {
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_rival = {
reason = $REASON$
target = scope:target_char
province = scope:relationship_reason_province
}
}
else_if = {
limit = { exists = scope:relationship_reason_involved_character }
set_relation_rival = {
reason = $REASON$
target = scope:target_char
involved_character = scope:relationship_reason_involved_character
}
}
else = {
set_relation_rival = {
reason = $REASON$
target = scope:target_char
}
}
#Is the GG situation applicable?
show_as_tooltip = {
gg_relation_catalyst_effect = { ACTOR = scope:srre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_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_rival_effect — the first 120 of 211.
Character interactions (6)
Activity pulse actions (3)
- carnival_rivalry
- courtiers_became_rivals
- festival_rivalry
Events (111)
- … Betrayal
mpo_temujin_flavor.0020 - … Blood
bp2_yearly.6080 - … in the Crowd
prelude_events.0160 - … Pie
host_dinner_events.3041 - … True …
bp1_house_feud.0006 - …: Failure
scheme_critical_moments.8403
105 more
- …: Failure
scheme_critical_moments.8603 - …: the Adulterer
host_dinner_events.3002 - …: Win Some, Lose Some
scheme_critical_moments.1226 - A … Enemy
bp1_house_feud.0004 - A … Honor
bp1_house_feud.0013 - A … Pride
bp1_house_feud.0014 - A … Scorned
lover.0204 - A Betrayal
friendship.0014 - A Birthright, Renewed
bp2_yearly.6090 - A Disgrace to the Family
ep3_decisions_event.5002 - A Disgrace to the Gods
fp1_jomsvikings.0041 - A Failed Elopement
elope.1012 - A Hostage Scorned
bp2_yearly.8063 - A Maltreated …
bp1_house_feud.0011 - A Murdered …
bp1_yearly.8050 - A Noble in Disguise!
travel_events.1002 - A Nose for Trouble
ep3_laamp_flavour_ewan.1111 - A Proper Paymaster
fp3_clan.8011 - A Question of Honor
host_dinner_events.3150 - A Rival …
pam_antipope_events.0001 - A Slice of the Pie
court.2201 - A Stolen Keepsake
travel_events_oltner_2.1190 - A Tedious Disagreement
diplomacy_majesty_special.1015 - A Toast To...
feast.7202 - A Vengeful …
bp1_house_feud.0009 - A Zanj Steps Forth
fp3_story_cycle_zanj_rebellion_events.0006 - An Acidic Accident
fp3_yearly.8021 - An End to An Affair
lover.0201 - An Eye for an Eye
bp1_house_feud.0003 - Annoying Company
bp1_yearly.1050 - Blooming Friendship
diplomacy_foreign.1103 - Blooming Friendship
diplomacy_foreign.1104 - Blossoming Hatred
relation_upgrade.3000 - Boiling Anger
stress_threshold.2202 - bp1_yearly.1080
- By Right
yearly.3051 - Can't Get Away
ep2_wedding.1310 - Caught!
imperial_examination.6000 - Challenge Met: House …
fp3_misc_decisions.0020 - Challenge Met: House …
fp3_misc_decisions.0041 - Chaotic Succession: Jealousy
mpo_chaotic_kurultai_succession.0001 - Claim Throne
claim_throne_outcome.5001 - Claim Throne
claim_throne_outcome.5002 - Claim Throne
claim_throne_outcome.5003 - Commentaries
learning_theology_special.1102 - commission_epic.1007
- Compassionate Discord
yearly.5010 - Concerning Tutelage
yearly.5024 - Contract: Treasure Hunt
ep3_contract_event.0007 - Court Jester: Food Fight
jester.600 - Coveted Claim
bp1_yearly.8000 - Crowned Cuckquean
bp1_house_feud.0012 - Cupid's Arrow: Striking Home
bp1_yearly.5102 - Dreams of a Better Life
host_dinner_events.3006 - Dynastic Solidarity
bp1_house_feud.0002 - easteregg_event.0002
- Eminent Eunuch: Push Back
ep3_story_cycle_admin_eunuch.5010 - Eminent Eunuch: The Rival
ep3_story_cycle_admin_eunuch.3010 - empire_faith_gate.0001
- ep3_governor_yearly.3003
- ep3_laamps.0003
- ep3_laamps.8107
- Eradicate the …
tgp_japan_general.9551 - Evangelizing the …
ep3_decisions_event.4026 - Extremes of Passion
intrigue_temptation.3161 - feast.7102
- Feud: The Next Enemy
bp1_house_feud.0840 - Fled Before the Blade
ep3_interactions_events.0031 - Foremost …
court.8160 - Frankokratia
ep3_frankokratia_events.0060 - friendship.0015
- Genpei War: A Crossroads of Power
tgp_genpei_character.2010 - Genpei War: Wilting Chrysanthemum
tgp_genpei_character.4000 - Golden Age Science: Starry-eyed Surgeon
iberia_north_africa.2002 - Gone In The Night
yearly.1010 - Hearty Competition
fp1_yearly.2100 - Hell Hath No Fury
lover.0005 - Heretics Amongst Us: A Change of Heart
east_europe.0115 - Heretics Amongst Us: A Temporary Reprieve
east_europe.0117 - I Have Heard of You
feast_events_flavor.0001 - In the Bud
ep3_powerful_families.8020 - Just Desserts
playdate.5011 - Lure of Vendetta
bp1_house_feud.0005 - Mental Break: A Grasp on Power
stress_threshold_prison.1031 - Mental Break: Boiling Anger
stress_threshold.2201 - mpo_greatest_of_khans.0100
- Murder at Compline
ecumenical_council_events_josh.0001 - My Own …
lover.0202 - Never Forgive
bp1_yearly.9005 - Night Terrors: A … Love
bp1_yearly.5006 - Night Terrors: Denied Ambitions
bp1_yearly.5002 - Night Terrors: Right Hand …
bp1_yearly.5004 - Not Forgotten
bp2_yearly.6122 - Of Another Anthill
court_events.1010 - Once and Former …
ep3_laamps.0001 - Our Voices and the Ages
coronation_events.6001 - pam_interactions_events.0032
- pam_interactions_events.0033
- party_baron.4002
- Path of Rivalry
travel_events_oltner_2.1170 - Petitioners
guest_intent_coronation_events.0100 - Public Challenge
debate_event.2060 - Public Challenge
az_examination.0002 - Questions of Rite and Right
ach_coronation.0012 - Return of the King of Thieves
fp2_struggle.2021
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.