Scripted effect
spy_on_mother_pregnancy_adultery_effect
spy_on_mother_pregnancy_adultery_effect = yesgame/common/scripted_effects/00_adultery_effects.txt, line 400 (176 lines). No parameters.
spy_on_mother_pregnancy_adultery_effect is a scripted effect in Crusader Kings III, written at line 400 of its file. It takes no parameters: spy_on_mother_pregnancy_adultery_effect = yes. The game's script calls it in 2 places, among them A Question of Loyalty (event adultery.1001) and A Sneaking Suspicion (event adultery.1003). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_adultery_effects.txt.
What it does
If
NOT = { cp:councillor_spymaster = scope:mother }cp:councillor_spymaster.intrigue > intrigue
Then
cp:councillor_spymaster:duel = { … }
Otherwise
duel = { … }
• 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 (120 lines of game script)
spy_on_mother_pregnancy_adultery_effect = {
show_as_tooltip = {
if = { # Check whether root or Spymaster should spy
limit = {
exists = cp:councillor_spymaster
NOT = { cp:councillor_spymaster = scope:mother }
cp:councillor_spymaster.intrigue > intrigue
}
cp:councillor_spymaster = {
duel = {
skill = intrigue
target = scope:mother
6 = {
compare_modifier = {
value = scope:duel_value
multiplier = 0.5
min = -5
}
desc = adultery.1003.duel_success
root = {
custom_tooltip = adultery.1003.duel_success_tt
}
}
4 = {
compare_modifier = {
value = scope:duel_value
multiplier = -0.5
min = -3
}
desc = adultery.1003.duel_failure
root = {
reverse_add_opinion = {
target = scope:mother
modifier = spied_on_me_opinion
}
}
}
}
}
}
else = {
duel = {
skill = intrigue
target = scope:mother
6 = {
compare_modifier = {
value = scope:duel_value
multiplier = 0.5
min = -5
}
desc = adultery.1003.duel_success
custom_tooltip = adultery.1003.duel_success_tt
}
4 = {
compare_modifier = {
value = scope:duel_value
multiplier = -0.5
min = -3
}
desc = adultery.1003.duel_failure
reverse_add_opinion = {
target = scope:mother
modifier = spied_on_me_opinion
}
}
}
}
}
hidden_effect = {
scope:mother = {
if = {
limit = {
is_alive = yes
}
add_character_flag = {
flag = father_suspects_this_pregnancy
months = 8
}
}
}
if = { # Check whether root or Spymaster should spy
limit = {
exists = cp:councillor_spymaster
NOT = { cp:councillor_spymaster = scope:mother }
cp:councillor_spymaster.intrigue > intrigue
}
cp:councillor_spymaster = {
duel = {
skill = intrigue
target = scope:mother
6 = {
compare_modifier = {
value = scope:duel_value
multiplier = 0.5
min = -5
}
trigger = {
scope:mother.pregnancy_real_father != root
exists = scope:mother.pregnancy_assumed_father
}
root = {
debug_spouse_and_pregnancy_real_father_effect = yes
trigger_event = {
id = adultery.1004
days = { 10 15 }
}
}
}
4 = {
compare_modifier = {
value = scope:duel_value
multiplier = -0.5
min = -3As written in game/common/scripted_effects/00_adultery_effects.txt.
The first 120 of its 176 lines; the rest is in game/common/scripted_effects/00_adultery_effects.txt from line 400.
Where it is used
Every place in common/, events/ and history/ that calls spy_on_mother_pregnancy_adultery_effect.
Events (2)
- A Question of Loyalty
adultery.1001 - A Sneaking Suspicion
adultery.1003
Source: game/common/scripted_effects/00_adultery_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.