Scripted effect · Friends and Foes files
bp1_yearly_9026_determine_sin_and_virtue
bp1_yearly_9026_determine_sin_and_virtue = yesgame/common/scripted_effects/03_bp1_haunted_by_ghosts_effects.txt, line 4 (46 lines). No parameters.
bp1_yearly_9026_determine_sin_and_virtue is a scripted effect in Crusader Kings III, in the Friends and Foes files, written at line 4 of its file. It takes no parameters: bp1_yearly_9026_determine_sin_and_virtue = yes. The game's script calls it in 1 place, among them A Face From Long Ago (event bp1_yearly.9026). Patch 1.20.1.2, from game/common/scripted_effects/03_bp1_haunted_by_ghosts_effects.txt.
The comment above it in the file
Scripted effect to determine what sin you have and what virtue you should strive for
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (46 lines of game script)
bp1_yearly_9026_determine_sin_and_virtue = {
if = {
limit = {
OR = {
has_trait = greedy
has_trait = gluttonous
has_trait = chaste
}
}
random_owned_story = {
type = story_being_visited_by_angry_ghosts
set_variable = {
name = trait_to_gain
value = 1 #generous
}
}
}
else_if = {
limit = {
OR = {
has_trait = murderer
any_secret = {
type = secret_murder
}
has_trait = wrathful
has_trait = vengeful
}
}
random_owned_story = {
type = story_being_visited_by_angry_ghosts
set_variable = {
name = trait_to_gain
value = 2 # forgiving
}
}
}
else = {
random_owned_story = {
type = story_being_visited_by_angry_ghosts
set_variable = {
name = trait_to_gain
value = 3 #compassionate
}
}
}
}As written in game/common/scripted_effects/03_bp1_haunted_by_ghosts_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls bp1_yearly_9026_determine_sin_and_virtue.
Events (1)
- A Face From Long Ago
bp1_yearly.9026
Source: game/common/scripted_effects/03_bp1_haunted_by_ghosts_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.