Scripted effect · By God Alone files
pam_apply_ancestral_khachkar_effects
pam_apply_ancestral_khachkar_effects = { ANCESTOR = … LOCATION = … }game/common/scripted_effects/pam_effects.txt, line 7797 (21 lines). Parameters: $ANCESTOR$, $LOCATION$.
pam_apply_ancestral_khachkar_effects is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 7797 of its file. A call passes 2 parameters: ANCESTOR and LOCATION. The game's script calls it in 2 places, among them Raise a Khachkar (decision) and Raise an Ancestral Khachkar (event pam_decision_events.0017). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Apply an ancestral Khachkar in the chosen county (for decision confirmation event).
What it does
$LOCATION$ = { … }- Gain +150 Prestige
- Gain +100 Piety
- Gains 100 Legitimacy
• 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 (21 lines of game script)
pam_apply_ancestral_khachkar_effects = {
$LOCATION$ = {
save_scope_as = khachkar_location
set_variable = {
name = pam_khachkar_ancestor
value = $ANCESTOR$
}
set_variable = {
name = pam_khachkar_commissioner
value = root
}
add_county_modifier = {
modifier = pam_khachkar_ancestral_county
desc = pam_khachkar_ancestral_county_custom_desc
}
}
add_prestige = medium_prestige_value
add_piety = medium_piety_value
add_legitimacy = 100
remove_variable = pam_khachkar_ancestral_ancestor
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_apply_ancestral_khachkar_effects.
Decisions (1)
Events (1)
- Raise an Ancestral Khachkar
pam_decision_events.0017
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.