Scripted effect · By God Alone files
pam_sway_to_rite_on_decline_effect
pam_sway_to_rite_on_decline_effect = yesgame/common/scripted_effects/pam_effects.txt, line 11992 (33 lines). No parameters.
pam_sway_to_rite_on_decline_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11992 of its file. It takes no parameters: pam_sway_to_rite_on_decline_effect = yes. The game's script calls it in 4 places, among them Convert to Reformed Faith (interaction), Sway to Rite (interaction) and Sway to Rite (interaction). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Shared on_decline for the three Sway to Rite interactions.
What it does
- scope:puppet_or_actor › scope:recipient › If played by the AI: Opinion: Annoyed (-10)
• 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 (33 lines of game script)
pam_sway_to_rite_on_decline_effect = {
scope:puppet_or_actor = {
send_interface_toast = {
type = event_toast_effect_bad
title = sway_ruler_to_my_rite_interaction_decline_toast
right_icon = scope:recipient
scope:recipient = {
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:puppet_or_actor
modifier = annoyed_opinion
opinion = -10
}
}
}
}
}
if = {
limit = {
scope:is_puppet_action ?= yes
scope:actor != scope:recipient
}
scope:actor = {
send_interface_toast = {
type = event_toast_effect_bad
title = sway_ruler_to_my_rite_interaction_decline_toast_puppeteer
left_icon = scope:puppet_or_actor
right_icon = scope:recipient
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_sway_to_rite_on_decline_effect.
Character interactions (4)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.