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_seed_monk_courtiers_effect

pam_seed_monk_courtiers_effect = yes

game/common/scripted_effects/pam_effects.txt, line 8888 (49 lines). No parameters.

pam_seed_monk_courtiers_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8888 of its file. It takes no parameters: pam_seed_monk_courtiers_effect = yes. The game's script calls it in 3 places, among them on_game_start_after_lobby (on action), on_title_gain (on action) and three_year_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Without this, clerical courts fill from generic pool templates and feel secular

What it does

• 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 (49 lines of game script)
pam_seed_monk_courtiers_effect = {
	if = {
		limit = {
			OR = {
				pam_court_wants_monk_courtiers_trigger = yes
				# Without regional clergy to draw on, a clerical court's own clergy are its only Clerical Appointment candidates
				AND = {
					has_pam_dlc_trigger = yes
					is_ruler = yes
					highest_held_title_tier >= tier_county
					NOT = { religion = religion:christianity_religion }
					pam_government_is_religious_playable_trigger = yes
					primary_title = {
						is_mercenary_company = no
						is_holy_order = no
					}
				}
			}
		}
		save_temporary_scope_as = monk_employer
		while = {
			count = 4 # Hard bound matching the highest quota; the limit below is what actually ends the loop
			limit = {
				any_courtier = {
					count < pam_monk_courtier_target_value
					OR = {
						has_trait = devoted
						has_trait = cleric
					}
				}
			}
			random_list = {
				50 = {
					trigger = { faith = { faith_has_monasticism_trigger = yes } }
					create_character = { # No location: create_character rejects location and employer together
						employer = scope:monk_employer
						template = pam_monk_courtier_template
					}
				}
				50 = {
					create_character = {
						employer = scope:monk_employer
						template = pam_cleric_courtier_template
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls pam_seed_monk_courtiers_effect.

On actions (the game's own hooks) (3)

  • on_game_start_after_lobby
  • on_title_gain
  • three_year_playable_pulse

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?