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_maj.5 稳固西部边境

时间范围:1345.1.1 - 1389.6.1(每月 5% 概率)

触发条件

  • 事件仅对 MAJ 国家触发。
  • MAJ 国家必须存在,且拥有统治者。
  • MAJ 的统治者必须是男性且未婚。
  • 国家 SUN 必须存在,且满足以下所有条件:
    • 拥有统治者。
    • 不是附庸国。
    • 未处于战争状态。
    • 其统治者拥有王朝。
    • 至少存在一位符合以下所有条件的角色:
      • 属于 SUN 国家。
      • SUN 统治者的王朝相同。
      • 为女性。
      • 存活。
      • 未婚。
      • 年龄大于等于16岁。
  • MAJ 自身未处于战争状态。

关键效果

  • 选项 A (flavor_maj.5.a)
    • SUN 国家触发事件 flavor_maj.6
    • 设置一个持续5年的变量 pressed_for_subjugation_variable,并显示提示文本 press_for_subjugation_tt
  • 选项 B (flavor_maj.5.b)
    • SUN 国家触发事件 flavor_maj.6
    • 显示提示文本 do_not_press_for_subjugation_tt
  • 选项 C (flavor_maj.5.c)
    • MAJ 国家增加少量政府点数 (government_power_mild_bonus)。

背景介绍: 在14世纪中后期,作为地区强权的 MAJ 面临着巩固其西部边境的战略需求。邻近的 SUN 国家由一位拥有王朝的统治者领导,其家族中恰好有适婚的女性成员。这为 MAJ 提供了一个通过联姻来建立更紧密关系、甚至施加影响力的机会。此事件模拟了 MAJ 统治者权衡是否利用这一机会来加强西部边境安全的决策时刻。

完整事件代码

flavor_maj.5 = {  #Securing the Western Borders
	type = country_event
	title = flavor_maj.5.title
	desc = flavor_maj.5.desc
	fire_only_once = yes
	dynamic_historical_event = {
		tag = MAJ
		from = 1345.1.1
		to = 1389.6.1
		monthly_chance = 5
	}
	trigger = {
		country_exists = c:SUN
		has_ruler = yes
		ruler = {
			is_married = no
			is_female = no
		}
		c:SUN = {
			has_ruler = yes
			is_subject = no
			at_war = no
			ruler = { has_dynasty = yes }
			any_character = {
				owner = prev
				dynasty ?= prev.ruler.dynasty
				is_female = yes
				is_alive = yes
				is_married = no
				age_in_years >= 16
			}
		}
		at_war = no
	}

	immediate = {
		save_scope_as = target_country
		c:SUN = {
			save_scope_as = target_country2
			random_character = {
				limit = {
					owner = prev
					OR = {
						is_child_of = prev.ruler
						is_close_relative = prev.ruler
						dynasty = prev.ruler.dynasty
					}
					is_female = yes
					is_alive = yes
					is_married = no
					age_in_years >= 16
				}
				save_scope_as = target_character
			}
			ruler_or_regent = { save_scope_as = target_character2 }
		}
		ruler_or_regent = { save_scope_as = target_character3 }
	}

	option = {
		name = flavor_maj.5.a

		c:SUN = {
			trigger_event_non_silently = flavor_maj.6
		}

		custom_tooltip = {
			text = press_for_subjugation_tt
			set_variable = {
				name = pressed_for_subjugation_variable
				years = 5
			}
		}

	}

	option = {
		name = flavor_maj.5.b

		c:SUN = {
			trigger_event_non_silently = flavor_maj.6
		}

		custom_tooltip = do_not_press_for_subjugation_tt
	}

	option = {
		name = flavor_maj.5.c

		add_government_power = government_power_mild_bonus
	}
}