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_dlh.3 马尔瓦苏丹国崛起

时间范围:1348.1.1 - 1389.12.30 (每月 1% 概率)

触发条件

  • 国家必须处于 德里衰亡 情境中。
  • 在以下任一地区或省份中,至少拥有5个省份:
    • 马尔瓦地区 (area:malwa_area)
    • 萨巴尔加尔 (location:sabalgarh.province)
    • 博杰布尔 (location:bhojpur.province)
    • 代奥加尔 (location:deogarh.province)
    • 阿克莱拉 (location:aklera.province)
    • 谢奥布尔 (location:sheopur.province)
    • 兰坦博尔 (location:ranthambore.province)

关键效果

  • 历史选项 (flavor_dlh.3.a)

    • 新成立的马尔瓦国家将立即向德里 (DLH) 发动一场独立战争。
    • 如果 德里衰亡 情境存在且有活跃决议,则决议提案者的 fall_of_delhi_vote_weight 变量增加 0.05。
  • 选项 (flavor_dlh.3.b)

    • 德里取消对新成立的马尔瓦国家的宗主关系。
    • 马尔瓦国家的颜色被设置为 map_malwa
    • 如果 德里衰亡 情境存在,则决议提案者的 fall_of_delhi_vote_weight 变量增加 0.1,并为马尔瓦国家设置 delhi_claimants_variable 变量。
  • 选项 (flavor_dlh.3.c)

    • 触发条件:仅限玩家控制的国家 (is_ai = no)。
    • 玩家将切换控制新成立的马尔瓦国家。
    • 马尔瓦国家将立即向德里 (DLH) 发动一场独立战争。
    • 如果 德里衰亡 情境存在,则决议提案者的 fall_of_delhi_vote_weight 变量增加 0.05。

背景介绍: 在14世纪中后期,随着德里苏丹国的中央权威逐渐衰落,其边远省份和地方总督开始寻求更大的自治权乃至独立。马尔瓦地区,作为德里苏丹国在印度次大陆中西部的重要领土,其地方势力在德里陷入内部纷争和外部压力的“德里衰亡”情境下,抓住机会宣布独立,建立了马尔瓦苏丹国。这一事件标志着德里苏丹国对印度腹地控制力的显著削弱,以及一系列地方政权崛起的开始。

完整事件代码

flavor_dlh.3 = {
	type = country_event
	title = flavor_dlh.3.title
	desc = flavor_dlh.3.desc

	fire_only_once = yes
	
	dynamic_historical_event = {
		tag = DLH
		from = 1348.1.1
		to = 1389.12.30
		monthly_chance = 1
	}

	trigger = {
		is_situation_active = situation:fall_of_delhi
		any_province = {
			OR = {
				area = { this = area:malwa_area }
				this = location:sabalgarh.province
				this = location:bhojpur.province
				this = location:deogarh.province
				this = location:aklera.province
				this = location:sheopur.province
				this = location:ranthambore.province
			}
			count > 4
		}
	}
	
	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:dhar
			}
			location:dhar = { save_scope_as = target_location }
		}
		else = {
			ordered_owned_location = {
				limit = {
					OR = {
						area = area:malwa_area
						province = location:sabalgarh.province
						province = location:bhojpur.province
						province = location:deogarh.province
						province = location:aklera.province
						province = location:sheopur.province
						province = location:ranthambore.province
					}
				}
				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 = malwa_var value = yes }
				save_scope_as = target_malwa_revolter_scope
				set_country_rank = country_rank:rank_kingdom
			}
		}
		scope:target_malwa_revolter_scope = {
			add_gold = 1000
			change_country_tag = MLW
			change_country_name = MLW
			change_country_adjective = MLW_ADJ
			change_country_color = map_malwa
			change_country_flag = MLW
			create_character = {
				culture = root.culture
				religion = religion:sunni
				estate = estate_type:peasants_estate
				first_name = name_amid
				birth_date = 1301.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 = {
				OR = {
					area = area:malwa_area
					province = location:sabalgarh.province
					province = location:bhojpur.province
					province = location:deogarh.province
					province = location:aklera.province
					province = location:sheopur.province
					province = location:ranthambore.province
				}
			}
			change_location_owner = scope:target_malwa_revolter_scope
			add_core = scope:target_malwa_revolter_scope
			change_integration_level = core
		}
	}

	option = {
		name = flavor_dlh.3.a
		historical_option = yes

		scope:target_malwa_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.3.b
		
		cancel_subject = scope:target_malwa_revolter_scope
		hidden_effect = {
			scope:target_malwa_revolter_scope = {
				change_country_color = map_malwa
			}
		}
		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