Scripted effect · By God Alone files
pam_investiture_persuade_duel_effect
pam_investiture_persuade_duel_effect = { OPPOSITE = … SIDE = … SKILL_A = … SKILL_B = … }game/common/scripted_effects/pam_investiture_council_effects.txt, line 317 (59 lines). Parameters: $OPPOSITE$, $SIDE$, $SKILL_A$, $SKILL_B$.
pam_investiture_persuade_duel_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 317 of its file. A call passes 4 parameters: OPPOSITE, SIDE, SKILL_A and SKILL_B. The game's script calls it in 2 places, among them A Word in the Right Ear (event pam_investiture_council_events.0032) and The Weight of a Crown (event pam_investiture_council_events.0033). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_investiture_council_effects.txt.
The comment above it in the file
$SKILL_A$ / $SKILL_B$ / $SIDE$ / $OPPOSITE$ are option parameters, not vars
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (59 lines of game script)
pam_investiture_persuade_duel_effect = {
# Reset the trackers the feedback toast reads.
set_variable = { name = investiture_swayed_count value = 0 }
set_variable = { name = investiture_persuade_result value = flag:swayed }
save_scope_as = investiture_persuader
duel = {
skills = { $SKILL_A$ $SKILL_B$ }
value = pam_investiture_persuade_difficulty
8 = {
compare_modifier = { value = scope:duel_value multiplier = 0.5 min = -8 }
custom_tooltip = pam_investiture_persuade_tt_great_$SIDE$
set_variable = { name = investiture_persuade_result value = flag:swayed }
pam_investiture_persuade_flip_effect = { SIDE = $SIDE$ COUNT = pam_investiture_persuade_flip_great }
}
12 = {
compare_modifier = { value = scope:duel_value multiplier = 0.2 min = -12 }
custom_tooltip = pam_investiture_persuade_tt_good_$SIDE$
set_variable = { name = investiture_persuade_result value = flag:swayed }
pam_investiture_persuade_flip_effect = { SIDE = $SIDE$ COUNT = pam_investiture_persuade_flip_good }
}
12 = {
custom_tooltip = pam_investiture_persuade_tt_modest_$SIDE$
set_variable = { name = investiture_persuade_result value = flag:swayed }
pam_investiture_persuade_flip_effect = { SIDE = $SIDE$ COUNT = pam_investiture_persuade_flip_modest }
}
10 = {
compare_modifier = { value = scope:duel_value multiplier = -0.6 min = -10 }
custom_tooltip = pam_investiture_persuade_tt_backfire_$OPPOSITE$
set_variable = { name = investiture_persuade_result value = flag:backfired }
pam_investiture_persuade_flip_effect = { SIDE = $OPPOSITE$ COUNT = pam_investiture_persuade_flip_backfire }
}
}
# Tooltip preview runs these limits inside hidden_effect
# Both flags compared so neither is set but unused
hidden_effect = {
if = {
limit = {
has_variable = investiture_persuade_result
var:investiture_persuade_result = flag:swayed
}
send_interface_toast = {
title = pam_investiture_persuade_toast_title
left_icon = root
custom_tooltip = pam_investiture_persuade_toast_swayed_tt
}
}
else_if = {
limit = {
has_variable = investiture_persuade_result
var:investiture_persuade_result = flag:backfired
}
send_interface_toast = {
title = pam_investiture_persuade_toast_title
left_icon = root
custom_tooltip = pam_investiture_persuade_toast_backfired_tt
}
}
}
}As written in game/common/scripted_effects/pam_investiture_council_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_investiture_persuade_duel_effect.
Events (2)
- A Word in the Right Ear
pam_investiture_council_events.0032 - The Weight of a Crown
pam_investiture_council_events.0033
Source: game/common/scripted_effects/pam_investiture_council_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.