Scripted effect · By God Alone files
pam_investiture_conflict_apply_forced_stance_effect
pam_investiture_conflict_apply_forced_stance_effect = { WINNER = … }game/common/scripted_effects/pam_investiture_council_effects.txt, line 740 (26 lines). Parameters: $WINNER$.
pam_investiture_conflict_apply_forced_stance_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 740 of its file. A call passes 1 parameter: WINNER. The game's script calls it in 2 places, among them pam_investiture_conflict_defeat_effect (scripted effect) and pam_investiture_conflict_victory_effect (scripted effect). Its body carries 1 text 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
Locks the losers' council vote to $WINNER$'s stance
What it does
- Every in list › If played by a person: Defeated in the Investiture Conflict, you are bound to the victor's stance on the appointment of the clergy at the coming council.
• 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 (26 lines of game script)
pam_investiture_conflict_apply_forced_stance_effect = {
every_in_list = {
list = pam_investiture_conflict_losers
if = {
limit = { $WINNER$ = { pam_investiture_supports_spiritual_revocable_trigger = yes } }
set_variable = {
name = investiture_stance
value = flag:spiritual_revocable
}
}
else = {
set_variable = {
name = investiture_stance
value = flag:temporal_revocable
}
}
if = {
limit = { is_ai = no }
send_interface_toast = {
title = pam_investiture_conflict_forced_stance_toast
left_icon = $WINNER$
custom_tooltip = pam_investiture_conflict_forced_stance_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_conflict_apply_forced_stance_effect.
Scripted effects (2)
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.