Scripted effect · By God Alone files
pam_investiture_prepare_voters_effect
pam_investiture_prepare_voters_effect = yesgame/common/scripted_effects/pam_investiture_council_effects.txt, line 512 (31 lines). No parameters.
pam_investiture_prepare_voters_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 512 of its file. It takes no parameters: pam_investiture_prepare_voters_effect = yes. The game's script calls it in 1 place, among them pam_nudge_investiture_council_host_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_investiture_council_effects.txt.
The comment above it in the file
Busy or travelling players get event 0004 instead of being moved, while this stays on the faith
What it does
- Every faith character:
- Where:
- If played by the AI:
pam_investiture_free_for_council_effect = yesIf
- Their location:
squared_distance = { target = scope:investiture_hof_capital value > squared_distance_large }
Then
return_home = yes
- Their location:
- Otherwise:
• 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 (31 lines of game script)
pam_investiture_prepare_voters_effect = {
every_faith_character = {
limit = {
pam_valid_ecumenical_council_voter_trigger = yes
NOT = { this = faith.religious_head }
}
if = {
limit = { is_ai = yes }
pam_investiture_free_for_council_effect = yes
# Inside location = { } faith.religious_head is the province
if = {
limit = {
exists = scope:investiture_hof_capital
location ?= { squared_distance = { target = scope:investiture_hof_capital value > squared_distance_large } }
}
return_home = yes
}
}
else = {
if = {
limit = {
OR = {
is_travelling = yes
exists = involved_activity
}
}
trigger_event = pam_investiture_council_events.0004
}
}
}
}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_prepare_voters_effect.
Scripted effects (1)
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.