flavor_mam.29 马穆鲁克行政 - 宫廷官职
时间范围:1337.1.1 - 1395.1.1(每月 1% 概率)
触发条件:
- 国家未处于战争状态 (
at_war = no) - 国家未处于破产状态 (
is_during_bankruptcy = no) - 内阁中至少有 3 位人物 (
any_cabinet_character = { count > 2 }) - 首都省份拥有建筑:文书院 (
capital = { has_building = building_type:chancery })
关键效果:
-
选项 A (flavor_mam.29.a):
- 为内阁中行政能力 (
adm) 最高的人物 (target_character4) 添加持续 1 年的elevated_official_modifier修正,并提升其 5 点行政能力 (add_adm = 5)。 - 若该人物非马穆鲁克 (
NOT = { has_trait = mamluk })、属于贵族阶层 (has_estate = estate_type:nobles_estate)、非继承人 (is_heir = no) 且为男性 (is_female = no),则授予其马穆鲁克特质 (add_trait = trait:mamluk)。 - 根据内阁中能力总和最高的三位人物的平均行政能力 (
adm_cabinet_skills_variable),增加相应比例的科技进度 (add_research_progress)。 - 根据平均行政能力和月度贸易与税收收入 (
monthly_income_trade_and_tax),扣除一定数量的金钱 (add_gold)。
- 为内阁中行政能力 (
-
选项 B (flavor_mam.29.b):
- 为内阁中外交能力 (
dip) 最高的人物 (target_character5) 添加持续 1 年的elevated_official_modifier修正,并提升其 5 点外交能力 (add_dip = 5)。 - 满足相同条件时,授予其马穆鲁克特质。
- 根据内阁中能力总和最高的三位人物的平均外交能力 (
dip_cabinet_skills_variable),增加相应比例的文化传统 (add_cultural_tradition)。 - 根据平均外交能力和月度贸易与税收收入,扣除一定数量的金钱。
- 为内阁中外交能力 (
-
选项 C (flavor_mam.29.c):
- 为内阁中军事能力 (
mil) 最高的人物 (target_character6) 添加持续 1 年的elevated_official_modifier修正,并提升其 5 点军事能力 (add_mil = 5)。 - 满足相同条件时,授予其马穆鲁克特质。
- 根据内阁中能力总和最高的三位人物的平均军事能力 (
mil_cabinet_skills_variable),增加相应比例的陆军传统 (add_army_tradition)。 - 根据平均军事能力和月度贸易与税收收入,扣除一定数量的金钱。
- 为内阁中军事能力 (
背景介绍: 在 14 世纪,马穆鲁克苏丹国的行政体系高度依赖于其宫廷内复杂的官职网络。这些官职通常由能力出众的官员担任,他们负责管理国家的行政、外交和军事事务。苏丹需要从内阁中选拔人才,授予他们更高的官职和权力,以巩固统治并提升国家的治理效率。这一过程往往伴随着对官员能力的评估、相应的资源投入,以及将其纳入马穆鲁克军事精英阶层的可能性。
完整事件代码:
flavor_mam.29 = { #Mamluk Administration - The Offices of the Court
hide_portraits = yes
type = country_event
title = flavor_mam.29.title
desc = flavor_mam.29.desc
fire_only_once = yes
dynamic_historical_event = {
tag = MAM
from = 1337.1.1
to = 1395.1.1
monthly_chance = 1
}
illustration_tags = {
10 = interior
10 = regular
}
trigger = {
at_war = no
is_during_bankruptcy = no
any_cabinet_character = {
count > 2
}
capital = {
has_building = building_type:chancery
}
}
immediate = {
ruler_or_regent ?= { save_scope_as = target_character99 }
ordered_cabinet_character = {
order_by = total_abilities
max = 1
check_range_bounds = no
save_scope_as = target_character1
}
ordered_cabinet_character = {
order_by = total_abilities
limit = {
this != scope:target_character1
}
max = 1
check_range_bounds = no
save_scope_as = target_character2
}
ordered_cabinet_character = {
order_by = total_abilities
limit = {
this != scope:target_character1
this != scope:target_character2
}
max = 1
check_range_bounds = no
save_scope_as = target_character3
}
set_variable = {
name = adm_cabinet_skills_variable
value = {
add = scope:target_character1.adm
add = scope:target_character2.adm
add = scope:target_character3.adm
divide = 10
}
}
set_variable = {
name = dip_cabinet_skills_variable
value = {
add = scope:target_character1.dip
add = scope:target_character2.dip
add = scope:target_character3.dip
divide = 10
}
}
set_variable = {
name = mil_cabinet_skills_variable
value = {
add = scope:target_character1.mil
add = scope:target_character2.mil
add = scope:target_character3.mil
divide = 10
}
}
ordered_cabinet_character = {
order_by = adm
position = 1
check_range_bounds = no
save_scope_as = target_character4
}
ordered_cabinet_character = {
order_by = dip
limit = {
this != scope:target_character4
}
position = 1
check_range_bounds = no
save_scope_as = target_character5
}
ordered_cabinet_character = {
order_by = mil
limit = {
this != scope:target_character4
this != scope:target_character5
}
position = 1
check_range_bounds = no
save_scope_as = target_character6
}
event_illustration_estate_effect = { foreground = estate_type:clergy_estate background = estate_type:nobles_estate }
}
option = {
name = flavor_mam.29.a
scope:target_character4 = {
add_character_modifier = {
modifier = elevated_official_modifier
years = -1
mode = add_and_extend
}
add_adm = 5
if = {
limit = {
NOT = { has_trait = mamluk }
has_estate = estate_type:nobles_estate
is_heir = no
is_female = no
}
add_trait = trait:mamluk
}
}
custom_tooltip = based_on_average_adm_cabinet_character_total_abilities_tt
add_research_progress = {
value = root.var:adm_cabinet_skills_variable
divide = 3
round = yes
}
add_gold = {
value = root.monthly_income_trade_and_tax
multiply = -4
multiply = {
value = var:adm_cabinet_skills_variable
divide = 12
}
}
}
option = {
name = flavor_mam.29.b
scope:target_character5 = {
add_character_modifier = {
modifier = elevated_official_modifier
years = -1
mode = add_and_extend
}
if = {
limit = {
NOT = { has_trait = mamluk }
has_estate = estate_type:nobles_estate
is_heir = no