Scripted effect
instill_virtue_trait_effect
instill_virtue_trait_effect = yesgame/common/scripted_effects/00_court_position_effects.txt, line 3348 (57 lines). No parameters.
instill_virtue_trait_effect is a scripted effect in Crusader Kings III, written at line 3348 of its file. It takes no parameters: instill_virtue_trait_effect = yes. The game's script calls it in 1 place, among them Instill Virtue (court task). Patch 1.20.1.2, from game/common/scripted_effects/00_court_position_effects.txt.
The comment above it in the file
Need a 'notification_character' scope for it to work properly
What it does
If
a check the game hides
Then
- scope:notification_character › scope:child_character: Gains the Trait scope:virtue trait
• 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 (57 lines of game script)
instill_virtue_trait_effect = {
save_scope_as = child_character
# Find fitting trait
random_trait = {
limit = {
has_trait_category = personality
save_temporary_scope_as = temp_trait
scope:child_character = {
rite = {
trait_is_virtue_rite = scope:temp_trait
}
NOT = {
has_trait = scope:temp_trait
}
}
NOT = {
any_opposite_trait = {
scope:child_character = {
has_trait = scope:temp_trait
}
}
}
trigger_if = {
limit = {
this = trait:lustful
}
scope:child_character = {
character_is_teen_or_older_trigger = yes
NOR = {
has_sexuality = none
has_sexuality = asexual
}
}
}
}
save_scope_as = virtue_trait
}
# Instill the trait
if = {
limit = {
exists = scope:virtue_trait
}
scope:notification_character = {
send_interface_toast = {
type = event_royal_court_good_with_text
title = wet_nurse_instill_virtue
desc = wet_nurse_instill_virtue_notification_desc
left_icon = scope:wetnurse_trait_giver
right_icon = scope:child_character
scope:child_character = {
add_trait = scope:virtue_trait
}
}
}
}
}As written in game/common/scripted_effects/00_court_position_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls instill_virtue_trait_effect.
Court position tasks (1)
- Instill Virtue
Source: game/common/scripted_effects/00_court_position_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.