Scripted effect
voyager_gracious_host_impeccable_guest_effect
voyager_gracious_host_impeccable_guest_effect = yesgame/common/scripted_effects/00_wanderer_lifestyle_effects.txt, line 321 (31 lines). No parameters.
voyager_gracious_host_impeccable_guest_effect is a scripted effect in Crusader Kings III, written at line 321 of its file. It takes no parameters: voyager_gracious_host_impeccable_guest_effect = yes. The game's script calls it in 1 place, among them on_travel_plan_movement (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_wanderer_lifestyle_effects.txt.
What it does
If
- Has the Gracious Host, Impeccable Guest Perk
root.location.barony.holder.capital_barony = root.location.barony
Then
- Your location’s barony’s holder: Opinion: Impeccable Guest (+10)
If
- Your location’s barony’s holder: Has the Gracious Host, Impeccable Guest Perk
Then
- Opinion: Gracious Host (+10)
• 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 (31 lines of game script)
voyager_gracious_host_impeccable_guest_effect = {
if = {
limit = {
has_perk = gracious_host_impeccable_guest_perk
exists = root.location.barony.holder
this != root.location.barony.holder
root.location.barony.holder.capital_barony = root.location.barony
}
root.location.barony.holder = {
add_opinion = {
modifier = impeccable_guest_opinion
opinion = 10
target = root
}
}
}
if = {
limit = {
exists = root.location.barony.holder
this != root.location.barony.holder
root.location.barony.holder = {
has_perk = gracious_host_impeccable_guest_perk
}
}
add_opinion = {
modifier = gracious_host_opinion
opinion = 10
target = root.location.barony.holder
}
}
}As written in game/common/scripted_effects/00_wanderer_lifestyle_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls voyager_gracious_host_impeccable_guest_effect.
On actions (the game's own hooks) (1)
- on_travel_plan_movement
Source: game/common/scripted_effects/00_wanderer_lifestyle_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.