Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

flavor_mam.71 任命朝觐事务官

时间范围:无明确 fromto 日期限制,事件在满足条件后持续可触发。 触发概率:无 monthly_chance 字段,为条件满足后的即时事件。

触发条件

  • 国家宗教属于穆斯林宗教组 (religion.group = religion_group:muslim)。
  • 国家拥有马穆鲁克政府改革 (has_reform = government_reform:mamluk_government)。
  • 国家满足以下人物构成条件:
    • 至少有 3名 非统治者、非摄政、非继承人的贝都因文化 (culture:bedouin_culture) 人物。
    • 至少有 4名 非统治者、非摄政、非继承人,且文化不同于国家主流文化 (root.culture) 的人物。
    • 至少有 3名 非统治者、非摄政、非继承人,且文化为国家主流文化 (root.culture) 的人物。
  • 全局变量 mamluk_amir_al_hajj 不存在或其对应人物已死亡。

关键效果: 事件将根据人物能力,从不同文化背景的候选人中任命“朝觐事务官”(mamluk_amir_al_hajj),并提供不同加成:

  • 选项 A (flavor_mam.71.a):任命总能力最高的贝都因文化候选人。
    • 效果:贝都因文化获得文化影响力加成(基础值 + 候选人总能力/30)。
  • 选项 B (flavor_mam.71.b):任命军事 (mil) 能力最高的非主流文化、非贝都因候选人。
    • 效果:获得陆军传统加成(基础值 + 候选人军事能力/10)。
  • 选项 C (flavor_mam.71.c):任命外交 (dip) 能力最高的非主流文化、非贝都因、非军事候选人。
    • 效果:获得外交官数量加成(基础值 + 候选人外交能力/50)。
  • 选项 D (flavor_mam.71.d):任命行政 (adm) 能力最高的非主流文化、非贝都因、非军事、非外交候选人。
    • 效果:社会价值观向“法学”方向移动(mysticism_vs_jurisprudence 右移)。
  • 选项 E (flavor_mam.71.e):任命总能力最高的国家主流文化候选人。
    • 效果:国家主流文化获得文化影响力加成(基础值 + 候选人总能力/30)。

背景介绍: 在马穆鲁克苏丹国,管理一年一度的麦加朝觐(哈吉)是一项至关重要的政治与宗教职责。朝觐事务官(Amir al-Hajj)不仅负责朝圣队伍的安全与后勤,其任命也是平衡国内不同族群(如贝都因部落、外族马穆鲁克精英与本土阿拉伯人)影响力的重要手段。此事件反映了苏丹如何从各派系中遴选官员,以巩固统治并获取相应支持。

完整事件代码

flavor_mam.71 = {
	type = country_event
	title = flavor_mam.71.title
	desc = flavor_mam.71.desc

	trigger = {
		religion.group = religion_group:muslim
		any_character = {
			count > 2
			is_ruler = no
			is_regent = no
			is_heir = no
			culture ?= culture:bedouin_culture
		}
		any_character = {
			count > 3
			is_ruler = no
			is_regent = no
			is_heir = no
			culture ?= {
				NOT = {
					this = root.culture
				}
			}
		}
		any_character = {
			count > 2
			is_ruler = no
			is_regent = no
			is_heir = no
			culture ?= root.culture
		}
		OR = {
			NOT = { exists = var:mamluk_amir_al_hajj }
			var:mamluk_amir_al_hajj ?= {
				is_alive = no
			}
		}
		has_reform = government_reform:mamluk_government
	}

	immediate = {
		ordered_character ?= {
			order_by = total_abilities
			max = 1
			limit = {
				culture = culture:bedouin_culture
			}
			save_scope_as = bedouin_candidate
		}
		ordered_character ?= {
			order_by = mil
			max = 1
			limit = {
				this != scope:bedouin_candidate
				culture != root.culture
			}
			save_scope_as = mil_candidate
		}
		ordered_character ?= {
			order_by = dip
			max = 1
			limit = {
				this != scope:bedouin_candidate
				this != scope:mil_candidate
				culture != root.culture
			}
			save_scope_as = dip_candidate
		}
		ordered_character ?= {
			order_by = adm
			max = 1
			limit = {
				this != scope:bedouin_candidate
				this != scope:mil_candidate
				this != scope:dip_candidate
				culture != root.culture
			}
			save_scope_as = adm_candidate
		}
		ordered_character ?= {
			order_by = total_abilities
			max = 1
			limit = {
				this != scope:bedouin_candidate
				this != scope:mil_candidate
				this != scope:dip_candidate
				this != scope:adm_candidate
				culture = root.culture
			}
			save_scope_as = mamluk_candidate
		}
		ruler_or_regent ?= {
			save_scope_as = target_character
		}
	}

	option = {
		name = flavor_mam.71.a
		trigger = {
			exists = scope:bedouin_candidate
		}
		set_variable = {
			name = mamluk_amir_al_hajj
			value = scope:bedouin_candidate
		}
		culture:bedouin_culture = {
			add_cultural_influence = {
				value = cultural_influence_mild_bonus
				add = {
					value = scope:bedouin_candidate.total_abilities
					divide = 30
				}
			}
		}
	}

	option = {
		name = flavor_mam.71.b
		trigger = {
			exists = scope:mil_candidate
		}
		set_variable = {
			name = mamluk_amir_al_hajj
			value = scope:mil_candidate
		}
		add_army_tradition = {
			value = army_tradition_mild_bonus
			add = {
				value = scope:mil_candidate.mil
				divide = 10
			}
		}
	}

	option = {
		name = flavor_mam.71.c
		trigger = {
			exists = scope:dip_candidate
		}
		set_variable = {
			name = mamluk_amir_al_hajj
			value = scope:dip_candidate
		}
		add_diplomats = {
			value = diplomats_mild_bonus
			add = {
				value  = scope:dip_candidate.dip
				divide = 50
			}
		}
	}

	option = {
		name = flavor_mam.71.d
		trigger = {
			exists = scope:adm_candidate
		}
		set_variable = {
			name = mamluk_amir_al_hajj
			value = scope:dip_candidate
		}
		change_societal_value = { type = mysticism_vs_jurisprudence value = societal_value_move_to_right }
	}

	option = {
		name = flavor_mam.71.e
		trigger = {
			exists = scope:mamluk_candidate
		}
		set_variable = {
			name = mamluk_amir_al_hajj
			value = scope:mamluk_candidate
		}
		culture = {
			add_cultural_influence = {
				value = cultural_influence_mild_bonus
				add = {
					value = scope:mamluk_candidate.total_abilities
					divide = 30
				}
			}
		}
	}
}