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_tenet_filial_piety_education_completion_reward_effect

pam_tenet_filial_piety_education_completion_reward_effect = yes

game/common/scripted_effects/pam_effects.txt, line 1535 (34 lines). No parameters.

pam_tenet_filial_piety_education_completion_reward_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1535 of its file. It takes no parameters: pam_tenet_filial_piety_education_completion_reward_effect = yes. The game's script calls it in 1 place, among them wrap_up_education_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

What it does

  • If

    • scope:educator:
      • is_parent_of = root
      • The Personal Tenets unlock tenet filial piety education completion reward

    Then

• 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 (34 lines of game script)
pam_tenet_filial_piety_education_completion_reward_effect = {
	if = {
		limit = {
			NOT = { has_character_flag = pam_filial_piety_education_rewarded }
			exists = scope:educator
			scope:educator = {
				is_parent_of = root
				has_personal_tenet_flag = tenet_filial_piety_education_completion_reward
			}
		}
		add_character_flag = pam_filial_piety_education_rewarded
		scope:educator = {
			send_interface_toast = {
				type = event_toast_effect_good
				title = pam_filial_piety_education_completion_parent_toast
				left_icon = scope:educator
				right_icon = root
				add_piety = major_piety_value
				change_spiritual_fulfillment = major_spiritual_fulfillment_value
			}
		}
		send_interface_toast = {
			type = event_toast_effect_good
			title = pam_filial_piety_education_completion_child_toast
			left_icon = root
			right_icon = scope:educator
			add_piety = major_piety_value
			if = {
				limit = { is_playable_character = yes }
				change_spiritual_fulfillment = major_spiritual_fulfillment_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_tenet_filial_piety_education_completion_reward_effect.

Scripted effects (1)

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?