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_teu.100] 十字军归来

时间范围:无特定起止日期(动态事件) 触发概率:无特定月度概率(满足条件即可能触发)

触发条件

  • 国家拥有变量列表 pr_cr_characters
  • 在该列表中,至少存在一个满足以下所有条件的角色:
    • 角色存活(is_alive = yes)。
    • 角色拥有修正 on_prussian_crusade
    • 角色拥有变量 pr_cr_home_country

关键效果

  • 选项 A (flavor_teu.100.a)
    • 触发条件:目标角色 scope:target 存活。
    • 效果
      • 为目标角色添加修正 completed_prussian_crusade,持续时间为无限期(years = -1)。
      • 将目标角色移动至触发此事件的国家(scope:target_country)。
      • 若目标角色拥有变量 pr_cr_is_original_monarch,则使其成为触发事件国家的新统治者,并移除该变量。
      • 为国家增加大量陆军传统(army_tradition_extreme_bonus)。
  • 选项 B (flavor_teu.100.b)
    • 触发条件:目标角色 scope:target 已死亡。
    • 效果
      • 为国家增加大量陆军传统(army_tradition_extreme_bonus)。
      • 将(已故的)目标角色移动至触发此事件的国家。
  • 选项 C (flavor_teu.100.c)
    • 触发条件:目标角色 scope:target 不存在。
    • 效果:无具体效果。

背景介绍: 此事件模拟了参与普鲁士十字军(北方十字军)的贵族或骑士的归来。这些人物可能长期在外征战,致力于在波罗的海地区传播基督教并建立统治。他们的回归可能带来军事经验(体现为陆军传统),若其身份显赫,甚至可能直接接管国家的统治权,从而影响国家的政治和军事格局。

完整事件代码

flavor_teu.100 = {
	type = country_event
	title = flavor_teu.100.title
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:target
					scope:target ?= { is_alive = yes }
				}
				desc = flavor_teu.100.desc.crusader_returns
			}
			triggered_desc = {
				trigger = {
					exists = scope:target
					scope:target ?= { is_alive = no }
				}
				desc = flavor_teu.100.desc.crusader_dead
			}
			triggered_desc = {
				trigger = { NOT = { exists = scope:target } }
				desc = flavor_teu.100.desc.fallback
			}
		}
	}
	trigger = {
		has_variable_list = pr_cr_characters
		any_in_list = {
			variable = pr_cr_characters
			is_alive = yes
			NOT = { has_character_modifier = on_prussian_crusade }
			has_variable = pr_cr_home_country
		}
	}

	illustration_tags = {
		10 = regular
		10 = exterior
	}

	immediate = {
		event_illustration_poptype_effect = { foreground = pop_type:soldiers background = pop_type:soldiers }
		save_scope_as = target_country
		random_in_list = {
			variable = pr_cr_characters
			limit = {
				is_alive = yes
				NOT = { has_character_modifier = on_prussian_crusade }
				has_variable = pr_cr_home_country
			}
			save_scope_as = target
		}
	}
	after = {
		remove_list_variable = {
			name = pr_cr_characters
			target = scope:target
		}
		scope:target = { remove_variable = pr_cr_home_country }
	}

	option = {
		name = flavor_teu.100.a
		trigger = {
			scope:target ?= {
				is_alive = yes
			}
		}
		scope:target = {
			add_character_modifier = {
				modifier = completed_prussian_crusade
				years = -1
				mode = add_and_extend
			}
			move_country = scope:target_country
			if = {
				limit = { has_variable = pr_cr_is_original_monarch }
				scope:target_country = {
					set_new_ruler = scope:target
				}
				remove_variable = pr_cr_is_original_monarch
			}
		}
		add_army_tradition = army_tradition_extreme_bonus
	}

	option = {
		name = flavor_teu.100.b
		trigger = {
			scope:target ?= {
				is_alive = no
			}
		}
		add_army_tradition = army_tradition_extreme_bonus
		scope:target = {
			move_country = scope:target_country
		}
	}

	option = {
		name = flavor_teu.100.c
		trigger = {
			not = { exists = scope:target }
		}
	}
}