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_chi_mon.1 土木堡之变

时间范围

此事件为一次性触发事件,无具体 fromto 日期限制,触发后仅发生一次。

触发条件

此事件为脚本触发事件,无玩家可主动满足的常规 trigger 条件。其触发逻辑由游戏脚本控制,核心条件为:明朝皇帝(国际组织“中华”的领袖国统治者)被玩家国家(ROOT)的军队俘虏

关键效果

事件触发后,立即执行以下操作:

  • 记录俘虏皇帝的国家、被俘虏的皇帝本人、皇帝所属的明朝(目标国)、皇帝被俘时所在的省份以及相关的战争。
  • 计算一笔赎金,其价值为目标国(明朝)年收入的2到3倍。
  • 确定一个用于后续事件的目标省份,优先级为:1. 明朝拥有的大都(北京);2. 明朝在华北地区人口最多的省份;3. 明朝的首都。
  • 为相关省份和人物设置特定变量,以供后续事件链使用。

玩家可选择以下两个选项:

  • 选项 A (flavor_chi_mon.1.a)

    • 获得国家修正 chi_tumu_crisis_benefit,持续25年。
    • 实际效果:获得“严重厌战度减免”奖励,并获得国家修正 chi_capture_of_beijing,持续5年。
  • 选项 B (flavor_chi_mon.1.b)

    • 向明朝提出赎金要求。
    • 实际效果:90天后,明朝将触发后续事件 flavor_chi_mon.5(赎金谈判事件)。

历史选项:代码中未明确标注 historical_option = yes

无论选择哪个选项,事件结束后都会立即触发后续事件 flavor_chi_mon.2

背景介绍

此事件模拟了明朝历史上的“土木堡之变”。1449年,明英宗朱祁镇在宦官王振的怂恿下御驾亲征瓦剌,在土木堡(今河北怀来东)遭瓦剌太师也先伏击,明军大败,英宗本人被俘。这一事件导致明朝精锐损失惨重,皇权动摇,北京一度面临直接威胁,是明朝由盛转衰的重要转折点之一。在游戏中,这代表游牧势力俘虏中原王朝皇帝所引发的重大政治与军事危机。

完整事件代码

flavor_chi_mon.1 = {
	type = country_event
	title = flavor_chi_mon.1.title
	desc = flavor_chi_mon.1.desc

	fire_only_once = yes

	immediate = {
		save_scope_as = capturing_country

		international_organization:middle_kingdom.leader_country = {
			save_scope_as = target_country
		}
		scope:target = {
			unit_location = {
				save_scope_as = target_location
			}
			leader = {
				save_scope_as = captured_emperor
				move_country = ROOT
				imprison_character_effect = {
					years = -1
				}
				set_variable = {
					name = chi_captured_emperor_origin
					value = scope:target_country
				}
			}
		}

		scope:target_country = {
			set_variable = {
				name = lost_emperor
				value = scope:captured_emperor
			}
		}
		
		"war_with_country(scope:target_country)" = {
			save_scope_as = target_war
		}

		set_local_variable = {
			name = ransom_value
			value = {
				value = scope:target_country.yearly_gold
				multiply = { 2 3 }
			}
		}

		location:dadu = {
			if = {
				limit = {
					owner = scope:target_country
				}
				save_scope_as = location_for_capture
			}
		}
		if = {
			limit = {
				NOT = { exists = scope:location_for_capture }
			}
			region:north_china_region = {
				ordered_location_in_region = {
					limit = {
						owner ?= scope:target_country
					}
					order_by = population
					max = 1
					save_scope_as = location_for_capture
				}
			}
		}
		if = {
			limit = {
				NOT = { exists = scope:location_for_capture }
			}
			scope:target_country.capital = {
				save_scope_as = location_for_capture
			}
		}

		scope:location_for_capture = {
			set_variable = tumu_crisis_target
		}
		scope:captured_emperor = { 
			set_variable = {
				name = tumu_crisis_location_target_on_character
				value = scope:location_for_capture
			}
		}
	}

	option = {
		name = flavor_chi_mon.1.a
		
		add_country_modifier = {
			mode = replace
			modifier = chi_tumu_crisis_benefit
			years = 25
		}
		custom_tooltip = mon_pushing_advantage
		show_as_tooltip = {
			add_war_exhaustion = war_exhaustion_severe_bonus
			add_country_modifier = {
				mode = replace
				modifier = chi_capture_of_beijing
				years = 5
			}
		}
	}

	option = {
		name = flavor_chi_mon.1.b
		
		custom_tooltip = mon_offer_ransom
		scope:target_country = {
			trigger_event_non_silently = {
				id = flavor_chi_mon.5
				days = 90
			}
		}
	}

	after = {
		trigger_event_non_silently = {
			id = flavor_chi_mon.2
		}
	}
}