flavor_dlh.4 古吉拉特独立运动
时间范围:1370.1.1 - 1405.12.30,每月 2% 概率触发
触发条件:
- 国家为德里苏丹国(DLH)
- 拥有古吉拉特地区(area:gujarat_area)内超过 2 个省份
- 拥有坎贝(location:khambat)地区
关键效果:
- 选项 A(历史选项):古吉拉特叛军(GJR)将向德里苏丹国(DLH)发动独立战争。如果“德里陷落”情景处于活动状态且有生效决议,则决议提案者将获得 0.05 的
fall_of_delhi_vote_weight变量加成。 - 选项 B:取消古吉拉特叛军(GJR)的附庸关系。如果“德里陷落”情景处于活动状态,则决议提案者将获得 0.1 的
fall_of_delhi_vote_weight变量加成,并且古吉拉特将获得delhi_claimants_variable变量。 - 选项 C(仅限玩家):玩家将切换控制古吉拉特叛军(GJR),并立即向德里苏丹国(DLH)发动独立战争。如果“德里陷落”情景处于活动状态,则决议提案者将获得 0.05 的
fall_of_delhi_vote_weight变量加成。
背景介绍: 14世纪后期,德里苏丹国对古吉拉特地区的控制力减弱。当地贵族与势力开始寻求自治或独立,最终由扎法尔·穆扎法尔领导,建立了古吉拉特苏丹国。这一事件标志着德里苏丹国在印度西部统治的重大挫折,也是古吉拉特地区作为一个独立政治实体崛起的开端。
完整事件代码:
flavor_dlh.4 = {
type = country_event
title = flavor_dlh.4.title
desc = flavor_dlh.4.desc
fire_only_once = yes
dynamic_historical_event = {
tag = DLH
from = 1370.1.1
to = 1405.12.30
monthly_chance = 2
}
trigger = {
any_province = {
area = area:gujarat_area
count > 2
}
owns = location:khambat
}
illustration_tags = {
10 = angry
10 = interior
}
immediate = {
event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
set_head_scope = yes
if = {
limit = {
owns = location:khambat
}
location:khambat = { save_scope_as = target_location }
}
else = {
ordered_owned_location = {
limit = { area = area:gujarat_area }
order_by = population
check_range_bounds = no
max = 1
save_scope_as = target_location
}
}
scope:target_location = {
province = { save_scope_as = target_province }
}
scope:target_location = {
create_country_from_location = {
set_variable = { name = gujarat_var value = yes }
save_scope_as = target_gujarat_revolter_scope
set_country_rank = country_rank:rank_kingdom
}
}
scope:target_gujarat_revolter_scope = {
add_gold = 1000
change_country_tag = GJR
change_country_name = GJR
change_country_adjective = GJR_ADJ
change_country_color = map_gujarat
change_country_flag = GJR
create_character = {
culture = root.culture
religion = root.religion
estate = estate_type:peasants_estate
first_name = Zafar
last_name = name_muzaffar
birth_date = 1350.6.1
save_scope_as = target_character
}
set_new_ruler = scope:target_character
change_religion = religion:sunni
change_religion_for_ruler_and_family = { country = ROOT religion = religion:sunni }
make_subject_of = {
target = c:DLH
type = subject_type:vassal
}
set_variable = {
name = delhi_claimants_variable
value = yes
}
}
every_owned_location = {
limit = {
area = area:gujarat_area
}
change_location_owner = scope:target_gujarat_revolter_scope
add_core = scope:target_gujarat_revolter_scope
change_integration_level = core
}
}
option = {
name = flavor_dlh.4.a
historical_option = yes
scope:target_gujarat_revolter_scope = {
declare_war_with_cb = {
target = c:DLH
type = casus_belli:cb_independence_war
}
}
if = {
limit = {
is_situation_active = situation:fall_of_delhi
situation:fall_of_delhi = { has_active_resolution = yes}
}
custom_tooltip = gain_5_progress_for_claimants_tt
hidden_effect = {
situation:fall_of_delhi = {
"active_resolution(resolution:fall_of_delhi_resolution).resolution_proposer" = {
change_variable = {
name = fall_of_delhi_vote_weight
add = 0.05
}
}
}
}
}
}
option = {
name = flavor_dlh.4.b
cancel_subject = scope:target_gujarat_revolter_scope
hidden_effect = {
scope:target_gujarat_revolter_scope = {
change_country_color = map_gujarat
}
}
if = {
limit = { is_situation_active = situation:fall_of_delhi }
custom_tooltip = gain_10_progress_for_claimants_tt
hidden_effect = {
situation:fall_of_delhi = {
"active_resolution(resolution:fall_of_delhi_resolution).resolution_proposer" = {
change_variable = {
name = fall_of_delhi_vote_weight
add = 0.1
}
}
}
scope:target_gujarat_revolter_scope = {
set_variable = {
name = delhi_claimants_variable
value = yes
}
}
}
}
}
option = {
name = flavor_dlh.4.c
trigger = {
is_ai = no
}
change_player = scope:target_gujarat_revolter_scope
scope:target_gujarat_revolter_scope = {
declare_war_with_cb = {
target = c:DLH
type = casus_belli:cb_independence_war
}
}
if = {
limit = { is_situation_active = situation:fall_of_delhi }
custom_tooltip = gain_5_progress_for_claimants_tt
hidden_effect = {
situation:fall_of_delhi = {
"active_resolution(resolution:fall_of_delhi_resolution).resolution_proposer" = {
change_variable = {
name = fall_of_delhi_vote_weight
add = 0.05
}
}
}
}
}
}
}