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

Scripted effect · Khans of the Steppe files

summon_three_fair_courtiers_effect

summon_three_fair_courtiers_effect = { NOMAD_TEMPLATE_CHARACTER = … }

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 4920 (66 lines). Parameters: $NOMAD_TEMPLATE_CHARACTER$.

summon_three_fair_courtiers_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 4920 of its file. A call passes 1 parameter: NOMAD_TEMPLATE_CHARACTER. The game's script calls it in 1 place, among them Summon Fair Courtiers (decision). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

  • create_character = { … }
  • If any in list › Every in list:
    • assign_random_nickname_effect = yes
    • If

      • NOT = { is_courtier_of = scope:root_scope }

      Then

      • scope:root_scope:
        • add_courtier = scope:new_commander
    • scope:root_scope: … joined your court!

• 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 (66 lines of game script)
summon_three_fair_courtiers_effect = {
	save_scope_as = root_scope
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = root.location.faith
		rite = root.location.rite
		culture = root.location.culture
		after_creation = {
			add_to_list = three_fair_courtiers_list
		}
	}
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = root.location.faith
		rite = root.location.rite
		culture = root.location.culture
		after_creation = {
			add_to_list = three_fair_courtiers_list
		}
	}
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = root.location.faith
		rite = root.location.rite
		culture = root.location.culture
		after_creation = {
			add_to_list = three_fair_courtiers_list
		}
	}
	if = { # Error suppression
		limit = {
			any_in_list = {
				list = three_fair_courtiers_list
			}
		}
		every_in_list = {
			list = three_fair_courtiers_list
			save_scope_as = new_commander
			assign_random_nickname_effect = yes
			if = {
				limit = {
					NOT = {
						is_courtier_of = scope:root_scope
					}
				}
				scope:root_scope = {
					add_courtier = scope:new_commander
				}
			}
			add_character_flag = {
				flag = blocked_from_leaving
				years = 25
			}
			scope:root_scope = {
				send_interface_message = {
					title = nomad_character_recruited.t
					left_icon = prev
					custom_tooltip = commander_recruited.desc
				}
			}
		}
	}
}

As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/09_dlc_mpo_scripted_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?