Scripted effect
remove_friend_or_downgrade_friendship_effect
remove_friend_or_downgrade_friendship_effect = { SCOPE = … }game/common/scripted_effects/00_relation_effects.txt, line 826 (8 lines). Parameters: $SCOPE$.
remove_friend_or_downgrade_friendship_effect is a scripted effect in Crusader Kings III, written at line 826 of its file. A call passes 1 parameter: SCOPE. The game's script calls it in 5 places, among them … Friend (event bp1_yearly.8170), … Guile (event bp1_yearly.8131) and A Faithful Friend (event bp1_yearly.5708). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
What it does
Otherwise
remove_relation_friend = $SCOPE$
• 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 (8 lines of game script)
remove_friend_or_downgrade_friendship_effect = {
if = {
limit = { has_relation_best_friend = $SCOPE$ }
hidden_effect = { remove_relation_best_friend = $SCOPE$ }
set_relation_friend = { reason = friend_downgrade_best_friends target = $SCOPE$ }
}
else = { remove_relation_friend = $SCOPE$ }
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_friend_or_downgrade_friendship_effect.
Events (3)
- … Friend
bp1_yearly.8170 - … Guile
bp1_yearly.8131 - A Faithful Friend
bp1_yearly.5708
Scripted effects inside an event file (2)
- bp1_8040_trait_effect
- bp1_sycophant_chain_downgrade_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.