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_clerical_court_ordain_effect

pam_clerical_court_ordain_effect = yes

game/common/scripted_effects/pam_effects.txt, line 8962 (22 lines). No parameters.

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

The comment above it in the file

Here we run this on the courtier, and it expects scope:pam_clerical_patron

What it does

  • scope:pam_clerical_patron:
    • scope:pam_clerical_ordained:
      • Gains the Trait Cleric
      • If

        • learning < scope:pam_clerical_patron.pam_clerical_court_learning_cap_value

        Then

        • add_learning_skill = pam_clerical_court_learning_gain_value
      • Opinion: Called Me to Serve …
    • Gain … 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 (22 lines of game script)
pam_clerical_court_ordain_effect = {
	save_scope_as = pam_clerical_ordained
	scope:pam_clerical_patron = {
		send_interface_toast = {
			type = event_toast_effect_good
			title = pam_clerical_court_ordain_toast
			left_icon = scope:pam_clerical_ordained
			scope:pam_clerical_ordained = {
				add_trait = cleric
				if = {
					limit = { learning < scope:pam_clerical_patron.pam_clerical_court_learning_cap_value }
					add_learning_skill = pam_clerical_court_learning_gain_value
				}
				add_opinion = {
					target = scope:pam_clerical_patron
					modifier = grateful_for_calling_opinion
				}
			}
			add_piety = pam_clerical_court_piety_gain_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_clerical_court_ordain_effect.

Events (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?