Scripted effect
diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect
diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect = yesgame/common/scripted_effects/00_diplomacy_lifestyle_effects.txt, line 250 (29 lines). No parameters.
diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect is a scripted effect in Crusader Kings III, written at line 250 of its file. It takes no parameters: diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect = yes. The game's script calls it in 2 places, among them Hospitality: A Snake in My Bosom (event diplomacy_foreign_special.1025) 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:foreign_guest:If
can_add_hook = { target = scope:interesting_relation type = manipulation_hook }
Then
add_hook = { target = scope:interesting_relation type = manipulation_hook }
scope:interesting_relation:- Opinion: Trust (+30)
- Opinion: Suspicion (-20)
• 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 (29 lines of game script)
diplomacy_foreign_special_1010_court_visit_interesting_relation_manipulate_effect = {
scope:foreign_guest = {
if = {
limit = {
can_add_hook = {
target = scope:interesting_relation
type = manipulation_hook
}
}
add_hook = {
target = scope:interesting_relation
type = manipulation_hook
}
}
}
scope:interesting_relation = {
add_opinion = {
target = scope:foreign_guest
modifier = trust_opinion
opinion = 30
}
add_opinion = {
target = scope:host_ruler
modifier = suspicion_opinion
opinion = -20
}
hidden_effect = { if = { limit = { NOT = { has_relation_potential_rival = scope:host_ruler } } set_relation_potential_rival = scope:host_ruler } }
}
}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_manipulate_effect.
Events (1)
- Hospitality: A Snake in My Bosom
diplomacy_foreign_special.1025
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.