Scripted effect
diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect
diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect = yesgame/common/scripted_effects/00_diplomacy_lifestyle_effects.txt, line 230 (19 lines). No parameters.
diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect is a scripted effect in Crusader Kings III, written at line 230 of its file. It takes no parameters: diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect = yes. The game's script calls it in 2 places, among them Hospitality: A Merry Old Time (event diplomacy_foreign_special.1024) and diplomacy_foreign_special_1010_court_visit_interesting_relation_outcome_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt.
What it does
- scope:interesting_relation: Gains a Friend
• 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 (19 lines of game script)
diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect = {
scope:interesting_relation = {
set_relation_friend = { reason = friend_court_visit target = scope:foreign_guest }
}
scope:foreign_guest = {
hidden_effect = {
add_opinion = {
target = scope:interesting_relation
modifier = friendliness_opinion
opinion = 30
}
reverse_add_opinion = {
target = scope:interesting_relation
modifier = friendliness_opinion
opinion = 30
}
}
}
}As written in game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls diplomacy_foreign_special_1010_court_visit_interesting_relation_befriend_effect.
Events (1)
- Hospitality: A Merry Old Time
diplomacy_foreign_special.1024
Scripted effects (1)
Source: game/common/scripted_effects/00_diplomacy_lifestyle_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.