CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · By God Alone files

pam_vows_of_poverty_host_completion_piety_effect

pam_vows_of_poverty_host_completion_piety_effect = yes

game/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.

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.

Spotted a mistake on this page?