Scripted effect · By God Alone files
pam_vows_of_poverty_host_completion_piety_effect
pam_vows_of_poverty_host_completion_piety_effect = yesgame/common/scripted_effects/pam_effects.txt, line 1584 (24 lines). No parameters.
pam_vows_of_poverty_host_completion_piety_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1584 of its file. It takes no parameters: pam_vows_of_poverty_host_completion_piety_effect = yes. The game's script calls it in 25 places, among them Blót (activity), Debate (activity) and Festival (activity). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
- scope:host: The Personal Tenets unlock tenet vows of poverty humble host
- scope:activity: Does not have “vows of poverty completion piety paid” (a variable the game's script sets)
Then
- scope:activity › scope:host: Gain +150 Piety
• 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 (24 lines of game script)
pam_vows_of_poverty_host_completion_piety_effect = {
if = {
limit = {
this = scope:host
scope:host = {
has_personal_tenet_flag = tenet_vows_of_poverty_humble_host
}
scope:activity = {
NOT = { has_variable = pam_vows_of_poverty_completion_piety_paid }
}
}
scope:activity = {
set_variable = pam_vows_of_poverty_completion_piety_paid
scope:host = {
send_interface_toast = {
type = event_toast_effect_good
title = pam_vows_of_poverty_activity_completion_piety_toast
left_icon = scope:host
add_piety = pam_vows_of_poverty_host_piety_value
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_vows_of_poverty_host_completion_piety_effect.
Scripted effects (17)
- adult_education_completed_log_entry_effect
- camp_party_completed_log_entry_effect
- coronation_completed_log_entry_effect
- debate_disburse_activity_host_rewards
- disburse_chariot_race_activity_host_rewards
- disburse_ecumenical_council_activity_rewards
11 more
- disburse_feast_activity_rewards
- disburse_hunt_activity_rewards
- disburse_murder_feast_activity_rewards
- disburse_murder_wedding_host_rewards
- disburse_tour_activity_rewards
- disburse_tournament_activity_rewards
- disburse_wedding_activity_rewards
- disburse_witch_ritual_host_rewards_effect
- imperial_examination_disburse_activity_host_rewards
- local_examination_disburse_activity_host_rewards
- pilgrimage_completed_log_entry_effect
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.