Scripted effect
add_virtuous_trait_effect
add_virtuous_trait_effect = yesgame/common/scripted_effects/00_religion_effects.txt, line 842 (35 lines). No parameters.
add_virtuous_trait_effect is a scripted effect in Crusader Kings III, written at line 842 of its file. It takes no parameters: add_virtuous_trait_effect = yes. The game's script calls it in 1 place, among them replace_sinful_trait_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (35 lines of game script)
add_virtuous_trait_effect = {
save_scope_as = trait_changer
random_trait = {
limit = {
save_temporary_scope_as = temp_trait
scope:trait_changer.rite = {
trait_is_virtue_rite = prev
}
NOR = {
scope:trait_changer = {
has_trait = scope:temp_trait
}
any_opposite_trait = {
scope:trait_changer = {
has_trait = scope:temp_trait
}
}
}
trigger_if = {
limit = {
this = trait:lustful
}
scope:trait_changer = {
character_is_teen_or_older_trigger = yes
NOR = {
has_sexuality = none
has_sexuality = asexual
}
}
}
}
save_scope_as = virtuous_trait
}
add_trait_force_tooltip = scope:virtuous_trait
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_virtuous_trait_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_religion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.