Scripted effect · By God Alone files
pam_open_sway_to_rite_variant_effect
pam_open_sway_to_rite_variant_effect = yesgame/common/scripted_effects/pam_effects.txt, line 11845 (36 lines). No parameters.
pam_open_sway_to_rite_variant_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11845 of its file. It takes no parameters: pam_open_sway_to_rite_variant_effect = yes. The game's script calls it in 4 places, among them Archbishops you cannot ask yet (important action), Rulers you cannot ask yet (important action) and You can Sway Archbishops to your Rite (important action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Keep branches in sync with pam_sway_to_rite_variant_can_send_trigger
What it does
Else if
scope:recipient:One of these
target_is_liege_or_above = scope:actoror
is_tributary_of = scope:actoror
pam_rite_sway_house_lane_trigger = { ACTOR = scope:actor RECIPIENT = scope:recipient }
Then
- Opens the interaction “Sway to Rite”
Otherwise
- Opens the interaction “Sway to Rite”
• 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 (36 lines of game script)
pam_open_sway_to_rite_variant_effect = {
if = {
limit = { scope:recipient = { is_courtier_of = scope:actor } }
open_interaction_window = {
interaction = sway_courtier_to_my_rite_interaction
actor = scope:actor
recipient = scope:recipient
}
}
else_if = {
limit = {
scope:recipient = {
OR = {
target_is_liege_or_above = scope:actor
is_tributary_of = scope:actor
pam_rite_sway_house_lane_trigger = {
ACTOR = scope:actor
RECIPIENT = scope:recipient
}
}
}
}
open_interaction_window = {
interaction = sway_vassal_to_my_rite_interaction
actor = scope:actor
recipient = scope:recipient
}
}
else = {
open_interaction_window = {
interaction = sway_ruler_to_my_rite_interaction
actor = scope:actor
recipient = 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_open_sway_to_rite_variant_effect.
Important actions (4)
- Archbishops you cannot ask yet
- Rulers you cannot ask yet
- You can Sway Archbishops to your Rite
- You can Sway Rulers to your Rite
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.