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

Scripted effect

recruit_three_nomadic_capital_characters_effect

recruit_three_nomadic_capital_characters_effect = { NOMAD_TEMPLATE_CHARACTER = … }

game/common/scripted_effects/00_commander_effects.txt, line 505 (105 lines). Parameters: $NOMAD_TEMPLATE_CHARACTER$.

recruit_three_nomadic_capital_characters_effect is a scripted effect in Crusader Kings III, written at line 505 of its file. A call passes 1 parameter: NOMAD_TEMPLATE_CHARACTER. The game's script calls it in 2 places, among them Recruit … from Nomadic Capital (decision) and spawn_dynamic_mongol_court_effect (scripted effect). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_commander_effects.txt.

What it does

  • create_character = { … }
  • If a check the game hides passes: the same again (4 lines)
    • scope:new_commander:
    • If

      • scope:new_commander:
        • NOT = { is_courtier_of = scope:root_scope }

      Then

      • add_courtier = scope:new_commander
    • … joined your court!
  • If a check the game hides passes: the same again (4 lines)
    • scope:new_commander:
    • If

      • scope:new_commander:
        • NOT = { is_courtier_of = scope:root_scope }

      Then

      • add_courtier = scope:new_commander
    • … joined your court!
  • If a check the game hides passes: the same again (4 lines)
    • scope:new_commander:
    • If

      • scope:new_commander:
        • NOT = { is_courtier_of = scope:root_scope }

      Then

      • add_courtier = scope:new_commander
    • … 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 (105 lines of game script)
recruit_three_nomadic_capital_characters_effect = {
	save_scope_as = root_scope
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = domicile.domicile_faith
		culture = domicile.domicile_culture
		save_scope_as = new_commander
	}
	if = { # Error suppression
		limit = {
			exists = scope:new_commander
		}
		scope:new_commander = {
			assign_random_nickname_effect = yes
			add_character_flag = {
				flag = blocked_from_leaving
				years = 25
			}
		}
		if = {
			limit = {
				scope:new_commander = {
					NOT = {
						is_courtier_of = scope:root_scope
					}
				}
			}
			add_courtier = scope:new_commander
		}
		send_interface_message = {
			title = nomad_character_recruited.t
			left_icon = scope:new_commander
			custom_tooltip = commander_recruited.desc
		}
	}
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = domicile.domicile_faith
		culture = domicile.domicile_culture
		save_scope_as = new_commander
	}
	if = { # Error suppression
		limit = {
			exists = scope:new_commander
		}
		scope:new_commander = {
			assign_random_nickname_effect = yes
			add_character_flag = {
				flag = blocked_from_leaving
				years = 25
			}
		}
		if = {
			limit = {
				scope:new_commander = {
					NOT = {
						is_courtier_of = scope:root_scope
					}
				}
			}
			add_courtier = scope:new_commander
		}
		send_interface_message = {
			title = nomad_character_recruited.t
			left_icon = scope:new_commander
			custom_tooltip = commander_recruited.desc
		}
	}
	create_character = {
		employer = scope:root_scope
		template = $NOMAD_TEMPLATE_CHARACTER$
		faith = domicile.domicile_faith
		culture = domicile.domicile_culture
		save_scope_as = new_commander
	}
	if = { # Error suppression
		limit = {
			exists = scope:new_commander
		}
		scope:new_commander = {
			assign_random_nickname_effect = yes
			add_character_flag = {
				flag = blocked_from_leaving
				years = 25
			}
		}
		if = {
			limit = {
				scope:new_commander = {
					NOT = {
						is_courtier_of = scope:root_scope
					}
				}
			}
			add_courtier = scope:new_commander
		}
		send_interface_message = {
			title = nomad_character_recruited.t
			left_icon = scope:new_commander
			custom_tooltip = commander_recruited.desc
		}
	}
}

As written in game/common/scripted_effects/00_commander_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_commander_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?