Scripted effect
add_patronage_spouse_education_points_effect
add_patronage_spouse_education_points_effect = yesgame/common/scripted_effects/00_councillor_effects.txt, line 438 (114 lines). No parameters.
add_patronage_spouse_education_points_effect is a scripted effect in Crusader Kings III, written at line 438 of its file. It takes no parameters: add_patronage_spouse_education_points_effect = yes. The game's script calls it in 1 place, among them childhood_education.9003 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_councillor_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (114 lines of game script)
add_patronage_spouse_education_points_effect = {
if = {
limit = {
exists = host.cp:councillor_spouse
}
host.cp:councillor_spouse = { save_scope_as = councillor }
if = {
limit ={
spouse_learning_tier_1_trigger = yes
has_education_focus_trigger = yes
trigger_if = {
limit = {
has_variable = patronage_spouse_tutor
}
var:patronage_spouse_tutor = scope:councillor
}
}
save_scope_as = patronage_student
random = {
chance = 7
modifier = {
add = 7 #14%
host = { spouse_learning_tier_2_trigger = yes }
}
modifier = {
add = 7 #21%
host = { spouse_learning_tier_3_trigger = yes }
}
modifier = {
NOR = {
is_child_of = scope:councillor
reverse_opinion = {
target = scope:councillor
value >= 25
}
}
add = -5
}
modifier = {
reverse_opinion = {
target = scope:councillor
value >= 50
}
add = 5
}
modifier = {
NOT = { is_child_of = scope:councillor }
any_parent = { is_spouse_of = scope:councillor }
OR = {
has_trait = bastard
has_trait = legitimized_bastard
}
scope:councillor = {
NOR = {
ai_compassion >= high_positive_ai_value
opinion = { target = scope:patronage_student value >= 50 }
}
}
add = -20
}
if = {
limit = {
has_variable = patronage_spouse_tutor
has_variable = patronage_spouse_tutor_points
}
change_variable = {
name = patronage_spouse_tutor_points
add = 1
}
}
else = {
set_variable = {
name = patronage_spouse_tutor
value = scope:councillor
days = 5475
}
set_variable = {
name = patronage_spouse_tutor_points
value = 1
days = 5475
}
}
host = {
save_scope_as = host
if = {
limit = {
any_child = { this = scope:patronage_student }
}
send_interface_message = {
type = msg_spouse_patronage
title = add_patronage_spouse_education_points_effect.t
desc = add_patronage_spouse_education_points_child_effect.desc
left_icon = scope:patronage_student
right_icon = scope:councillor
}
}
else_if = {
limit = {
player_heir ?= { this = scope:patronage_student }
}
send_interface_message = {
type = msg_spouse_patronage
title = add_patronage_spouse_education_points_effect.t
desc = add_patronage_spouse_education_points_effect.desc
left_icon = scope:patronage_student
right_icon = scope:councillor
}
}
}
}
}
}
}As written in game/common/scripted_effects/00_councillor_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_patronage_spouse_education_points_effect.
Events (1)
Source: game/common/scripted_effects/00_councillor_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.