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_ira.46 卡扎尔王朝叛乱

时间范围:1770.1.1 - 1821.1.1(每月 1% 概率)

触发条件

  • 国家拥有变量 ira_qajar_dynasty_rebellion_flag
  • 政府类型为君主制。
  • 人物 agha_muhammad_qajar fath_ali_qajar 存活。
  • 当前统治者或摄政王不是 agha_muhammad_qajar
  • 当前统治者或摄政王不是 fath_ali_qajar
  • 正统性 ≤ 60。
  • 稳定度 ≤ 5。

关键效果

  • 选项 A (flavor_ira.46.a)
    • 将新统治者设置为 rebellion_ruler(即卡扎尔家族领袖)。
    • 稳定度遭受严重惩罚。
    • 放逐当前统治者。
    • 摧毁叛军 target_rebel
  • 选项 B (flavor_ira.46.b)
    • 为叛军 target_rebel 增加 75% 的叛乱进度。

背景介绍: 在18世纪末至19世纪初,伊朗(IRA)的统治面临挑战。当王朝正统性低落、国家不稳时,强大的卡扎尔家族(以阿迦·穆罕默德·汗或法塔赫·阿里·沙为代表)可能趁机发动叛乱,试图夺取王位。此事件模拟了王朝内部权力斗争和贵族叛乱的历史情景。

完整事件代码

flavor_ira.46 = {
	type = country_event
	title = flavor_ira.46.title
	desc = flavor_ira.46.desc
	historical_info = flavor_ira.46.historical_info

	dynamic_historical_event = {
		tag = IRA
		from = 1770.1.1
		to = 1821.1.1
		monthly_chance = 1
	}

	fire_only_once = yes

	trigger = {
		has_variable = ira_qajar_dynasty_rebellion_flag
		government_type = government_type:monarchy
		OR = {
			character:agha_muhammad_qajar = {
				is_alive = yes
			}
			character:fath_ali_qajar = {
				is_alive = yes
			}
		}
		ruler_or_regent != character:agha_muhammad_qajar
		ruler_or_regent != character:fath_ali_qajar

		legitimacy <= 60
		stability <= 5
	}

	illustration_tags = {
        10 = armed
        10 = exterior
    }

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:peasants_estate background = estate_type:peasants_estate }
		if = {
			limit = {
				character:agha_muhammad_qajar = {
					is_alive = yes
				}
			}

			character:agha_muhammad_qajar = {
				save_scope_as = rebellion_ruler
			}

			character:fath_ali_qajar = {
				save_scope_as = rebellion_heir
			}
		}

		else = {
			character:fath_ali_qajar = {
				save_scope_as = rebellion_ruler
			}
		}

		ruler_or_regent ?= {
			save_scope_as = current_ruler
		}

		create_rebel = {
			category = pretender
			name = qajar_pretenders
			save_scope_as = target_rebel
		}

		set_variable = {
			name = current_ruler_power_variable
			value = {
				add = {
					value = "estate_power(estate_type:crown_estate)"
					multiply = 5
				}
				add = {
					value = government_power
					divide = 2
				}
			}
		}
		set_variable = {
			name = num_rebelling_locations
			value = 0
		}
		if = {
			limit = {
				var:current_ruler_power_variable < 100
			}
			while = {
				limit = { var:current_ruler_power_variable < 100 }
				ordered_owned_location = {
					limit = {
						is_capital = no
						NOT = { has_variable = already_supports_rebel_variable }
					}
					order_by = {
						value = population
						multiply = -1
					}
					max = 1
					owner = {
						change_variable = {
							name = current_ruler_power_variable
							add = 2
						}
						change_variable = {
							name = num_rebelling_locations
							add = 1
						}
					}
					set_variable = {
						name = already_supports_rebel_variable
						months = 2
					}
					every_pop = {
						limit = {
							owner = root
						}
						add_pop_satisfaction = pop_satisfaction_extreme_penalty
						change_pop_allegiance = scope:target_rebel
					}
				}
			}
		}

		scope:rebellion_ruler = {
			change_character_allegiance = scope:target_rebel
		}

		if = {
			limit = {
				exists = scope:rebellion_heir
			}
			scope:current_ruler = {
				change_character_allegiance = scope:target_rebel
			}
		}
	}

	option = {
		name = flavor_ira.46.a

		set_new_ruler = scope:rebellion_ruler

		add_stability = stability_severe_penalty

		scope:current_ruler = {
			banish_character = yes
		}

		destroy_rebel = scope:target_rebel
	}

	option = {
		name = flavor_ira.46.b

		scope:target_rebel = {
			add_rebel_progress = 0.75
		}
	}

	after = {
		remove_variable = ira_qajar_dynasty_rebellion_flag
		remove_variable = current_ruler_power_variable
		remove_variable = num_rebelling_locations
	}
}